:root {
  color-scheme: dark;
  --ink-950: #050d17;
  --ink-925: #071521;
  --ink-900: #091927;
  --ink-850: #0c2130;
  --ink-800: #102a3a;
  --ink-750: #153547;
  --paper: #f1f7f5;
  --text: #e7f1ef;
  --muted: #9cb1b7;
  --muted-2: #748d96;
  --teal: #31d6c1;
  --teal-light: #74ead9;
  --teal-deep: #0b8f86;
  --amber: #f2b84b;
  --amber-light: #ffd47a;
  --blue: #6eb6ff;
  --violet: #b59cff;
  --rose: #ff8d8d;
  --line: rgba(159, 196, 199, 0.18);
  --line-strong: rgba(159, 196, 199, 0.32);
  --glass: rgba(11, 29, 42, 0.82);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max-width: 1440px;
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--ink-950);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 11% 10%, rgba(30, 131, 133, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 4%, rgba(242, 184, 75, 0.07), transparent 24rem),
    var(--ink-950);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 17.5px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(144, 185, 188, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 185, 188, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

::selection {
  color: var(--ink-950);
  background: var(--teal-light);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong {
  font-weight: 700;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink-950);
  background: var(--amber);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 23, 0.88);
  backdrop-filter: blur(20px) saturate(125%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: var(--header-height);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(49, 214, 193, 0.48);
  border-radius: 50%;
  background: rgba(49, 214, 193, 0.07);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  position: absolute;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(49, 214, 193, 0.8);
}

.brand-mark::before { transform: translate(-8px, -7px); }
.brand-mark::after { transform: translate(9px, 7px); }
.brand-mark span::before { transform: translate(8px, -8px); }
.brand-mark span::after { transform: translate(-9px, 8px); }

.brand-mark span {
  width: 2px;
  height: 24px;
  background: linear-gradient(var(--teal), rgba(49, 214, 193, 0.14));
  transform: rotate(42deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.primary-nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 30px);
  align-items: center;
  justify-content: center;
}

.primary-nav a {
  position: relative;
  padding: 25px 0 23px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="location"] {
  color: var(--paper);
}

.primary-nav a[aria-current="location"]::after,
.primary-nav a:hover::after {
  transform: scaleX(1);
}

.header-action {
  padding: 9px 13px;
  color: var(--amber-light);
  border: 1px solid rgba(242, 184, 75, 0.34);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 160ms ease, border-color 160ms ease;
}

.header-action:hover {
  border-color: var(--amber);
  background: rgba(242, 184, 75, 0.1);
}

.hero {
  padding-top: clamp(72px, 8vw, 126px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, 0.72fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.eyebrow,
.section-number {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(49, 214, 193, 0.08), 0 0 18px rgba(49, 214, 193, 0.46);
}

.hero h1 {
  max-width: 940px;
  margin-bottom: 28px;
  font-size: clamp(48px, 6.5vw, 98px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--amber);
}

.hero-lede {
  max-width: 830px;
  margin-bottom: 32px;
  color: #b7c9cc;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink-950);
  background: var(--teal);
  box-shadow: 0 12px 32px rgba(49, 214, 193, 0.16);
}

.button-primary:hover {
  background: var(--teal-light);
}

.button-secondary {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(14, 38, 52, 0.75);
}

.button-secondary:hover {
  border-color: var(--teal);
  background: rgba(49, 214, 193, 0.08);
}

.button-quiet {
  min-width: 70px;
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}

.button-quiet:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
}

.snapshot-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 24px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.snapshot-note > span:first-child {
  color: var(--amber);
}

.hero-brief {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(20, 55, 69, 0.85), rgba(7, 21, 33, 0.94)),
    var(--ink-900);
  box-shadow: var(--shadow);
}

.hero-brief::before {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(49, 214, 193, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(49, 214, 193, 0.026), 0 0 0 68px rgba(49, 214, 193, 0.018);
}

.brief-topline,
.brief-next {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brief-topline > span:first-child,
.brief-next > span,
.brief-kicker {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.status-pill {
  padding: 4px 8px;
  color: var(--teal);
  border: 1px solid rgba(49, 214, 193, 0.25);
  border-radius: 999px;
  background: rgba(49, 214, 193, 0.07);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brief-kicker {
  margin: 48px 0 12px;
  color: var(--amber);
}

.hero-brief h2 {
  position: relative;
  margin-bottom: 20px;
  font-size: clamp(27px, 2.5vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.hero-brief > p:not(.brief-kicker) {
  position: relative;
  margin-bottom: 0;
  color: #a9bec2;
  font-size: 15px;
}

.brief-rule {
  height: 1px;
  margin: 28px 0 20px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0.35;
}

.brief-next {
  align-items: flex-start;
}

.brief-next strong {
  max-width: 70%;
  color: var(--amber-light);
  font-size: 14px;
  line-height: 1.45;
  text-align: right;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
  min-width: 0;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.metric-card:last-child {
  border-right: 0;
}

.metric-index {
  padding-top: 6px;
  color: var(--teal);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.metric-card > div {
  display: flex;
  flex-direction: column;
}

.metric-card strong {
  color: var(--paper);
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.metric-card > div span {
  margin-top: 9px;
  color: #b6c8cb;
  font-size: 14px;
  line-height: 1.35;
}

.metric-card small {
  grid-column: 2;
  color: var(--muted-2);
  font-size: 11px;
}

.metric-card-action {
  background: linear-gradient(120deg, rgba(242, 184, 75, 0.06), transparent);
}

.metric-card-action .metric-index,
.metric-card-action strong {
  color: var(--amber);
}

.legend-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 23, 34, 0.72);
}

.legend-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding-block: 12px;
}

.legend-inner > p {
  min-width: max-content;
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.legend-inner ul {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend-inner li {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.evidence-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.label-fact {
  color: var(--teal-light);
  border-color: rgba(49, 214, 193, 0.34);
  background: rgba(49, 214, 193, 0.08);
}

.label-guidance {
  color: var(--blue);
  border-color: rgba(110, 182, 255, 0.34);
  background: rgba(110, 182, 255, 0.08);
}

.label-registry {
  color: var(--violet);
  border-color: rgba(181, 156, 255, 0.34);
  background: rgba(181, 156, 255, 0.08);
}

.label-inference {
  color: var(--amber-light);
  border-color: rgba(242, 184, 75, 0.38);
  background: rgba(242, 184, 75, 0.08);
}

.content-section {
  padding-top: clamp(88px, 10vw, 150px);
  padding-bottom: clamp(88px, 10vw, 150px);
}

.section-heading {
  margin-bottom: clamp(38px, 5vw, 64px);
}

.heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.section-number {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading > div:first-child > p:last-child {
  max-width: 840px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.heading-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 210px;
  padding: 15px 0 12px 24px;
  border-left: 2px solid rgba(49, 214, 193, 0.55);
}

.heading-stat span,
.quarter-display span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.heading-stat strong {
  margin-top: 6px;
  color: var(--amber-light);
  font-size: 18px;
  text-align: right;
}

.heading-tag {
  padding: 8px 12px;
  color: var(--teal);
  border: 1px solid rgba(49, 214, 193, 0.3);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(320px, 0.68fr);
  gap: 24px;
}

.radar-panel,
.radar-shortlist,
.review-panel,
.boundary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 24, 35, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
}

.radar-panel {
  display: grid;
  grid-template-columns: 28px 1fr;
  padding: 24px 24px 16px 14px;
}

.radar-axis-label {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.radar-axis-y {
  align-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.radar-axis-x {
  grid-column: 2;
  padding-top: 12px;
  text-align: right;
}

.radar-plot {
  position: relative;
  grid-column: 2;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(159, 196, 199, 0.18) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(transparent calc(50% - 0.5px), rgba(159, 196, 199, 0.18) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(rgba(49, 214, 193, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 214, 193, 0.035) 1px, transparent 1px),
    #071722;
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

.quadrant {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
  pointer-events: none;
}

.quadrant span {
  color: rgba(210, 227, 228, 0.35);
  font-size: 13px;
  font-weight: 750;
}

.quadrant small {
  color: rgba(137, 163, 169, 0.3);
  font-size: 10px;
}

.quadrant-top-left { top: 0; left: 0; }
.quadrant-top-right { top: 0; right: 0; align-items: flex-end; }
.quadrant-bottom-left { bottom: 0; left: 0; }
.quadrant-bottom-right { right: 0; bottom: 0; align-items: flex-end; }

.radar-points {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.radar-point {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: calc(var(--y) * 1%);
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  padding: 4px;
  color: var(--ink-950);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: var(--point-color, var(--teal));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--point-color, var(--teal)) 14%, transparent), 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, 50%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.radar-point:hover,
.radar-point:focus-visible {
  z-index: 5;
  transform: translate(-50%, 50%) scale(1.1);
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--point-color, var(--teal)) 18%, transparent), 0 14px 35px rgba(0, 0, 0, 0.4);
}

.radar-point span {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(8px, 0.72vw, 11px);
  font-weight: 850;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.radar-point.is-amber { --point-color: var(--amber); }
.radar-point.is-blue { --point-color: var(--blue); }
.radar-point.is-violet { --point-color: var(--violet); }

.plot-loading {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.loading-ring {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(49, 214, 193, 0.17);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.radar-shortlist,
.review-panel,
.boundary-panel {
  padding: 24px;
}

.panel-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-heading span:not(.panel-count):not(.review-badge) {
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.panel-heading h3 {
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.3;
}

.panel-count {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink-950);
  border-radius: 50%;
  background: var(--amber);
  font-size: 13px;
  font-weight: 850;
}

.shortlist-list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: shortlist;
}

.shortlist-list li:not(.skeleton-line) {
  counter-increment: shortlist;
}

.shortlist-button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.shortlist-button::before {
  content: counter(shortlist, decimal-leading-zero);
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.shortlist-button:hover strong {
  color: var(--teal-light);
}

.shortlist-button > span:first-of-type {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.shortlist-button strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease;
}

.shortlist-button small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortlist-score {
  color: var(--amber);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.panel-footnote {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 11px;
}

.skeleton-line,
.skeleton-card {
  position: relative;
  overflow: hidden;
  background: rgba(143, 174, 180, 0.07);
}

.skeleton-line {
  height: 54px;
  margin: 10px 0;
  border-radius: 7px;
}

.skeleton-card {
  min-height: 340px;
  border-radius: var(--radius);
}

.skeleton-line::after,
.skeleton-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.05) 48%, transparent 66%);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

.timeline-section,
.global-section,
.methodology-section {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 42, 54, 0.5), rgba(5, 15, 24, 0.72)),
    var(--ink-925);
}

.quarter-display {
  min-width: 190px;
  padding: 18px 22px;
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: var(--radius);
  background: rgba(242, 184, 75, 0.05);
  text-align: right;
}

.quarter-display strong {
  display: block;
  margin-top: 5px;
  color: var(--amber-light);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 25px;
  line-height: 1;
}

.timeline-control {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 18px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(6, 19, 29, 0.7);
}

.quarter-step {
  width: 48px;
  height: 48px;
  color: var(--teal);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink-850);
  font-size: 20px;
}

.quarter-step:hover:not(:disabled) {
  border-color: var(--teal);
}

.quarter-step:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.range-wrap {
  position: relative;
  padding: 18px 4px 34px;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  margin: 0;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal) var(--range-progress, 0%), rgba(121, 153, 159, 0.18) var(--range-progress, 0%));
  cursor: grab;
}

input[type="range"]:active {
  cursor: grabbing;
}

input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  appearance: none;
  border: 5px solid var(--ink-850);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber), 0 5px 18px rgba(0, 0, 0, 0.35);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 5px solid var(--ink-850);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber), 0 5px 18px rgba(0, 0, 0, 0.35);
}

.quarter-markers {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.quarter-markers span {
  position: relative;
  text-align: center;
}

.quarter-markers span::before {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 1px;
  height: 6px;
  content: "";
  background: var(--line-strong);
}

.timeline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2px 12px;
  color: var(--muted);
  font-size: 13px;
}

.timeline-summary strong {
  color: var(--amber);
  font-size: 22px;
}

.timeline-hint {
  color: var(--muted-2);
  font-size: 11px;
}

.timeline-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline-event {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 24, 35, 0.82);
  text-align: left;
}

button.timeline-event {
  width: 100%;
}

.timeline-event::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--event-color, var(--teal));
}

.timeline-event:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.event-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.event-rank {
  color: var(--muted-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.timeline-event h3 {
  margin-bottom: 7px;
  color: var(--paper);
  font-size: 18px;
  line-height: 1.35;
}

.timeline-event > small {
  color: var(--muted-2);
  font-size: 11px;
}

.timeline-event > p {
  margin: 18px 0 0;
  color: #b7c8cb;
  font-size: 14px;
  line-height: 1.55;
}

.event-detail {
  margin-top: auto !important;
  padding-top: 16px;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(300px, 2fr) repeat(3, minmax(150px, 0.75fr)) auto;
  gap: 13px;
  align-items: end;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 24, 35, 0.76);
}

.filter-field {
  min-width: 0;
}

.filter-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}

.filter-field input,
.filter-field select,
.database-meta select {
  width: 100%;
  min-height: 45px;
  padding: 9px 34px 9px 12px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background-color: var(--ink-900);
  font-size: 14px;
}

.filter-field input::placeholder {
  color: #68818a;
}

.filter-field input:hover,
.filter-field select:hover,
.database-meta select:hover {
  border-color: rgba(49, 214, 193, 0.55);
}

.input-shell {
  position: relative;
  display: block;
}

.input-shell > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  color: var(--teal);
  font-size: 19px;
  transform: translateY(-52%);
}

.input-shell input {
  padding-left: 40px;
}

.filter-reset {
  min-height: 45px;
  padding: 9px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
}

.filter-reset:hover {
  color: var(--paper);
  border-color: var(--amber);
}

.download-cluster {
  display: flex;
  gap: 9px;
  align-items: center;
}

.download-cluster a,
.download-cluster button {
  padding: 9px 13px;
  color: var(--teal-light);
  border: 1px solid rgba(49, 214, 193, 0.23);
  border-radius: 8px;
  background: rgba(49, 214, 193, 0.05);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.download-cluster a:hover,
.download-cluster button:hover {
  border-color: var(--teal);
  background: rgba(49, 214, 193, 0.1);
}

.results-toolbar,
.database-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px 14px;
}

.results-toolbar p,
.database-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.results-toolbar p:first-child,
.database-meta p:first-child {
  color: var(--paper);
  font-weight: 650;
}

.results-note {
  color: var(--muted-2) !important;
  font-size: 11px !important;
}

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

.opportunity-card,
.trial-card,
.service-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(14, 39, 53, 0.8), rgba(7, 21, 32, 0.9));
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.opportunity-card:hover,
.trial-card:hover,
.service-card:hover {
  border-color: rgba(49, 214, 193, 0.38);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.17);
  transform: translateY(-3px);
}

