:root {
  --bg: #f9f9f9;
  --bg-band: #f3f3f3;
  --ink: #1a1c1c;
  --muted: #464651;
  --line: rgba(198, 197, 211, 0.38);
  --line-dark: #767682;
  --paper: #ffffff;
  --accent: #48a47c;
  --accent-deep: #363f8c;
  --artwork-green: #143b29;
  --accent-blue: #363f8c;
  --accent-mid: #4e57a6;
  --accent-soft: rgba(150, 242, 197, 0.22);
  --jur: #193625;
  --num: #3b5b88;
  --tmp: #a85613;
  --adv: #8a3d2a;
  --grd: #363f8c;
  --display: "Google Sans", "Manrope", Arial, sans-serif;
  --sans: "Google Sans", "Manrope", Arial, sans-serif;
  --mono: "Google Sans", ui-monospace, monospace;
}

@font-face {
  font-family: "Google Sans";
  src: url("./assets/GoogleSans-Subset.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
}

.app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body.is-explorer {
  overflow: hidden;
}

body.is-explorer .app {
  height: 100%;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.7rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
  z-index: 20;
  min-height: 68px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  width: clamp(128px, 13vw, 158px);
  height: auto;
  flex-shrink: 0;
}

.brand-product {
  border-left: 1px solid var(--line-dark);
  padding-left: 0.8rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
}

.mode-nav {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.2rem;
  background: transparent;
  border-radius: 0;
}

.mode {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.mode.active {
  background: transparent;
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
}

.mode:focus-visible,
.nav-btns button:focus-visible,
.filter-chips button:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.top-links {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
}

.top-links a {
  color: var(--accent-mid);
  text-decoration: none;
  font-weight: 400;
}

.top-link-hf,
.btn-ghost .hf-logo,
.foot .hf-logo {
  display: inline-block;
  vertical-align: middle;
}

.hf-logo {
  width: 18px;
  height: 17px;
  margin-right: 0.4rem;
  object-fit: contain;
}

.top-link-hf {
  display: inline-flex;
  align-items: center;
}

.top-links a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.mode-panel[hidden] {
  display: none !important;
}

.mode-panel:not(.explorer-panel) {
  flex: 1;
}

#mode-overview,
#mode-leaderboard {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2rem) 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 0;
  padding: 0;
  min-height: 620px;
  align-items: center;
  border-radius: 0;
  background: var(--artwork-green);
  color: #f3f6f5;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-copy,
.hero-artwork,
.overview-note-art,
.leaderboard-artwork,
.status-note {
  position: relative;
  z-index: 1;
}

.hero-copy { padding: clamp(3.5rem, 5vw, 4.5rem); }

.overview-note-art {
  align-self: stretch;
  min-height: 620px;
  background: var(--artwork-green) url("assets/bfsi-note-collage-v1.webp") center center / cover no-repeat;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-artwork { min-height: 280px; }
.hero-artwork::before,
.hero-artwork::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 32px; }
.hero-artwork::before { width: 72%; aspect-ratio: 1; right: 2%; top: 2%; }
.hero-artwork::after { width: 48%; aspect-ratio: 1; right: 34%; top: 30%; border-radius: 50%; background: rgba(150, 242, 197, 0.1); }

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.82;
  font-family: var(--mono);
}

.kicker span { color: #93d7b8; margin-right: 0.65rem; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  max-width: 780px;
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero .deck {
  max-width: none;
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  line-height: 1.55;
  margin: 2rem 0 0;
  color: #e7eee9;
}

.hero-note {
  max-width: 620px;
  margin: 1rem 0 0;
  color: #afbeb5;
  font-size: 0.9rem;
  line-height: 1.5;
}

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; margin-bottom: 4rem; background: var(--paper); }
.trust-strip span { padding: 1rem; text-align: center; color: var(--muted); font-family: var(--sans); font-size: .72rem; font-weight: 300; text-transform: uppercase; letter-spacing: .08em; border-right: 1px solid var(--line); }
.trust-strip span:last-child { border-right: 0; }

.hero .deck + .deck {
  margin-top: 0.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-weight: 400;
  font-size: 0.92rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 15px rgba(72, 164, 124, 0.3);
}

.btn-primary:hover { background: #3c8d69; border-color: #3c8d69; }

.btn-ghost {
  border: 1px solid rgba(243, 246, 245, 0.35);
  background: transparent;
  color: #f3f6f5;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.overview h2 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 300;
  color: var(--accent-deep);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

.overview > section,
.overview > .prose { margin: 0 auto 4rem; max-width: 940px; }

.section-index { margin: 0 0 .6rem !important; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--accent) !important; }

.section-lead {
  margin: -0.25rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.prose p,
.prose ol {
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.prose blockquote {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  color: var(--muted);
  font-style: italic;
}

.prose pre,
.overview pre {
  background: #f1f2f1;
  color: var(--ink);
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.prose code,
.data-table code {
  font-family: var(--mono);
  font-size: 0.84em;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: category;
}

.cat-card {
  appearance: none;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 280px;
  text-align: left;
  color: var(--ink);
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  cursor: default;
}

.cat-card:nth-child(n + 4) { grid-column: span 3; }

.cat-card::before {
  counter-increment: category;
  content: "0" counter(category);
  color: var(--cat-color, var(--accent-deep));
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.cat-card:hover { background: transparent; }
.cat-arrow {
  appearance: none;
  position: absolute;
  right: clamp(1.5rem, 2.5vw, 2rem);
  bottom: clamp(1.5rem, 2.5vw, 2rem);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: var(--bg-band);
  color: var(--muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.cat-arrow:hover,
.cat-arrow:focus-visible { color: var(--accent); transform: translate(2px,-2px); }
.cat-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.cat-card.cat-jur {
  --cat-color: var(--jur);
}
.cat-card.cat-num {
  --cat-color: var(--num);
}
.cat-card.cat-tmp {
  --cat-color: var(--tmp);
}
.cat-card.cat-adv {
  --cat-color: var(--adv);
}
.cat-card.cat-grd {
  --cat-color: var(--grd);
}

.cat-code {
  display: block;
  order: 4;
  margin: auto 3rem 0 0;
  padding-top: 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.cat-title {
  display: block;
  order: 2;
  margin: 2.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--accent-deep);
}

.cat-desc {
  display: block;
  order: 3;
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.55rem 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.model-name {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.model-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.data-table td:first-child {
  white-space: nowrap;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 400;
}

.foot a {
  color: var(--accent-mid);
}

.foot-brand img { display: block; width: 128px; height: auto; }

.leaderboard-hero { align-items: center; min-height: 0; margin-bottom: 4rem; grid-template-columns: 1fr; }
.leaderboard-hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
.leaderboard-artwork { position: relative; align-self: stretch; min-height: 420px; display: flex; align-items: center; border-left: 1px solid rgba(255,255,255,.12); }
.leaderboard-artwork::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(90deg, transparent 49%, #fff 50%), linear-gradient(#fff 49%, transparent 50%); background-size: 28px 28px; pointer-events: none; }
.status-note { align-self: center; display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; width: auto; margin: 0 clamp(2rem, 4vw, 4rem); padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3); }
.status-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #86d0ae; grid-row: 1 / 3; }
.status-note strong { font-size: .95rem; font-weight: 400; }
.status-note small { color: rgba(255,255,255,.7); font-size: .85rem; }
.protocol-grid { list-style: none; padding: 0; margin: 2rem auto 3rem; max-width: 940px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.protocol-grid li { padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.protocol-grid li:last-child { border-right: 0; }
.protocol-grid span { font-family: var(--mono); font-size: .7rem; color: var(--accent); }
.protocol-grid strong { display: block; margin-top: 1.5rem; font-family: var(--display); font-size: 1.25rem; }
.protocol-grid p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.pending-table { max-width: 940px; margin: 0 auto 4rem; border: 1px solid var(--line); background: var(--paper); }
.pending-table > div { display: grid; grid-template-columns: 1.5fr .7fr 1fr; padding: .7rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.pending-table p { margin: 0; padding: 3rem 1rem .35rem; font-family: var(--display); font-size: 1.6rem; }
.pending-table > a { display: inline-block; margin: 0 1rem 2.5rem; color: var(--accent-mid); font-size: .88rem; }

.explorer-panel {
  flex: 1;
  min-height: 0;
  display: flex;
}

.explorer-panel.active {
  display: flex;
  flex: 1;
  min-height: 0;
}

.explorer {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(180px, 220px);
  width: 100%;
  min-height: 0;
  flex: 1;
  height: 100%;
  background: var(--paper);
}

.sidebar {
  background: #f7f8f7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-head {
  padding: 1.15rem 1rem 0.85rem;
}

.sidebar-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--accent-deep);
  font-weight: 400;
}

.progress {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: .02em;
}

.filters {
  padding: 0.35rem 1rem 1rem;
  display: grid;
  gap: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.filters label,
.filter-group-label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filters input {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.55rem 0.65rem;
  background: #fff;
  min-height: 38px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.filter-chips button {
  font: inherit;
  font-size: 0.68rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.22rem 0.46rem;
  cursor: pointer;
}

.filter-chips button.is-on {
  background: var(--artwork-green);
  border-color: var(--artwork-green);
  color: #fff;
  font-weight: 400;
}

.filter-chips button.is-on .chip-count { color: rgba(255,255,255,.68); }

.filter-chips .chip-count {
  color: var(--muted);
  font-weight: 400;
}

.queue {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
}

.queue li button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.78rem 1rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--line);
  font: inherit;
  color: inherit;
}

.queue li button:hover {
  background: #fff;
}

.queue li button.active {
  background: #fff;
  border-left-color: var(--accent-deep);
}

.queue .qid {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--accent-deep);
  letter-spacing: .02em;
}

.queue .qtext {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  margin-top: 0.16rem;
  line-height: 1.4;
}

.queue .qmeta {
  margin-top: 0.18rem;
}

.pill {
  display: inline-block;
  font-size: 0.64rem;
  padding: 0.08rem 0.36rem;
  border-radius: 0;
  background: #e8eee9;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pill.BFSI-JUR {
  background: #dce8e1;
  color: var(--jur);
}
.pill.BFSI-NUM {
  background: #e2e6f2;
  color: var(--num);
}
.pill.BFSI-TMP {
  background: #f6e6d4;
  color: var(--tmp);
}
.pill.BFSI-ADV {
  background: #f3ddd6;
  color: var(--adv);
}
.pill.BFSI-GRD {
  background: #e4e6f4;
  color: var(--grd);
}

.detail-pane {
  overflow: auto;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem) 4rem;
  min-width: 0;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.empty {
  color: var(--muted);
  margin-top: 2rem;
}

.empty.error {
  color: var(--adv);
}

.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 0 .85rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.detail-head .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.detail-head .id {
  font-family: var(--mono);
  font-weight: 400;
}

.nav-btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-btns button,
.drawer-open,
.drawer-close {
  font: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
  padding: 0.32rem 0.58rem;
  cursor: pointer;
  color: var(--muted);
  font-size: .75rem;
}

.nav-btns button:hover {
  border-color: var(--accent);
}

.sample-document {
  max-width: 820px;
  margin: 0 auto;
}

.sample-section {
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 66px;
}

.sample-section:last-child { border-bottom: 0; }

.sample-section h2 {
  margin: 0 0 .85rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--accent-deep);
}

.sample-section h2::before {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample-question h2::before { content: "01"; }
.sample-answer h2::before { content: "02"; }
.sample-sources h2::before { content: "03"; }
.sample-facts h2::before { content: "04"; }

.sample-section .body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.62;
  font-size: 1rem;
  max-width: 74ch;
}

.sample-question .body {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.4;
  color: var(--artwork-green);
}

.sample-answer .body {
  padding: 1.25rem 1.4rem;
  background: rgba(54,63,140,.055);
  border-left: 3px solid var(--accent-deep);
}

.card-hint {
  margin: -.35rem 0 1.2rem;
  color: var(--muted);
  font-size: .82rem;
}

.sources,
.nuggets,
.evidence {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.sources .source-item,
.nugget,
.ev-item {
  padding: 1rem 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.sources .source-item:last-child,
.nugget:last-child,
.ev-item:last-child { border-bottom: 0; }

.sources a,
.ev-meta a {
  color: var(--accent-mid);
  word-break: break-word;
  font-size: 0.88rem;
  text-underline-offset: 3px;
}

.source-head {
  font-family: var(--mono);
  font-size: 0.88rem;
  word-break: break-word;
}

.sources a::before { content: "↗"; display: inline-block; margin-right: .55rem; color: var(--accent); text-decoration: none; }

.sources .note {
  display: block;
  margin: .32rem 0 0 1.35rem;
  font-size: 0.86rem;
}

.sources .date {
  display: block;
  margin: .28rem 0 0 1.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.nugget-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.nugget-id {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.vital {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 0.05rem 0.35rem;
  border-radius: 0;
}

.nugget-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.52;
}

.nugget-quote {
  margin: .8rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: .85rem;
  white-space: pre-wrap;
}

.ev-title {
  font-size: 0.82rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  word-break: break-word;
  font-family: var(--mono);
}

.ev-title a {
  color: var(--accent-mid);
}

.ev-quote {
  margin: .8rem 0 .2rem;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.58;
  color: var(--artwork-green);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  white-space: pre-wrap;
}

.ev-ctx-wrap {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.ev-ctx-wrap summary {
  cursor: pointer;
  font-weight: 400;
}

.ev-ctx {
  margin-top: 0.3rem;
  white-space: pre-wrap;
}

.ev-meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.sample-outline {
  padding: 2.35rem 1.35rem;
  border-left: 1px solid var(--line);
  background: #fcfcfc;
  min-width: 0;
}

.outline-label {
  margin: 0 0 .85rem;
  color: var(--muted);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.outline-nav {
  position: relative;
  display: grid;
  border-left: 1px solid var(--line);
}

.outline-nav button {
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  margin-left: -2px;
  padding: .5rem 0 .5rem .85rem;
  text-align: left;
  background: transparent;
  color: #8a8a91;
  font: inherit;
  font-size: .78rem;
  line-height: 1.35;
  cursor: pointer;
}

.outline-nav button:hover { color: var(--accent-deep); }
.outline-nav button:focus { outline: none; }
.outline-nav button:focus-visible { outline: 1px solid var(--accent-deep); outline-offset: 2px; }

.outline-nav button.active {
  border-left-color: var(--artwork-green);
  color: var(--artwork-green);
  font-weight: 400;
}

.drawer-open,
.drawer-close {
  display: none;
}

@media (max-width: 1120px) {
  .explorer { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); }
  .sample-outline { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .overview-note-art { min-height: 520px; background-position: center 42%; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .leaderboard-artwork { min-height: 320px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card,
  .cat-card:nth-child(n + 4) { grid-column: span 1; }
  .cat-card:last-child { grid-column: 1 / -1; }

  .card.span-2 {
    grid-column: 1;
  }

  .explorer {
    grid-template-columns: 1fr;
  }

  .detail-pane { padding-inline: clamp(1rem, 5vw, 2rem); }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(88vw, 320px);
    z-index: 30;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 24px rgba(19, 38, 27, 0.12);
  }

  body.drawer-open .sidebar {
    transform: none;
  }

  .drawer-open,
  .drawer-close {
    display: inline-flex;
  }

  .drawer-close {
    margin-top: 0.45rem;
  }
}

@media (max-width: 640px) {
  .top { justify-content: center; padding-bottom: .45rem; }
  .brand-lockup { margin-right: auto; }
  .mode-nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid var(--line); padding-top: .4rem; }
  .hero { padding: 0; }
  .hero-copy { padding: 2rem 1.25rem; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 3.5rem); }
  .hero-artwork { display: none; }
  .overview-note-art { display: block; min-height: 420px; }
  .leaderboard-artwork { min-height: 280px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card,
  .cat-card:nth-child(n + 4),
  .cat-card:last-child { grid-column: span 1; min-height: 240px; }
  .trust-strip { grid-template-columns: 1fr; margin-bottom: 3rem; }
  .trust-strip span { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip span:last-child { border-bottom: 0; }
  .status-note { margin: 0 1.25rem; }
  .detail-pane { padding: 0 1rem 3rem; }
  .detail-head { padding-block: .7rem; }
  .detail-head .meta { width: 100%; }
  .nav-btns { width: 100%; gap: .3rem; }
  .nav-btns button { flex: 1; justify-content: center; }
  .sample-section { padding: 2.2rem 0; scroll-margin-top: 104px; }
  .sample-answer .body { padding: 1rem 1.05rem; }
  .protocol-grid { grid-template-columns: 1fr; }
  .protocol-grid li { border-right: 0; }

  .top-links {
    display: none;
  }
}
