/* ═══════════════════════════════════════════════════════════════
   Cytognosis: Site extensions
   New sections + shared page primitives layered on landing/styles.css.
   Reuses the same tokens, type, motion, and component language.
   ═══════════════════════════════════════════════════════════════ */

/* ── shared section subhead used on inner pages ─────────────── */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--violet-300); outline-offset: 3px; }
.page-hero { padding: 96px 0 64px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .glow { position: absolute; top: -180px; right: -120px; width: 560px; height: 560px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cg-violet-600) 12%, transparent) 0%, transparent 66%); pointer-events: none; z-index: 0; }
.page-hero-inner { max-width: 740px; }
.home-hero { min-height: min(700px, calc(100dvh - var(--nav-h))); display: grid; align-items: center; position: relative; overflow: hidden; padding: 112px 0 104px; }
.home-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.home-hero-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(2px); }
.home-hero-glow-a { width: 660px; height: 660px; top: -310px; right: -140px; background: radial-gradient(circle, color-mix(in srgb, var(--cg-violet-600) 18%, transparent), transparent 66%); }
.home-hero-glow-b { width: 520px; height: 520px; bottom: -330px; left: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--cg-azure-600) 12%, transparent), transparent 68%); }
.home-title { max-width: 17ch; font-family: var(--f-display); font-size: clamp(3rem, 6.2vw, 5.6rem); font-weight: 500; letter-spacing: -.05em; line-height: .98; color: var(--ink); text-wrap: balance; }
.home-lead { max-width: 58ch; margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--ink-2); }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.home-destinations { padding: 104px 0 124px; background: var(--bg-soft); border-top: 1px solid var(--hair-soft); }
.home-destination-head { max-width: 600px; margin-bottom: 48px; }
.home-destination-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-destination { display: flex; min-height: 284px; flex-direction: column; padding: 30px; background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.home-destination:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cg-violet-600) 28%, transparent); box-shadow: 0 24px 54px -32px color-mix(in srgb, var(--cg-indigo-600) 34%, transparent); }
.home-destination-kicker { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-violet); }
.home-destination h3 { margin-top: 16px; font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.home-destination > p:not(.home-destination-kicker) { margin-top: 13px; max-width: 43ch; font-size: 15px; line-height: 1.65; color: var(--muted); }
.home-destination-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: auto; padding-top: 24px; color: var(--text-violet); font-size: 14px; font-weight: 600; }
.home-destination-link span { transition: transform var(--dur-fast) var(--ease); }
.home-destination-link:hover span { transform: translateX(4px); }
.page-title { font-family: var(--f-display); font-size: clamp(2.4rem, 4.4vw, 3.5rem); font-weight: 500;
  letter-spacing: -0.032em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
.page-title .serif { font-weight: 400; }
.page-lead { font-size: 18.5px; color: var(--ink-2); line-height: 1.62; margin-top: 22px; max-width: 60ch; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-violet); }
.breadcrumb a:hover { text-decoration: underline; }

/* small section CTA link */
.section-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 38px;
  font-size: 15px; font-weight: 500; color: var(--text-violet); }
.section-cta .arr { transition: transform 250ms var(--ease); }
.section-cta:hover .arr { transform: translateX(4px); }

/* reusable two-column content split */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* origin CTA inline */
.origin-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════ SCIENTIFIC FOUNDATION ═══════════════ */
.foundation { background: var(--bg-soft); }
.found-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.found-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.found-tag { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; background: var(--surface);
  border: 1px solid var(--hair); border-radius: 9999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: transform 280ms var(--ease), border-color 280ms, box-shadow 280ms; }
.found-tag:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cg-violet-600) 28%, transparent); box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--cg-indigo-600) 30%, transparent); }
.found-tag .ft-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }
.found-tag:nth-child(3n) .ft-dot { background: var(--azure); }
.found-tag:nth-child(3n+1) .ft-dot { background: var(--teal); }

.validation-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 32px 32px 26px;
  box-shadow: 0 22px 54px -28px color-mix(in srgb, var(--cg-indigo-600) 26%, transparent); }
.validation-card .vc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.validation-card .vc-kicker { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-violet); }
.validation-card h3 { font-family: var(--f-display); font-size: 21px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 18px; }
.vc-list { display: flex; flex-direction: column; gap: 2px; }
.vc-item { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-top: 1px solid var(--hair-soft); }
.vc-item:first-child { border-top: none; }
.vc-check { width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--cg-teal-600) 14%, transparent); flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.vc-text strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.vc-text span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ═══════════════ TEAM ═══════════════ */
.team { background: var(--bg); }
.team-group-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.team-group-label::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.team-group + .team-group { margin-top: 56px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-grid.three { grid-template-columns: repeat(3, 1fr); }
.member { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 24px 22px 22px;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms; }
.member:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -22px color-mix(in srgb, var(--cg-indigo-600) 28%, transparent); border-color: color-mix(in srgb, var(--cg-violet-600) 20%, transparent); }
.member-avatar { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 18px; font-weight: 600; color: var(--on-ink); margin-bottom: 18px; letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--violet), var(--indigo)); overflow: hidden; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member:nth-child(4n+2) .member-avatar { background: linear-gradient(135deg, var(--azure), var(--indigo)); }
.member:nth-child(4n+3) .member-avatar { background: linear-gradient(135deg, var(--teal), var(--azure)); }
.member:nth-child(4n) .member-avatar { background: linear-gradient(135deg, var(--cg-indigo-400), var(--violet)); }
.member-name { font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.member-role { font-size: 13px; color: var(--text-violet); margin-top: 3px; font-weight: 500; }
.member-bio { font-size: 13px; color: var(--muted); line-height: 1.56; margin-top: 12px; }
.member-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.member-tags span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--faint); background: color-mix(in srgb, var(--cg-indigo-600) 6%, transparent); border-radius: 6px; padding: 4px 8px; }

/* featured founder card */
.member-featured { display: flex; flex-direction: row; align-items: flex-start; gap: 28px; }
.member-avatar-lg { width: 100px; height: 100px; border-radius: 18px; flex-shrink: 0; }
.member-main { flex: 1; min-width: 0; }
.member-featured .member-name { font-size: 20px; }
.member-featured .member-role { font-size: 14px; }
.member-featured .member-bio { max-width: 68ch; }

/* member avatar: larger for real photos */
.member-avatar { width: 68px; height: 68px; border-radius: 15px; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* member links row */
.member-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.member-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; font-size: 12px; font-weight: 500;
  color: var(--text-violet); background: color-mix(in srgb, var(--cg-violet-600) 7%, transparent); border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--cg-violet-600) 14%, transparent);
  transition: background 220ms, border-color 220ms; }
.member-link:hover { background: color-mix(in srgb, var(--cg-violet-600) 13%, transparent); border-color: color-mix(in srgb, var(--cg-violet-600) 28%, transparent); }
.member-link svg { flex-shrink: 0; }

/* ── team profile pages ────────────────────────────────────── */
.profile-shell { background: var(--bg); }
.profile-hero { padding-bottom: 72px; }
.profile-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.profile-role { font-size: 16px; color: var(--text-violet); font-weight: 600; margin-top: 12px; }
.profile-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.profile-photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--hair);
  background: linear-gradient(145deg, color-mix(in srgb, var(--cg-violet-600) 11%, transparent), color-mix(in srgb, var(--cg-azure-600) 8%, transparent)); box-shadow: 0 30px 70px -34px color-mix(in srgb, var(--cg-indigo-600) 34%, transparent); }
.profile-photo img { width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; }
/* r-qa3b: same cascade gotcha as .profile-photo-fallback above, just
   on the other element -- the sitewide `img { display: block; }`
   reset (styles.css) is an AUTHOR rule, and normal author rules beat
   normal user-agent rules (like `[hidden] { display: none }`)
   REGARDLESS of selector specificity, because origin outranks
   specificity in the cascade. So for members with no photo_url,
   `photo.hidden = true` left the empty, src-less <img> box (still
   sized by width:100%/aspect-ratio) rendering above the initials
   fallback -- a blank/broken-image placeholder stacked on top of the
   correct violet initials block. */
.profile-photo img[hidden] { display: none; }
.profile-content { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.profile-main { max-width: 760px; }
.profile-main h2 { font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin: 0 0 14px; }
.profile-main h2:not(:first-child) { margin-top: 42px; }
.profile-main p { font-size: 17px; color: var(--ink-2); line-height: 1.78; margin-bottom: 20px; }
.profile-main ul { margin: 10px 0 0; padding-left: 22px; }
.profile-main li { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-bottom: 10px; }
.profile-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 98px; }
.profile-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 22px;
  box-shadow: 0 18px 48px -30px color-mix(in srgb, var(--cg-indigo-600) 26%, transparent); }
.profile-card h3 { font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em; margin-bottom: 14px; }
.profile-card .member-link { margin: 0 6px 8px 0; }

