:root {
  --paper: #0b0d1a;
  --surface: #15182a;
  --primary: #6c5ce7;
  --primary-hover: #5141c7;
  --font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --display-font: "Inter Display", Inter, ui-sans-serif, system-ui, sans-serif;
  --ink: #fff7ed;
  --muted: #b8bfd4;
  --plum: #a78bfa;
  --plum-soft: #25203d;
  --amber: #ff8a3d;
  --amber-ink: #ffb27b;
  --amber-soft: #2a211f;
  --line: #30364f;
  --control-line: #737b9a;
  --blue: #191d32;
  color-scheme: dark;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}
a,
button,
input,
select,
textarea {
  outline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--plum);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display-font);
  font-weight: 700;
}
h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 2.15rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.4;
}
p {
  line-height: 1.75;
}
ul,
ol {
  padding-left: 1.4rem;
}
code,
.mono {
  font-family: Consolas, "Courier New", monospace;
}
code {
  overflow-wrap: anywhere;
}
.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.6;
}
.mono {
  font-size: 0.75rem;
  color: var(--muted);
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 14px 20px;
  background: var(--surface);
  color: var(--plum);
}
.skip:focus {
  top: 12px;
}
.preview-notice {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--amber-soft);
  color: var(--amber-ink);
  border-bottom: 1px solid #5e4435;
  min-height: 39px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 20px;
  padding: 9px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.035em;
}
.preview-notice strong {
  font-weight: 750;
}
.preview-notice span {
  font-size: 0.75rem;
  letter-spacing: 0;
}
.site-header {
  max-width: 1300px;
  margin: auto;
  padding: 29px 30px 28px;
  display: flex;
  align-items: center;
  gap: 42px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.055em;
  font-size: 1.75rem;
}
.wordmark-dot {
  color: var(--plum);
}
.chapter-mark {
  display: flex;
  gap: 3px;
  width: 23px;
  align-items: flex-start;
  margin-right: 11px;
}
.chapter-mark i {
  display: block;
  background: var(--plum);
  width: 4px;
  height: 23px;
  border-radius: 1px;
}
.chapter-mark i:nth-child(2) {
  height: 15px;
  margin-top: 4px;
}
.chapter-mark i:nth-child(3) {
  height: 8px;
  margin-top: 8px;
  background: var(--amber);
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-left: auto;
}
.site-header nav a {
  font-size: 0.83rem;
  font-weight: 550;
  text-decoration: none;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.local-tag {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
main {
  max-width: 1300px;
  padding: 0 30px 90px;
  margin: auto;
  min-height: 65vh;
}
.latest-videos {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}
.video-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 30px;
  margin-bottom: 22px;
}
.video-section-heading h1 {
  margin-top: 6px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.video-section-heading p {
  max-width: 300px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.video-card {
  min-width: 0;
}
.video-thumbnail {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blue);
}
.video-card:nth-child(even) .video-thumbnail {
  background: var(--plum-soft);
}
.video-placeholder-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
}
.video-owl {
  position: absolute;
  right: -7%;
  bottom: -22%;
  width: 65%;
  height: 120%;
  object-fit: contain;
  opacity: 0.3;
  z-index: -1;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 3px;
  border: 1px solid var(--plum);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.85rem;
}
.video-waveform {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}
.video-waveform i {
  width: 3px;
  height: 10px;
  background: var(--plum);
  border-radius: 2px;
}
.video-waveform i:nth-child(3n) {
  height: 28px;
}
.video-waveform i:nth-child(3n + 2) {
  height: 18px;
}
.video-card:nth-child(even) .video-waveform i {
  background: var(--amber);
}
.video-caption {
  padding-top: 10px;
}
.video-caption h2 {
  font: 650 0.9rem/1.4 var(--font);
  letter-spacing: 0;
}
.video-caption > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}
.home-intro {
  padding: 76px 0 72px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8%;
  align-items: center;
}
.home-intro .intro-title {
  margin-top: 20px;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.01;
}
.home-intro .intro-title em {
  font-weight: 700;
  color: var(--plum);
}
.home-intro > div > p {
  max-width: 460px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.98rem;
}
.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 13px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}
.button:hover {
  background: var(--primary-hover);
}
.text-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum);
  border: 0;
  background: none;
  padding: 0;
  line-height: 1.6;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.synthetic-note {
  font-size: 0.76rem !important;
  color: var(--amber-ink) !important;
  line-height: 1.65 !important;
}
.chapter-shelf {
  background: var(--blue);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px 20px;
  position: relative;
}
.shelf-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chapter-shelf ol {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.chapter-shelf li {
  position: relative;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 27px;
}
.chapter-shelf li:before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: -1px;
  left: 4px;
  width: 1px;
  background: var(--line);
}
.chapter-shelf li:last-child {
  padding-bottom: 7px;
}
.chapter-shelf li:last-child:before {
  display: none;
}
.chapter-node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--plum);
  background: var(--blue);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.shelf-show {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.chapter-shelf li a {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 1.03rem;
  line-height: 1.45;
  font-weight: 600;
  text-decoration: none;
}
.chapter-shelf li a:hover {
  color: var(--plum);
  text-decoration: underline;
}
.chapter-shelf li a > span {
  color: var(--plum);
  font-size: 0.85rem;
}
.shelf-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 9px;
}
.shelf-meta > span:first-child {
  font-family: Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.chapter-shelf > p {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 17px;
  font-size: 0.75rem;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
}
.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--plum);
}
.status.known {
  color: var(--plum);
}
.status.unknown {
  color: var(--amber-ink);
}
.status.unknown i {
  background: var(--amber);
}
.section-block {
  border-top: 1px solid var(--line);
  padding: 40px 0 62px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}
