:root {
  --frame-margin: 14px;
  --wine-950: #4e0602;
  --wine-900: #650800;
  --wine-800: #7f0c03;
  --source-burgundy: #700b06;
  --gold-500: #ffcc3d;
  --gold-300: #ffe08a;
  --cream-100: #fff6d8;
  --cream-300: #edcf80;
  --paper: #fffaf0;
  --ink: #24100c;
  --muted: #704834;
  --line: #d4a84e;
  --blue: #517fa8;
  --green: #7b9d45;
  --rose: #bb6d6b;
  --shadow: 0 18px 44px rgba(89, 43, 8, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cream-100);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
p,
li,
dd {
  overflow-wrap: anywhere;
}

.page-header {
  margin: 8px var(--frame-margin) 0;
  min-height: 302px;
  padding: 8px;
  background: var(--source-burgundy);
  border-radius: 14px;
  overflow: hidden;
}

.image-banner {
  display: grid;
  place-items: center start;
  min-height: 286px;
  background: var(--source-burgundy);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}

.image-banner img {
  display: block;
  width: min(1120px, 100%);
  height: auto;
  max-width: 1120px;
}

.app-layout {
  min-height: calc(100vh - 390px);
  margin: 18px var(--frame-margin) 24px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-100);
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 22px;
  color: var(--cream-100);
  background: linear-gradient(180deg, var(--wine-900), var(--wine-950));
  box-shadow: inset -1px 0 0 rgba(255, 231, 163, 0.18);
}

.side-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 224, 138, 0.25);
}

.side-title span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--gold-500);
  border-radius: 6px;
  font-weight: 900;
}

.section-tabs {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.tab-button {
  display: block;
  padding: 12px 10px;
  color: var(--cream-100);
  text-align: left;
  background: transparent;
  border-left: 3px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}

.tab-button:hover {
  color: var(--gold-300);
  background: rgba(255, 246, 216, 0.08);
  border-left-color: rgba(255, 224, 138, 0.42);
}

.tab-button.is-active {
  color: var(--gold-500);
  background: rgba(255, 204, 61, 0.13);
  border-left-color: var(--gold-500);
}

.content-stage {
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(112, 11, 6, 0.06), rgba(112, 11, 6, 0) 96px),
    var(--cream-100);
}

.stage-top {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--wine-800);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-top h1 {
  margin: 0;
  color: var(--wine-950);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.article-subtitle {
  max-width: 980px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.35;
}

.article-authors {
  display: block;
  margin-top: 3px;
  color: var(--wine-800);
}

.article-authors strong {
  font-weight: 900;
}

.content-panel {
  display: none;
}

.content-panel.is-visible {
  display: block;
}

.paper-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 310px;
  overflow: hidden;
  color: #fff8dc;
  background:
    linear-gradient(120deg, rgba(255, 204, 61, 0.18), transparent 42%),
    linear-gradient(135deg, var(--wine-900), var(--wine-950));
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(91, 19, 6, 0.14);
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 30px;
}

.kicker,
.keyword-row span,
.evidence-copy span,
.finding-card > span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  color: var(--wine-950);
  background: var(--gold-300);
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h2 {
  max-width: 820px;
  margin: 0;
  color: #fff8dc;
  font-size: clamp(1.8rem, 3.1vw, 2.75rem);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 780px;
  margin: 0;
  color: #f5d9a0;
  font-size: 1.04rem;
  line-height: 1.48;
}

.article-link-button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--wine-950);
  background: var(--gold-500);
  border: 1px solid var(--gold-300);
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(36, 16, 12, 0.18);
}

.article-link-button:hover {
  background: var(--gold-300);
}

.hero-facts {
  padding: 22px;
  background: rgba(255, 246, 216, 0.09);
  border-left: 1px solid rgba(255, 224, 138, 0.22);
}

.hero-facts dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hero-facts div {
  padding: 13px;
  background: rgba(255, 246, 216, 0.13);
  border: 1px solid rgba(255, 224, 138, 0.24);
  border-radius: 7px;
}

.hero-facts dt {
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: #fff8dc;
  line-height: 1.35;
}

.overview-section {
  margin-top: 22px;
}

.compact-section,
.visual-section {
  padding: 18px;
  background: rgba(255, 241, 197, 0.55);
  border: 1px solid rgba(212, 168, 78, 0.72);
  border-radius: 8px;
}

.ethical-map-section {
  background:
    linear-gradient(135deg, rgba(101, 8, 0, 0.12), rgba(255, 241, 197, 0.72) 48%, rgba(101, 8, 0, 0.08)),
    rgba(255, 241, 197, 0.7);
  border-color: rgba(101, 8, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.8);
}

