/* annmasten.org — premium polish layer v3
   Load LAST in <head> (after every inline <style>). Sections 1-7: pure CSS refinements.
   Section 8 styles the UX layer added by /ux.js. Remove the <link> to revert. */

/* ---------- 1. Tokens ---------- */
:root {
  --pl-ease: cubic-bezier(.2, .7, .2, 1);
  --pl-r-card: 20px;
  --pl-r-panel: 24px;
  --pl-hair: color-mix(in srgb, var(--line) 82%, var(--ink) 18%);
  --pl-sheen: inset 0 1px 0 rgba(255, 255, 255, .8);
  --pl-sh-1: 0 1px 1px rgba(43, 29, 22, .04), 0 3px 8px -2px rgba(43, 29, 22, .05), 0 16px 36px -14px rgba(43, 29, 22, .14);
  --pl-sh-2: 0 1px 1px rgba(43, 29, 22, .05), 0 8px 18px -6px rgba(43, 29, 22, .10), 0 34px 64px -22px rgba(43, 29, 22, .28);
  --pl-fine: #5f4b3d;                 /* fine print: a step darker than --muted */
  --pl-ring: color-mix(in srgb, var(--gold) 80%, var(--ink) 20%);
}
:root[data-theme="dark"] {
  --pl-hair: color-mix(in srgb, var(--line) 75%, #fff 10%);
  --pl-sheen: inset 0 1px 0 rgba(255, 255, 255, .045);
  --pl-sh-1: 0 1px 1px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .55);
  --pl-sh-2: 0 1px 1px rgba(0, 0, 0, .35), 0 34px 64px -22px rgba(0, 0, 0, .7);
  --pl-fine: #c9b6a5;
  --pl-ring: var(--gold);
}

/* ---------- 2. Typography finish ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: color-mix(in srgb, var(--ink) 26%, transparent) transparent; }
body { font-kerning: normal; font-feature-settings: "kern", "liga", "calt"; }
h1, h2, h3 { font-feature-settings: "kern", "liga", "calt"; text-rendering: optimizeLegibility; }
h1 em, h2 em, h3 em { padding-right: .04em; }            /* italic overhang doesn't clip */
.amt, .trust dd, .stat, .stats b { font-variant-numeric: lining-nums proportional-nums; }

/* Fine print: legible floor, darker ink.
   :not(#pl) lifts specificity over the site's own patch sheets (.mh-photo .portrait-credit etc.) */
:is(.portrait-credit, .mh-src, .indep, .c-fine, .bc-txt small, .who, .evb > span,
.trust small, .trust dd a, .nl-note, .any, .ev-note, .bk-fine):not(#pl) {
  font-size: max(13.5px, .78rem);
  line-height: 1.55;
  color: var(--pl-fine);
}
.c-fine a, .indep a, .any a { color: inherit; }

/* Small caps labels: one consistent voice */
:is(.eyebrow, .mh-kicker, .c-kicker, .tracks-h, .lname, .lbl, .trust dt):not(#pl) {
  font-size: max(12px, .7rem);
  letter-spacing: .19em;
  font-weight: 650;
}
.eyebrow { display: inline-flex; align-items: center; gap: .8em; }
.eyebrow::before {
  content: ""; flex: 0 0 auto; width: 1.75em; height: 1px;
  background: currentColor; opacity: .5;
}
.center .eyebrow::after, .sec-head.center .eyebrow::after {
  content: ""; flex: 0 0 auto; width: 1.75em; height: 1px; background: currentColor; opacity: .5;
}

