/* Self-hosted typefaces (SIL Open Font License). Generated by fetch_fonts.py. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* PKD Bridge site styles.
   Warm, youthful, clean. One accent (teal), one warm secondary (apricot).
   Tokens live in :root. No gradients, no drop shadows, no icon sets. */

/* Tokens ------------------------------------------------------------------ */
:root {
  --bg: #FBF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EDE5;
  /* Sampled from assets/logo.source.png (see assets/derived/logo-derivation.json). */
  --text: #363636;          /* logo charcoal: headings and body */
  --muted: #525F6B;         /* logo tagline grey: captions, secondary text */
  --line: #E6DDD3;

  --accent: #16666E;        /* logo teal: links, buttons, active nav, the bridge arc. 6.2:1 on the page ground */
  --accent-text: #16666E;
  --accent-hover: #114F56;
  --accent-soft: #E4EEEF;

  --apricot: #FBB087;       /* logo peach: small accents only, never text */
  --apricot-soft: #FEEBE0;  /* peach at 25% over white, for callouts */

  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1120px;
  --measure: 70ch;
  --space-section: clamp(40px, 6vw, 72px);
  --space-block: 24px;
  --transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-align: left;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 650;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.5em;
  text-align: left;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; margin-bottom: max(0.75em, 2.7rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.012em; margin-bottom: 0.75em; }
h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75em; }
h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; }

p, li { max-width: var(--measure); }
p { margin: 0 0 1.05em; }

a {
  color: var(--accent-text);
  text-decoration: underline;          /* links inside text must not rely on color alone (WCAG 1.4.1) */
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition);
}
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
/* component links carry their own affordance (placement, shape, or button styling) */
.site-nav a, .brand, .footer-links a, .crumbs a, .button, .block, .block .cta, .hcard, .hcard h3 a, .toc a, .related a, .block-links a, .downloads a, .footer-legal a, sup.cite a { text-decoration: none; }
.footer-legal a:hover, .downloads a:hover, .block-links a:hover, .crumbs a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; color: var(--text); }
figcaption, .caption, .muted { color: var(--muted); }
figcaption { font-size: 0.875rem; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--bg); color: var(--accent-text); padding: 12px 16px; border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip:focus { left: 12px; }
.skip:focus-visible { outline: 3px solid #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }

/* Bridge motif ------------------------------------------------------------- */
.bridge {
  display: block;
  width: 240px;
  max-width: 60%;
  height: auto;
  color: var(--accent);
  margin: var(--space-section) 0;
}
.bridge.short { width: 48px; height: 10px; margin: 14px 0 22px; }
.bridge path { stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

/* Header: a solid teal band, full viewport width, content in the usual column ------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--accent);
  color: var(--bg);
}
.site-header.scrolled { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22); }   /* set by the inline script once the page scrolls */
.site-header a:focus-visible, .site-header button:focus-visible { outline-color: #fff; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand { display: inline-flex; align-items: center; align-self: center; padding: 6px 0; border-radius: 8px; }
.brand img { display: block; height: 56px; width: auto; }
.brand:hover { text-decoration: none; }
.brand:hover { color: var(--accent-text); text-decoration: none; }

.site-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.14); text-decoration: none; }
.site-nav a.active, .site-nav a.active:hover { background: var(--surface-2); color: var(--text); font-weight: 700; }
.site-nav a.contact { color: var(--bg); font-weight: 700; }

/* Breadcrumb --------------------------------------------------------------- */
.crumbs { margin: 28px 0 6px; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-width: none; }
.crumbs li { max-width: none; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }

/* Pills, buttons, notices --------------------------------------------------- */
a.eyebrow { text-decoration: none; }
a.eyebrow:hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; }
.eyebrow {
  display: inline-block;
  margin: 0 0 1.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--apricot);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  background: var(--accent-text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent-text);
  transition: var(--transition);
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.button.secondary { background: transparent; color: var(--accent-text); }
.button.secondary:hover { background: var(--accent-soft); color: var(--accent-hover); }

.notice, .disclaimer, .draft-notice, .callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--apricot-soft);
  color: var(--text);
  max-width: var(--measure);
}
.notice { margin: 0 0 22px; font-weight: 500; }
.draft-notice { font-weight: 500; }

