:root {
  --navy-950: #04151d;
  --navy-900: #071f2b;
  --navy-850: #0a2a38;
  --navy-800: #0c3545;
  --teal-700: #0b5967;
  --cyan-500: #27c3dc;
  --cyan-300: #7de3ff;
  --cyan-100: #dff8ff;
  --paper: #f4f7f5;
  --white: #ffffff;
  --ink: #102932;
  --muted: #607781;
  --line: #cedbdd;
  --green: #2ca879;
  --orange: #f4a261;
  --red-orange: #e76f51;
  --shadow: 0 20px 55px rgba(3, 22, 30, 0.16);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --content: 1520px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--navy-950);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan-300);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  color: var(--navy-950);
  background: var(--cyan-300);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(125, 227, 255, 0.16);
  background: rgba(4, 21, 29, 0.92);
  backdrop-filter: blur(18px);
}
.top-nav {
  width: min(calc(100% - 40px), var(--content));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; letter-spacing: .04em; }
.brand strong { display: block; font-size: .98rem; letter-spacing: .12em; }
.brand small { display: block; margin-top: 2px; color: #91acb7; font-size: .7rem; letter-spacing: .04em; }
.brand-mark { position: relative; width: 38px; height: 38px; display: block; }
.brand-mark i { position: absolute; width: 10px; height: 10px; border: 2px solid var(--cyan-300); border-radius: 50%; background: var(--navy-950); }
.brand-mark i:nth-child(1) { left: 1px; top: 13px; }
.brand-mark i:nth-child(2) { right: 1px; top: 1px; }
.brand-mark i:nth-child(3) { right: 1px; bottom: 1px; }
.brand-mark i:nth-child(4) { left: 15px; top: 14px; background: var(--cyan-300); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; z-index: -1; height: 1px; background: var(--cyan-300); transform-origin: left center; }
.brand-mark::before { width: 28px; left: 7px; top: 18px; transform: rotate(-30deg); }
.brand-mark::after { width: 28px; left: 7px; top: 20px; transform: rotate(30deg); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 11px; border-radius: 7px; color: #b6c9d0; font-size: .78rem; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .07em; }
.nav-links a:hover { color: var(--white); background: rgba(125, 227, 255, 0.1); }
.nav-toggle { display: none; color: var(--white); border: 1px solid #41626e; background: transparent; padding: 8px 12px; border-radius: 8px; }

.section-shell { width: 100%; padding: 100px max(24px, calc((100vw - var(--content)) / 2)); }
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 24%, rgba(39, 195, 220, .16), transparent 30%),
    radial-gradient(circle at 4% 65%, rgba(11, 89, 103, .4), transparent 31%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 56%, #092f3d);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image: linear-gradient(rgba(125, 227, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 227, 255, .12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero-grid, .kpi-grid, .hero > .status-message { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 70px; align-items: center; min-height: 570px; }
.eyebrow { color: var(--cyan-300); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow span { display: inline-block; width: 28px; height: 2px; margin: 0 9px 3px 0; background: currentColor; }
.eyebrow.dark { color: var(--teal-700); }
.hero h1 { margin: 18px 0 8px; font-size: clamp(4.2rem, 9vw, 9.5rem); letter-spacing: -.065em; font-weight: 900; }
.hero h1 em { color: var(--cyan-300); font-style: normal; }
.project-expansion { margin-bottom: 27px; color: #a3bec8; font-size: clamp(.92rem, 1.3vw, 1.16rem); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-deck { max-width: 770px; margin-bottom: 28px; color: #d7e4e8; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.35; }
.scope-row { display: flex; flex-wrap: wrap; gap: 9px; }
.scope-row span { padding: 7px 13px; border: 1px solid rgba(125, 227, 255, .28); border-radius: 999px; color: #b9d3dc; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; font-size: .82rem; letter-spacing: .025em; text-decoration: none; cursor: pointer; }
.button.primary { color: var(--navy-950); background: var(--cyan-300); }
.button.primary:hover { background: #a2ecff; transform: translateY(-1px); }
.button.secondary { color: var(--white); border-color: #466674; background: rgba(255,255,255,.03); }
.button.secondary:hover { border-color: var(--cyan-300); }
.hero-interpretation { padding: 34px; border: 1px solid rgba(125, 227, 255, .24); border-radius: var(--radius-lg); background: rgba(4, 21, 29, .58); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.mini-label { margin-bottom: 8px; color: var(--muted); font-size: .69rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero-interpretation .mini-label { color: var(--cyan-300); }
.hero-interpretation h2 { margin-bottom: 18px; font-size: clamp(1.55rem, 2.5vw, 2.3rem); }
.hero-interpretation > p:not(.mini-label):not(.fine-print) { color: #bad0d7; }
.not-equal { margin: 23px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.not-equal span { padding: 11px; border-radius: 8px; color: #ffe5dc; background: rgba(231, 111, 81, .14); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.not-equal b { color: var(--cyan-300); font-size: 1.7rem; }
.fine-print { margin-bottom: 0; color: #849da7; font-size: .78rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 55px; border: 1px solid rgba(125, 227, 255, .16); border-radius: var(--radius-md); overflow: hidden; background: rgba(125, 227, 255, .14); }
.kpi-grid article { min-height: 180px; padding: 25px; background: rgba(6, 31, 43, .93); }
.kpi-grid article.accent-card { background: linear-gradient(150deg, #103d4c, #0b5666); }
.kpi-index { color: #597783; font: 700 .68rem/1 monospace; }
.kpi-grid strong { display: block; margin: 22px 0 9px; color: var(--white); font-size: clamp(2rem, 3.4vw, 3.5rem); letter-spacing: -.055em; }
.kpi-grid p { margin-bottom: 0; color: #9fb6bf; font-size: .8rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .07em; }
.accent-card strong { color: var(--cyan-300); }

.light-section { color: var(--ink); background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; margin-bottom: 42px; }
.section-heading > div { max-width: 850px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.045em; }
.section-heading > p { max-width: 520px; margin-bottom: 3px; color: var(--muted); }
.section-heading.on-dark { color: var(--white); }
.section-heading.on-dark > p { color: #9cb6c0; }
.method-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1.05fr auto 1fr auto 1.05fr auto 1fr; gap: 9px; align-items: center; }
.method-flow article { min-height: 155px; padding: 20px 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.method-flow article span { color: #98a9ae; font: 700 .72rem/1 monospace; }
.method-flow article b { font-size: .98rem; line-height: 1.25; }
.method-flow article small { color: var(--muted); font-size: .73rem; }
.method-flow > i { color: #8fa1a6; font-style: normal; }
.method-flow .candidate-step { border-color: #9fc8d2; background: #edf9fb; }
.method-flow .high-step { color: var(--white); border-color: var(--teal-700); background: var(--navy-800); }
.method-flow .high-step span, .method-flow .high-step small { color: #a9cad2; }
.method-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.method-cards article { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.method-cards h3 { margin-bottom: 10px; font-size: 1.15rem; }
.method-cards p:last-child { margin-bottom: 0; color: var(--muted); font-size: .86rem; }
.dimension-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 900; }
.dimension-icon.spatial { background: #247f94; }
.dimension-icon.textual { background: #386d9b; }
.dimension-icon.temporal { background: #5c5fa4; }
.evidence-scale { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.evidence-scale div { padding: 20px; border-right: 1px solid var(--line); background: #edf1f1; }
.evidence-scale div:last-child { border: 0; }
.evidence-scale strong { display: block; margin-bottom: 3px; font-size: 1.35rem; }
.evidence-scale span { color: var(--muted); font-size: .76rem; }
.evidence-scale .scale-high { color: var(--white); background: var(--teal-700); }
.evidence-scale .scale-high span { color: #c6e4e9; }

.network-section, .map-section, .interpretation-section { color: var(--white); background: var(--navy-900); }
.network-section { background: linear-gradient(180deg, #071f2b, #092a37); }
.network-stat-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.network-stat-comparison > article { padding: 23px; border: 1px solid rgba(125, 227, 255, .17); border-radius: var(--radius-md); background: rgba(255,255,255,.035); }
.network-stat-comparison > article > div:first-child { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.network-stat-comparison h3 { margin-bottom: 17px; color: #b9d0d8; font-size: 1rem; }
.network-stat-comparison .mini-label { color: var(--cyan-300); }
.network-stat-comparison .high-summary { border-color: rgba(244, 162, 97, .35); background: linear-gradient(145deg, rgba(231,111,81,.1), rgba(255,255,255,.03)); }
.summary-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.summary-metrics span { padding: 12px; border-left: 1px solid rgba(125, 227, 255, .17); }
.summary-metrics b { display: block; color: var(--white); font-size: clamp(1.25rem, 2vw, 2rem); }
.summary-metrics small { display: block; margin-top: 2px; color: #829da7; font-size: .64rem; line-height: 1.3; text-transform: uppercase; }
.summary-secondary { margin: 14px 0 0; color: #89a4ae; font-size: .68rem; }
.explorer-grid { display: grid; grid-template-columns: 265px minmax(500px, 1fr) 350px; gap: 16px; align-items: stretch; }
.control-panel, .visual-panel, .detail-panel { border: 1px solid rgba(125, 227, 255, .17); border-radius: var(--radius-md); background: #0a2835; }
.control-panel { padding: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading h3 { margin: 0; font-size: 1rem; }
.text-button { padding: 4px 0; color: var(--cyan-300); border: 0; background: none; font-size: .73rem; font-weight: 800; cursor: pointer; }
.control-panel > label, .control-panel details label { display: block; margin-top: 14px; color: #9bb1ba; font-size: .69rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.control-panel input[type="search"], .control-panel select { width: 100%; height: 38px; margin-top: 5px; padding: 6px 9px; color: var(--white); border: 1px solid #345563; border-radius: 7px; background: #061e29; font-size: .76rem; text-transform: none; letter-spacing: normal; }
.control-panel select option { color: var(--ink); background: white; }
.inline-control { display: grid; grid-template-columns: 1fr auto; gap: 5px; }
.inline-control button { align-self: end; height: 38px; margin-top: 5px; padding: 0 9px; color: var(--navy-950); border: 0; border-radius: 7px; background: var(--cyan-300); font-size: .7rem; font-weight: 900; cursor: pointer; }
.view-switcher { margin: 17px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 0; }
.view-switcher legend { margin-bottom: 6px; color: #9bb1ba; font-size: .69rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.view-switcher label { position: relative; cursor: pointer; }
.view-switcher input { position: absolute; opacity: 0; }
.view-switcher span { min-height: 44px; padding: 6px 4px; display: grid; place-items: center; color: #91a9b2; border: 1px solid #345563; border-right-width: 0; background: #061e29; font-size: .63rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.view-switcher label:first-of-type span { border-radius: 7px 0 0 7px; }
.view-switcher label:last-of-type span { border-right-width: 1px; border-radius: 0 7px 7px 0; }
.view-switcher input:checked + span { color: var(--navy-950); border-color: var(--cyan-300); background: var(--cyan-300); }
.control-panel details { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(125,227,255,.15); }
.control-panel summary { color: #d4e2e6; font-size: .76rem; font-weight: 800; cursor: pointer; }
.control-note { margin: 8px 0 0; color: #758e98; font-size: .69rem; }
.check-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.check-grid.primary-checks { grid-template-columns: repeat(3, 1fr); }
.control-panel .check-grid label { margin: 0; padding: 7px; display: flex; align-items: center; gap: 5px; border: 1px solid #314d59; border-radius: 6px; color: #b3c7ce; background: #0c303e; font-size: .61rem; cursor: pointer; }
.control-panel input[type="checkbox"] { accent-color: var(--cyan-300); }
.control-panel input[type="range"] { width: 100%; margin-top: 8px; accent-color: var(--cyan-300); }
.control-panel output { float: right; color: var(--cyan-300); font-variant-numeric: tabular-nums; }
.component-shortcut { width: 100%; margin-top: 18px; color: #dff8ff; border-color: #42707e; background: #123845; font-size: .7rem; }
.visual-panel { min-width: 0; overflow: hidden; background: #f7faf9; }
.visual-heading { min-height: 100px; padding: 19px 22px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; color: var(--ink); border-bottom: 1px solid #d9e2e3; }
.visual-heading h3 { margin-bottom: 4px; font-size: 1.3rem; }
.visual-heading .mini-label { color: var(--teal-700); }
.visual-heading p { margin-bottom: 0; color: var(--muted); font-size: .77rem; }
.legend { max-width: 48%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; color: var(--muted); font-size: .64rem; }
.legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.legend-line { width: 17px; height: 2px; display: inline-block; background: var(--candidateEdge, #7692a7); }
.legend-line.high { height: 3px; background: var(--red-orange); }
.legend-ring { width: 12px; height: 12px; display: inline-block; border: 2px solid #168eaa; border-radius: 50%; }
.network-metrics { display: grid; grid-template-columns: repeat(4, 1fr); color: var(--ink); border-bottom: 1px solid #d9e2e3; background: #edf3f3; }
.network-metrics span { padding: 10px 15px; border-right: 1px solid #d3dedf; }
.network-metrics span:last-child { border: 0; }
.network-metrics small { display: block; color: var(--muted); font-size: .58rem; line-height: 1.2; text-transform: uppercase; }
.network-metrics strong { display: block; margin-top: 3px; font-size: 1rem; }
.network-canvas { position: relative; width: 100%; height: 680px; background: #fbfdfc; }
.network-canvas canvas { position: absolute !important; inset: 0; }
.p2-selection-halo { position: absolute; z-index: 5; display: none; border: 3px solid #0fa7c5; border-radius: 50%; box-shadow: 0 0 0 4px rgba(125,227,255,.35), 0 0 14px rgba(39,195,220,.7); transform: translate(-50%, -50%); pointer-events: none; }
.visual-help { margin: 0; padding: 12px 20px 14px; color: #60747c; border-top: 1px solid #dce5e5; background: #f4f7f6; font-size: .7rem; }
.detail-panel { min-width: 0; padding: 22px; overflow: auto; color: #dbe8ec; }
.detail-panel h3 { margin-bottom: 12px; color: var(--white); font-size: 1.35rem; overflow-wrap: anywhere; }
.detail-panel h4 { color: #c8dce2; font-size: .91rem; line-height: 1.4; }
.detail-panel p { color: #9bb0b9; font-size: .8rem; }
.detail-kicker { margin-bottom: 7px !important; color: var(--cyan-300) !important; font-size: .66rem !important; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.empty-state { min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.empty-state > span { margin-bottom: 16px; color: #5b818f; font: 800 .72rem/1 monospace; letter-spacing: .15em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.tag { padding: 5px 8px; border: 1px solid #3b6471; border-radius: 999px; color: #bcd7df; font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.tag.high-priority { color: #ffe5dc; border-color: rgba(231,111,81,.55); background: rgba(231,111,81,.13); }
.tag.review { color: #ffebcd; border-color: rgba(244,162,97,.52); background: rgba(244,162,97,.1); }
.tag.no-signal { color: #d9f6ff; border-color: rgba(79,163,199,.5); background: rgba(79,163,199,.1); }
.detail-table { margin: 14px 0 20px; border-top: 1px solid rgba(125,227,255,.15); }
.detail-table > div { padding: 8px 0; display: grid; grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr); gap: 13px; border-bottom: 1px solid rgba(125,227,255,.1); }
.detail-table dt { color: #7f9aa5; font-size: .64rem; font-weight: 800; text-transform: uppercase; }
.detail-table dd { margin: 0; color: #e0edf0; font-size: .75rem; overflow-wrap: anywhere; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-actions .button { min-height: 38px; padding: 8px 11px; font-size: .67rem; }
.detail-actions .secondary { color: #d8e9ed; border-color: #416875; background: transparent; }

.evidence-panel { margin: 13px 0 17px; }
.evidence-dimensions { display: grid; gap: 8px; }
.dimension-row { padding: 12px; display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: start; border: 1px solid #34525e; border-radius: 9px; background: #0d303e; }
.dimension-row .status-icon { width: 28px; height: 28px; display: grid; place-items: center; color: #78929c; border: 1px solid #48616a; border-radius: 50%; font-weight: 900; }
.dimension-row.yes .status-icon { color: white; border-color: var(--green); background: var(--green); }
.dimension-row b { display: block; color: #edf7f8; font-size: .78rem; text-transform: uppercase; letter-spacing: .055em; }
.dimension-row small { display: block; margin-top: 3px; color: #88a2ac; font-size: .66rem; line-height: 1.35; }
.dimension-row > strong { color: #8fa3aa; font-size: .72rem; }
.dimension-row.yes > strong { color: #76d7b4; }
.evidence-summary { margin-top: 10px; padding: 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border: 1px solid #45616b; border-radius: 10px; background: #061f2a; }
.evidence-summary span small, .evidence-summary > small { display: block; color: #829aa3; font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.evidence-summary b { display: block; color: var(--white); font-size: 1.7rem; }
.evidence-summary .high-answer { text-align: right; }
.evidence-summary .high-answer strong { color: #aabac0; font-size: 1.1rem; }
.evidence-summary.is-high { border-color: rgba(44,168,121,.7); background: rgba(44,168,121,.11); }
.evidence-summary.is-high b, .evidence-summary.is-high .high-answer strong { color: #76ddb7; }
.evidence-label { margin: 15px 0 8px; color: #7e9ba5; font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.supporting-context { display: flex; flex-wrap: wrap; gap: 6px; }
.context-pill { padding: 5px 7px; border: 1px solid #3a555f; border-radius: 999px; color: #7f99a3; font-size: .62rem; }
.context-pill.yes { color: #c9e9dd; border-color: rgba(44,168,121,.45); background: rgba(44,168,121,.08); }
.pair-identifiers { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: #9eb7c0; font-size: .75rem; }
.pair-identifiers strong { color: var(--white); }

.status-message { margin: 0 0 17px; padding: 10px 13px; color: #9fb8c1; border: 1px solid rgba(125,227,255,.14); border-radius: 8px; background: rgba(255,255,255,.035); font-size: .75rem; }
.status-message.success { color: #b4e8d5; border-color: rgba(44,168,121,.28); background: rgba(44,168,121,.08); }
.status-message.error { color: #ffd7cb; border-color: rgba(231,111,81,.35); background: rgba(231,111,81,.1); }
.hero > .status-message { margin-top: 15px; }

.component-explainer { padding: 24px 28px; display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.component-explainer p { margin: 0; color: var(--muted); }
.path-example { display: flex; align-items: center; justify-content: center; }
.path-example span { width: 43px; height: 43px; display: grid; place-items: center; color: white; border: 4px solid #d3f6ff; border-radius: 50%; background: var(--teal-700); font-weight: 900; }
.path-example i { width: 42px; height: 2px; background: #7fa5af; }
.component-layout { display: grid; grid-template-columns: 420px 1fr; gap: 20px; margin-top: 20px; }
.largest-component-card, .component-browser { padding: 29px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.largest-component-card { color: white; border-color: #0d5665; background: linear-gradient(145deg, #092b38, #0b5261); box-shadow: var(--shadow); }
.largest-component-card .mini-label { color: var(--cyan-300); }
.large-number { font-size: 6.5rem; font-weight: 900; line-height: .95; letter-spacing: -.07em; }
.large-number small { font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.largest-component-card h3 { margin: 18px 0 12px; }
.component-projects { display: flex; flex-wrap: wrap; gap: 7px; }
.component-projects span { padding: 5px 8px; border: 1px solid rgba(125,227,255,.25); border-radius: 5px; color: #d7f5fc; font: 700 .72rem/1.3 monospace; }
.component-inline-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 20px 0; }
.component-inline-metrics span { color: #9ec0ca; font-size: .65rem; }
.component-inline-metrics b { display: block; color: var(--white); font-size: 1.15rem; }
.component-list { max-height: 485px; margin-top: 18px; overflow: auto; }
.component-item { width: 100%; padding: 13px 4px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.component-item:hover { padding-left: 10px; background: #edf7f8; }
.component-item strong { font-size: .84rem; }
.component-item small { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; }
.component-item > span:last-child { color: var(--teal-700); font-weight: 900; }
.component-browser select { padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: .72rem; }

.map-section { background: #061b25; }
.map-layout { display: grid; grid-template-columns: 240px minmax(450px, 1fr) 330px; gap: 16px; }
.map-panel { overflow: hidden; border: 1px solid rgba(125,227,255,.17); border-radius: var(--radius-md); }
#projectMap { width: 100%; height: 660px; background: #c9d6d7; }
.map-count { margin-top: 20px; display: grid; gap: 7px; }
.map-count span { padding: 9px 10px; display: flex; justify-content: space-between; color: #9fb5bd; border: 1px solid #345563; border-radius: 7px; font-size: .7rem; }
.map-count strong { color: var(--white); }
.project-marker { width: 16px !important; height: 16px !important; margin: -8px 0 0 -8px !important; display: grid !important; place-items: center; color: white; border: 2px solid white; border-radius: 50%; background: #148aa4; box-shadow: 0 2px 7px rgba(0,0,0,.3); font-size: .62rem; font-weight: 900; }
.project-marker.reused { color: #061b25; background: var(--cyan-300); }
.project-marker.selected { border: 3px solid #071f2b; box-shadow: 0 0 0 5px #7de3ff, 0 3px 13px rgba(0,0,0,.45); }
.leaflet-popup-content { min-width: 190px; color: var(--ink); font-family: Inter, "Segoe UI", sans-serif; }
.popup-actions { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.popup-actions button { padding: 5px 7px; color: white; border: 0; border-radius: 5px; background: var(--teal-700); font-size: .68rem; cursor: pointer; }
.map-project-list { padding: 0; list-style: none; }
.map-project-list li { padding: 10px 0; border-bottom: 1px solid rgba(125,227,255,.12); }
.map-project-list button { padding: 0; color: var(--cyan-300); border: 0; background: none; font-weight: 900; cursor: pointer; }
.map-project-list small { display: block; margin-top: 3px; color: #809aa4; font-size: .64rem; }

.project-search-bar { max-width: 920px; margin: 0 auto; }
.project-search-bar label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.project-search-bar > div { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.project-search-bar input { min-width: 0; height: 52px; padding: 10px 15px; border: 1px solid #aec1c5; border-radius: 9px; background: white; }
.result-status { margin: 18px auto 10px; max-width: 920px; color: var(--muted); font-size: .78rem; }
.project-results { max-width: 920px; margin: auto; display: grid; gap: 8px; }
.project-result { width: 100%; padding: 14px 16px; display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: white; text-align: left; cursor: pointer; }
.project-result:hover { border-color: #79aeba; background: #eff8f9; }
.project-result > strong { color: var(--teal-700); font-family: monospace; font-size: .9rem; }
.project-result p { margin: 0; font-size: .78rem; }
.project-result small { display: block; margin-top: 3px; color: var(--muted); }
.project-result .result-status-tag { padding: 5px 7px; border-radius: 999px; color: #6f4821; background: #fcebd9; font-size: .58rem; font-weight: 900; text-transform: uppercase; }
.project-result .result-status-tag.high { color: #802f20; background: #fee2d9; }
.project-result .result-status-tag.none { color: #17536b; background: #dbf2f8; }

.interpretation-section { background: linear-gradient(160deg, #071f2b, #082e3b); padding-bottom: 125px; }
.interpretation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.interpretation-grid article { padding: 25px; border-top: 2px solid #356a79; background: rgba(255,255,255,.035); }
.interpretation-grid span { color: var(--cyan-300); font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.interpretation-grid h3 { margin: 16px 0 10px; font-size: 1.1rem; }
.interpretation-grid p { margin: 0; color: #91aab4; font-size: .8rem; }
.closing-guardrail { margin-top: 35px; padding: 21px 25px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 35px; border: 1px solid rgba(125,227,255,.22); border-radius: var(--radius-md); color: #9eb9c2; font-size: .82rem; }
.closing-guardrail b { color: var(--white); }

.pair-dialog { width: min(1180px, calc(100% - 34px)); max-height: calc(100vh - 40px); padding: 0; color: var(--ink); border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 25px 100px rgba(0,0,0,.55); }
.pair-dialog::backdrop { background: rgba(2,15,21,.78); backdrop-filter: blur(5px); }
.dialog-header { position: sticky; z-index: 2; top: 0; padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; color: white; background: var(--navy-900); }
.dialog-header h2 { margin: 0; font-size: 1.5rem; }
.dialog-header h2 span { color: var(--cyan-300); }
.dialog-header .mini-label { color: #87b8c4; }
.dialog-close { width: 40px; height: 40px; display: grid; place-items: center; color: white; border: 1px solid #466672; border-radius: 50%; background: transparent; font-size: 1.6rem; cursor: pointer; }
.pair-dialog-body { padding: 24px; }
.dialog-evidence { padding: 20px; color: #dcecef; border-radius: 12px; background: #0b2d3a; }
.dialog-evidence .evidence-dimensions { grid-template-columns: repeat(3, 1fr); }
.dialog-evidence .evidence-summary { max-width: 520px; margin: 12px auto 0; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 16px; }
.pair-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.pair-card > h3 { min-height: 3em; font-size: 1rem; line-height: 1.45; }
.pair-card .detail-table dt { color: #69808a; }
.pair-card .detail-table dd { color: var(--ink); }
.pair-card-label { color: var(--teal-700); font-size: .66rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }

footer { padding: 35px max(24px, calc((100vw - var(--content)) / 2)) 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #94adb7; border-top: 1px solid rgba(125,227,255,.14); background: var(--navy-950); font-size: .76rem; }
footer strong { color: white; letter-spacing: .1em; }
footer p { margin: 3px 0 0; }
footer a { color: var(--cyan-300); text-decoration: none; }
.persistent-disclaimer { position: fixed; z-index: 900; bottom: 0; left: 0; right: 0; padding: 7px 16px; color: #c4d7dc; border-top: 1px solid #31515c; background: rgba(4,21,29,.95); font-size: .66rem; text-align: center; }

@media (max-width: 1240px) {
  .nav-links a { padding-inline: 7px; font-size: .7rem; }
  .hero-grid { gap: 35px; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .explorer-grid { grid-template-columns: 235px minmax(460px, 1fr); }
  .explorer-grid > .detail-panel { grid-column: 1 / -1; max-height: none; }
  .map-layout { grid-template-columns: 220px 1fr; }
  .map-layout > .detail-panel { grid-column: 1 / -1; }
  .method-flow { grid-template-columns: repeat(3, 1fr); }
  .method-flow > i { display: none; }
  .interpretation-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .section-shell { padding: 76px 22px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 20px; right: 20px; top: 63px; padding: 10px; display: none; flex-direction: column; align-items: stretch; border: 1px solid #31515c; border-radius: 10px; background: #061b25; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { font-size: clamp(4rem, 18vw, 7rem); }
  .hero-interpretation { max-width: 680px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .method-cards { grid-template-columns: 1fr; }
  .network-stat-comparison { grid-template-columns: 1fr; }
  .explorer-grid, .map-layout { grid-template-columns: 1fr; }
  .control-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
  .control-panel .panel-heading, .control-panel .view-switcher, .control-panel details, .control-panel .component-shortcut, .map-controls .map-count { grid-column: 1 / -1; }
  .network-canvas, #projectMap { height: 590px; }
  .component-explainer { grid-template-columns: 1fr; }
  .component-layout { grid-template-columns: 1fr; }
  .dialog-evidence .evidence-dimensions { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .top-nav { width: min(calc(100% - 28px), var(--content)); }
  .brand small { display: none; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: 4rem; }
  .project-expansion { font-size: .75rem; }
  .hero-deck { font-size: 1.18rem; }
  .hero-interpretation { padding: 23px; }
  .not-equal { grid-template-columns: 1fr; }
  .not-equal b { line-height: 1; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid article { min-height: 145px; padding: 18px; }
  .kpi-grid strong { margin-top: 14px; font-size: 2.1rem; }
  .method-flow { grid-template-columns: 1fr; }
  .evidence-scale { grid-template-columns: 1fr 1fr; }
  .summary-metrics { grid-template-columns: 1fr 1fr; }
  .control-panel { display: block; }
  .network-metrics { grid-template-columns: 1fr 1fr; }
  .visual-heading { flex-direction: column; }
  .legend { max-width: 100%; justify-content: flex-start; }
  .network-canvas { height: 520px; }
  .path-example span { width: 38px; height: 38px; }
  .path-example i { width: 26px; }
  .component-inline-metrics { grid-template-columns: 1fr; }
  .project-result { grid-template-columns: 1fr; gap: 6px; }
  .interpretation-grid { grid-template-columns: 1fr; }
  .pair-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .control-panel, .persistent-disclaimer, dialog, footer { display: none !important; }
  .section-shell { padding: 30px; color: black !important; background: white !important; }
  .network-canvas, #projectMap { height: 500px; }
}