.section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.overview-section > .section-heading,
.section-card > .section-heading {
  padding: 10px 12px;
  background:
    linear-gradient(90deg, var(--wine-900) 0%, var(--wine-950) 18%, #b78242 52%, var(--wine-950) 84%, var(--wine-900) 100%);
  border: 1px solid rgba(101, 8, 0, 0.18);
  border-radius: 7px;
}

.section-heading span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--wine-950);
  background: var(--gold-500);
  border-radius: 6px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: #fff8dc;
  font-size: 1.35rem;
}

.small-heading {
  margin-bottom: 10px;
}

.small-heading span {
  width: 30px;
  height: 30px;
  font-size: 0.85rem;
}

.lens-grid,
.finding-grid {
  display: grid;
  gap: 14px;
}

.lens-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(330px, 1.1fr);
}

.finding-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lens-card,
.section-card,
.finding-card,
.evidence-card {
  background: var(--paper);
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(91, 19, 6, 0.08);
}

.lens-card,
.section-card,
.finding-card {
  padding: 16px;
}

.lens-card h3,
.finding-card h3 {
  margin: 0 0 9px;
  color: var(--wine-900);
  font-size: 1.08rem;
}

.lens-card p,
.lens-card li,
.section-card li,
.finding-card p,
.evidence-copy p {
  color: var(--muted);
  line-height: 1.43;
}

.lens-card p,
.finding-card p {
  margin: 0;
}

.lens-card ul,
.section-card ul {
  margin: 0;
  padding-left: 18px;
}

.lens-card li + li,
.section-card li + li {
  margin-top: 7px;
}

.keyword-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.keyword-row span {
  width: auto;
  background: #fff6d8;
  white-space: normal;
}

.finding-card {
  position: relative;
  min-height: 215px;
  border-top: 6px solid var(--gold-500);
}

.finding-card.category-technical-courses {
  border-top-color: var(--blue);
}

.finding-card.category-theoretical-courses {
  border-top-color: var(--rose);
}

.finding-card.category-project-based-learning {
  border-top-color: var(--green);
}

.finding-card > span {
  margin-bottom: 12px;
  background: #fff6d8;
}

.finding-card h3 {
  font-size: 1.18rem;
}

.axis-diagram-shell {
  display: grid;
  gap: 10px;
}

.axis-copy {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 0.65fr);
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(101, 8, 0, 0.22);
  border-radius: 8px;
}

.axis-copy span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 7px 10px;
  color: var(--wine-950);
  background: var(--gold-300);
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.axis-copy h3 {
  margin: 0;
  color: var(--wine-950);
  font-size: 1.3rem;
  line-height: 1.18;
}

.axis-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.context-panel {
  position: relative;
  min-height: 156px;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf0, rgba(255, 250, 240, 0.86));
  border: 1px solid rgba(101, 8, 0, 0.2);
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(91, 19, 6, 0.08);
}

.context-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--gold-500);
}

.context-panel::after {
  content: "";
  position: absolute;
  inset: 7px 0 auto;
  height: 1px;
  background: rgba(101, 8, 0, 0.18);
}

.context-technical::before {
  background: var(--blue);
}

.context-theoretical::before {
  background: var(--rose);
}

.context-project::before {
  background: var(--green);
}

.context-panel h3 {
  margin: 4px 0 14px;
  color: var(--wine-950);
  font-size: 1.12rem;
  line-height: 1.18;
}

.context-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.context-panel p + p {
  margin-top: 8px;
}

.context-panel strong {
  color: var(--wine-900);
}

.context-responsibility {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 8px 14px;
}

.context-responsibility span {
  width: 76px;
  height: 2px;
  background: var(--wine-900);
  border-radius: 999px;
}

.context-responsibility p {
  margin: 0;
  color: var(--wine-900);
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.context-responsibility::after {
  content: "";
  width: 76px;
  height: 2px;
  background: var(--wine-900);
  border-radius: 999px;
}

.evidence-stack {
  display: grid;
  gap: 16px;
}

.evidence-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  overflow: hidden;
}

.evidence-visual {
  min-width: 0;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 204, 61, 0.25), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 246, 216, 0.88));
}

.evidence-copy {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 22px;
  background: linear-gradient(180deg, #fff7df, #fff1c5);
  border-left: 1px solid var(--cream-300);
}

.evidence-copy h3 {
  margin: 0;
  color: var(--wine-950);
  font-size: 1.18rem;
  line-height: 1.22;
}

.clean-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(212, 168, 78, 0.72);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
}

.clean-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.clean-table th,
.clean-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(212, 168, 78, 0.54);
  text-align: left;
  vertical-align: top;
}