/* Hero (home) --------------------------------------------------------------- */
.hero { margin-top: 40px; }   /* room beneath the teal band */
.hero.with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .subtitle {
  margin: 0 0 18px;
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  font-weight: 500;
  color: var(--text);
  max-width: 60ch;
}
.audience { margin: 0 0 22px; font-weight: 500; max-width: var(--measure); }   /* one sentence with three in-text links */
.audience a { font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.hero-media { position: relative; padding: 0 16px 16px 0; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 16px 0 0 16px;          /* same 16px shift right and down as the padding reserves */
  background: var(--apricot);
  border-radius: 24px;
}
.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;      /* matches the source image */
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 24px;
}

/* Page head (hub, toolkit, 404) --------------------------------------------- */
.page-head { margin-top: var(--space-block); }
.page-head h1 { max-width: 18ch; }
.page-head .subtitle { margin: 0 0 18px; font-size: 1.125rem; font-weight: 500; max-width: 64ch; }

/* Section heads --------------------------------------------------------------- */
.section-head { margin: var(--space-section) 0 var(--space-block); }
.section-head h2 { margin-bottom: 0.75em; }
.section-head p { margin: 0; color: var(--muted); font-weight: 500; max-width: 60ch; }

/* Blocks (photo + text, no borders) -------------------------------------------- */
.blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}
.blocks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-head + .blocks { margin-top: var(--space-section); }
.blocks + .panel, .blocks + .lower { margin-top: var(--space-section); }
.block {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  align-content: start;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  padding-top: 16px;
  border-top: 2px solid var(--accent-soft);
}
.blocks { grid-template-rows: auto auto 1fr auto; }
.block .block-photo { grid-row: 1; }
.block h2, .block h3 { grid-row: 2; }
.block p { grid-row: 3; }
.block .cta { grid-row: 4; }
a.block:hover { text-decoration: none; color: var(--text); }
a.block:hover h2, a.block:hover h3 { color: var(--accent-hover); }
.block-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--apricot-soft);
}
.block-photo:not([src]), .block-photo[src=""] { display: none; }
.block h2, .block h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; transition: var(--transition); }
.block p { margin: 0 0 12px; color: var(--muted); }
.block .cta { color: var(--accent-text); font-weight: 700; }
.block .cta.muted { color: var(--muted); }
a.block:hover .cta { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* Panels ---------------------------------------------------------------------- */
.panel {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 28px;
}
/* panel h2s use the shared h2 size so every section heading matches */
.panel h3 { margin-top: 1.4em; }
.panel p, .panel li { color: var(--text); }
.panel ul, .panel ol { margin: 12px 0 0; padding-left: 22px; }
.panel li + li { margin-top: 6px; }
.panel > :last-child { margin-bottom: 0; }

.lower {
  margin-top: var(--space-section);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
}

/* What is ADPKD (home) */
.panel.adpkd { background: var(--surface); display: block; margin-top: var(--space-section); }
.panel.adpkd h2, .panel.adpkd p { max-width: var(--measure); }
.panel.adpkd h2 { margin-bottom: 1.1em; }
.panel.adpkd p { margin: 0 0 2rem; }
.panel.adpkd .figure {
  margin: 2.25rem 0 0.5rem;
  width: 100%;
  max-width: var(--measure);   /* same measure as the paragraph above, so both edges line up */
  padding: 0;
  background: none;
  border: 0;
}
.panel.adpkd .figure img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; }
.panel.adpkd .figure figcaption { width: 100%; }

/* Current status (home): two columns, accent check marks */
.article-body .status-list { margin: 0 0 1.6em; max-width: var(--measure); }
.status-list {
  list-style: none;
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 20px;
}
.status-list li { margin: 0 !important; position: relative; padding-left: 26px; }
.status-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.42em;
  width: 6px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.contact-panel { margin-top: var(--space-block); }
.contact-panel a { font-weight: 700; }

.downloads { list-style: none; padding-left: 0 !important; }
.downloads li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.downloads li:last-child { border-bottom: 0; }
.downloads a { font-weight: 700; }

/* Figures ----------------------------------------------------------------------- */
.figure { margin: 28px 0; padding: 16px; background: var(--surface); border-radius: var(--radius); }
.figure img { width: 100%; max-width: 640px; margin: 0 auto; }
.figure figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); line-height: 1.5; max-width: none; }
.figure figcaption .credit { display: block; margin-top: 4px; }