@media (max-width: 720px) {
  .home-hero { min-height: auto; padding: 84px 0 76px; }
  .home-title { font-size: clamp(2.65rem, 12vw, 3.55rem); }
  .home-lead { margin-top: 22px; font-size: 16px; }
  .home-actions { margin-top: 28px; }
  .home-destinations { padding: 76px 0 88px; }
  .home-destination-head { margin-bottom: 32px; }
  .home-destination-grid { grid-template-columns: 1fr; }
  .home-destination { min-height: 244px; padding: 25px; }
  .member-featured { flex-direction: column; gap: 16px; }
  .member-avatar-lg { width: 80px; height: 80px; }
}

/* dynamic state placeholders */
.state-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.skeleton-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 24px 22px; }
.sk-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--cg-indigo-600) 7%, transparent), color-mix(in srgb, var(--cg-indigo-600) 13%, transparent), color-mix(in srgb, var(--cg-indigo-600) 7%, transparent));
  background-size: 200% 100%; animation: skshimmer 1.4s ease-in-out infinite; margin-bottom: 10px; }
.sk-avatar { width: 56px; height: 56px; border-radius: 14px; background: color-mix(in srgb, var(--cg-indigo-600) 8%, transparent); margin-bottom: 18px; }
@keyframes skshimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce){ .sk-line { animation: none; } }
.empty-state { text-align: center; padding: 56px 24px; background: var(--bg-soft); border: 1px dashed var(--hair); border-radius: 16px; }
.empty-state .es-title { font-family: var(--f-display); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.empty-state .es-body { font-size: 14.5px; color: var(--muted); max-width: 44ch; margin: 0 auto; line-height: 1.6; }

/* ═══════════════ ROADMAP TIMELINE ═══════════════ */
.roadmap { background: var(--bg-section); }
.roadmap-note { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--faint);
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; }
.roadmap-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cg-coral-600); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 17px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--azure), color-mix(in srgb, var(--cg-teal-600) 60%, transparent)); border-radius: 2px; z-index: 0; }
.phase { position: relative; z-index: 1; }
.phase-node { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 2px solid var(--violet);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  color: var(--text-violet); margin-bottom: 22px; box-shadow: 0 0 0 6px var(--bg-section); }
.phase:nth-child(2) .phase-node { border-color: var(--azure); color: var(--text-azure); }
.phase:nth-child(3) .phase-node { border-color: var(--teal); color: var(--text-teal); }
.phase-card { background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 16px; padding: 26px 26px 24px;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); height: 100%; }
.phase-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px color-mix(in srgb, var(--cg-indigo-600) 26%, transparent); }
.phase-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.phase-title { font-family: var(--f-display); font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; margin: 6px 0 16px; }
.phase-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.phase-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.phase-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-300); margin-top: 7px; flex-shrink: 0; }
.phase-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-violet); padding: 6px 11px;
  background: color-mix(in srgb, var(--cg-violet-600) 8%, transparent); border-radius: 9999px; }

/* ═══════════════ HELIX STRATEGY (DARK) ═══════════════ */
.helix { background: var(--night); overflow: hidden; }
.helix::before { content: ''; position: absolute; bottom: -10%; left: -5%; width: 55%; height: 90%;
  background: radial-gradient(ellipse at 30% 70%, color-mix(in srgb, var(--cg-azure-600) 16%, transparent) 0%, transparent 62%); pointer-events: none; }
.helix-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.helix-statement { font-family: var(--f-serif); font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 300; line-height: 1.55;
  color: var(--on-night-1); margin-top: 22px; max-width: 54ch; }
.helix-statement em { font-style: italic; color: var(--violet-300); }
.helix-points { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.helix-point { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: color-mix(in srgb, var(--on-ink) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--cg-indigo-300) 13%, transparent); border-radius: 13px; }
.helix-point .hp-num { font-family: var(--f-mono); font-size: 11px; color: var(--violet-300); flex-shrink: 0; margin-top: 2px; }
.helix-point .hp-body { font-size: 14px; color: var(--on-night-2); line-height: 1.56; }
.helix-point .hp-body b { color: var(--on-night-1); font-weight: 600; }
.helix-visual { position: relative; }
.helix-svg-box { background: color-mix(in srgb, var(--on-ink) 2%, transparent); border: 1px solid color-mix(in srgb, var(--cg-indigo-300) 16%, transparent); border-radius: 20px;
  padding: 16px; box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--cg-abyss) 50%, transparent); }
.helix-svg-box svg { width: 100%; height: auto; display: block; }
.helix-caption { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-night-3); text-align: center; margin-top: 14px; }

/* ═══════════════ GET INVOLVED ═══════════════ */
.involved { background: var(--bg); }
.pathways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pathway { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hair); border-radius: 18px;
  padding: 28px 26px 26px; transition: transform 340ms var(--ease), box-shadow 340ms var(--ease), border-color 340ms; }
.pathway:hover { transform: translateY(-5px); box-shadow: 0 28px 60px -26px color-mix(in srgb, var(--cg-indigo-600) 30%, transparent); border-color: color-mix(in srgb, var(--cg-violet-600) 22%, transparent); }
.pathway-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cg-violet-600) 13%, transparent), color-mix(in srgb, var(--cg-azure-600) 10%, transparent)); margin-bottom: 20px; }
.pathway-title { font-family: var(--f-display); font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 10px; }
.pathway-body { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.pathway-meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint);
  margin-top: 14px; line-height: 1.7; }
.pathway-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 500; color: var(--text-violet); }
.pathway-cta .arr { transition: transform 250ms var(--ease); }
.pathway:hover .pathway-cta .arr { transform: translateX(4px); }

/* ═══════════════ BLOG ═══════════════ */
.blog { background: var(--bg-soft); }
.blog-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.post-featured { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--hair);
  border-radius: 20px; overflow: hidden; transition: transform 340ms var(--ease), box-shadow 340ms var(--ease); }
.post-featured:hover { transform: translateY(-4px); box-shadow: 0 30px 64px -28px color-mix(in srgb, var(--cg-indigo-600) 30%, transparent); }
.post-featured .pf-cover { aspect-ratio: 16 / 8; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--surface-tint), var(--surface-tint)); }
.post-featured .pf-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-featured .pf-body { padding: 30px 32px 32px; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; flex-wrap: wrap; }
.post-meta .tag { color: var(--text-violet); }
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.post-featured h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.18; color: var(--ink); margin-bottom: 14px; text-wrap: balance; }
.post-featured .pf-excerpt { font-size: 15px; color: var(--muted); line-height: 1.62; flex: 1; }
.post-read { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 14.5px; font-weight: 500; color: var(--text-violet); }
.post-read .arr { transition: transform 250ms var(--ease); }
.post-featured:hover .post-read .arr { transform: translateX(4px); }
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-mini { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 22px 24px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.post-mini:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -20px color-mix(in srgb, var(--cg-indigo-600) 26%, transparent); border-color: color-mix(in srgb, var(--cg-violet-600) 20%, transparent); }
.post-mini h4 { font-family: var(--f-display); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.28; color: var(--ink); margin-bottom: 10px; }
.post-mini .pm-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ── article pages ─────────────────────────────────────────── */
.article-shell { background: var(--bg); }
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-violet); margin-bottom: 18px; }
.article-title { font-family: var(--f-display); font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.032em; color: var(--ink); text-wrap: balance; }
.article-dek { font-size: 19px; line-height: 1.62; color: var(--ink-2); margin-top: 22px; max-width: 62ch; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.article-cover { margin: 42px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--hair); background: var(--bg-soft); }
.article-cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.article-body { padding-top: 56px; }
.article-body h2 { font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin: 44px 0 14px; }
.article-body p { font-size: 17px; color: var(--ink-2); line-height: 1.78; margin-bottom: 20px; }
.article-body ul { margin: 10px 0 26px; padding-left: 22px; }
.article-body li { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-bottom: 10px; }
.article-callout { margin: 34px 0; padding: 24px 26px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--hair); font-family: var(--f-serif); font-size: 20px; line-height: 1.55; color: var(--text-violet-deep); }
.article-next { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.article-next a { color: var(--text-violet); font-weight: 500; }
.admin-published-grid { margin-bottom: 22px; }
.admin-cover {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cg-teal-600) 18%, transparent), color-mix(in srgb, var(--cg-violet-600) 16%, transparent), color-mix(in srgb, var(--cg-coral-600) 12%, transparent));
}
.admin-cover span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-violet);
  background: color-mix(in srgb, var(--bg-2) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-ink) 80%, transparent);
  border-radius: 999px;
  padding: 7px 12px;
}
.admin-post-readers { display: grid; gap: 22px; margin-bottom: 40px; }
.admin-post-reader {
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--surface);
  padding: 34px;
}
.admin-post-reader h2 {
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
  margin: 10px 0 12px;
}
.admin-post-dek { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 20px; }

/* ═══════════════ CONTACT / FAQ ═══════════════ */
.contact { background: var(--bg); }
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.connect-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.connect-item { display: flex; align-items: flex-start; gap: 15px; padding: 18px 0; border-top: 1px solid var(--hair-soft); }
.connect-item:first-child { border-top: none; }
.connect-ico { width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--cg-violet-600) 9%, transparent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; }
.connect-text .ct-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.connect-text .ct-value { font-size: 15px; color: var(--ink); font-weight: 500; }
.connect-text .ct-value a:hover { color: var(--text-violet); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.quick-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; background: var(--bg-soft);
  border: 1px solid var(--hair); border-radius: 9999px; font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all 240ms var(--ease); }