.opportunity-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--card-accent, var(--teal)), transparent 65%);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}

.tier-badge,
.score-badge,
.phase-badge,
.status-badge,
.mini-chip,
.region-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.tier-badge {
  color: var(--teal-light);
  border-color: rgba(49, 214, 193, 0.3);
  background: rgba(49, 214, 193, 0.06);
}

.tier-badge.is-amber {
  color: var(--amber-light);
  border-color: rgba(242, 184, 75, 0.3);
  background: rgba(242, 184, 75, 0.06);
}

.tier-badge.is-blue {
  color: var(--blue);
  border-color: rgba(110, 182, 255, 0.3);
  background: rgba(110, 182, 255, 0.06);
}

.tier-badge.is-muted {
  color: var(--muted);
}

.score-badge {
  gap: 5px;
  color: var(--amber-light);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.score-badge small {
  color: var(--muted-2);
  font-size: 8px;
}

.opportunity-card h3,
.trial-card h3,
.service-card h3 {
  margin-bottom: 6px;
  color: var(--paper);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.card-account,
.trial-sponsor {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.card-tags,
.trial-tags,
.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags {
  margin-bottom: 19px;
}

.mini-chip {
  color: #aec3c6;
  background: rgba(255, 255, 255, 0.025);
}

.evidence-rows {
  display: grid;
  gap: 11px;
  margin-top: 2px;
}

.evidence-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px;
  align-items: start;
}

.evidence-row p {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  color: #b5c7ca;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: rgba(4, 14, 22, 0.32);
}

.card-footer span {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-button {
  min-width: max-content;
  padding: 5px 0;
  color: var(--teal-light);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.detail-button:hover {
  color: var(--paper);
}

.load-error,
.empty-state {
  padding: 48px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(8, 24, 35, 0.5);
  text-align: center;
}

.load-error strong,
.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-size: 19px;
}

.load-error p,
.empty-state p {
  max-width: 680px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state.compact {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.empty-state.compact p {
  margin: 0;
}

.lazy-gate {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 210px;
  padding: 34px;
  border: 1px solid rgba(49, 214, 193, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 5% 50%, rgba(49, 214, 193, 0.12), transparent 13rem),
    rgba(7, 22, 33, 0.78);
}

.lazy-gate.is-loading .lazy-gate-graphic {
  animation: pulse-graphic 1.4s ease-in-out infinite;
}

@keyframes pulse-graphic { 50% { opacity: 0.45; transform: scale(0.95); } }

.lazy-gate-graphic {
  position: relative;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(49, 214, 193, 0.3);
  border-radius: 50%;
  transition: opacity 180ms ease, transform 180ms ease;
}

.lazy-gate-graphic::before,
.lazy-gate-graphic::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(49, 214, 193, 0.18);
  border-radius: 50%;
}

.lazy-gate-graphic::after {
  inset: 31px;
  background: rgba(49, 214, 193, 0.13);
}

.lazy-gate-graphic span {
  position: absolute;
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 15px var(--amber);
}

.lazy-gate-graphic span:nth-child(1) { top: 16px; left: 24px; }
.lazy-gate-graphic span:nth-child(2) { top: 32px; right: 11px; }
.lazy-gate-graphic span:nth-child(3) { bottom: 14px; left: 29px; }

.gate-eyebrow {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.lazy-gate h3 {
  margin: 7px 0 4px;
  font-size: 24px;
}

.lazy-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.trial-filters {
  grid-template-columns: minmax(270px, 1.7fr) repeat(3, minmax(128px, 0.7fr));
}

.database-meta label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted-2);
  font-size: 11px;
}

.database-meta select {
  width: 78px;
  min-height: 36px;
  padding: 6px 25px 6px 9px;
}

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

.trial-card .card-body {
  padding: 20px;
}

.trial-card h3 {
  display: -webkit-box;
  min-height: 3.9em;
  overflow: hidden;
  font-size: 17px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.trial-identifiers {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

.phase-badge {
  color: var(--teal-light);
  border-color: rgba(49, 214, 193, 0.28);
}

.status-badge {
  color: var(--muted);
}

.region-badge {
  color: var(--amber-light);
  border-color: rgba(242, 184, 75, 0.27);
}

.trial-card .evidence-rows {
  margin-top: 15px;
}

.trial-tags {
  margin-top: 16px;
}

.pagination {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.pagination button {
  min-height: 42px;
  padding: 8px 14px;
  color: var(--teal-light);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 24, 35, 0.8);
  font-size: 13px;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--teal);
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.pagination span {
  min-width: 110px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 360px;
  padding: 24px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  color: var(--teal);
  border: 1px solid rgba(49, 214, 193, 0.28);
  border-radius: 12px;
  background: rgba(49, 214, 193, 0.06);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.service-card > p {
  color: var(--muted);
  font-size: 13px;
}

.service-card h4 {
  margin: 20px 0 8px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: #b7c9cb;
  font-size: 12px;
}

.service-accounts {
  margin-top: auto !important;
  padding-top: 18px;
  color: var(--amber-light) !important;
  border-top: 1px solid var(--line);
  font-size: 11px !important;
}

.cta-cdx-explainer {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) repeat(2, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.explainer-heading {
  padding: 26px 24px;
  border-left: 2px solid var(--amber);
}

.explainer-heading h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
}

.definition-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 24, 35, 0.72);
}

.definition-code {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--ink-950);
  border-radius: 50%;
  background: var(--teal);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.definition-code.code-cdx {
  background: var(--amber);
}

.definition-card h4 {
  margin: 0 0 8px;
  font-size: 19px;
}

.definition-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.regulatory-note {
  grid-column: 2 / -1;
  padding: 22px 24px;
  border: 1px solid rgba(242, 184, 75, 0.25);
  border-radius: var(--radius);
  background: rgba(242, 184, 75, 0.055);
}

.regulatory-note > span {
  display: block;
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.regulatory-note p {
  margin: 0;
  color: #c0cdcb;
  font-size: 13px;
}

.regulatory-note strong {
  color: var(--amber-light);
}

.method-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
}

.method-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 22, 33, 0.72);
}

.method-index {
  color: var(--teal);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.method-card h3 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.evidence-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.65fr);
  gap: 18px;
  margin-top: 18px;
}

.review-badge {
  padding: 5px 8px;
  color: var(--amber) !important;
  border: 1px solid rgba(242, 184, 75, 0.25);
  border-radius: 999px;
  font-size: 8px !important;
}

.review-content {
  padding-top: 22px;
}

.review-summary {
  padding: 18px;
  border-left: 2px solid var(--amber);
  background: rgba(242, 184, 75, 0.045);
}

.review-summary p {
  margin: 0;
  color: #c1cfcd;
  font-size: 14px;
}

.review-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.review-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.review-block h4 {
  margin: 0 0 10px;
  color: var(--teal-light);
  font-size: 12px;
}

.review-block ul {
  margin: 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 11px;
}

.exclusion-list {
  padding-top: 8px;
}

.exclusion-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.exclusion-item:last-child {
  border-bottom: 0;
}

.exclusion-item h4 {
  margin: 0 0 3px;
  color: var(--paper);
  font-size: 14px;
}

.exclusion-item span {
  color: var(--muted-2);
  font-size: 10px;
}

.exclusion-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.exclusion-item a {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal-light);
  font-size: 10px;
}