.clean-table th {
  color: var(--wine-950);
  background: rgba(255, 224, 138, 0.46);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.clean-table td {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.38;
}

.clean-table td:first-child {
  color: var(--wine-900);
  font-weight: 900;
}

.clean-table tr:last-child td {
  border-bottom: 0;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
}

.conclusion-card {
  background: linear-gradient(180deg, #fffaf0, #fff1c5);
}

.usage-map-shell {
  display: grid;
  gap: 16px;
}

.usage-map-hero,
.map-toolbar,
.usage-map-layout > *,
.campus-map-frame {
  background: var(--paper);
  border: 1px solid var(--cream-300);
  border-radius: 8px;
  box-shadow: 0 9px 20px rgba(91, 19, 6, 0.08);
}

.usage-map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 16px;
  padding: 20px;
  color: #fff8dc;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 204, 61, 0.22), transparent 28%),
    linear-gradient(135deg, var(--wine-900), var(--wine-950));
  border-color: rgba(255, 224, 138, 0.35);
}

.usage-map-hero h2 {
  margin: 0;
  color: #fff8dc;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.usage-map-hero p,
.map-message p {
  margin: 10px 0 0;
  color: #f5d9a0;
  line-height: 1.45;
}

.map-message {
  padding: 15px;
  background: rgba(255, 246, 216, 0.1);
  border: 1px solid rgba(255, 224, 138, 0.25);
  border-radius: 8px;
}

.map-message strong {
  color: var(--gold-300);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.map-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(101, 8, 0, 0.12), rgba(255, 250, 240, 0.8)),
    var(--paper);
}

.map-control-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.map-control-group button,
.theme-panel button {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--wine-900);
  background: #fff6d8;
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  font-weight: 900;
}

.map-control-group button:hover,
.map-control-group button.is-active,
.theme-panel button:hover,
.theme-panel button.is-active {
  color: #fff8dc;
  background: linear-gradient(90deg, var(--wine-900), var(--wine-950));
  border-color: var(--wine-900);
}

.compact-controls {
  justify-content: end;
}

.usage-map-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.theme-panel,
.concept-panel {
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(101, 8, 0, 0.08), rgba(255, 250, 240, 0.86)),
    var(--paper);
}

.theme-panel h3,
.concept-panel h3 {
  margin: 10px 0 12px;
  color: var(--wine-950);
}

#themeButtons {
  display: grid;
  gap: 8px;
}

.theme-panel button {
  display: grid;
  gap: 5px;
  width: 100%;
  text-align: left;
}

.theme-panel button span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.theme-panel button.is-active span,
.theme-panel button:hover span {
  color: #f5d9a0;
}

.campus-map-frame {
  min-height: 620px;
  overflow: hidden;
  padding: 12px;
  cursor: grab;
  background:
    linear-gradient(rgba(101, 8, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 8, 0, 0.06) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 204, 61, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.9), rgba(255, 241, 197, 0.78));
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.campus-map-frame.is-panning {
  cursor: grabbing;
}

.campus-map {
  position: relative;
  width: 100%;
  min-width: 760px;
  height: 600px;
  transform-origin: center;
  transition: transform 220ms ease;
}

.connection-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-layer path {
  fill: none;
  stroke: rgba(101, 8, 0, 0.34);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 11;
  animation: dashFlow 6s linear infinite;
}

.connection-layer path.is-muted {
  opacity: 0.18;
}

.connection-layer path.is-active {
  opacity: 0.9;
  stroke: rgba(101, 8, 0, 0.62);
}

.processor-core {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  transform: translate(-50%, -50%);
  color: #fff8dc;
  background:
    linear-gradient(135deg, rgba(255, 204, 61, 0.22), transparent 46%),
    linear-gradient(135deg, var(--wine-900), var(--wine-950));
  border: 2px solid var(--gold-300);
  border-radius: 18px;
  box-shadow:
    0 20px 44px rgba(91, 19, 6, 0.24),
    inset 0 1px 0 rgba(255, 246, 216, 0.22);
}

.processor-core::before,
.processor-core::after {
  content: "";
  position: absolute;
  inset: -11px;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, var(--gold-500) 10px 14px, transparent 14px 24px) top / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 10px, var(--gold-500) 10px 14px, transparent 14px 24px) bottom / 100% 8px no-repeat;
  opacity: 0.82;
  pointer-events: none;
}

.processor-core::after {
  transform: rotate(90deg);
}

.chip-pulse {
  position: absolute;
  inset: -16px;
  border: 2px solid rgba(255, 204, 61, 0.42);
  border-radius: 24px;
  animation: chipPulse 2.8s ease-out infinite;
}

.chip-grid {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 224, 138, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 224, 138, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 224, 138, 0.16) 1px, transparent 1px);
  background-size: 14px 14px;
  animation: chipGridShift 5s linear infinite;
}