.quick-link:hover { border-color: color-mix(in srgb, var(--cg-violet-600) 30%, transparent); color: var(--text-violet); transform: translateY(-1px); }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; padding: 34px 36px 32px;
  box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--cg-indigo-600) 28%, transparent); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--text-coral); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 14.5px; color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid var(--hair); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color 220ms, background 220ms, box-shadow 220ms; min-height: 46px; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' stroke='%2350506E' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cg-violet-600) 13%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--coral); background: color-mix(in srgb, var(--cg-coral-600) 4%, transparent); }
.field-error { font-size: 12px; color: var(--text-coral); display: none; align-items: center; gap: 6px; }
.field.invalid .field-error { display: flex; }

.checkbox-field { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.checkbox-field input { width: 18px; height: 18px; min-height: 0; flex-shrink: 0; margin-top: 2px; accent-color: var(--violet); cursor: pointer; }
.checkbox-field .cb-label { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.checkbox-field .cb-label a { color: var(--text-violet); text-decoration: underline; text-underline-offset: 3px; }
.checkbox-field .cb-label strong { color: var(--ink-2); font-weight: 600; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-privacy { font-size: 12px; color: var(--faint); line-height: 1.5; max-width: 44ch; }
.form-success { display: none; align-items: flex-start; gap: 13px; padding: 18px 20px; background: color-mix(in srgb, var(--cg-teal-600) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cg-teal-600) 34%, transparent); border-radius: 13px; margin-bottom: 4px; }
.form-success.show { display: flex; }
.form-success .fs-ico { width: 24px; height: 24px; flex-shrink: 0; }
.form-success .fs-text strong { display: block; font-size: 14.5px; color: var(--text-teal); margin-bottom: 2px; }
.form-success .fs-text span { font-size: 13px; color: var(--muted); line-height: 1.5; }

.field-group-title { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-violet); margin: 8px 0 -4px; display: flex; align-items: center; gap: 10px; }
.field-group-title::after { content: ''; flex: 1; height: 1px; background: var(--hair-soft); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--bg-section); }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.faq-card { background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 16px; padding: 26px 26px 24px; }
.faq-q { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.faq-q .q-mark { font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--text-violet); flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--cg-violet-600) 10%, transparent); display: flex; align-items: center; justify-content: center; }
.faq-q h3 { font-family: var(--f-display); font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.62; }
.faq-a a { color: var(--text-violet); font-weight: 500; }
.faq-a a:hover { text-decoration: underline; }

/* ── disclaimer band ────────────────────────────────────────── */
.disclaimer-band { background: var(--bg-soft); border-top: 1px solid var(--hair-soft); }
.disclaimer-band .container { padding-top: 30px; padding-bottom: 30px; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.disclaimer-band .db-ico { width: 18px; height: 18px; flex-shrink: 0; }
.disclaimer-band p { font-size: 13.5px; color: var(--muted); line-height: 1.55; text-align: center; max-width: 80ch; }

/* warning callout (stories / sensitive) */
.callout { display: flex; align-items: flex-start; gap: 13px; padding: 18px 20px; border-radius: 13px;
  background: color-mix(in srgb, var(--cg-coral-600) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cg-coral-600) 34%, transparent); }
.callout .co-ico { flex-shrink: 0; margin-top: 1px; }
.callout p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.callout p strong { font-weight: 600; }

/* ═══════════════ EXPANDED FOOTER ═══════════════ */
.footer-cols.four { display: grid; grid-template-columns: repeat(4, auto); gap: 56px; }
/* Closing statement, not fine print: despite the historical class name
   (kept so every page's existing markup picks this up with no HTML
   edits needed), this is the footer's on-brand closing tagline, styled
   to read as a real statement rather than a disclaimer. */
.footer-disclaimer {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px); color: color-mix(in srgb, var(--cg-day-100) 92%, transparent);
  line-height: 1.5; max-width: 56ch; margin-top: 10px;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1000px) {
  .found-layout, .helix-grid, .contact-layout, .blog-layout, .split-grid { grid-template-columns: 1fr; gap: 44px; }
  .profile-hero-grid, .profile-content { grid-template-columns: 1fr; gap: 34px; }
  .profile-photo { max-width: 320px; }
  .profile-side { position: static; }
  .team-grid, .team-grid.three, .state-row { grid-template-columns: repeat(2, 1fr); }
  .pathways { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { display: none; }
  .phase-node { box-shadow: none; }
  .footer-cols.four { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 720px) {
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .team-grid, .team-grid.three, .state-row, .pathways { grid-template-columns: 1fr; }
  .page-hero { padding: 64px 0 48px; }
}

/* ═══════════════ ACCESSIBILITY CONTROLS ═══════════════ */
.a11y-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hair, color-mix(in srgb, var(--on-ink) 10%, transparent));
}
.a11y-controls-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night-3, var(--on-night-3));
  margin-right: 4px;
}
.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1;
  color: var(--on-night-2, var(--on-night-2));
  background: color-mix(in srgb, var(--on-ink) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent);
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: background var(--dur-fast, 240ms) var(--ease), border-color var(--dur-fast, 240ms) var(--ease),
    color var(--dur-fast, 240ms) var(--ease);
}
.a11y-toggle:hover {
  border-color: var(--violet-300);
  color: var(--on-night-1, var(--on-night-1));
}
.a11y-toggle[aria-pressed='true'] {
  background: color-mix(in srgb, var(--cg-violet-300) 16%, transparent);
  border-color: var(--violet-300);
  color: var(--on-night-1, var(--on-night-1));
}
.a11y-toggle-ico {
  display: inline-flex;
  width: 15px;
  height: 15px;
}
.a11y-toggle-state {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--on-ink) 7%, transparent);
}
.a11y-toggle[aria-pressed='true'] .a11y-toggle-state {
  background: color-mix(in srgb, var(--cg-violet-300) 24%, transparent);
  opacity: 1;
}
@media (max-width: 560px) {
  .a11y-controls {
    width: 100%;
  }
}

/* ═══════════════ GLOBAL HEADER: BRAND LOCKUP + TAGLINE ═══════════════
   Logo + tagline stack as a vertical lockup so the tagline always sits
   directly under the wordmark and never competes with the nav row for
   width. .nav sizes itself off --nav-h (styles.css :root) so the
   lockup has room to breathe; bump that token if the lockup's own
   height changes materially. */
.nav-brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-tagline {
  display: block;
  font-family: var(--f-display);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text-violet-deep);
  white-space: normal;
  max-width: 320px;
  margin: 0; padding: 0; border: 0;
}
@media (max-width: 480px) {
  .site-tagline { font-size: 12px; max-width: 220px; }
}
@media (max-width: 400px) {
  .site-tagline { font-size: 11px; max-width: 150px; }
}
.header-controls {
  /* Now holds only the mobile hamburger (#navToggle, hidden on desktop);
     sign-in + a11y moved out to .utility-bar below, so the divider/
     padding this used to need to separate itself from those controls
     no longer applies. */
  display: flex; align-items: center; gap: 10px;
}

/* ═══════════════ TOP UTILITY BAR (above the main nav row) ═══════════════
   Thin strip housing the "utility" controls -- account/sign-in + the
   a11y trigger -- so the primary nav row underneath is pure navigation
   (logo + links only). Built at runtime: ensureUtilityBar() in
   landing/site.js relocates the a11y trigger here for static pages;
   the React shell (LandingPage.jsx) renders the same markup directly.
   Sticky in lockstep with .nav directly below it via --utility-h (see
   .nav { top: var(--utility-h) } override further down). Collapses
   entirely on mobile: the a11y control is still reachable through the
   drawer (moveControlsIn() reparents it into .nav-drawer-controls when
   the drawer opens) and the account control lives in the drawer footer
   -- see .nav-drawer-controls .signin-slot rules below. */
:root { --utility-h: 48px; }
.utility-bar {
  position: sticky; top: 0; z-index: 201;
  height: var(--utility-h); min-height: var(--utility-h);
  display: flex; align-items: center;
  background: var(--bg-soft); border-bottom: 1px solid var(--hair);
}
.utility-bar-inner {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  width: 100%; height: 100%;
}
.utility-bar .a11y-popover-wrap { position: relative; }
.utility-bar .a11y-trigger { width: var(--tap-min); height: var(--tap-min); }
.utility-bar .signin-slot { display: flex; align-items: center; gap: 8px; }
.utility-bar .signin-btn { height: var(--tap-min); padding: 0 14px; font-size: 13px; }
.utility-bar .signin-chip { height: var(--tap-min); padding: 0 8px 0 6px; }
.utility-bar .signin-avatar { width: 28px; height: 28px; font-size: 11px; }
.utility-bar .signin-name { font-size: 12px; max-width: 100px; }