.methodology-notes {
  margin-top: 18px;
  padding: 20px 24px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
}

.methodology-notes p {
  margin: 0;
}

.methodology-notes strong {
  color: var(--amber-light);
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: #040b13;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 44px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid > div:first-child > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
}

.footer-meta {
  display: grid;
  gap: 5px;
  color: var(--muted-2);
  font-size: 10px;
}

.footer-meta strong {
  margin-left: 6px;
  color: var(--muted);
}

.back-top {
  padding: 9px 12px;
  color: var(--teal-light);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 11px;
}

.detail-drawer {
  width: min(720px, 94vw);
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--text);
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: var(--ink-925);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
}

.detail-drawer::backdrop {
  background: rgba(1, 7, 12, 0.76);
  backdrop-filter: blur(3px);
}

.detail-drawer[open] {
  animation: drawer-in 220ms ease-out;
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateX(35px); }
  to { opacity: 1; transform: translateX(0); }
}

.drawer-shell {
  height: 100%;
  overflow-y: auto;
}

.drawer-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 21, 33, 0.94);
  backdrop-filter: blur(18px);
}

.drawer-header span {
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.drawer-header h2 {
  max-width: 560px;
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.23;
}

.drawer-close {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--ink-850);
  font-size: 25px;
  line-height: 1;
}