.processor-core strong {
  position: relative;
  z-index: 2;
  color: #fff8dc;
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.map-node {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 30px minmax(0, auto);
  gap: 7px;
  align-items: center;
  max-width: 178px;
  min-height: 42px;
  padding: 7px 10px;
  transform: translate(-50%, -50%);
  color: var(--wine-950);
  background: rgba(255, 250, 240, 0.88);
  border: 1px solid rgba(212, 168, 78, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(91, 19, 6, 0.12);
  transition: transform 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.map-node span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff8dc;
  background: var(--wine-900);
  border-radius: 50%;
  font-weight: 900;
}

.map-node strong {
  font-size: 0.82rem;
  line-height: 1.12;
}

.map-node:hover,
.map-node.is-selected,
.map-node.is-highlighted {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: var(--wine-900);
  box-shadow: 0 18px 30px rgba(91, 19, 6, 0.2);
}

.map-node.is-dimmed {
  opacity: 0.28;
  filter: grayscale(0.6);
}

.node-use span { background: var(--blue); }
.node-benefit span { background: var(--green); }
.node-risk span { background: var(--rose); }
.node-responsibility span { background: var(--wine-900); }
.node-boundary span { background: #b78242; }

.concept-panel {
  grid-column: 2;
  align-self: start;
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  column-gap: 0;
  row-gap: 0;
  height: 206px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--wine-900) 0%, var(--wine-800) 390px, rgba(255, 250, 240, 0.96) 390px, rgba(255, 246, 216, 0.9) 100%);
  box-shadow: 0 18px 34px rgba(91, 19, 6, 0.12);
}

.concept-panel > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  align-self: start;
  justify-self: start;
  width: max-content;
  margin: 16px 20px 0;
  padding: 5px 8px;
  color: var(--wine-950);
  background: var(--gold-300);
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.concept-panel h3,
.concept-panel > p {
  grid-column: 1;
}

.concept-panel h3 {
  margin: 12px 20px 8px;
  color: var(--paper);
  font-size: 1.05rem;
}

.concept-panel > p {
  margin: 0 20px 16px;
  color: #f8dfb7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.concept-panel p,
.concept-panel dd {
  color: var(--muted);
  line-height: 1.42;
}

.concept-panel > p {
  color: #f8dfb7;
}

.concept-panel dl {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
  margin: 0;
  padding: 14px;
}

.concept-panel .detail-meaning { grid-column: span 4; }
.concept-panel .detail-course { grid-column: span 2; }
.concept-panel .detail-type,
.concept-panel .detail-theme,
.concept-panel .detail-signal { grid-column: span 2; }

.concept-panel div {
  min-width: 0;
  min-height: 78px;
  padding: 10px 12px;
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(212, 168, 78, 0.62);
  border-top: 4px solid rgba(101, 8, 0, 0.78);
  border-radius: 7px;
  box-shadow: 0 10px 20px rgba(91, 19, 6, 0.08);
}

.concept-panel dt {
  color: var(--wine-900);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.concept-panel dd {
  margin: 4px 0 0;
}

.concept-panel dd strong,
.concept-panel dd span {
  display: block;
}

.concept-panel dd strong {
  color: var(--wine-950);
  font-size: 0.84rem;
  line-height: 1.18;
}

.concept-panel dd span {
  margin-top: 3px;
  font-size: 0.76rem;
  line-height: 1.22;
}

.concept-panel dd {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -72;
  }
}

@keyframes chipPulse {
  0% {
    opacity: 0.75;
    transform: scale(0.92);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes chipGridShift {
  to {
    background-position: 14px 14px, 14px 14px;
  }
}

.site-footer {
  margin: 0 var(--frame-margin) 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--wine-900), var(--wine-950));
  color: #fff8dc;
  text-align: center;
  padding: 14px 18px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .finding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usage-map-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .map-toolbar {
    grid-template-columns: 1fr;
  }

  .compact-controls {
    justify-content: start;
  }
}

@media (max-width: 980px) {
  .page-header {
    min-height: 0;
  }

  .image-banner {
    min-height: 150px;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
  }

  .side-title {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .section-tabs {
    margin-top: 0;
  }

  .paper-hero,
  .usage-map-hero,
  .lens-grid,
  .axis-copy,
  .context-strip,
  .usage-map-layout,
  .evidence-card,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .theme-panel,
  .campus-map-frame,
  .concept-panel {
    grid-column: 1;
  }

  .concept-panel {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 232px;
  }

  .concept-panel h3,
  .concept-panel > p,
  .concept-panel dl {
    grid-column: 1;
    grid-row: auto;
  }

  .concept-panel dl {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .hero-facts,
  .evidence-visual {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--cream-300);
  }

  .campus-map-frame {
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --frame-margin: 8px;
  }

  .content-stage,
  .hero-copy,
  .hero-facts,
  .compact-section,
  .visual-section {
    padding: 16px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }

  .finding-grid {
    grid-template-columns: 1fr;
  }

  .campus-map {
    min-width: 680px;
    height: 560px;
  }

  .map-node {
    max-width: 160px;
  }
}