/* Narrow screens: rule ornament off (labels wrap), tighter tracking, compact credits */
@media (max-width: 640px) {
  .eyebrow { display: block; }
  .eyebrow::before, .eyebrow::after { display: none; }
  :is(.eyebrow, .mh-kicker, .c-kicker, .tracks-h, .lname, .lbl, .trust dt):not(#pl) { letter-spacing: .14em; font-size: 11.5px; }
  :is(.portrait-credit, .mh-src):not(#pl) { font-size: 12.5px; line-height: 1.45; }
}

/* Body links: refined hairline underline (only refines links that are already underlined) */
main :is(p, li, dd, figcaption, blockquote, cite) a:not(.btn),
footer p a, .faq a {
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  transition: text-decoration-color .2s, color .2s;
}
main :is(p, li, dd, figcaption, blockquote, cite) a:not(.btn):hover,
footer p a:hover, .faq a:hover { text-decoration-color: currentColor; }

/* ---------- 3. Header ---------- */
.site-head {
  border-bottom-color: color-mix(in srgb, var(--line) 65%, transparent);
  view-transition-name: site-head;
}
@supports (animation-timeline: scroll()) {
  .site-head {
    animation: pl-hdr linear both;
    animation-timeline: scroll(root);
    animation-range: 0 140px;
  }
  @keyframes pl-hdr {
    from { box-shadow: 0 0 0 rgba(43, 29, 22, 0); }
    to   { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 28px -20px rgba(43, 29, 22, .45); }
  }
}
@media (hover: hover) {
  .site-head .nav a:not(.nav-give) { position: relative; }
  .site-head .nav a:not(.nav-give)::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 7px; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: 50% 50%;
    transition: transform .35s var(--pl-ease);
  }
  .site-head .nav a:not(.nav-give):hover::after,
  .site-head .nav a:not(.nav-give)[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- 4. Buttons ---------- */
.btn {
  letter-spacing: .005em;
  transition: transform .3s var(--pl-ease), box-shadow .3s var(--pl-ease),
              background-color .2s, color .2s, border-color .2s;
}
.btn-gold, .site-head .nav a.nav-give:not(#pl) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, 0) 60%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    inset 0 -1px 0 rgba(90, 52, 4, .14),
    0 1px 2px rgba(127, 77, 8, .22),
    0 10px 24px -10px color-mix(in srgb, var(--gold) 75%, transparent);
}
.btn-gold:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(90, 52, 4, .14),
    0 2px 4px rgba(127, 77, 8, .2),
    0 18px 34px -12px color-mix(in srgb, var(--gold) 80%, transparent);
}
.btn-ghost { border-width: 1px; border-color: color-mix(in srgb, var(--ink) 50%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn > span[aria-hidden="true"], .level .go .ext {
  display: inline-block; transition: transform .35s var(--pl-ease);
}
@media (hover: hover) {
  .btn:hover > span[aria-hidden="true"] { transform: translateX(3px); }
  .level:hover .go .ext { transform: translate(2px, -2px); }
}

/* Newsletter: the Subscribe button had no style (class "primary") */
.nl-form .btn.primary {
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  min-height: 44px; padding: 9px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 20px -12px rgba(43, 29, 22, .6);
  cursor: pointer;
}
.nl-form .btn.primary:hover { background: var(--gold); border-color: var(--gold); color: #1f1404; }
.nl-field input {
  min-height: 44px; border-radius: 12px; background: var(--surface);
  border-color: var(--pl-hair); font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.nl-note:not(#pl) { margin-top: 10px; }
.nl-field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent);
}

/* ---------- 5. Surfaces: one card system ---------- */
.level, .ev, .book, .trust, .bc-embed {
  border-color: var(--pl-hair);
  box-shadow: var(--pl-sheen), var(--pl-sh-1);
}
.level, .ev { border-radius: var(--pl-r-card); }
.book { border-radius: 18px; }
.trust, .campaign { border-radius: var(--pl-r-panel); }
.bc-embed { border-radius: 14px; }
.campaign { border-color: var(--pl-hair); box-shadow: var(--pl-sheen), var(--pl-sh-2); }
.level { transition: transform .4s var(--pl-ease), box-shadow .4s var(--pl-ease), border-color .3s; }
@media (hover: hover) {
  .level:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
    box-shadow: var(--pl-sheen), var(--pl-sh-2);
  }
}
.level.feature { border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), var(--pl-sh-1); }
@media (hover: hover) {
  .level.feature:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), var(--pl-sh-2); }
}
.fund-band ul li { border-color: var(--pl-hair); box-shadow: var(--pl-sheen); }

/* Dark bands: a whisper of paper grain + soft vignette */
.honor, .quote-band { position: relative; isolation: isolate; }
.honor::after, .quote-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .28) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .82 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 6. FAQ ---------- */
.faq { interpolate-size: allow-keywords; }
.faq details { border-bottom-color: var(--pl-hair); }
.faq summary { transition: color .2s; }
@media (hover: hover) { .faq summary:hover { color: var(--accent); } }
.faq summary::after {
  content: ""; width: 9px; height: 9px; top: 50%; right: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink);
  transform: rotate(45deg); transition: transform .35s var(--pl-ease), margin-top .35s var(--pl-ease);
}
.faq details[open] summary::after { content: ""; transform: rotate(-135deg); margin-top: -2px; }
.faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .4s var(--pl-ease), content-visibility .4s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* ---------- 7. Focus, selection, motion ---------- */
:is(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--pl-ring); outline-offset: 3px;
}
::selection { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--ink); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--pl-ease); }