/* .nav keeps its own position: sticky (styles.css) but sticks directly
   beneath the utility bar instead of at the very top, so the two never
   overlap while scrolling. */
.nav { top: var(--utility-h); }

@media (max-width: 880px) {
  /* Utility bar collapses entirely on small screens -- nothing to
     relocate here, the a11y control already gets reparented into the
     drawer on open and the account control already lives in the drawer
     footer (.nav-drawer-controls), both via initMobileDrawer(). */
  .utility-bar { display: none; }
  :root { --utility-h: 0px; }
}

/* ═══════════════ NAV DROPDOWNS + SUBMENU FLYOUT ═══════════════ */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-dropdown { height: 100%; }

/* Parent label (navigates) + a separate caret button (toggles the
   dropdown) -- see renderPrimaryNav()/PrimaryNav.jsx. `.nav-dropdown-head`
   is the flex row that replaces the old single `.nav-dropdown-trigger`
   button as the row's layout owner. */
.nav-dropdown-head { display: inline-flex; align-items: center; gap: 2px; height: 100%; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center;
  font-family: var(--f-body); font-size: var(--fs-nav); font-weight: 500;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; min-height: 44px;
  transition: color var(--dur-fast) var(--ease);
}
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active, .nav-dropdown-trigger:focus-visible { color: var(--text-violet); }
.nav-caret {
  display: inline-flex; align-items: center; justify-content: center;
  /* 44 px target; the extra width sits in the gap to the next item (negative margin), so the
     header's layout is unchanged, and the chevron stays 8 px from its label. */
  width: 44px; height: 44px; margin-right: -22px; padding-left: 6px; justify-content: flex-start;
  background: none; border: 0; color: var(--ink-2); cursor: pointer;
  border-radius: 6px; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-caret:hover, .nav-caret[aria-expanded="true"] { color: var(--text-violet); background: var(--bg-soft); }
.nav-chevron { transition: transform var(--dur-fast) var(--ease); }
.nav-item.open .nav-chevron { transform: rotate(180deg); }

/* Desktop-only flyout positioning for the top-level dropdown panel.
   Strictly scoped to >= 881px so none of this (position/left/transform)
   ever reaches the mobile drawer -- the drawer gets its own static,
   indented treatment from `.nav-drawer-body .nav-dropdown` further
   down, with nothing here to out-specificity it. (r8-mobile fix: this
   used to be unscoped, and `.nav-item.open .nav-dropdown`'s 3-class
   specificity beat the drawer's 2-class override, so the drawer still
   got `transform: translate(-50%, 0)` on open -- shoving the whole
   panel, and everything nested inside it, left by half its own
   rendered width and clipping labels against the drawer's edge.) */
@media (min-width: 881px) {
  .nav-dropdown {
    position: absolute; top: calc(100% + 14px); left: 50%;
    transform: translate(-50%, -6px);
    min-width: 260px; background: var(--surface); border: 1px solid var(--hair);
    border-radius: 14px; box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--cg-deep) 35%, transparent);
    padding: 10px; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
    z-index: 210;
  }
  .nav-item.open > .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
  }
}
.nav-dropdown-link {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-family: var(--f-body); font-size: 15px; font-weight: 450; color: var(--ink-2);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
/* r-linefix: .nav-links a:not(.nav-cta)::after (styles.css) carries (0,2,2)
   specificity ("a.nav-links :not()::after"); the old one-class cancellation
   below was only (0,1,1), so despite the comment, it never actually beat the
   base rule -- every dropdown-panel link still generated the violet
   underline-grow pseudo-element (width animating to 100% on hover/focus/
   .active), just invisible day-to-day because the whole flyout panel sits at
   opacity:0/visibility:hidden until opened. The moment a panel *is* open
   (hover/keyboard), those phantom bars render as stray violet/azure hairlines
   detached from any visible active state, since dropdown links never show
   their own active/hover color treatment tied to this bar. Matching the
   competing rule's (0,2,2) specificity here so this file's later cascade
   position (loaded after styles.css) reliably wins. */
.nav-links a.nav-dropdown-link::after { content: none; }
.nav-dropdown-link:hover, .nav-dropdown-link:focus-visible, .nav-dropdown-link.active { background: var(--bg-soft); color: var(--text-violet); }
.nav-divider { height: 1px; background: var(--hair); margin: 8px 4px; }

@media (min-width: 881px) {
  .nav-subitem.has-submenu { position: relative; display: flex; align-items: stretch; }
}
.nav-subitem.has-submenu .nav-dropdown-link { flex: 1; }
@media (hover: hover) and (pointer: fine) and (min-width: 881px) {
  /* Invisible hover bridge: covers the dead gap between this row and its
     flyout so a cursor moving diagonally toward .nav-submenu never exits
     the [data-submenu] wrap along the way (r4-nav fix for bug 1's
     "flyout disappears on approach"). JS still owns visibility; this
     only keeps the wrap "entered" for mouseleave purposes. */
  .nav-subitem.has-submenu::after {
    content: "";
    position: absolute; top: 0; bottom: 0; right: -8px; width: 8px;
  }
}
.nav-submenu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; background: none; border: 0; color: var(--muted); cursor: pointer;
  border-radius: 8px; transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-submenu-toggle:hover, .nav-submenu-toggle[aria-expanded="true"] { color: var(--text-violet); background: var(--bg-soft); }
.nav-submenu-toggle svg { transition: transform var(--dur-fast) var(--ease); }
.nav-subitem.open > .nav-submenu-toggle svg { transform: rotate(90deg); }

.nav-submenu a { display: block; width: 100%; white-space: normal; }
/* Desktop-only flyout positioning for nested submenu panels (Meet
   Yar's Features/Early-Access, etc). Strictly scoped to >= 881px; the
   mobile drawer gets its own static, indented `.nav-drawer-body
   .nav-submenu` treatment further down. Child combinator (`>`) on the
   `.open` rule -- both here and above on `.nav-item` -- so an open
   ancestor never also lights up a not-yet-opened descendant's own
   flyout/chevron; each level toggles independently (single-open-branch
   accordion, r8-mobile fix). */
@media (min-width: 881px) {
  .nav-submenu {
    position: absolute; left: 100%; top: -10px; margin-left: 8px;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    width: max-content; min-width: 210px; max-width: 260px;
    background: var(--surface); border: 1px solid var(--hair);
    border-radius: 14px; box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--cg-deep) 35%, transparent);
    padding: 10px; opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-6px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
    z-index: 211;
  }
  /* r4-nav: JS `.open` is the ONLY thing that reveals this flyout now.
     No `:hover` selector here -- see initNavInteractions() in site.js
     for the hover-intent + shared close-timer logic that keeps this
     open while the pointer is over the row or the panel itself. */
  .nav-subitem.open > .nav-submenu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0);
  }
}

/* ── Depth 3+ on desktop only: a flyout nested inside a flyout (Meet
   Yar's Vote on Yar Features / Yar Early Access, nested inside the
   First Indication flyout) collapses to a static, always-visible
   indented sub-group instead of a fragile third hover panel. Meet Yar's
   own label still navigates to /yar; its caret is simply hidden here
   since there is nothing left to disclose -- the children are already
   showing. Scoped to >= 881px so the mobile drawer (which wants this
   depth to stay a real, tappable accordion -- see the
   `.nav-drawer-body` rules further down) is completely unaffected. */
@media (min-width: 881px) {
  .nav-submenu .nav-subitem.has-submenu {
    position: relative; display: block; align-items: stretch;
  }
  .nav-submenu .nav-subitem.has-submenu::after { content: none; }
  .nav-submenu .nav-subitem.has-submenu > .nav-submenu-toggle { display: none; }
  /* r-navsubmenu2: "Meet Yar" used to get its own small-caps caption
     treatment here (uppercase, 12.5px, --faint) that didn't match any
     other item in the flyout -- restyled to inherit the plain
     .nav-dropdown-link look (same font/size/weight/color/hover as
     "Explore Psychoverse" beside it) since it is still a real link to
     /yar, just one that also introduces the static group below it. */
  .nav-submenu .nav-submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; box-shadow: none; border: 0; background: transparent;
    width: auto; min-width: 0; max-width: none;
    margin: 0 0 4px 8px; padding: 0 0 0 12px; border-left: 2px solid var(--hair-soft);
    z-index: auto;
  }
  /* r-navsubmenu2: nested Yar items (Vote on Yar Features / Yar Early
     Access) previously shrank to 14px/7px-12px here, a size+padding
     that matched nothing else in the nav. Removed so they render at
     the exact same size/padding/hover as every other
     .nav-dropdown-link; the indentation + left guide on the
     `.nav-submenu .nav-submenu` wrap above is what signals nesting,
     not a smaller/different-looking link. */
}

/* r6-mobile: previously this block re-flowed the dropdown/submenu
   panels to static, in-page blocks below 720px -- but the hamburger
   itself only appears below 880px (see .nav-toggle in styles.css), so
   between 721-880px the hamburger opened a menu whose dropdown panels
   were STILL the desktop absolutely-positioned flyouts (min-width
   260px, centered via left:50%/translate) -- exactly the "dropdown
   children unreachable" bug. Fixed by scoping these rules to
   ".nav-drawer-body" (an ancestor, not a width) so they apply
   whenever #navLinks has been moved into the drawer by
   initMobileDrawer(), at any width, with zero gap against the
   hamburger's own breakpoint. */
