/* AnswerLift Research Lab, frame sprint 4.
   Anthropic bones, AnswerLift colors. Navy #0D1230, white ground.
   Quiet, not flashy. No gradients anywhere on the Lab side. */

:root {
  --navy: #0D1230;
  --blue: #1E3ABA;
  --ink: #0D1230;
  --muted: #5A6076;
  --line: #E4E7F0;
  --tint: #F4F6FE;
  --white: #FFFFFF;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

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

/* Header: mark, quiet CTA, search icon, menu. Nothing else. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 56px; height: 56px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-btn {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; color: var(--ink); flex-shrink: 0;
}
.menu-btn:hover { border-color: var(--navy); }

/* Search icon: same quiet pill family as Try tetRAKtis and the menu button.
   All three header controls are one matched set: 36px tall. */
.search-toggle {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; cursor: pointer; color: var(--ink); flex-shrink: 0;
}
.search-toggle:hover { border-color: var(--navy); }

/* Header icons are real SVGs now, both 18px, so the magnifier and the
   menu match exactly. (The old text glyphs rendered at different
   sizes at the same font-size.) */
.menu-btn svg, .search-toggle svg { width: 18px; height: 18px; }

/* Search panel: opens under the header, full-width row. */
.search-panel { border-top: 1px solid var(--line); background: var(--white); }
.search-form {
  max-width: 1160px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 10px;
}
.search-icon { color: var(--muted); font-size: 1rem; line-height: 1; flex-shrink: 0; }
.search-form input {
  border: 0; outline: 0; background: transparent; min-width: 0;
  font-size: 1rem; width: 100%; color: var(--ink);
}
.search-close {
  background: none; border: 0; font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: var(--muted); padding: 2px 6px; flex-shrink: 0;
}
.search-close:hover { color: var(--ink); }

/* Dropdown menu: the headings live here, on every screen. */
.main-nav {
  display: none;
  position: absolute; top: 68px; right: 16px; z-index: 60;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(13, 18, 48, 0.14);
  flex-direction: column; min-width: 240px; padding: 8px;
}
.main-nav.is-open { display: flex; }
.main-nav a { color: var(--ink); font-size: 0.95rem; padding: 10px 14px; border-radius: 8px; }
.main-nav a:hover { background: var(--tint); text-decoration: none; }
.nav-group-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; background: none; border: 0; border-radius: 8px;
  color: var(--ink); font-size: 0.95rem; padding: 10px 14px; cursor: pointer;
  text-align: left; font-family: inherit;
}
.nav-group-btn:hover { background: var(--tint); }
.nav-caret { font-size: 0.75rem; color: var(--muted); transition: transform 0.15s ease; }
.nav-group-btn[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-sub { padding: 2px 0 4px 14px; }
.nav-sub a { display: block; font-size: 0.92rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #1A2340; }
.btn-white { background: var(--white); color: var(--navy); }
/* Quiet CTA: same font, size, weight, and border as the search icon.
   Same 36px height as the other two header controls. */
.btn-quiet {
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 0.92rem; font-weight: 400; height: 36px; padding: 0 14px;
  display: inline-flex; align-items: center; flex-shrink: 0;
}
.btn-quiet:hover { border-color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
/* Constellation geometry as a subtle substrate across the whole hero. */
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 36px 24px 64px; position: relative; }
/* Wordmark lockup: the name as a logo, not plain text. Small enough to stay
   on one line. */
.hero-lockup { margin: 0 0 24px; line-height: 1.1; }
.lockup-name { display: inline; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.lockup-name sup { font-size: 0.45em; font-weight: 600; }
.lockup-sub { display: inline; font-size: 1.6rem; font-weight: 400; color: var(--white); margin-left: 8px; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500; font-size: 2.2rem; letter-spacing: -0.01em; line-height: 1.25;
  max-width: 780px; margin-bottom: 20px;
}
.hero h1 strong { font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }

/* Sections */
.section { padding: 72px 0; }
/* The "What we are" lede sits centered between the hero above and the
   track cards below: this top padding (the whole gap above the lede)
   equals the track grid's top margin (the whole gap below it, since
   the lede's own bottom margin collapses into the grid margin),
   48px desktop, 40px on a phone. The hero's bottom padding is inside
   the hero and is not part of either gap. */
#what { padding-top: 48px; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section-lede { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.view-all { margin: 24px 0 0; font-size: 1rem; }

/* Tracks: a scrollable row. All four cards are there; scroll back and forth.
   No hiding, no auto-advance, no dots. */
/* Track cards: the announcements-card feel, soft paper, big radius,
   a pill label over a big title, a hairline, and a pill button. */
.track-grid {
  display: flex; gap: 16px; margin-top: 48px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  /* No scrollbar while swiping; the dots below show the position. */
  scrollbar-width: none; -ms-overflow-style: none;
}
.track-grid::-webkit-scrollbar { display: none; }
.track-card {
  background: var(--tint); border: 0; border-radius: 24px;
  padding: 32px;
  display: flex; flex-direction: column;
  flex: 1 1 0; min-width: 240px; scroll-snap-align: start;
}
.track-kicker { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.track-name { font-size: 1.3rem; font-weight: 700; color: var(--blue); }
.track-sep { color: var(--muted); font-size: 0.9rem; }
.track-count { color: var(--muted); font-size: 0.9rem; }
.track-subtitle { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }
.track-topics { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.track-applies { color: var(--ink); font-size: 1.05rem; line-height: 1.6; margin: 6px 0 0; }
.track-cta { margin: auto 0 0; padding-top: 16px; }
.btn-card {
  display: block; text-align: center; background: var(--navy);
  border: 1px solid var(--navy); color: var(--white);
  border-radius: 999px; padding: 12px 18px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
}
.btn-card:hover { background: #1B2340; border-color: #1B2340; }
/* Carousel dots: one card per frame on a phone, one pair per frame on PC.
   align-items: center so the 28px chevron buttons and the 20px dot
   buttons share a centre line: without it the dots (definite 20px
   height) sit at the top of the 28px row and their circles ride 4px
   above the chevron glyphs. */
.track-dots { display: none; justify-content: center; align-items: center; gap: 4px; margin-top: 20px; }
.track-dot {
  width: 20px; height: 20px; padding: 0; border: 0; background: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.track-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.track-dot.is-active::after { background: var(--navy); }
/* Carousel chevrons: very subtle, PC only. Small muted chevrons flanking
   the dots, no background, no border, just the glyph. Hidden on a phone. */
.track-chevron {
  display: none;
  width: 28px; height: 28px; padding: 0; border: 0; background: none;
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--muted); flex-shrink: 0;
}
.track-chevron:hover { color: var(--navy); }
.track-chevron svg { width: 18px; height: 18px; }

/* Corpus controls */
.corpus-controls {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  margin: 28px 0 8px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 0.85rem; color: var(--ink); cursor: pointer;
}
.pill:hover { border-color: var(--navy); }
.pill.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
/* Research filter pills carry the program cards' navy pill theme. */
#trackPills .pill { background: var(--tint); border-color: var(--line); color: var(--navy); font-weight: 600; }
.pill-track { border-color: var(--navy); color: var(--navy); cursor: default; }
.pill-type { color: var(--muted); cursor: default; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.toggle-btn {
  border: 0; background: var(--white); padding: 7px 16px;
  font-size: 0.88rem; cursor: pointer; color: var(--muted);
}
.toggle-btn.is-active { background: var(--navy); color: var(--white); }
.search-results { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.search-results[hidden] { display: none; }
.search-result { background: var(--tint); border-radius: 12px; padding: 16px 18px; }
.search-result-title { font-size: 1.05rem; font-weight: 600; line-height: 1.45; margin: 0; }
.search-result-title a { color: var(--ink); }
.search-result-summary { margin: 6px 0 4px; }
.search-result-meta { color: var(--muted); font-size: 0.88rem; font-weight: 400; margin: 0; }
.search-result-meta a { color: var(--muted); }
.search-none { color: var(--muted); margin: 8px 0 0; }
.results-bar { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 20px; }
.results-bar[hidden] { display: none; }
.result-count { color: var(--muted); font-size: 0.92rem; margin: 0; }
.clear-search { background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); font-family: inherit; font-size: 0.88rem; font-weight: 600; padding: 4px 10px; cursor: pointer; flex-shrink: 0; }
.clear-search:hover { background: var(--tint); }

/* Record cards: tinted, so they stand off the white ground. */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.record-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; background: var(--tint);
  display: flex; flex-direction: column; gap: 10px;
}
.record-card:hover { border-color: var(--navy); }
.record-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.record-card h3 { font-size: 1.08rem; font-weight: 600; margin: 0; }
.record-card h3 a { color: var(--ink); }
.record-card h3 a:hover { color: var(--blue); }
.record-meta { color: var(--muted); font-size: 0.88rem; margin: 0; margin-top: auto; }
.record-type { color: var(--blue); }
.record-summary { color: var(--ink); font-size: 0.95rem; margin: 6px 0 4px; max-width: 560px; }
.record-meta a { color: var(--muted); }
.corpus-note { color: var(--muted); font-size: 0.92rem; margin: 24px 0 0; }

/* Corpus table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.corpus-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.corpus-table th, .corpus-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.corpus-table thead th { background: var(--tint); font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.corpus-table tbody tr:last-child td { border-bottom: 0; }
.corpus-table a { color: var(--ink); }
.corpus-table a:hover { color: var(--blue); }

/* Principal Researcher block on the home page. */
.researcher { display: flex; gap: 16px; align-items: flex-start; }
.researcher-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.researcher-body { flex: 1; min-width: 0; }
.researcher-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.researcher-head h2 { font-size: 1.25rem; margin: 0; }
.researcher-icons { display: flex; gap: 8px; }
.researcher-icon { color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
a.researcher-icon:hover { opacity: 0.75; }
.researcher-icon svg { width: 18px; height: 18px; }
.researcher-body > p { margin: 8px 0 0; max-width: 640px; }
@media (max-width: 640px) {
  .researcher-photo { width: 64px; height: 64px; }
}

/* Research page: the corpus grouped under its programs, one card each. */
.program-group { background: var(--tint); border: 0; border-radius: 24px; padding: 28px; margin-bottom: 32px; }
.program-group h2 { font-size: 1.5rem; margin: 0 0 2px; }
.program-group h2 a { color: var(--blue); }
.program-group h2 a:hover { color: var(--navy); }
.program-subtitle { color: var(--muted); font-size: 0.95rem; margin: 0 0 2px; }
.program-hook { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.record-list { margin-top: 8px; }
.record-entry { background: var(--white); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.record-entry:last-child { margin-bottom: 0; }
.record-entry h3 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.record-entry h3 a { color: var(--ink); }
.record-entry h3 a:hover { color: var(--blue); }
.program-more { margin: 20px 0 0; }

/* Implementations: a list, not cards. */
.impl-list { margin-top: 28px; }
.impl-row { border-top: 1px solid var(--line); padding: 20px 0; }
.impl-row:first-child { border-top: 0; }
.impl-row h3 { font-size: 1.2rem; margin-bottom: 6px; }
.impl-status { font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-left: 8px; }
.impl-links { margin: 0; font-size: 0.94rem; }

/* Newsletter */
.signup-form { display: flex; gap: 10px; max-width: 520px; margin-top: 0; flex-wrap: wrap; }
.signup-form input {
  flex: 1; min-width: 220px; padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font-size: 0.95rem; outline: none;
}
.signup-form input::placeholder { color: var(--muted); }
.signup-form input:focus { border-color: var(--navy); }
/* Follow icons: the platforms' own marks, in our navy, no borders. */
.follow-social { display: flex; gap: 20px; margin-top: 28px; align-items: center; }
.follow-icon { color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
a.follow-icon:hover { opacity: 0.75; }
.follow-icon svg { width: 20px; height: 20px; }
.signup-note { color: var(--muted); margin: 14px 0 0; }
/* Newsletter signup confirmation popup: a fixed full-screen overlay
   with a dimmed background and a centered white card. The [hidden]
   rule is required: the overlay's own display rule would otherwise
   override the hidden attribute's default display:none. */
.signup-modal {
  display: flex; position: fixed; inset: 0; z-index: 100;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(13, 18, 48, 0.55);
}
.signup-modal[hidden] { display: none; }
.signup-modal-card {
  background: var(--white); border-radius: 12px; padding: 28px;
  max-width: 400px; width: 100%; text-align: center;
}
.signup-modal-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.signup-modal-card p { color: var(--muted); margin: 0 0 20px; }
.connect-email { color: var(--muted); margin: 14px 0 0; }
/* Newsletter sentence: sits just above the signup box, muted like the lede. */
.newsletter-note { color: var(--muted); margin: 0 0 10px; }
/* Connect with us: one tint outer card holding the blue title, like the
   Principal Researcher card, with two white inner cards nested inside
   it. Left is the newsletter, right is contact and follow. The inner
   cards use a 16px radius, smaller than the outer 24px so their corners
   sit cleanly inside the outer card's curve. The grid has no top margin:
   the title's own 12px bottom margin is the gap, as in the researcher
   card. */
.connect-outer { background: var(--tint); border: 0; border-radius: 24px; padding: 28px; }
.connect-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 0; }
.connect-card { background: var(--white); border: 0; border-radius: 16px; padding: 28px; min-width: 0; }
.connect-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
/* Each email sits above its reason on every viewport, so neither column
   goes narrow. */
.connect-table { width: 100%; margin: 8px 0 0; font-size: 0.95rem; }
.connect-table, .connect-table tbody, .connect-table tr, .connect-table td { display: block; }
.connect-table td { text-align: left; padding: 2px 0; border-bottom: 0; }
.connect-table td:first-child { white-space: normal; }
.connect-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
.connect-table tr:last-child { border-bottom: 0; }
.connect-reason { color: var(--muted); }
/* The social icons sit inside the right card, closer to the table. */
.connect-card .follow-social { margin-top: 20px; }
/* Copy email: a small quiet icon beside the address, copies it on click. */
.copy-email { background: none; border: none; padding: 4px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; vertical-align: middle; }
.copy-email:hover { color: var(--navy); }
.copy-email svg { width: 16px; height: 16px; display: block; }
.copy-feedback { color: var(--muted); font-size: 0.9rem; margin-left: 4px; }
/* Email + copy icon: one flex row, so the icon stays on the same line as
   the address instead of dropping alone onto the next line on a phone.
   The address may break across lines when it has to (kept on one line, it
   forced the card wider than its column on a phone, pushing the white cards
   off-centre inside the tint card). The button never shrinks or wraps. */
.email-copy { display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.email-copy a { min-width: 0; overflow-wrap: anywhere; }
.email-copy .copy-email { flex-shrink: 0; }

/* Footer: the mark only, no name. Groups mirror the menu, a heading that
   opens a drop-down list. Login sits below the lists; the social icons sit
   below the copyright line. */
.site-footer { background: var(--navy); color: var(--white); }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px;
  display: flex; flex-direction: column; gap: 28px;
}
.footer-brand { max-width: 300px; }
.footer-mark { display: block; }
/* Footer groups are one stacked list, themed on Anthropic's footer: the
   label on the left, the chevron on the right, a hairline between rows. */
.footer-cols { display: flex; flex-direction: column; gap: 0; }
.footer-col { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-group-btn {
  background: none; border: 0; padding: 14px 0; cursor: pointer; font-family: inherit;
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.75);
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
}
.footer-group-btn:hover { color: var(--white); }
.footer-group-btn[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.footer-group-btn .nav-caret { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }
.footer-sub { padding: 0 0 14px 16px; }
.footer-sub a { display: block; color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; margin-bottom: 9px; }
.footer-sub a:hover { color: var(--white); }
.footer-mission { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; }
/* Mission heading matches the footer menu items in size (0.92rem, the
   .footer-group-btn size), so it reads as one of the menu, not a small
   label under it. It stays bold, as a heading. */
.footer-mission h3 {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55); margin-bottom: 14px;
}
/* Mission text spans the full footer width: the old 640px cap left it
   sitting in a narrow left column. It uses the same font family as the
   footer menu items (the inherited system stack). */
.footer-mission p { color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; font-family: inherit; margin: 0; }
.footer-login { max-width: 1160px; margin: 0 auto; padding: 0 24px 40px; }
.footer-login h3 {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55); margin-bottom: 14px;
}
.footer-login a {
  color: rgba(255, 255, 255, 0.9); font-size: 0.85rem;
  display: flex; width: fit-content; align-items: center; gap: 6px;
  margin-bottom: 9px; text-decoration: underline; text-underline-offset: 3px;
}
.footer-login a:hover { color: var(--white); }
.ext-icon { width: 14px; height: 14px; flex-shrink: 0; }
.footer-base {
  max-width: 1160px; margin: 0 auto; padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6); font-size: 0.8rem;
}
.footer-base p { margin: 0; }
.footer-social {
  max-width: 1160px; margin: 0 auto; padding: 0 24px 32px;
  display: flex; gap: 20px; align-items: center;
}
/* White icons, no bordered buttons. */
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
}
a.social-icon:hover { opacity: 0.8; }
.social-icon svg { width: 20px; height: 20px; }

/* Legal pages + the Standards page: one narrow column. */
.legal-body, .page-body { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-body h1, .page-body h1 { font-size: 2rem; margin-bottom: 8px; }
.page-body h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.legal-body .updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 32px; }

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .header-inner { padding: 0 16px; gap: 10px; height: 64px; }
  .brand-mark { width: 48px; height: 48px; }
  .main-nav { top: 60px; }
  .lockup-name { font-size: 1.3rem; }
  .lockup-sub { font-size: 1.3rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-inner { padding: 32px 24px 48px; }
  /* Track carousel: one card per frame, dots below it. */
  #what { padding-top: 40px; }
  .track-grid { scroll-snap-type: x mandatory; margin-top: 40px; }
  .track-card { flex: 0 0 100%; min-width: 0; padding: 28px; }
  .track-dots { display: flex; }
  /* Researcher on a phone: stack the photo above the text and hold the
     block in a tint card, instead of a narrow text column beside a small
     photo floating on white. PC is untouched. */
  .featured-researcher { background: var(--tint); border: 0; border-radius: 24px; padding: 24px; margin-top: 32px; }
  .researcher { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* Footer chrome lines up with the header on a phone: 16px edge, 48px mark. */
  .footer-inner { padding: 48px 16px 32px; }
  .footer-mark { width: 48px; height: 48px; }
  .footer-mission { padding: 0 16px 32px; }
  .footer-login { padding: 0 16px 32px; }
  .footer-base { padding: 16px 16px 24px; }
  .footer-social { padding: 0 16px 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  /* Researcher to Connect is a long gap on a phone (48 + 48). Shorten it. */
  #featured { padding-bottom: 28px; }
  #connect { padding-top: 28px; }
}

/* Featured research (BRS flagship, replaces Latest work). */
.section-kicker { color: var(--blue); font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; }
.featured-argument { color: var(--ink); font-size: 1.15rem; line-height: 1.6; max-width: 760px; margin: 0 0 40px; }
.featured-sub { font-size: 1.15rem; margin: 0 0 8px; }
.featured-note { color: var(--muted); font-size: 0.95rem; max-width: 760px; margin: 0 0 20px; }
.results-table { width: 100%; border-collapse: collapse; margin: 0 0 40px; font-size: 0.95rem; }
.results-table th, .results-table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.results-table th { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.results-table td:first-child { width: 30%; }
.test-name { display: block; font-weight: 600; }
.status { display: flex; align-items: center; gap: 6px; margin-top: 6px; white-space: nowrap; }
.status-pass { color: #1E7D32; }
.status-pending { color: #B45309; }
.status-negative { color: #B3261E; }
.status-icon { width: 18px; height: 18px; flex: none; }
.featured-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 0 0 40px; }
.featured-chart { margin: 0; }
.featured-chart svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.featured-chart figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 10px; line-height: 1.5; }
.featured-chart figcaption strong { color: var(--ink); }
.component-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 32px; }
.component-cell { background: var(--tint); border: 0; border-radius: 24px; padding: 16px 18px; }
.component-title { font-size: 1.05rem; font-weight: 600; line-height: 1.45; margin: 0; }
.component-title a { color: var(--ink); }
.featured-cta { margin: 0; }
@media (max-width: 720px) {
  .featured-argument { font-size: 1.05rem; }
  .results-table { font-size: 0.9rem; }
  .results-table td:first-child { white-space: normal; }
  .featured-charts { grid-template-columns: 1fr; }
  .component-grid { grid-template-columns: 1fr; }
}

/* Menu cards: one email per function, up top in the menu, click to copy. */
.nav-cards { display: flex; flex-direction: column; gap: 6px; padding: 10px 4px 4px; border-top: 1px solid var(--line); margin-top: 8px; }
/* Menu: a single quiet Contact link, narrower than the menu and without
   the filled card treatment, pointing at the Connect section. */
.main-nav .nav-card { display: flex; align-items: center; gap: 12px; width: auto; max-width: 280px; align-self: flex-start; background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left; font-family: inherit; color: var(--ink); text-decoration: none; }
.main-nav .nav-card:hover { background: var(--tint); text-decoration: none; }
.nav-card-icon { width: 20px; height: 20px; color: var(--blue); flex: none; }
.nav-card-icon svg { width: 20px; height: 20px; display: block; }
.nav-card-text { flex: 1; min-width: 0; }
.nav-card-label { display: block; font-size: 0.95rem; font-weight: 600; }
.nav-card-email { display: block; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.nav-card-copy { width: 18px; height: 18px; color: var(--muted); flex: none; }
.nav-card-copy svg { width: 18px; height: 18px; display: block; }

/* Program + artifact pages: one narrow column, same as Standards. */
.page-subtitle { color: var(--muted); font-size: 1.1rem; margin: 0 0 24px; }
.page-lede { color: var(--ink); font-size: 1.15rem; line-height: 1.6; margin: 0 0 24px; }
.page-meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 32px; }
.page-tags { color: var(--muted); font-size: 0.9rem; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.page-back { margin: 24px 0 0; }
/* The abstract is the paper's own words, set apart by a hairline. */
.abstract { border-left: 3px solid var(--line); padding-left: 20px; margin: 0 0 8px; }
.abstract p { color: var(--ink); }
.mechanism-list li { margin-bottom: 8px; }
.citation { background: var(--tint); padding: 20px; margin: 0 0 24px; }
.citation p { margin: 0; font-size: 0.95rem; }
.citation-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; }
.citation-style-label { font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.citation-style { font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.citation-copy { margin: 0; }
.cc-badge { display: block; }
.license-card { display: flex; align-items: center; gap: 16px; background: var(--tint); border-radius: 12px; padding: 16px 20px; margin: 0 0 16px; }
.license-badge { flex-shrink: 0; line-height: 0; }
.license-name { font-size: 1rem; font-weight: 600; color: var(--ink); }

/* Page hero: the homepage heading feel on program + artifact pages.
   Navy background, the same constellation substrate, content aligned
   to the narrow page-body column below. */
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero-inner { max-width: 720px; margin: 0 auto; padding: 36px 24px 64px; position: relative; }
.page-hero h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 2.2rem; letter-spacing: -0.01em; line-height: 1.25; color: var(--white); margin: 0 0 8px; }
.page-hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin: 0 0 4px; }
.page-hero-lede { color: var(--white); font-size: 1.15rem; line-height: 1.6; margin: 0; }
.page-hero-meta { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 4px 0 12px; }
.page-hero-meta a { color: rgba(255,255,255,0.9); }

/* Supplement table: the results-table look, for the supporting materials. */
.supplement-table { width: 100%; border-collapse: collapse; margin: 0 0 32px; font-size: 0.95rem; }
.supplement-table th, .supplement-table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.supplement-table th { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.supplement-table th:last-child, .supplement-table td:last-child { width: 1%; white-space: nowrap; }


/* A page-body directly under a page hero sits closer to it, so a back
   link at the top reads as directly below the heading. */
.page-hero + .page-body { padding-top: 32px; }
.page-back-top { margin: 0 0 24px; }
/* Artifact relationships: which artifact supplements which. */
.component-rel { font-size: 0.85rem; color: var(--muted); margin: 4px 0 0; }
.component-rel a { color: var(--muted); }
.supplement-meta { color: var(--muted); font-size: 0.85rem; }
.supplement-meta a { color: var(--muted); }

/* Desktop: program and artifact pages match the home page width and
   left edge. The home hero and sections are 1160px; the page hero and
   body were 720px, which read as a narrow centered column on a wide
   screen. This only applies above the mobile breakpoints, so phones
   keep the narrow centered column that already works. */
@media (min-width: 901px) {
  .page-hero-inner { max-width: 1160px; }
  .page-body { max-width: 1160px; }
  .section-lede { max-width: none; }
  .featured-argument { max-width: none; }
  .featured-note { max-width: none; }
  /* Featured validation on PC: the note sits left at 35%, the table
     right at 65%, same height, note text top-aligned so its first
     line sits the same distance below the heading as the artifact
     cards sit below theirs. The note type is bumped to 1.25rem so it
     fills the column instead of leaving empty space above and below.
     The wrapper is unstyled below 901px, so mobile stacks as before. */
  .validation-row { display: flex; gap: 32px; align-items: stretch; margin: 0 0 40px; }
  .validation-row .featured-note { flex: 0 0 35%; margin: 0; display: flex; align-items: flex-start; font-size: 1.25rem; line-height: 1.7; }
  .validation-row .results-table { flex: 1 1 0; width: auto; margin: 0; }
  /* The Validation results heading sits the same distance above the
     note as the Program Artifacts heading sits above its cards (8px). */
  .validation-sub { margin-bottom: 8px; }
  /* Three charts in a row on the home page only. The Decisions page
     reuses .featured-charts with two charts, so this is scoped to
     #featured and the program page keeps its two-column row. */
  #featured .featured-charts { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  /* The researcher lives inside the Featured section now, close under
     the Read the paper button, not a separate section adrift below it.
     It sits in the same tint card as on a phone. */
  .featured-researcher { background: var(--tint); border: 0; border-radius: 24px; padding: 24px; margin-top: 56px; }
  /* Researcher bio fills the card on PC: the 640px cap left a large
     empty area on the right of the wide card. Mobile is untouched. */
  .researcher-body > p { max-width: none; }
  /* The photo stretches to the height of the text beside it, staying a
     circle, so the block reads as one tidy unit. */
  .researcher { align-items: stretch; }
  .researcher-photo { width: auto; height: auto; align-self: stretch; aspect-ratio: 1 / 1; max-height: 128px; }
  /* Program cards: a two-up carousel on PC, like the phone's one-up
     carousel. Two cards fill the view; scroll (or the dots) for the
     other two. The wider cards keep every button on one line, and the
     hooks share a height so the keywords and buttons line up. Only the
     first and third cards are snap points, so the carousel lands on a
     pair, and only two dots show, one per pair. */
  .track-card { flex: 0 0 calc(50% - 8px); min-width: 0; }
  .track-grid { scroll-snap-type: x mandatory; }
  .track-card:nth-child(2),
  .track-card:nth-child(4) { scroll-snap-align: none; }
  .track-dots { display: flex; }
  /* Dots 2 and 4 are hidden on PC (one dot per pair). They are children
     3 and 5 of #trackDots because the chevrons are children 1 and 6. */
  .track-dot:nth-child(3),
  .track-dot:nth-child(5) { display: none; }
  /* Chevrons flank the dots on PC only. */
  .track-chevron { display: inline-flex; }
  .track-applies { min-height: 4.8em; }
  /* Tighter gaps between sections on PC. Each section carries 72px of
     padding top and bottom, so the carousel-to-Featured and
     researcher-to-Connect gaps were both 144px. Cutting each side to
     40px brings both gaps to 80px, still a clear separation. PC only;
     mobile keeps its 48px section padding (96px gaps). */
  #what { padding-bottom: 40px; }
  #featured { padding-top: 40px; padding-bottom: 40px; }
  #connect { padding-top: 40px; }
}