/* ---------- 8. UX layer (v2, pairs with /ux.js) ---------- */
html { scroll-padding-top: 84px; }
@media (max-width: 860px) { html { scroll-padding-top: 76px; } }
main:focus { outline: none; }

/* Reading progress: a hairline of gold under the header */
@supports (animation-timeline: scroll()) {
  .site-head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 45%, var(--accent)));
    transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
    animation: ux-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes ux-progress { to { transform: scaleX(1); } }
}

/* Back to top */
.ux-top {
  position: fixed; z-index: 45;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  color: var(--ink); background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--pl-hair); box-shadow: var(--pl-sheen), var(--pl-sh-1);
  -webkit-backdrop-filter: blur(8px) saturate(1.3); backdrop-filter: blur(8px) saturate(1.3);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); pointer-events: none;
  transition: opacity .3s var(--pl-ease), transform .3s var(--pl-ease), visibility 0s .3s,
              background-color .2s, color .2s, border-color .2s;
}
.ux-top.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.ux-top svg { width: 18px; height: 18px; }
@media (hover: hover) { .ux-top:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); } }

/* "On this page" index: quiet ticks that open into labels */
.ux-toc { display: none; }
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .ux-toc {
    display: block; position: fixed; z-index: 40; right: 10px; top: 50%; transform: translateY(-50%);
    padding: 10px 8px; border-radius: 16px; border: 1px solid transparent;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility 0s .3s, background-color .25s, box-shadow .25s, border-color .25s;
  }
  .ux-toc.on { opacity: 1; visibility: visible; transition-delay: 0s; }
  .ux-toc-h {
    margin: 0 4px 6px; text-align: right; color: var(--muted);
    font: 650 11px/1 "Source Serif 4", Georgia, serif; letter-spacing: .16em; text-transform: uppercase;
    max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s var(--pl-ease), opacity .2s;
  }
  .ux-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
  .ux-toc a {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    min-height: 26px; padding: 2px 4px; border-radius: 8px;
    color: var(--ink-2); text-decoration: none;
    font: 500 13.5px/1.2 "Source Serif 4", Georgia, serif;
  }
  .ux-toc a span {
    max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    transition: max-width .35s var(--pl-ease), opacity .2s;
  }
  .ux-toc i {
    flex: 0 0 auto; width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: .28;
    transition: width .3s var(--pl-ease), opacity .2s, background-color .2s;
  }
  .ux-toc a[aria-current] { color: var(--ink); }
  .ux-toc a[aria-current] i { width: 22px; opacity: 1; background: var(--gold); }
  .ux-toc:hover, .ux-toc:focus-within {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-color: var(--pl-hair); box-shadow: var(--pl-sheen), var(--pl-sh-2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .ux-toc:hover .ux-toc-h, .ux-toc:focus-within .ux-toc-h { max-height: 20px; opacity: 1; }
  .ux-toc:hover a span, .ux-toc:focus-within a span { max-width: 260px; opacity: 1; }
  .ux-toc a:hover { color: var(--accent); }
  .ux-toc a:hover i { opacity: .7; }
}

/* Copy-link buttons on section headings */
.ux-anchor {
  display: inline-grid; place-items: center; vertical-align: middle; position: relative; top: -.08em;
  width: 32px; height: 32px; margin-left: .2em; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;
  opacity: 0; transition: opacity .2s, color .2s, background-color .2s;
}
.ux-anchor svg { width: 18px; height: 18px; }
h2:hover > .ux-anchor, .ux-anchor:focus-visible { opacity: 1; }
@media (hover: hover) { .ux-anchor:hover { color: var(--accent); background: color-mix(in srgb, var(--gold) 14%, transparent); } }
@media (hover: none) { .ux-anchor { opacity: .45; } }
.honor .ux-anchor, .quote-band .ux-anchor { color: var(--inv-muted); }

/* Toast */
.ux-toast {
  position: fixed; z-index: 60; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 600 14px/1.2 "Source Serif 4", Georgia, serif;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity .25s var(--pl-ease), transform .25s var(--pl-ease);
}
.ux-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ux-toast:empty { display: none; }

/* Mobile menu: dim the page behind it and stop it scrolling */
.ux-scrim {
  position: fixed; inset: 0; z-index: 49; background: rgba(22, 16, 13, .34);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
html.ux-menu-open .ux-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
html.ux-menu-open { overflow: hidden; }   /* root only: locking <body> too would break the sticky header */

@media print { .ux-top, .ux-toc, .ux-toast, .ux-anchor, .ux-scrim { display: none !important; } }

/* ---------- 9. Design v3 ---------- */
/* YouthBank guide: long-form sections read as one centered column (hero stays wide) */
@media (min-width: 1100px) { .yb-sec > .wrap { max-width: 900px; } }

/* Phones: footer links become a tidy two-column directory; newsletter fields stack */
@media (max-width: 640px) {
  footer.site-foot nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; row-gap: 0; }
  footer.site-foot nav a {
    min-height: 44px; padding: 6px 0; font-size: 15px; line-height: 1.25;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }
  .nl-form .nl-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .nl-form .nl-row .nl-field, .nl-form .nl-row .nl-field input[name] { width: 100%; flex: none; }
  .nl-form .nl-row .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ux-top, .ux-toc, .ux-toc a span, .ux-toc i, .ux-toc-h, .ux-toast, .ux-scrim { transition: none !important; }
  .site-head::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .level, .btn, .btn > span[aria-hidden="true"], .level .go .ext,
  .faq summary::after, .faq details::details-content, .site-head .nav a::after { transition: none !important; }
  .level:hover { transform: none; }
  .site-head { animation: none; }
}

/* 10. Typography v4 */
:is(h1,h2,h3):not(#pl){text-wrap:balance}
:is(main p,main li,main blockquote):not(#pl){text-wrap:pretty}
main p a:not([class]):not(#pl){text-decoration-thickness:from-font;text-underline-offset:.2em}
html{scrollbar-width:thin;scrollbar-color:rgba(120,100,80,.35) transparent}

/* 11. Design v5: name fix + liquid glass */
h1:not(#pl){text-wrap:wrap}
:root{
  --gl-bg:rgba(255,251,244,.58);--gl-bg-strong:rgba(255,251,244,.78);
  --gl-edge:rgba(255,255,255,.65);--gl-edge-lo:rgba(120,90,60,.16);
  --gl-spec:linear-gradient(135deg,rgba(255,255,255,.55) 0%,rgba(255,255,255,.12) 38%,rgba(255,255,255,0) 62%);
  --gl-shadow:0 10px 30px -12px rgba(43,29,22,.35),0 2px 6px -2px rgba(43,29,22,.12);
  --gl-in:inset 0 1px 0 rgba(255,255,255,.85),inset 0 -1px 0 rgba(255,255,255,.25),inset 0 0 22px rgba(255,255,255,.18);
}
:root[data-theme="dark"]{
  --gl-bg:rgba(34,26,22,.55);--gl-bg-strong:rgba(34,26,22,.78);
  --gl-edge:rgba(255,255,255,.16);--gl-edge-lo:rgba(0,0,0,.4);
  --gl-spec:linear-gradient(135deg,rgba(255,255,255,.16) 0%,rgba(255,255,255,.04) 38%,rgba(255,255,255,0) 62%);
  --gl-shadow:0 12px 34px -12px rgba(0,0,0,.65),0 2px 6px -2px rgba(0,0,0,.4);
  --gl-in:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -1px 0 rgba(255,255,255,.04),inset 0 0 22px rgba(255,255,255,.04);
}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .site-head:not(#pl){
    background:var(--gl-spec),var(--gl-bg-strong);
    -webkit-backdrop-filter:blur(18px) saturate(1.7);backdrop-filter:blur(18px) saturate(1.7);
    box-shadow:var(--gl-in);
  }
  .ux-top:not(#pl){
    background:var(--gl-spec),var(--gl-bg);
    -webkit-backdrop-filter:blur(16px) saturate(1.8);backdrop-filter:blur(16px) saturate(1.8);
    border-color:var(--gl-edge);box-shadow:var(--gl-in),var(--gl-shadow);
  }
  .ux-toast:not(#pl){
    background:var(--gl-spec),rgba(43,29,22,.72);color:#fff;
    -webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 12px 30px -10px rgba(0,0,0,.5);
  }
  .glass{
    background:var(--gl-spec),var(--gl-bg);border:1px solid var(--gl-edge);border-radius:20px;
    -webkit-backdrop-filter:blur(18px) saturate(1.7);backdrop-filter:blur(18px) saturate(1.7);
    box-shadow:var(--gl-in),var(--gl-shadow);
  }
  @media (min-width:1280px) and (hover:hover) and (pointer:fine){
    .ux-toc:not(#pl):hover,.ux-toc:not(#pl):focus-within{
      background:var(--gl-spec),var(--gl-bg);border:1px solid var(--gl-edge);
      -webkit-backdrop-filter:blur(18px) saturate(1.7);backdrop-filter:blur(18px) saturate(1.7);
      box-shadow:var(--gl-in),var(--gl-shadow);
    }
  }
  @media (hover:hover){
    .ux-top:not(#pl):hover{background:var(--gl-spec),var(--gl-bg-strong);color:var(--ink);transform:translateY(-1px) scale(1.04)}
  }
}
@media (prefers-reduced-transparency:reduce){
  .site-head:not(#pl),.ux-top:not(#pl),.ux-toast:not(#pl),.glass,.ux-toc:not(#pl){
    background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none;
  }
}

/* 12. Design v6: funding pathways + glass extension */
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .mnav-panel:not(#pl){background:var(--gl-spec),var(--gl-bg-strong);-webkit-backdrop-filter:blur(22px) saturate(1.8);backdrop-filter:blur(22px) saturate(1.8);border:1px solid var(--gl-edge);box-shadow:var(--gl-in),var(--gl-shadow)}
  .facts-line li:not(#pl){background:var(--gl-spec),var(--gl-bg);-webkit-backdrop-filter:blur(10px) saturate(1.5);backdrop-filter:blur(10px) saturate(1.5);border-color:var(--gl-edge);box-shadow:var(--gl-in)}
  .btn-ghost:not(#pl){background:var(--gl-spec),var(--gl-bg);-webkit-backdrop-filter:blur(12px) saturate(1.6);backdrop-filter:blur(12px) saturate(1.6);box-shadow:var(--gl-in)}
  .mh-fund:not(#pl){background:var(--gl-spec),var(--gl-bg-strong);-webkit-backdrop-filter:blur(20px) saturate(1.6);backdrop-filter:blur(20px) saturate(1.6);border-color:var(--gl-edge);box-shadow:var(--gl-in),var(--gl-shadow)}
}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .glass{background:var(--surface);border:1px solid var(--line);border-radius:20px}
}
@media (prefers-reduced-transparency:reduce){
  .mnav-panel:not(#pl),.facts-line li:not(#pl),.btn-ghost:not(#pl),.mh-fund:not(#pl){background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none}
}
.ft-card.glass,.ft-3>.glass,.pj-form.glass,.pj-table.glass{border-color:var(--gl-edge-lo)}
.ft-filter{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 6px}
.ft-filter label{display:flex;flex-direction:column;gap:4px;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.ft-filter select{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;font-weight:600;text-transform:none;letter-spacing:0;font-size:1rem}
.ft-count{font-size:.9rem;color:var(--muted);margin:6px 0 14px}
.ft-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.ft-card{padding:18px}
.ft-card[hidden]{display:none}
.ft-card header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.ft-chip{font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:4px 10px;border-radius:999px;border:1px solid}
.ft-open{color:#1d6b46;background:#e3f4ea;border-color:#9fd3b5}
.ft-check{color:#8a5a00;background:#fdf1d6;border-color:#e6c982}
.ft-closed{color:#6b5f58;background:#eee8e3;border-color:#d4cac2}
:root[data-theme="dark"] .ft-open{color:#8fe0b3;background:rgba(40,120,80,.25);border-color:rgba(143,224,179,.35)}
:root[data-theme="dark"] .ft-check{color:#f0cf86;background:rgba(160,110,20,.25);border-color:rgba(240,207,134,.35)}
:root[data-theme="dark"] .ft-closed{color:#c9beb6;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18)}
.ft-where{font-size:.8rem;color:var(--muted);font-weight:600}
.ft-card h3{font-size:1.1rem;line-height:1.25;margin:0 0 10px}
.ft-card dl{margin:0;display:grid;gap:6px}
.ft-card dl div{display:grid;grid-template-columns:92px 1fr;gap:8px;font-size:.9rem;line-height:1.4}
.ft-card dt{color:var(--muted);font-weight:700}
.ft-card dd{margin:0}
.ft-adult{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--line);font-size:.88rem;line-height:1.45}
.ft-3{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));margin-top:16px}
.ft-3>div{padding:18px}
.ft-3 h3{margin:0 0 6px;font-size:1.05rem}
.ft-3 p{margin:0;font-size:.95rem;line-height:1.5}
.pj-steps{padding-left:1.2em;display:grid;gap:10px;line-height:1.55}
.pj-form{display:grid;gap:14px;padding:20px;max-width:680px}
.pj-form label{display:grid;gap:6px;font-weight:700;font-size:.9rem}
.pj-form input,.pj-form textarea{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);font:inherit;font-weight:400;min-height:44px}
.pj-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0}
.pj-hint{margin:0;font-size:.85rem;color:var(--muted)}
.pj-table{max-width:520px;overflow:hidden}
.pj-table table{width:100%;border-collapse:collapse}
.pj-table th,.pj-table td{padding:6px 10px;border-bottom:1px solid var(--line);text-align:left}
.pj-table input{width:100%;padding:8px;border:0;border-bottom:1px dashed var(--line);background:transparent;color:var(--ink);font:inherit;min-height:40px}
.pj-table tfoot th,.pj-table tfoot td{font-weight:800;border-bottom:0}
@media print{.pj-actions,.ft-filter{display:none}}

/* 13. Design v8: modern web platform layer (progressive enhancement) */
html{scrollbar-gutter:stable;interpolate-size:allow-keywords}
/* Cross-document view transitions: pages crossfade, header stays put */
@view-transition{navigation:auto}
::view-transition-old(root){animation:pl-vt-out .22s var(--pl-ease) both}
::view-transition-new(root){animation:pl-vt-in .32s var(--pl-ease) both}
@keyframes pl-vt-out{to{opacity:0;transform:translateY(-6px)}}
@keyframes pl-vt-in{from{opacity:0;transform:translateY(8px)}}
/* Optical centering of button labels */
@supports (text-box:trim-both cap alphabetic){
  .btn,.btn-gold,.btn-ghost{text-box:trim-both cap alphabetic}
}
/* Scroll-driven reveal: sections ease in as they enter the viewport */
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    main>section:not(:first-child)>.wrap{
      animation:pl-reveal linear both;animation-timeline:view();animation-range:entry 0% entry 28%;
    }
    @keyframes pl-reveal{from{opacity:.001;transform:translateY(22px)}to{opacity:1;transform:none}}
  }
}
/* Skip rendering work for far-below-the-fold sections */
main>section:nth-of-type(n+4){content-visibility:auto;contain-intrinsic-size:auto 900px}
/* Forms grow with their content */
.pj-form textarea{field-sizing:content;min-height:96px}
/* Entry animations for floating UI */
@starting-style{.ux-toast.on{opacity:0;transform:translate(-50%,12px)}}
@media (prefers-reduced-motion:reduce){
  ::view-transition-old(root),::view-transition-new(root){animation:none}
}
@media print{main>section{content-visibility:visible}}