.nav-drawer-body .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
.nav-drawer-body .nav-item { display: block; width: 100%; }
.nav-drawer-body .nav-item.has-dropdown { display: block; width: 100%; }
.nav-drawer-body .nav-links > .nav-item > a {
  display: flex; align-items: center; min-height: var(--tap-min); padding: 10px 0; width: 100%;
  font-size: 16.5px; font-weight: 500;
}
.nav-drawer-body .nav-dropdown-head { width: 100%; justify-content: space-between; }
.nav-drawer-body .nav-dropdown-trigger {
  flex: 1; min-width: 0; padding: 12px 0; min-height: var(--tap-min);
  font-size: 16.5px; font-weight: 500;
}
.nav-drawer-body .nav-caret { width: var(--tap-min); height: var(--tap-min); flex: none; margin-right: 0; padding-left: 0; justify-content: center; }

/* ── r8-mobile REBUILD: recursive accordion, every depth ───────────
   Root cause of the r7-mobile left-clipping bug: the desktop flyout's
   `.nav-item.open .nav-dropdown` / `.nav-subitem.open .nav-submenu`
   rules further up were NOT scoped to a min-width, and their 3-class
   specificity (0,3,0) beat this block's old 2-class `.nav-drawer-body
   .nav-dropdown` / `.nav-drawer-body .nav-submenu` overrides (0,2,0).
   So every panel, while otherwise correctly `position: static` in the
   drawer, still picked up the desktop's `transform: translate(-50%, 0)`
   on open -- shoving it, and everything nested inside it, left by half
   its own rendered width and clipping labels against the drawer's edge
   (worse-looking on short labels like "Meet Yar" than on long ones,
   because a fixed pixel shift eats a bigger fraction of short text).
   Now that ALL desktop transform/position CSS for `.nav-dropdown` and
   `.nav-submenu` lives inside `@media (min-width: 881px)` above,
   nothing left of 881px can out-specificity this block.

   Every level below -- the top-level `.nav-dropdown` panel, and every
   nested `.nav-submenu`, however deep NAV_CONFIG goes (Meet Yar's
   Vote on Yar Features / Yar Early Access included) -- shares ONE rule:
   `position: static`, no transform, no negative margins,
   `overflow: visible`, and a flat 16px `margin-left` + left guide rule.
   Because each panel nests inside the previous one in the real DOM,
   that 16px compounds automatically: depth 2 (The Cytognosis Platform,
   First Indication: The Brain) sits at 16px, depth 3 (Explore
   Psychoverse, Meet Yar -- nested a second time) lands at 32px, and
   depth 4 (Meet Yar's own children -- nested a third time) at 48px --
   with zero depth-specific selectors, so it keeps compounding
   correctly no matter how deep NAV_CONFIG ever grows. Every row (plain
   link or has-submenu label) also shares the exact same row height,
   type size/weight/color, and chevron as the top-level dropdown row --
   depth changes ONLY the indent -- and gets `white-space: normal` +
   `min-width: 0` on the label so long labels wrap onto a second line
   instead of clipping. This also removes the old "Yar submenu is
   lighter/muted and under-indented" ad-hoc treatment: Meet Yar's
   children now render through this exact same recursive path as every
   other level, indistinguishable in style from the main dropdown. */
.nav-drawer-body .nav-dropdown,
.nav-drawer-body .nav-submenu {
  position: static; transform: none; overflow: visible;
  display: none; opacity: 1; visibility: visible; pointer-events: auto;
  box-shadow: none; border: 0; border-radius: 0; background: transparent;
  width: auto; min-width: 0; max-width: none; z-index: auto;
  margin: 2px 0 4px 16px; padding: 0;
  border-left: 2px solid var(--hair-soft);
}
.nav-drawer-body .nav-item.open > .nav-dropdown,
.nav-drawer-body .nav-subitem.open > .nav-submenu {
  display: block;
}
.nav-drawer-body .nav-dropdown-link {
  display: flex; align-items: center; flex: 1 1 auto; min-width: 0;
  min-height: var(--tap-min); padding: 11px 10px; width: auto;
  font-size: 16px; font-weight: 500; color: var(--ink-2);
  white-space: normal;
}
.nav-drawer-body .nav-subitem.has-submenu {
  position: static; display: flex; flex-wrap: wrap; align-items: center;
}
.nav-drawer-body .nav-subitem.has-submenu > .nav-dropdown-link { min-width: 0; }
.nav-drawer-body .nav-subitem.has-submenu > .nav-submenu { flex: 1 1 100%; }
.nav-drawer-body .nav-submenu-toggle { width: var(--tap-min); height: var(--tap-min); flex: 0 0 auto; }
.nav-drawer-body .nav-divider { margin: 8px 0; }

/* ═══════════════ MOBILE OFF-CANVAS DRAWER ═══════════════
   #navToggle (<= 880px, see .nav-toggle in styles.css) opens this
   full-height slide-in panel -- see initMobileDrawer() in
   landing/site.js (static pages) and Header() in
   src/components/LandingPage.jsx (React shell). Both reparent the
   REAL #navLinks / signin-slot / a11y-popover-wrap nodes into it
   (static) or render equivalent React controls into it (SPA), rather
   than duplicating nav markup, so there is one source of truth for
   every link, dropdown, and control. */
.nav-drawer-overlay {
  position: fixed; inset: 0; z-index: 299;
  background: color-mix(in srgb, var(--cg-abyss) 42%, transparent);
  opacity: 0; transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
}
.nav-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.nav-drawer[hidden], .nav-drawer-overlay[hidden] { display: none; }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
  width: min(86vw, 360px); max-width: 100vw;
  background: var(--surface); box-shadow: -24px 0 60px -20px color-mix(in srgb, var(--cg-deep) 35%, transparent);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 18px 16px; border-bottom: 1px solid var(--hair); flex-shrink: 0;
}
.nav-drawer-tagline {
  font-family: var(--f-display); font-size: 13px; font-weight: 500;
  color: var(--text-violet-deep); line-height: 1.35; max-width: 220px;
}
.nav-drawer-close {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: var(--tap-min); height: var(--tap-min); border-radius: 10px;
  background: none; border: 1px solid var(--hair); color: var(--ink-2); cursor: pointer;
}
.nav-drawer-close:hover { background: color-mix(in srgb, var(--cg-indigo-600) 8%, transparent); color: var(--text-violet); }
.nav-drawer-body { padding: 8px 18px 14px; flex: 1 1 auto; }
.nav-drawer-controls {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px 22px; border-top: 1px solid var(--hair); flex-shrink: 0;
}
.nav-drawer-controls .signin-slot { width: 100%; }
.nav-drawer-controls .signin-menu-wrap { width: 100%; }
.nav-drawer-controls .signin-btn { width: 100%; justify-content: center; }
.nav-drawer-controls .signin-chip { width: 100%; justify-content: space-between; }
.nav-drawer-controls .signin-name { display: inline-block; max-width: none; flex: 1; }
.nav-drawer-controls .signin-menu {
  position: static; margin-top: 8px; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  display: none; box-shadow: none; border: 1px solid var(--hair); background: var(--bg-soft);
}
.nav-drawer-controls .signin-menu.open { display: flex; }
.nav-drawer-controls .signin-menu-head { border-bottom-color: var(--hair); }
.nav-drawer-controls .signin-menu-kicker { color: var(--faint); }
.nav-drawer-controls .signin-menu-email { color: var(--ink); }
.nav-drawer-controls .signin-menu-item { color: var(--text-violet); }
.nav-drawer-controls .signin-menu-item:hover { background: color-mix(in srgb, var(--cg-violet-600) 10%, transparent); }
.nav-drawer-controls .a11y-popover-wrap { position: static; }
.nav-drawer-controls .a11y-trigger { width: 100%; border-radius: 10px; justify-content: flex-start; gap: 8px; padding: 0 14px; }
.nav-drawer-controls .a11y-trigger::after { content: 'Accessibility'; font-size: 13.5px; font-weight: 500; }
.nav-drawer-controls .a11y-popover {
  position: static; margin-top: 10px; opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  display: none; box-shadow: none; border: 1px solid var(--hair); background: var(--bg-soft);
}
.nav-drawer-controls .a11y-popover.open { display: flex; }

/* Body/html scroll lock while the drawer is open (JS toggles this
   class on both elements -- see initMobileDrawer()/openDrawer()). */
html.nav-drawer-locked, body.nav-drawer-locked { overflow: hidden; height: 100%; }