/* Footer ------------------------------------------------------------------------- */
.site-footer { padding-top: var(--space-section); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.site-footer .bridge { display: block; width: 100%; max-width: 100%; height: 56px; margin: 0 0 28px; }
.footer-brand { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 24px; min-width: 0; }
.footer-brand img { display: block; height: 64px; width: auto; }
/* Brand row, three zones: wordmark flush left, tagline centred, X icon and mark flush right */
.footer-mark { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: 100%; }
.footer-mark .tagline {
  margin: 0;
  justify-self: center;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}
.footer-mark .tagline span { display: block; }
/* Right-hand end of the brand row: X link, then the pictorial mark. Pushed flush right with margin-left: auto. */
.footer-social { display: flex; align-items: center; gap: 20px; justify-self: end; }
/* X link as a filled button: teal circle, off-white glyph */
.footer-x { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--bg); }
.footer-x svg { display: block; width: 18px; height: 18px; }
.footer-x:hover { background: var(--accent-hover); color: #fff; }
.footer-mark .footer-pictorial { width: 80px; height: 80px; }
.footer-links { display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; max-width: 100%; }
.footer-links a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.important {
  background: var(--apricot-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.important h2 { font-size: 1.5rem; }
.important p { color: var(--text); font-size: 1.0625rem; }
.footer-fine {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 27, 24, 0.12);
}
.footer-note { margin: 0; color: var(--muted); font-size: 0.85em; text-align: left; max-width: none; }
.footer-note a { color: var(--accent-text); }
.important .privacy-note, .important .photo-credit { margin: 0 0 0.9em; font-size: 0.85em; line-height: 1.55; color: var(--muted); max-width: var(--measure); }

/* Article ---------------------------------------------------------------------------- */
.article { margin-top: 24px; }

.article-head { max-width: 860px; }
.article-photo {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 0 28px;
  background: var(--apricot-soft);
}
.article-photo:not([src]), .article-photo[src=""] { display: none; }
.article-head .kicker {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.article-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.article-head .lead { margin: 0; font-size: 1.2rem; font-weight: 500; color: var(--text); max-width: var(--measure); }
.article-head .dl { margin: 22px 0 0; }

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}

.article-body { min-width: 0; max-width: var(--measure); }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { margin: 3rem 0 0.75em; scroll-margin-top: 90px; }
.article-body h2.rule { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-body h3 { margin: 2rem 0 0.75em; scroll-margin-top: 90px; }
.article-body h4 { margin: 1.4em 0 0.4em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.55em; }
.article-body li > p { margin: 0; }
.article-body li > p + p { margin-top: 0.6em; }
.article-body table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { background: var(--surface-2); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* Question lists: thin accent left border */
.article-body ul.qlist, .article-body ol.qlist {
  list-style: none;
  margin: 0.4rem 0 1.6rem;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--accent);
}
.article-body .qlist li { margin-bottom: 0.6em; }
.article-body .qlist li:last-child { margin-bottom: 0; }

sup.cite { font-size: 0.72em; line-height: 0; }
sup.cite a { text-decoration: none; font-weight: 700; }

.refs {
  font-size: 0.9rem;
  color: var(--muted);
  list-style-position: outside;
  padding-left: 2.2em;
}
.refs li { margin-bottom: 0.7em; overflow-wrap: anywhere; padding-left: 0.2em; }
.refs li::marker { color: var(--muted); font-weight: 700; }
.refs li:target { background: var(--apricot-soft); border-radius: 6px; }

.disclaimer, .draft-notice, .callout { font-size: 1rem; margin: 0 0 1.4em; }

/* Exhibit / worksheet */
.exhibit {
  margin-top: 3rem;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.exhibit h2 { margin-top: 0.2em; }
.exhibit .lead { font-size: 1.05rem; font-weight: 500; margin-bottom: 1.2em; }
.exhibit .eyebrow { background: var(--accent-text); }
.field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.blank {
  display: inline-block;
  min-width: 160px;
  flex: 1 1 160px;
  border-bottom: 1.5px solid var(--muted);
  height: 1.1em;
  vertical-align: baseline;
}
.article-body p > .blank:only-child { display: block; width: 100%; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin-bottom: 0.7em; }
.checklist .box { width: 18px; height: 18px; margin-top: 4px; border: 2px solid var(--muted); border-radius: 5px; background: var(--surface); }

/* Aside */
.article-aside { position: sticky; top: 84px; display: grid; gap: 18px; }
.toc, .related {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.toc h2, .related h2 {
  font-family: var(--font-body);
  margin: 0 0 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
}
.toc ol, .related ul { margin: 0; padding-left: 0; list-style: none; }
.toc li, .related li { margin: 0; max-width: none; }
.toc a, .related a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.toc li:first-child a, .related li:first-child a { border-top: 0; }
.toc a:hover, .related a:hover { color: var(--accent-hover); text-decoration: underline; }
.related p { margin: 10px 0 0; font-size: 0.92rem; }
.toc { max-height: calc(100vh - 110px); overflow: auto; }

/* Slide deck ---------------------------------------------------------------------- */
.slides { display: grid; gap: 18px; }
.slide {
  border-radius: var(--radius);
  padding: 22px 26px;
  background: var(--surface);
  scroll-margin-top: 90px;
}
.slide-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.slide-num { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.badge { font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge.core { background: var(--accent-soft); color: var(--accent-hover); }
.badge.optional { background: var(--apricot-soft); color: var(--text); }
.slide h2 { margin: 10px 0 10px; font-size: 1.4rem; }
.slide ul { margin-bottom: 0.6em; }
.notes { margin-top: 10px; border-radius: var(--radius-sm); background: var(--surface-2); padding: 6px 14px; }
.notes summary { cursor: pointer; font-weight: 700; color: var(--accent-text); padding: 8px 0; min-height: 44px; display: flex; align-items: center; }
.notes p { margin: 0.5em 0; font-size: 0.98rem; }

/* Responsive ----------------------------------------------------------------------- */
@media (max-width: 920px) {
  .blocks, .blocks.two, .lower, .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .toc { max-height: none; }
}

@media (max-width: 680px) {
  .topbar { min-height: 0; }
  .site-nav { width: 100%; justify-content: flex-start; }
  .site-nav a { padding: 10px 12px; }
  .brand img { height: 44px; }
  .footer-brand img { height: 52px; }
  .hero, .page-head { margin-top: 24px; }
  .crumbs { margin-top: 22px; }
  .hero-actions .button { width: 100%; }
  .status-list { grid-template-columns: 1fr; }
  .panel, .important, .exhibit { padding: 20px; }
  .site-footer .bridge { height: 40px; }
  .footer-links { justify-content: flex-start; }
  .site-footer { padding-bottom: 48px; }
}

/* Motion --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Print ---------------------------------------------------------------------------- */
@media print {
  body { background: #fff; }
  .site-header, .crumbs, .article-aside, .site-footer, .dl, .skip, .bridge { display: none !important; }
  .article-body, .exhibit { padding: 0; background: none; max-width: none; }
  .article-grid { display: block; }
  .notes { display: block; }
  .notes[open] summary, .notes summary { display: none; }
  details:not([open]) > *:not(summary) { display: block; }
  a { color: inherit; text-decoration: none; }
}

/* Toolkit ------------------------------------------------------------------------- */
.version { margin: 0 0 12px; font-size: 0.9rem; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.updated { margin: 0 0 12px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.updated + .version { margin-top: -4px; }
.page-head .updated { margin: -1rem 0 1.25rem; }
/* About page: citation block with a visible placeholder */
.citation { font-family: var(--font-body); background: var(--surface-2); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: var(--measure); margin: 0 0 8px; }
.citation .placeholder { font-style: italic; color: var(--accent-text); }
.citation-note { font-size: 0.9rem; margin: 0 0 1.6em; }
/* Search terms and other typed text in article bodies */
.article-body code { font-family: var(--font-body); font-size: 0.95em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
/* Other resources list */
.article-body h2.resource-group { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin: 1.8em 0 0.8em; }
.resource-list { list-style: none; padding: 0 !important; margin: 0 0 1.6em; max-width: var(--measure); }
.resource-list li { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.resource-list li:last-child { border-bottom: 0; }
.resource-list a { font-weight: 700; }
.resource-list .for { display: block; margin-top: 4px; color: var(--text); }
.page-head .subtitle + .version { margin: 0; }
.page-head .draft-notice { margin: 0 0 8px; }
.article-head .draft-notice { margin: 18px 0 0; }
.article-head .dl .button + .button { margin-left: 8px; }
.block-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.block-links a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.block h2 a { color: inherit; text-decoration: none; }
.block h2 a:hover { color: var(--accent-hover); text-decoration: underline; }
.block .block-links { grid-row: 4; }
.panel.lines { margin-top: var(--space-block); }
.panel.lines ul { padding-left: 1.3em; margin-bottom: 14px; }

/* Start here (article orientation box) ------------------------------------------ */
.orient {
  margin: 0;
  padding: 16px 18px;
  max-width: var(--measure);
  background: var(--apricot-soft);
  border: 1px solid var(--apricot);
  border-radius: 16px;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.orient-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 8px;
}
.orient dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; }
.orient dt { font-weight: 500; color: var(--text); }
.orient dd { margin: 0; max-width: none; }
.orient-people { list-style: none; margin: 0; padding: 0; display: inline; }
.orient-people li { display: inline; max-width: none; }
.orient-people li + li::before { content: "; "; }
.orient-note { margin: 10px 0 0; font-size: 0.875rem; color: var(--muted); }
.article-head .orient + .lead { margin-top: 22px; }
@media (max-width: 680px) {
  /* On phones the box follows the opening paragraph so the article's first paragraph stays above the fold. */
  .article-head { display: flex; flex-direction: column; }
  .article-head .orient { order: 1; margin-top: 8px; }
  .article-head .dl { order: 2; }
  .orient { padding: 14px 16px; font-size: 1rem; line-height: 1.5; }
  .orient dl { grid-template-columns: 1fr; gap: 0; }
  .orient dt { margin-top: 8px; }
  .orient dt:first-child { margin-top: 0; }
  .article-head .orient + .lead { margin-top: 0; }
}

/* Informational page body (Teen Voices) -------------------------------------------- */
.prose { max-width: var(--measure); margin-top: var(--space-block); }
.prose h2 { margin-top: var(--space-section); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.7em; }
.prose strong { color: var(--text); }
.page-head .notice { margin-top: 4px; }

/* Home: "What is here" cards ------------------------------------------------------- */
.hcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.hcard {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.hcard-teal { background: #E4EEEF; }   /* light teal tint (accent-soft) */
.hcard-peach { background: #FEEBE0; }  /* light peach (apricot-soft) */
.hcard-sand { background: #F3EDE5; }   /* light sand (surface-2) */
.hcard .block-photo { margin-bottom: 1rem; }
.hcard-icon { display: block; color: var(--accent); margin-bottom: 0.75rem; }
.hcard h3 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.hcard p { margin: 0 0 1.25rem; color: var(--muted); }
.hcard .button.pill, .hcard .tag-muted { margin-top: auto; align-self: flex-start; }
.button.pill { border-radius: 999px; padding: 12px 20px; min-height: 44px; }
.tag-muted {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(54, 54, 54, 0.08);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}
a.hcard:hover { text-decoration: none; color: var(--text); }
a.hcard:hover h3 { color: var(--accent-hover); }
a.hcard:hover .tag-muted { background: rgba(54, 54, 54, 0.14); }
@media (max-width: 720px) {
  .hcards { grid-template-columns: 1fr; gap: 1rem; }
}

/* Home: who this site is for ---------------------------------------------------------- */
.who { margin-top: var(--space-section); }
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.who-card { background: var(--surface-2); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.who-card p { margin: 0; font-weight: 500; }
.who-card a { font-weight: 700; }
.who-card .who-small { margin-top: 0.5rem; font-size: 0.85em; font-weight: 400; color: var(--muted); }
@media (max-width: 720px) { .who-grid { grid-template-columns: 1fr; } }

/* Footer legal links */
.footer-legal, .important .footer-legal, .important .footer-note { margin: 0; font-size: 0.85em; line-height: 1.55; color: var(--muted); }
/* One row: copyright left, legal links right; stacked with the links first below 600px */
.footer-row { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
@media (max-width: 599.98px) { .footer-row { flex-direction: column; align-items: flex-start; } }
.footer-legal a { font-weight: 700; }

/* Any anchor target clears the sticky header */
[id] { scroll-margin-top: 90px; }

/* Mobile menu ------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--bg);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.nav-toggle .nav-toggle-close { display: none; }
.menu-open .nav-toggle .nav-toggle-open { display: none; }
.menu-open .nav-toggle .nav-toggle-close { display: inline; }
@media (max-width: 720px) {
  .site-header.collapsible .topbar { flex-wrap: nowrap; align-items: center; }
  .site-header.collapsible .nav-toggle { display: inline-flex; }
  .site-header.collapsible .site-nav { display: none; }
  .site-header.collapsible.menu-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    flex-basis: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }
  .site-header.collapsible.menu-open .topbar { flex-wrap: wrap; }
  .site-header.collapsible.menu-open .site-nav a { width: 100%; min-height: 48px; padding: 12px 14px; font-size: 1.05rem; }
  .site-header.collapsible.menu-open .site-nav a.active::after { content: " (current page)"; font-weight: 500; font-size: 0.85em; color: inherit; opacity: 0.85; }
}

/* Toolkit page head with the pictorial mark beside the intro. The home hero's media block (3:2 cover crop,
   peach offset slab) is specific to that photo, so the mark gets its own small rule; the two-column layout
   and the 900px stacking breakpoint follow the hero's conventions. */
.page-head.with-mark { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: center; }
.page-mark img { display: block; width: 240px; height: auto; margin: 0 auto; }
@media (max-width: 900px) {
  .page-head.with-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-head.with-mark .page-mark { order: -1; }
  .page-mark img { width: 96px; max-width: 96px; margin: 0; }
}

/* D. Mobile hero order: pill, headline, all intro text, the notice box, then the photo, then the buttons */
@media (max-width: 900px) {
  .hero.with-photo { display: flex; flex-direction: column; gap: 0; }
  .hero.with-photo .hero-content { display: contents; }
  .hero.with-photo .eyebrow { order: 1; }
  .hero.with-photo h1 { order: 2; }
  .hero.with-photo .subtitle { order: 3; }
  .hero.with-photo .audience { order: 4; }
  .hero.with-photo .notice { order: 5; }
  .hero.with-photo .hero-media { order: 6; margin: 8px 0 28px; }
  .hero.with-photo .hero-actions { order: 7; }
}

/* E. Mobile footer: brand row stacks, tagline never collides with the nav */
@media (max-width: 720px) {
  .footer-brand { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-mark .tagline { text-align: left; padding-top: 8px; border-top: 1px solid var(--line); max-width: 100%; }
  .footer-mark .footer-pictorial { width: 48px; height: 48px; }
  .footer-x { width: 34px; height: 34px; }
  .footer-x svg { width: 15px; height: 15px; }
  .footer-links { justify-content: flex-start; width: 100%; gap: 0 18px; }
  .footer-links a { margin: -4px 0; }
}

/* List cards on the Resource Hub and Toolkit pages (same treatment as the home cards) ----- */
/* Newsreader optical size: headings follow their font size automatically (h1 lands near opsz 56);
   card titles at 24px are pinned to the lighter opsz 32 cut so they read as display, not text. */
.hcard h2, .hcard h3 { font-variation-settings: "opsz" 32; }
.hcard-teal2 { background: #D6E6E8; }  /* second light teal */
.hcard-grey { background: #ECE7E1; }   /* warm grey */
.hcard h2 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.hcard-actions { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hcard-link { position: relative; }
.hcard-link .button.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.hcard-link:hover h2 { color: var(--accent-hover); }
.hcard-link:hover .button.pill { background: var(--accent-hover); border-color: var(--accent-hover); }
.hcard-secondary { display: flex; flex-wrap: wrap; gap: 8px; }
.button.secondary.small { padding: 10px 14px; min-height: 44px; font-size: 0.95rem; font-weight: 700; border-radius: 999px; }
.hcards-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hcards-hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hcards-toolkit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-head + .hcards { margin-top: var(--space-section); }
.hcards + .panel, .hcards + .lower { margin-top: var(--space-section); }
@media (max-width: 1100px) { .hcards-hub, .hcards-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899.98px) { .hcards-toolkit { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .hcards-hub, .hcards-home { grid-template-columns: 1fr; } }