.section-heading h2 {
  margin-top: 9px;
}
.show-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.show-card {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  gap: 19px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 29px 25px;
}
.show-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font: italic 2.7rem var(--display-font);
  color: var(--plum);
  height: 75px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--plum-soft);
}
.show-card h3 {
  font: 1.7rem/1.3 var(--display-font);
  margin-top: 7px;
}
.show-card h3 a {
  text-decoration: none;
}
.show-card h3 a:hover {
  text-decoration: underline;
}
.show-card h3 a span {
  font: 0.9rem var(--font);
  color: var(--plum);
}
.show-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
}
.show-card-note {
  display: block;
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--muted);
}
.method-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px 9%;
  border-top: 1px solid var(--line);
  padding: 38px 0 0;
}
.method-strip h2 {
  margin-top: 9px;
  font-size: 1.85rem;
}
.method-strip p {
  font-size: 0.86rem;
  color: var(--muted);
  padding-top: 23px;
}
.method-strip > a {
  grid-column: 2;
}
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 38px max(30px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 25px;
}
.footer-brand {
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.site-footer p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 9px;
}
.site-footer .footer-disclosure {
  font-size: 0.75rem;
  color: var(--amber-ink);
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}
.site-footer nav a {
  font-size: 0.75rem;
  text-decoration: none;
}
.site-footer nav a:hover {
  text-decoration: underline;
}
.site-footer .build-note {
  margin: 0;
  text-align: right;
  font:
    0.65rem/1.8 Consolas,
    monospace;
}
.page-heading {
  max-width: 920px;
  padding: 58px 0 42px;
}
.page-heading h1 {
  margin-top: 13px;
}
.page-intro {
  margin-top: 23px;
  max-width: 680px;
  color: var(--muted);
  font-size: 0.96rem;
}
.back-link {
  display: inline-block;
  margin-top: 33px;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--plum);
}
.back-link + .page-heading {
  padding-top: 25px;
}
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.45fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 20px;
}
.filter-bar label,
.board-scope label,
.ask-controls label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.75rem;
  font-weight: 600;
}
.filter-bar input,
.filter-bar select,
.board-scope select,
.ask-controls input,
.ask-controls select,
.ask-controls textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 13px;
  width: 100%;
  font-size: 0.85rem;
  line-height: 1.5;
}
.filter-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 13px 0 24px;
}
.result-count {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 22px 0;
}
.explore-show {
  margin-top: 37px;
}
.explore-show-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 30px;
  margin-bottom: 21px;
}
.explore-show-heading h2 {
  margin-top: 7px;
  font-size: 1.85rem;
}
.explore-show-heading h2 a {
  text-decoration: none;
}
.explore-show-heading h2 a:hover {
  text-decoration: underline;
}
.explore-show-heading p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 500px;
}
.episode-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.episode-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 23px 10px 23px 0;
}
.episode-rows h3 {
  font-size: 1rem;
}
.episode-rows h3 a {
  text-decoration: none;
}
.episode-rows h3 a:hover {
  text-decoration: underline;
}
.episode-rows p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}
.episode-row-note {
  font:
    0.68rem Consolas,
    monospace;
  color: var(--muted);
}
.search-results article {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.search-results h2 {
  font-size: 1.7rem;
  margin-top: 6px;
}
.search-results h2 a {
  text-decoration: none;
}
.search-results p {
  font-size: 0.85rem;
  max-width: 760px;
  color: var(--muted);
  margin-top: 9px;
  overflow-wrap: anywhere;
}
.local-empty {
  padding: 35px 0;
}
.local-empty p {
  margin: 15px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 65px;
  align-items: start;
}
.episode-index > h2,
.observations > h2 {
  font-size: 1.5rem;
  margin-bottom: 23px;
}
.episode-index article {
  padding: 25px 0;
  border-top: 1px solid var(--line);
}
.episode-date {
  font:
    0.68rem Consolas,
    monospace;
  color: var(--muted);
  margin-bottom: 9px;
}
.episode-index h3 {
  font: 1.65rem var(--display-font);
}
.episode-index h3 a {
  text-decoration: none;
}
.episode-index h3 a:hover {
  text-decoration: underline;
}
.episode-index p {
  font-size: 0.76rem;
  margin-top: 12px;
  color: var(--muted);
}
.scope-note {
  background: var(--blue);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.scope-note h2 {
  font-size: 1.6rem;
  margin-top: 9px;
}
.scope-note h3 {
  margin-top: 18px;
  font-size: 0.93rem;
}
.scope-note p {
  font-size: 0.8rem;
  margin-top: 13px;
  color: var(--muted);
}
.scope-note a {
  display: inline-block;
  margin-top: 19px;
}
.coverage-block {
  padding: 23px 0 27px;
  border-top: 3px solid var(--plum);
  margin-bottom: 25px;
}
.coverage-block dl {
  margin: 14px 0;
}
.coverage-block dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.77rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.coverage-block dt {
  color: var(--muted);
}
.coverage-block dd {
  margin: 0;
  font-family: Consolas, monospace;
}
.coverage-block p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 16px;
}
.observation {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  margin-bottom: 27px;
  padding: 25px;
}
.observation-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.observation-value {
  font: 2.8rem/1.2 var(--display-font);
  color: var(--plum);
  margin-top: 24px;
}
.observation-value > span {
  font:
    0.8rem "Segoe UI",
    sans-serif;
  margin-left: 13px;
  color: var(--muted);
}
.observation-scope {
  font-size: 0.85rem;
  margin-top: 13px;
  color: var(--muted);
}
.fact-details {
  margin: 25px 0;
}
.fact-details > div {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 14px;
  font-size: 0.77rem;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  line-height: 1.7;
}
.fact-details dt {
  color: var(--muted);
}
.fact-details dd {
  margin: 0;
}
.observation details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.77rem;
  line-height: 1.7;
}
.observation summary {
  cursor: pointer;
  color: var(--plum);
  font-weight: 600;
}
.observation details p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 0.75rem;
}
.evidence-refs {
  font-size: 0.75rem;
}
.board-index {
  border-top: 1px solid var(--line);
}
.board-link {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 30px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.board-link h2 {
  font-size: 1.85rem;
  margin: 6px 0 9px;
}
.board-link p {
  font-size: 0.84rem;
  color: var(--muted);
}
.board-link > span {
  color: var(--plum);
  font-size: 1.4rem;
}
.board-link:hover h2 {
  text-decoration: underline;
}
.board-scope {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  background: var(--blue);
  padding: 24px;
  border-radius: 10px;
}
.board-scope strong {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}
.board-scope p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 7px;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.leaderboard-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  min-width: 690px;
}
.leaderboard-table caption {
  text-align: left;
  padding: 10px 0 18px;
  font-size: 0.76rem;
  color: var(--muted);
}
.leaderboard-table thead {
  background: var(--blue);
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 19px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.79rem;
  vertical-align: top;
}
.leaderboard-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 650;
}
.leaderboard-table tbody th {
  font-weight: 600;
}
.leaderboard-table tbody th a {
  text-decoration: none;
}
.leaderboard-table tbody th a:hover {
  text-decoration: underline;
}
.table-show {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
}
.leaderboard-table .numeric {
  font-family: Consolas, monospace;
}
.tie-label {
  display: block;
  color: var(--plum);
  font: 0.75rem var(--font);
  margin-top: 7px;
}
.board-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 37px;
}
.reading-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 760px);
  gap: 65px;
}
.chapter-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 15px 0 15px 17px;
  border-left: 2px solid var(--line);
}
.chapter-nav a {
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--muted);
}
.chapter-nav a:hover {
  color: var(--plum);
  text-decoration: underline;
}
.reading-copy section {
  padding-bottom: 43px;
  margin-bottom: 37px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.reading-copy h2 {
  font-size: 1.9rem;
  margin: 9px 0 19px;
}
.reading-copy p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.reading-copy h3 {
  margin: 22px 0 12px;
}
.attribution {
  border-left: 2px solid var(--line);
  padding-left: 20px;
  margin-top: 28px;
}
.attribution h3 {
  font-size: 1rem;
}
.attribution p {
  font-size: 0.8rem;
}
.standalone-copy {
  max-width: 750px;
}
.standalone-copy h2 {
  margin-top: 37px;
}
.unavailable-panel {
  max-width: 780px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 35px;
  border-radius: 16px;
}
.unavailable-panel h2 {
  margin: 17px 0;
}
.unavailable-panel p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 17px;
}
.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 55px;
  align-items: start;
}
.ask-controls {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 25px;
  border-radius: 10px;
}
.ask-controls label {
  margin-bottom: 25px;
}
.ask-controls .button {
  margin-top: 2px;
}
.ask-controls .filter-hint {
  margin-bottom: 0;
}
.field-note {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.ask-answer {
  border-top: 3px solid var(--plum);
  padding: 25px 0;
  min-height: 300px;
}
.ask-answer h2 {
  font-size: 2rem;
  margin: 13px 0 20px;
}
.ask-answer p {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: pre-line;
}
.ask-answer > a {
  display: inline-block;
  margin-top: 23px;
}
section[id],
article[id] {
  scroll-margin-top: 100px;
}
@media (max-width: 950px) {
  .site-header {
    gap: 25px;
  }
  .site-header nav {
    gap: 19px;
  }
  .local-tag {
    display: none;
  }
  .home-intro {
    gap: 35px;
  }
  .home-intro .intro-title {
    font-size: 4.2rem;
  }
  .chapter-shelf {
    padding: 22px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 35px;
  }
  .show-card {
    grid-template-columns: 45px 1fr;
    padding: 23px 20px;
    gap: 15px;
  }
  .show-initial {
    height: 60px;
    font-size: 2rem;
  }
  .show-card h3 {
    font-size: 1.5rem;
  }
  .reading-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 35px;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer .build-note {
    grid-column: 1/-1;
    text-align: left;
  }
  .board-scope {
    grid-template-columns: 1fr 250px;
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .latest-videos {
    padding: 22px 0 26px;
  }
  .video-section-heading {
    display: block;
    margin-bottom: 16px;
  }
  .video-section-heading p {
    max-width: 360px;
    margin-top: 8px;
  }
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .video-placeholder-label {
    top: 7px;
    left: 7px;
    font-size: 0.6rem;
    padding: 2px 5px;
  }
  .video-play {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }
  .video-waveform {
    bottom: 10px;
    left: 10px;
    transform: scale(0.7);
    transform-origin: bottom left;
  }
  .video-caption {
    padding-top: 7px;
  }
  .video-caption h2 {
    font-size: 0.8rem;
  }
  .preview-notice {
    padding: 9px 14px;
    gap: 3px;
    line-height: 1.5;
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.75rem;
  }
  .preview-notice span {
    font-size: 0.75rem;
  }
  .site-header {
    padding: 22px 20px 17px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .wordmark {
    font-size: 1.55rem;
  }
  .site-header nav {
    margin: 0;
    gap: 24px;
    width: 100%;
    justify-content: space-between;
  }
  .site-header nav a {
    font-size: 0.75rem;
  }
  main {
    padding: 0 20px 55px;
  }
  .home-intro {
    grid-template-columns: 1fr;
    padding: 44px 0 40px;
    gap: 34px;
  }
  .home-intro .intro-title {
    font-size: 3.8rem;
    line-height: 1.04;
    margin-top: 15px;
  }
  .home-intro > div > p {
    font-size: 0.9rem;
    margin-top: 21px;
  }
  .intro-actions {
    gap: 20px;
    margin-top: 25px;
  }
  .chapter-shelf {
    padding: 23px 20px 18px;
  }
  .shelf-heading .mono {
    font-size: 0.75rem;
  }
  .section-block {
    padding: 29px 0 37px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .section-heading h2 {
    font-size: 1.9rem;
  }
  .show-grid {
    grid-template-columns: 1fr;
  }
  .show-card {
    padding: 23px 20px;
    grid-template-columns: 47px 1fr;
  }
  .show-card h3 {
    font-size: 1.6rem;
  }
  .method-strip {
    grid-template-columns: 1fr;
    gap: 19px;
    padding-top: 29px;
  }
  .method-strip h2 {
    font-size: 1.65rem;
  }
  .method-strip p {
    padding: 0;
  }
  .method-strip > a {
    grid-column: auto;
  }
  .site-footer {
    padding: 30px 20px;
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .site-footer .build-note {
    grid-column: auto;
  }
  .page-heading {
    padding: 37px 0 30px;
  }
  .page-heading h1 {
    font-size: 2.8rem;
    line-height: 1.12;
  }
  .page-intro {
    font-size: 0.87rem;
    margin-top: 19px;
  }
  .filter-bar {
    grid-template-columns: 1fr;
    padding: 17px;
    gap: 18px;
  }
  .explore-show {
    margin-top: 30px;
  }
  .explore-show-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .episode-rows li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px;
    padding: 21px 0;
  }
  .episode-rows li > div {
    grid-column: 1/-1;
  }
  .episode-rows h3 {
    font-size: 0.97rem;
  }
  .episode-row-note {
    font-size: 0.75rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }
  .back-link {
    margin-top: 24px;
  }
  .back-link + .page-heading {
    padding-top: 22px;
  }
  .episode-index h3 {
    font-size: 1.4rem;
  }
  .scope-note {
    padding: 22px;
  }
  .observation {
    padding: 21px 18px;
  }
  .observation-value {
    font-size: 2.5rem;
  }
  .observation-value > span {
    font-size: 0.75rem;
  }
  .fact-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .board-link h2 {
    font-size: 1.6rem;
  }
  .board-scope {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 22px;
  }
  .board-method {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .leaderboard-table {
    min-width: 650px;
  }
  .reading-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .chapter-nav {
    position: static;
    gap: 13px;
    padding-left: 15px;
  }
  .reading-copy h2 {
    font-size: 1.65rem;
  }
  .reading-copy p {
    font-size: 0.87rem;
  }
  .reading-copy section {
    padding-bottom: 29px;
    margin-bottom: 27px;
  }
  .unavailable-panel {
    padding: 25px 21px;
  }
  .unavailable-panel h2 {
    font-size: 1.6rem;
  }
  .ask-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ask-controls {
    padding: 22px 18px;
  }
  .ask-answer {
    min-height: 230px;
  }
  .ask-answer h2 {
    font-size: 1.8rem;
  }
  .filter-hint {
    font-size: 0.75rem;
  }
  .table-wrap {
    margin-top: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.site-header nav a {
  padding: 5px 0;
}
.table-wrap:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 5px;
}

.table-scroll-hint {
  display: none;
}
@media (max-width: 700px) {
  .table-scroll-hint {
    display: block;
    color: var(--plum);
    font-size: 0.75rem;
    line-height: 1.7;
    margin: 18px 0 0;
  }
}

/* Detailed-owl brand v1.1. Owner-selected dark presentation; local system font fallback. */
body {
  background: var(--paper);
  color: var(--ink);
}
h1,
h2,
h3 {
  font-family: var(--display-font);
  font-weight: 800;
}
.brand-lockup {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.wordmark {
  width: 240px;
  flex: 0 0 auto;
}
.footer-brand {
  display: inline-block;
  max-width: 200px;
}
.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-header nav a:hover {
  color: var(--plum);
}
.home-intro .intro-title em {
  font-style: normal;
  font-weight: 800;
}
.button {
  min-height: 44px;
  font-size: 0.875rem;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.button:hover {
  background: var(--primary-hover);
}
.show-initial {
  font-family: var(--display-font);
  font-style: normal;
  font-weight: 800;
}
.observation-count,
.observation-number,
.metric,
.leaderboard-table {
  font-variant-numeric: tabular-nums;
}
input,
select,
textarea {
  color-scheme: dark;
  border-color: var(--control-line);
  min-height: 44px;
}
::selection {
  background: #4a3d88;
  color: #fff;
}
@media (max-width: 600px) {
  .wordmark {
    width: 220px;
  }
  .site-header nav {
    gap: 8px 16px;
  }
  .site-header nav a {
    font-size: 0.85rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.show-card h3 {
  font-family: var(--display-font);
  font-weight: 700;
}