@media (min-width: 881px) {
  /* Belt-and-suspenders: the drawer only exists for <= 880px. If a
     resize crosses this breakpoint while it happens to be open, JS
     force-closes it (matchMedia listener) -- this rule guarantees it
     is never visible above the hamburger's own breakpoint even in a
     race. */
  .nav-drawer, .nav-drawer-overlay { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-drawer-overlay { transition: none !important; }
}

/* ═══════════════ ACCESSIBILITY POPOVER (header) ═══════════════ */
.a11y-popover-wrap { position: relative; }
.a11y-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap-min); height: var(--tap-min); border-radius: 999px;
  background: color-mix(in srgb, var(--cg-indigo-600) 8%, transparent); border: 1px solid var(--hair); color: var(--ink-2);
  cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.a11y-trigger:hover { background: color-mix(in srgb, var(--cg-violet-600) 16%, transparent); color: var(--text-violet); border-color: color-mix(in srgb, var(--cg-violet-600) 35%, transparent); }
.a11y-trigger[aria-expanded="true"] { background: var(--violet); color: var(--on-ink); border-color: var(--violet); }
.a11y-popover {
  position: absolute; top: calc(100% + 12px); right: 0;
  min-width: 240px; background: var(--night); border: 1px solid color-mix(in srgb, var(--on-ink) 12%, transparent);
  border-radius: 14px; box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--cg-abyss) 45%, transparent);
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 220;
}
.a11y-popover.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.a11y-popover .a11y-toggle { width: 100%; justify-content: flex-start; margin: 0; padding-top: 0; border-top: 0; }
@media (max-width: 720px) {
  .a11y-popover { right: -8px; }
}
/* Display and reading settings panel (always an ink surface, in both themes). */
.a11y-popover { width: min(23rem, calc(100vw - 32px)); max-height: min(80vh, 40rem); overflow-y: auto; gap: 12px; color: var(--on-night-1); }
.pref-title { font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--on-night-1); margin: 0; }
.pref-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.pref-legend { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-night-2); padding: 0; margin-bottom: 6px; }
.pref-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pref-opt { position: relative; }
.pref-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pref-opt label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  font-family: var(--f-body); font-size: 14px; line-height: 1.2; color: var(--on-night-1);
  border: 1px solid color-mix(in srgb, var(--on-ink) 28%, transparent); cursor: pointer;
}
.pref-opt input:checked + label { background: var(--cg-violet-300); border-color: var(--cg-violet-300); color: var(--cg-neutral-950); font-weight: 600; }
.pref-opt input:focus-visible + label { outline: 3px solid var(--cg-azure-300); outline-offset: 2px; }
.pref-hint { font-size: 13px; line-height: 1.45; color: var(--on-night-2); margin: 6px 0 0; max-width: none; }
.pref-reset {
  align-self: flex-start; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-family: var(--f-body); font-size: 14px;
  color: var(--on-night-1); border: 1px solid color-mix(in srgb, var(--on-ink) 40%, transparent); background: transparent; cursor: pointer;
}
.pref-reset:hover { border-color: var(--cg-violet-300); }
.pref-pause {
  position: fixed; right: 16px; bottom: 16px; z-index: 400; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--cg-neutral-950); background: var(--cg-violet-300);
  border: 2px solid var(--cg-neutral-950); cursor: pointer; box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--cg-abyss) 50%, transparent);
}

/* ═══════════════ HEADER SIGN-IN CONTROL ═══════════════
   Injected at runtime -- initHeaderAuth() in landing/site.js for static
   pages, SignInControl in LandingPage.jsx for the React shell -- there
   is no static markup for this in any page body. Grouped immediately
   left of the a11y trigger in .header-controls per the r2-shell header
   redesign. Uses the same tokens as the rest of the header so it
   inherits high-contrast and larger-text automatically. */
.signin-slot { display: flex; align-items: center; gap: 8px; }
.signin-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: var(--tap-min); padding: 0 18px; border-radius: 999px;
  background: var(--violet); color: var(--on-ink); font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.signin-btn:hover { background: var(--cg-violet-700); transform: translateY(-1px); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--cg-violet-600) 50%, transparent); }
.signin-btn .signin-ico { display: inline-flex; width: 15px; height: 15px; }

/* Signed-in: avatar/initials trigger (a real <button>, not a static
   span) that opens the .signin-menu popover -- same open/close pattern
   as .a11y-popover-wrap just to its right, so the two utility controls
   in the header read as one coherent group without visually merging. */
.signin-menu-wrap { position: relative; }
.signin-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: var(--tap-min); padding: 0 6px 0 4px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--hair);
  font: inherit; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.signin-chip:hover, .signin-chip[aria-expanded="true"] { background: color-mix(in srgb, var(--cg-violet-600) 12%, transparent); border-color: color-mix(in srgb, var(--cg-violet-600) 30%, transparent); }
.signin-avatar {
  width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet), var(--indigo)); color: var(--on-ink); font-size: 12px; font-weight: 600;
}
.signin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.signin-name { font-size: 13px; font-weight: 500; color: var(--ink-2); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.signin-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 220px;
  background: var(--night); border: 1px solid color-mix(in srgb, var(--on-ink) 12%, transparent);
  border-radius: 14px; box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--cg-abyss) 45%, transparent);
  padding: 12px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 220;
}
.signin-menu.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.signin-menu-head { padding: 4px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--on-ink) 10%, transparent); display: flex; flex-direction: column; gap: 2px; }
.signin-menu-kicker { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-3); }
.signin-menu-email { font-size: 13px; font-weight: 500; color: var(--on-night-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signin-menu-item {
  display: flex; align-items: center; min-height: var(--tap-min); padding: 0 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--on-night-1);
  transition: background var(--dur-fast) var(--ease);
}
.signin-menu-item:hover, .signin-menu-item:focus-visible { background: color-mix(in srgb, var(--on-ink) 8%, transparent); }
@media (max-width: 560px) {
  .signin-name { display: none; }
}
@media (max-width: 400px) {
  .signin-btn span:not(.signin-ico) { display: none; }
  .signin-btn { padding: 0; width: var(--tap-min); justify-content: center; }
}

/* ═══════════════ NOSCRIPT NAV/FOOTER FALLBACK ═══════════════ */
.nav-noscript, .footer-noscript {
  display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 22px;
  font-size: 13px; color: var(--ink-2); background: var(--bg-soft); border-bottom: 1px solid var(--hair);
}
.footer-noscript { border-bottom: 0; border-top: 1px solid var(--tpl-border-soft); color: var(--tpl-text-2); background: var(--abyss); }

/* ===== Wave 2 content track additions (about/technology/community/forms) ===== */

/* about.html #purpose: values list inside principle card */
.principle ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.principle ul strong { color: var(--ink-2); }

/* about.html #story: founder story card (also reused by stories.html community display) */
.story-showcase { margin-top: 56px; }
.story-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 34px 36px; box-shadow: 0 22px 54px -30px color-mix(in srgb, var(--cg-indigo-600) 24%, transparent); margin-bottom: 18px; }
.story-card--loading { text-align: center; color: var(--faint); font-size: 14px; padding: 40px 20px; box-shadow: none; }
.story-card-meta { margin-bottom: 14px; }
.story-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-violet); background: color-mix(in srgb, var(--cg-violet-600) 8%, transparent); border-radius: 9999px; padding: 6px 13px; }
.story-text { font-family: var(--f-serif); font-style: italic; font-size: 18px; line-height: 1.68; color: var(--ink-2); margin: 0 0 14px; }
.story-author { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }

/* r4-content: small founder photo + "read the full profile" link next to the
   byline on about.html's founder story card only (landing/about.js). Kept
   deliberately small/quiet -- a byline accent, not a second hero. */
.story-author-row { display: flex; align-items: center; gap: 12px; }
.story-author-avatar-link { flex-shrink: 0; border-radius: 50%; }
.story-author-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: color-mix(in srgb, var(--cg-violet-600) 12%, transparent); color: var(--text-violet);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.02em;
}
.story-author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-author-avatar-fallback img { display: none; }
.story-author-info { display: flex; flex-direction: column; gap: 3px; }
.story-author-cta {
  font-family: var(--f-body); font-size: 13px; font-weight: 500; color: var(--text-violet);
  transition: color var(--dur-base) var(--ease);
}
.story-author-cta:hover, .story-author-cta:focus-visible { color: var(--text-azure); }
.story-chapters { margin-top: 56px; display: flex; flex-direction: column; gap: 34px; max-width: 74ch; }
.chapter-label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-violet); margin-bottom: 10px; }
.story-chapter h3 { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 10px; }
.story-chapter p { color: var(--ink-2); line-height: 1.65; margin-bottom: 10px; }