.drawer-close:hover {
  color: var(--paper);
  border-color: var(--teal);
}

.drawer-content {
  padding: 28px;
}

.drawer-hero {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(49, 214, 193, 0.07), rgba(242, 184, 75, 0.035));
}

.drawer-hero p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.drawer-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.drawer-score {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(3, 14, 22, 0.35);
}

.drawer-score span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
}

.drawer-score strong {
  display: block;
  margin-top: 4px;
  color: var(--amber-light);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 23px;
}

.drawer-section {
  margin-top: 26px;
}

.drawer-section > h3 {
  margin-bottom: 13px;
  color: var(--paper);
  font-size: 17px;
}

.drawer-evidence {
  display: grid;
  gap: 10px;
}

.drawer-evidence-item {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.drawer-evidence-item p {
  margin: 1px 0 0;
  color: #b8c8ca;
  font-size: 13px;
}

.drawer-list {
  margin: 0;
  padding-left: 21px;
  color: var(--muted);
  font-size: 13px;
}

.drawer-list li + li {
  margin-top: 7px;
}

.drawer-milestones {
  display: grid;
  gap: 9px;
}

.drawer-milestone {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-milestone > span {
  color: var(--amber-light);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.drawer-milestone strong {
  display: block;
  margin-bottom: 4px;
  color: var(--paper);
  font-size: 13px;
}

.drawer-milestone p {
  margin: 0;
  color: var(--muted-2);
  font-size: 11px;
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-link {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--teal-light);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.source-link:hover {
  border-color: var(--teal);
  background: rgba(49, 214, 193, 0.045);
}

.source-link span {
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
}

.drawer-callout {
  padding: 18px;
  color: var(--muted);
  border: 1px solid rgba(242, 184, 75, 0.27);
  border-radius: 10px;
  background: rgba(242, 184, 75, 0.05);
  font-size: 12px;
}

.drawer-callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--amber-light);
}

.noscript-message {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  color: var(--ink-950);
  border-radius: 8px;
  background: var(--amber);
  text-align: center;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .primary-nav {
    justify-content: flex-end;
  }

  .header-action {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
    gap: 44px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-card:nth-child(2) {
    border-right: 0;
  }

  .metric-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .radar-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .shortlist-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
  }

  .opportunity-grid,
  .trial-grid,
  .timeline-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar,
  .trial-filters {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .filter-search {
    grid-column: span 2;
  }

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

  .cta-cdx-explainer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explainer-heading {
    grid-column: 1 / -1;
  }

  .regulatory-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root { --header-height: 112px; }

  .site-header {
    overflow: hidden;
  }

  .header-inner {
    display: flex;
    min-height: var(--header-height);
    flex-wrap: wrap;
    gap: 0;
    align-content: center;
    padding-top: 10px;
  }

  .brand {
    width: 100%;
    margin-bottom: 7px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-mark span { height: 18px; }
  .brand-copy strong { font-size: 14px; }

  .primary-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar { display: none; }

  .primary-nav a {
    padding: 10px 0 12px;
    font-size: 12px;
  }

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

  .hero-copy {
    max-width: 780px;
  }

  .hero-brief {
    max-width: 680px;
  }

  .heading-split {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .heading-stat {
    align-items: flex-start;
    width: max-content;
  }

  .heading-stat strong {
    text-align: left;
  }

  .quarter-display {
    width: max-content;
    text-align: left;
  }

  .radar-plot {
    min-height: 490px;
  }

  .legend-inner {
    align-items: flex-start;
    padding-block: 18px;
  }

  .legend-inner ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .legend-inner li {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .method-card-wide {
    grid-column: 1 / -1;
  }

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

  .lazy-gate {
    grid-template-columns: auto 1fr;
  }

  .lazy-gate .button {
    grid-column: 1 / -1;
    width: max-content;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .section-shell,
  .header-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 67px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .button-quiet {
    min-height: 40px;
  }

  .hero-brief {
    padding: 24px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-card:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .metric-card:last-child {
    border-bottom: 0;
  }

  .legend-inner {
    flex-direction: column;
    gap: 12px;
  }

  .legend-inner ul {
    grid-template-columns: 1fr;
  }

  .legend-inner li {
    display: grid;
    grid-template-columns: max-content 1fr;
  }

  .section-heading h2 {
    font-size: clamp(35px, 11vw, 51px);
  }

  .section-heading > div:first-child > p:last-child {
    font-size: 16px;
  }

  .radar-panel {
    grid-template-columns: 20px 1fr;
    padding: 12px 12px 10px 5px;
  }

  .radar-plot {
    min-height: 430px;
  }

  .radar-point span {
    font-size: 8px;
  }

  .quadrant {
    padding: 10px;
  }

  .quadrant small {
    display: none;
  }

  .shortlist-list {
    grid-template-columns: 1fr;
  }

  .timeline-control {
    grid-template-columns: 38px 1fr 38px;
    gap: 9px;
    padding: 22px 10px;
  }

  .quarter-step {
    width: 38px;
    height: 38px;
  }

  .quarter-markers span:not(:nth-child(1)):not(:nth-child(3)):not(:nth-child(6)):not(:nth-child(10)):not(:nth-child(14)) {
    color: transparent;
  }

  .timeline-events,
  .opportunity-grid,
  .trial-grid,
  .service-grid,
  .method-grid,
  .cta-cdx-explainer {
    grid-template-columns: 1fr;
  }

  .method-card-wide,
  .explainer-heading,
  .regulatory-note {
    grid-column: 1;
  }

  .filter-bar,
  .trial-filters {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .filter-search {
    grid-column: auto;
  }

  .filter-field label {
    font-size: 12px;
  }

  .filter-field input,
  .filter-field select {
    min-height: 49px;
    font-size: 16px;
  }

  .download-cluster {
    flex-wrap: wrap;
  }

  .results-toolbar,
  .database-meta,
  .timeline-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .lazy-gate {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .lazy-gate .button {
    grid-column: auto;
    width: 100%;
  }

  .lazy-gate-graphic {
    width: 72px;
    height: 72px;
  }

  .drawer-content,
  .drawer-header {
    padding: 20px;
  }

  .drawer-score-grid {
    grid-template-columns: 1fr;
  }

  .drawer-evidence-item {
    grid-template-columns: 1fr;
  }

  .drawer-milestone {
    grid-template-columns: 70px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-meta,
  .back-top {
    grid-column: auto;
    grid-row: auto;
  }

  .back-top {
    width: max-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@supports not (color: color-mix(in srgb, white, black)) {
  .radar-point {
    box-shadow: 0 0 0 6px rgba(49, 214, 193, 0.13), 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

/* Distinct CTA-now and CDx-up decision paths */
.opportunity-mode-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -7px 0 18px;
}

.mode-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 7px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.03em;
}

.mode-badge strong {
  font-size: 14px;
}

.mode-cta {
  color: var(--teal-light);
  border-color: rgba(49, 214, 193, 0.3);
  background: rgba(49, 214, 193, 0.07);
}

.mode-cdx {
  color: var(--amber-light);
  border-color: rgba(242, 184, 75, 0.32);
  background: rgba(242, 184, 75, 0.07);
}

.drawer-mode-scores {
  margin: 16px 0 0;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pathway-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.pathway-card > span {
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.pathway-card > strong {
  display: block;
  margin: 7px 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 27px;
}

.pathway-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pathway-cta > strong {
  color: var(--teal-light);
}

.pathway-cdx > strong {
  color: var(--amber-light);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.decision-grid > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.decision-grid span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
}

.decision-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Final readability floor: operational text remains legible in a war-room view. */
.brand-copy small,
.brief-topline > span:first-child,
.brief-next > span,
.brief-kicker,
.status-pill,
.heading-stat span,
.quarter-display span,
.panel-heading span:not(.panel-count):not(.review-badge),
.gate-eyebrow,
.service-card h4,
.regulatory-note > span,
.review-badge,
.drawer-header span,
.source-link span,
.footer-meta,
.footer-grid > div:first-child > p {
  font-size: 12px !important;
}

.metric-index,
.radar-axis-label,
.event-rank,
.method-index,
.score-badge small {
  font-size: 11px;
}

.quadrant small,
.shortlist-button::before,
.quarter-markers,
.metric-card small {
  font-size: 12px;
}

.radar-point span {
  font-size: clamp(11px, 0.74vw, 13px);
}

.evidence-label,
.tier-badge,
.score-badge,
.phase-badge,
.status-badge,
.mini-chip,
.region-badge {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
}

.primary-nav a,
.header-action,
.button,
.filter-field input,
.filter-field select,
.database-meta select,
.filter-reset {
  font-size: 15px;
}

.filter-field label,
.database-meta label,
.results-note,
.panel-footnote,
.timeline-hint,
.card-footer span,
.exclusion-item span,
.exclusion-item a {
  font-size: 12px !important;
}

.download-cluster a,
.download-cluster button,
.detail-button,
.pagination button,
.pagination span,
.shortlist-score {
  font-size: 13px;
}

.shortlist-button strong,
.card-account,
.trial-sponsor,
.timeline-event > small {
  font-size: 14px;
}

.shortlist-button small,
.evidence-row p,
.timeline-event > p,
.service-card > p,
.service-card ul,
.definition-card p,
.regulatory-note p,
.method-card p,
.review-block ul,
.exclusion-item p,
.drawer-evidence-item p,
.drawer-list,
.drawer-callout,
.source-link {
  font-size: 14px !important;
}

.drawer-score span,
.drawer-milestone > span {
  font-size: 12px;
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    overflow-x: hidden;
  }

  .site-header,
  .header-inner,
  .primary-nav,
  main,
  .content-section,
  .section-shell,
  .hero-brief,
  .timeline-control,
  .range-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .primary-nav {
    overscroll-behavior-inline: contain;
  }

  .brief-next {
    display: block;
  }

  .brief-next strong {
    display: block;
    max-width: 100%;
    margin-top: 8px;
    overflow-wrap: anywhere;
    text-align: left;
  }

  .quarter-markers {
    grid-template-columns: repeat(14, minmax(0, 1fr));
  }

  .quarter-markers span {
    min-width: 0;
    overflow: hidden;
    font-size: 10px;
    white-space: nowrap;
  }

  .primary-nav a,
  .button,
  .filter-field input,
  .filter-field select,
  .database-meta select,
  .filter-reset {
    font-size: 16px;
  }

  .pathway-grid,
  .decision-grid {
    grid-template-columns: 1fr;
  }

  .radar-point span {
    font-size: 11px;
  }
}