/* technology.html #platform: reactive/proactive compare, three-part breakdown, decision list */
.platform-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 6px; max-width: 78ch; }
.pc-col { padding: 18px 20px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--hair); }
.pc-col--good { background: color-mix(in srgb, var(--cg-teal-600) 8%, transparent); border-color: color-mix(in srgb, var(--cg-teal-600) 28%, transparent); }
.pc-label { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.pc-col--good .pc-label { color: var(--text-teal); }
.pc-col p { font-family: var(--f-serif); font-style: italic; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; margin: 0; }
.platform-parts { display: flex; flex-direction: column; gap: 44px; margin-top: 52px; max-width: 78ch; }
.platform-part h3 { font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.platform-part > p { color: var(--ink-2); line-height: 1.65; margin-bottom: 14px; }
.today-then-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.today-then-list li { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); padding: 14px 16px; background: var(--bg-soft); border-radius: 12px; border: 1px solid var(--hair); }
.tt-today { color: var(--faint); font-weight: 600; }
.tt-cg { color: var(--text-violet); font-weight: 600; }
.decide-box { margin-top: 22px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; }
.decide-box h4 { font-family: var(--f-display); font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.decide-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; list-style: decimal; }
.decide-box li { font-size: 14px; color: var(--muted); line-height: 1.55; }
.decide-box li strong { color: var(--ink-2); }

/* technology.html #cross-scale: interactive biotype visualization */
.viz-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; padding: 32px 34px 30px; box-shadow: 0 24px 60px -32px color-mix(in srgb, var(--cg-indigo-600) 22%, transparent); }
.viz-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.viz-slider-label { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); flex: 1; min-width: 220px; }
.viz-step-readout { font-family: var(--f-display); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
#vizSlider { width: 100%; accent-color: var(--violet); }
#vizSvg { width: 100%; height: auto; display: block; }
.viz-lane-label { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); }
.viz-reading { margin-top: 22px; padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 14px; }
.viz-reading-time { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-violet); margin-bottom: 6px; }
.viz-reading-text { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.viz-recommendation { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--cg-teal-600) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cg-teal-600) 30%, transparent); }
.viz-recommendation[hidden] { display: none; }
.viz-rec-label { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-teal); margin-bottom: 6px; }
.viz-recommendation p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.viz-caption { margin-top: 18px; font-size: 12.5px; color: var(--faint); line-height: 1.6; max-width: 74ch; }
@media (prefers-reduced-motion: reduce) { .viz-card * { transition: none !important; animation: none !important; } }
@media (max-width: 720px) { .viz-controls { flex-direction: column; align-items: stretch; } .platform-compare { grid-template-columns: 1fr; } }

/* community.html: interest checkbox group */
.interest-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* content-forms.js: error state for the shared .form-success box */
.form-success.is-error { background: color-mix(in srgb, var(--cg-coral-600) 8%, transparent); }
.form-success.is-error .fs-text strong { color: var(--text-coral); }

/* ═══════════════ TEAM ROSTER + SELF-SERVICE PROFILE EDITING (Wave 3) ═══════════════
   Additive only: reuses existing tokens, .member/.team-grid, .profile-*, .form-*,
   .empty-state and .skeleton-card systems. No new color tokens introduced. */

/* Featured (first, order:0) member and empty/fallback states span the full
   dynamic grid width instead of a single column. */
.team-grid .member-featured { grid-column: 1 / -1; }
.team-grid .empty-state { grid-column: 1 / -1; }

/* Initials fallback scales up inside the large founder-style avatar slot;
   the small/medium slots already size correctly via .member-avatar's own
   font-size, so no rule is needed there. */
.member-avatar-lg { font-size: 32px; }

/* Large-format initials fallback for a team member's bio-page hero photo
   (used when photo_url is empty). Mirrors .profile-photo's aspect ratio. */
.profile-photo-fallback { width: 100%; aspect-ratio: 1 / 1.12; display: flex; align-items: center;
  justify-content: center; font-family: var(--f-display); font-weight: 600; font-size: 48px; color: var(--on-ink);
  background: linear-gradient(135deg, var(--violet), var(--indigo)); }
/* r-qa3: this rule's own `display: flex` ties the UA default
   `[hidden] { display: none }` at equal (0,1,0) specificity, and the
   author rule wins the tie -- so team/member.html's
   `photoFallback.hidden = true` (set whenever a member HAS a photo)
   stopped actually hiding the violet gradient placeholder. The real
   photo (aspect-ratio 1/1.12, same as this fallback) rendered
   correctly above it, but the two stacked in the figure's normal
   block flow, roughly doubling its height and leaving a solid violet
   block below the photo that read as a broken/missing image. A
   dedicated `[hidden]` override (0,2,0) restores real hiding without
   touching the visible (initials-only, no photo_url) case at all. */
.profile-photo-fallback[hidden] { display: none; }

/* Generalizes the existing .field .hint rule so hint text also works
   outside a .field wrapper (sign-in prompt, photo upload status). */
.hint { font-size: 12px; color: var(--faint); font-weight: 400; line-height: 1.5; }

/* Edit-your-profile affordance on roster cards (team.html) */
.member-link-edit { color: var(--text-azure); background: color-mix(in srgb, var(--cg-azure-600) 8%, transparent); border-color: color-mix(in srgb, var(--cg-azure-600) 16%, transparent); }
.member-link-edit:hover { background: color-mix(in srgb, var(--cg-azure-600) 15%, transparent); border-color: color-mix(in srgb, var(--cg-azure-600) 30%, transparent); }

/* Photo upload control (team/member.html edit form) */
.photo-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-edit-preview { width: 68px; height: 68px; border-radius: 15px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet), var(--indigo)); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 600; color: var(--on-ink); font-size: 20px; }
.photo-edit-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-edit-initials { display: block; }
.photo-upload-btn { cursor: pointer; display: inline-flex; }

/* Live full-bio preview inside the edit form */
.edit-preview { border: 1px dashed var(--hair); border-radius: 12px; padding: 14px 16px;
  background: var(--bg-soft); max-height: 220px; overflow-y: auto; }
.edit-preview p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0 0 10px; }
.edit-preview p:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  .photo-edit { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════ R2-SHELL: REUSABLE ND-FRIENDLY COMPONENTS ═══════════════
   Shared building blocks for reducing text density on future page
   redesigns. Everything routes through existing tokens (--bg-soft,
   --ink, --violet, --hair, --dur-*, --measure, --fs-*) so these inherit
   reduce-motion, high-contrast, and larger-text automatically -- no
   new color tokens, no new motion outside what --dur-fast/--ease
   already define.

   .section-lead    Large intro statement under a .section-head; a step
                     up from .section-sub, for one standout sentence.
   .key-idea         Calm highlighted card for a single key takeaway
                     (neutral violet tint). .callout above stays the
                     amber warning/caution variant -- use that one for
                     cautions, this one for "remember this" points.
   .figure           Framed container for a chart/diagram/screenshot
                     with a .figure-caption underneath. .viz-card stays
                     dedicated to the bespoke interactive visualization
                     on technology.html.
   .stat / .metric   Big number + short label, for pull-quote
                     statistics; same rules under either class name.
   .card-grid        Responsive auto-fit card grid for when the item
                     count isn't fixed (use a bespoke N-column grid
                     when it is, as the rest of this file already does).
   .feature-row      Two-column text+visual row; add .reverse to flip
                     the visual to the left. Collapses to one column
                     under 900px.
   ═══════════════════════════════════════════════════════════════ */

.section-lead {
  font-family: var(--f-body); font-weight: 400;
  font-size: var(--fs-h5); line-height: 1.55; color: var(--ink-2);
  max-width: var(--measure); margin-top: 22px;
}
.dark .section-lead { color: var(--on-night-2); }

.key-idea {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 26px 28px; border-radius: 16px;
  background: color-mix(in srgb, var(--cg-violet-600) 6%, transparent); border: 1px solid color-mix(in srgb, var(--cg-violet-600) 18%, transparent);
  max-width: var(--measure);
}
.key-idea .ki-ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: color-mix(in srgb, var(--cg-violet-600) 14%, transparent); display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.key-idea p { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); margin: 0; }
.key-idea p strong { color: var(--ink); font-weight: 600; }
.dark .key-idea { background: color-mix(in srgb, var(--on-ink) 4%, transparent); border-color: color-mix(in srgb, var(--cg-indigo-300) 20%, transparent); }
.dark .key-idea p { color: var(--on-night-2); }
.dark .key-idea p strong { color: var(--on-night-1); }

.figure {
  background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 18px;
  padding: 20px; box-shadow: 0 20px 50px -30px color-mix(in srgb, var(--cg-indigo-600) 24%, transparent);
}
.figure img, .figure svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.figure-caption {
  margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55;
  padding-top: 14px; border-top: 1px solid var(--hair-soft);
}

.stat, .metric { display: flex; flex-direction: column; gap: 6px; }
.stat-num, .metric-num {
  font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500; letter-spacing: -0.02em; color: var(--ink); line-height: 1;
}
.stat-num .u, .metric-num .u { font-size: 0.5em; color: var(--text-violet); margin-left: 2px; }
.stat-label, .metric-label { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.dark .stat-num, .dark .metric-num { color: var(--on-night-1); }
.dark .stat-label, .dark .metric-label { color: var(--on-night-2); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row.reverse > :first-child { order: 2; }
.feature-row.reverse > :last-child { order: 1; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse > :first-child, .feature-row.reverse > :last-child { order: initial; }
}
@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ═══════════════ QUICK LINKS RAIL (sitewide, bottom-left corner) ═══════════════
   r-quicklinks3: repositioned from a vertically-centered left edge dock
   to the BOTTOM-LEFT CORNER. The centered version floated mid-page over
   full-width body copy and cards on pages like /about (roadmap
   paragraph, board/VMV cards) and read as a stray white card whenever it
   crossed a dark `.dark` section (e.g. #foundation.dark) -- docking to
   the corner instead keeps it clear of the reading column on every page
   while remaining always-visible by default: icon + short label for
   each of the 4 high-intent links, stacked in a small card, no
   click/hover required to read them. A small chevron still collapses it
   to a compact round tab in the same corner; the preference persists
   via localStorage (key "ql-collapsed"), read by ensureQuickLinksRail()
   in landing/site.js for static pages (same pattern as
   ensureUtilityBar()) and by the QuickLinksRail component for the React
   shell (LandingPage.jsx), so every page gets matching markup/behavior.
   The card's surface is an adaptive frosted-glass treatment (translucent
   fill + backdrop-filter blur/saturate + a soft border and shadow, no
   flat opaque color) so it reads cleanly whether the page content
   scrolled underneath it is light or one of the dark `.dark` sections --
   it optically "sits above" either instead of clashing as a hard-edged
   white box. An IntersectionObserver watches the sitewide footer
   (`[data-site-footer]`) and adds `.ql-near-footer` while any part of it
   is in the viewport, fading the rail out so it never overlaps footer
   content (same observer + class in both site.js and LandingPage.jsx).
   Two more space-saving states, both automatic and NOT persisted,
   layered on top of the collapsed preference:
     - 881-1439px ("narrow desktop"): the margin outside `--maxw`
       (1180px) is too tight for the full card without crowding real
       content, so this band always shows the collapsed tab regardless
       of the stored preference; clicking it still opens the card, as a
       transient floating overlay (`.is-open`) that does not persist and
       closes on outside click/Escape, popping up ABOVE the tab (this
       corner has no room to open sideways).
     - <=880px (mobile): the rail becomes a round FAB bottom-left --
       clear of the hamburger, which lives top-right, and the drawer --
       that opens a small labelled popover with the same 4 links above
       it. Only one of {desktop rail, narrow-desktop tab, mobile FAB} is
       visible at a time per breakpoint.
   Never overlaps the utility bar or a11y controls (those live
   top-right; this docks bottom-left). */
.quicklinks-rail {
  /* r-quicklinks3: stacked COLUMN (card above, toggle below), not a
     row -- a row puts the round toggle immediately to the right of
     the card, and at 1440px that pushed its right edge to ~182px,
     just past where real body content starts (container padding lands
     content at x=170px), a slim but real overlap. Stacking vertically
     keeps the whole control's width pinned to the card's own width
     (~136px), leaving a comfortable margin inside that 170px line at
     every desktop size. */
  position: fixed; left: 16px; bottom: 20px; top: auto; transform: none;
  z-index: 240; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.quicklinks-rail.ql-near-footer { opacity: 0; transform: translateY(8px); pointer-events: none; }
.ql-card {
  display: flex; flex-direction: column; gap: 2px;
  background: color-mix(in srgb, var(--bg-2) 62%, transparent);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--on-ink) 40%, transparent); border-radius: 16px;
  padding: 7px;
  box-shadow: 0 20px 44px -20px color-mix(in srgb, var(--cg-abyss) 55%, transparent), inset 0 1px 0 color-mix(in srgb, var(--on-ink) 55%, transparent);
}
/* r-quicklinks2-fit: the row's width is fixed by `.ql-label`'s own
   max-width (below), NOT by how long any given label's text is -- at
   1440px (the narrowest width this expanded card is ever shown at, see
   the media query further down) this compact corner card's fixed width
   keeps it well clear of the main content column regardless of which
   label is longest. Wrapping a label onto 2 lines (e.g. "Vote on" /
   "Features") is intentional and expected, not a bug. */
.ql-item {
  display: flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 8px; border-radius: 11px;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.ql-item:hover, .ql-item:focus-visible {
  background: color-mix(in srgb, var(--cg-violet-600) 14%, transparent); color: var(--text-violet); transform: translateX(2px);
}
.ql-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 7px;
  background: color-mix(in srgb, var(--cg-violet-600) 16%, transparent); color: var(--text-violet);
  transition: background 160ms var(--ease);
}
.ql-item:hover .ql-ico, .ql-item:focus-visible .ql-ico { background: color-mix(in srgb, var(--cg-violet-600) 26%, transparent); }
.ql-label {
  display: block; max-width: 74px;
  font-family: var(--f-display); font-size: 13px; font-weight: 500; line-height: 1.22;
  color: var(--ink-2); white-space: normal;
}
.ql-item:hover .ql-label, .ql-item:focus-visible .ql-label { color: var(--text-violet); }

/* r-quicklinks3: the toggle/FAB uses the same frosted-glass recipe as
   .ql-card (not an opaque fill) -- on very short mobile viewports where
   the hero's last text line runs close to the bottom edge, this corner
   control can end up geometrically over a few glyphs; glass keeps that
   a soft, legible overlap instead of a hard opaque disc blocking text,
   consistent with the "reads over light AND dark" goal above. */
.ql-toggle-btn {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg-2) 62%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--on-ink) 40%, transparent); color: var(--text-violet); cursor: pointer;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--cg-indigo-600) 40%, transparent);
  transition: background 160ms var(--ease);
}
.ql-toggle-btn:hover, .ql-toggle-btn:focus-visible { background: color-mix(in srgb, var(--bg-2) 82%, transparent); }
.ql-chevron { transition: transform 220ms var(--ease); flex: none; }
.ql-fab-ico { display: none; flex: none; }

/* Collapsed -- either the persisted preference, or forced by the
   narrow-desktop band / mobile FAB further down: the card disappears
   and the toggle becomes a small round tab, flush in the same
   bottom-left corner. */
.quicklinks-rail.is-collapsed .ql-card { display: none; }
.quicklinks-rail.is-collapsed .ql-toggle-btn {
  width: 42px; height: 42px; border-radius: 50%;
}
.quicklinks-rail.is-collapsed .ql-chevron { transform: rotate(180deg); }

/* Transient peek: the collapsed rail's card re-appears as a floating
   overlay (not persisted, not affecting layout) while `.is-open`,
   popping up ABOVE the corner tab (there is no room to open sideways
   from the very edge of the viewport). */
.quicklinks-rail.is-collapsed.is-open .ql-card {
  display: flex; position: absolute; left: 0; bottom: calc(100% + 10px); top: auto;
  min-width: 190px; z-index: 241;
}

@media (min-width: 881px) and (max-width: 1439px) {
  /* Narrow desktop: not enough margin outside `--maxw` for the full
     card, so this band always shows the collapsed tab regardless of
     the stored preference (r-quicklinks2/3). */
  .quicklinks-rail:not(.is-open) .ql-card { display: none; }
  .quicklinks-rail:not(.is-collapsed) .ql-toggle-btn { width: 42px; height: 42px; border-radius: 50%; }
  .quicklinks-rail:not(.is-collapsed) .ql-chevron { transform: rotate(180deg); }
  .quicklinks-rail.is-open .ql-card {
    display: flex; position: absolute; left: 0; bottom: calc(100% + 10px); top: auto;
    min-width: 190px; z-index: 241;
  }
}

@media (max-width: 880px) {
  /* Mobile: round FAB bottom-left, clear of the hamburger (top-right)
     and the off-canvas drawer. Opens a compact popover with the same 4
     labelled links; the desktop collapse preference is irrelevant here,
     so both the plain and `.is-collapsed` rail are overridden
     identically (matched specificity to the selectors above). */
  .quicklinks-rail, .quicklinks-rail.is-collapsed {
    bottom: 20px; left: 16px; z-index: 240;
  }
  .quicklinks-rail .ql-card, .quicklinks-rail.is-collapsed .ql-card { display: none; }
  .quicklinks-rail.is-open .ql-card {
    display: flex; position: absolute; left: 0; top: auto; bottom: calc(100% + 12px);
    min-width: 210px; z-index: 241;
  }
  .quicklinks-rail .ql-toggle-btn, .quicklinks-rail.is-collapsed .ql-toggle-btn {
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--hair);
    box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--cg-indigo-600) 45%, transparent);
  }
  .quicklinks-rail .ql-chevron { display: none; }
  .quicklinks-rail .ql-fab-ico { display: inline-flex; }
  .ql-item { min-height: 42px; }
  .ql-label { font-size: 13.5px; max-width: none; white-space: nowrap; }
}

/* YW5: Design v13 light and dark asset pairs (header wordmark, figures).
   Follows the token rule: data-theme on <html> wins; with no data-theme the system setting decides.
   Hide-only rules, so each image keeps the display its own component gives it. */
html[data-theme="light"] .v13-on-dark, html[data-theme="dark"] .v13-on-light { display: none !important; }
@media (prefers-color-scheme: light) { html:not([data-theme]) .v13-on-dark { display: none !important; } }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .v13-on-light { display: none !important; } }
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo-link .footer-logo { display: block; height: 28px; width: auto; margin: 0; }
.figure img.v13-on-light, .figure img.v13-on-dark { width: 100%; height: auto; }
