/* Answer-first fold (release-ui, Oct 20, 2026; owner OK, decision c.d-mock-answer-first): question, one number, a short answer and the lead chart
   on the first screen. Rules copied from the mockups' inline <style id="af"> (audit-2026-10-20/_preview/dashboard/ecommerce-share/). Loaded after
   the inlined u1/u3 styles (data-late, build16.hunk), as in the mockups. Only pages with an answer-first row carry the .af / .af-rest classes. */
.an-head.af{padding:clamp(88px,7vw,112px) var(--gut) clamp(24px,3vw,48px)}
.af .wrap{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,64px);align-items:center;justify-items:stretch}
.af-l{display:grid;gap:var(--space-3);justify-items:start;align-content:center;min-width:0}
.af-l .crumbs,.af-l .eyebrow{margin:0}
.af .an-h1{margin:0;font-size:clamp(var(--fs-8), 1.5025vw + 22.3656px, var(--fs-10));max-width:16ch;line-height:1.04}
.af-num{margin:var(--space-2) 0 0;display:grid;gap:2px}
.af-num b{display:block;font:600 clamp(var(--fs-10), 3.3804vw + 31.3235px, var(--fs-12))/1 var(--sans);letter-spacing:-.045em;color:var(--accent);font-variant-numeric:tabular-nums}
.af-num .kl{font:600 var(--fs-5)/1.35 var(--sans);color:var(--ink)}
.af-num .kn{font:400 var(--fs-label)/1.4 var(--sans);color:var(--muted)}
.af-ans{margin:0;max-width:34em}
.af-ans .card-k{margin:0 0 2px;font:600 var(--fs-label)/1.3 var(--sans);color:var(--muted)}
.af-ans p:not(.card-k){margin:0;font:500 clamp(var(--fs-5), 0.3757vw + 15.5911px, var(--fs-6))/1.4 var(--sans);letter-spacing:-.01em;color:var(--ink)}
.af-ans .af-note{margin:var(--space-1) 0 0;font:400 var(--fs-label)/1.4 var(--sans);color:var(--muted)}
.af-r{min-width:0}
.af .an-fig{display:flex;flex-direction:column}
.af .an-fig .chart-frame-plot{display:contents}
.af .an-fig .chart-frame-head{order:0;padding:var(--space-5) var(--space-5) var(--space-2)}
.af .an-fig .chart-frame-head .finding{font-size:clamp(var(--fs-5), 0.3757vw + 15.5911px, var(--fs-6));line-height:1.25}
.af .an-fig .chart-frame-head .q{display:none}
.af .an-fig .an-ch{order:1;margin:0 var(--space-3);height:clamp(220px,26vw,340px)}
.af .an-fig .chart-frame-foot{order:2;padding:var(--space-2) var(--space-5) var(--space-3)}
.af .an-fig .fig-src::before{content:"Source: "}
.af .an-fig .fig-cap{order:3;margin:0;padding:0 var(--space-5) var(--space-4)}
.af .an-fig .tbl{order:4}
.af-rest{padding-top:0}
.an-head.af-rest{padding:var(--space-5) var(--gut) var(--space-4)}
.af-rest .wrap{display:grid;gap:var(--space-4);justify-items:start}
@media (max-width:860px){
  .af .wrap{grid-template-columns:minmax(0,1fr);gap:var(--space-4)}
  .an-head.af{padding-top:76px}
  .af .an-h1{font-size:clamp(var(--fs-8), 1.2373vw + 23.3601px, var(--fs-9))}
  .af-l{gap:var(--space-2)}
  .af-l .crumbs{display:none}
  .af-num b{font-size:var(--fs-10)}
  .af-ans p:not(.card-k){font-size:var(--fs-5);line-height:1.4}
  .af .an-fig .chart-frame-head{padding:var(--space-3) var(--space-4) var(--space-1)}
  .af .an-fig .chart-frame-head .finding{font-size:var(--fs-5)}
  .af .an-fig .an-ch{height:240px;margin:0 var(--space-2)}   /* W1: plots are at least 240px tall on phones */
  .af .an-fig .btn{min-height:36px;padding:0 14px;font-size:var(--fs-3)}
  .af .an-fig .chart-frame-foot{padding:var(--space-1) var(--space-4) var(--space-2);gap:var(--space-2)}
}
/* the page's own chip beside the short answer (late deliveries: correlation, not cause; AI adoption: experimental estimates) */
.af-ans p.af-note{margin:var(--space-2) 0 0;font:400 var(--fs-label)/1.3 var(--sans);letter-spacing:0}
.af-note .chip{background:transparent;border-color:var(--line);color:var(--ink-2)}
/* pages with live data: the "next release" chip sits in the band under the fold, so on desktop the fold fills the first screen
   (on phones the band already starts below it) */
@media (min-width:861px){.an-head.af.af-tall{min-height:100svh;display:grid;align-content:center}}
/* pages with a 3D figure (online retail, customer segments, supply chain): chrome.js floats the 3D / Simple view switch at the top centre
   (.v3d-float, top 78px, 48px tall) on desktop; the fold starts under it */
@media (min-width:861px){body[data-v3d-page] .an-head.af{padding-top:150px}}

/* pass 4A (proof-first mockup): the Work tile's title morphs into this headline (cross-document view transition) */
.an-h1 { view-transition-name: m-hero; }
::view-transition-group(m-hero) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(m-hero), ::view-transition-new(m-hero) { height: 100%; object-fit: contain; object-position: left top; }
/* pass 4B: the answer-first header settles once on load (transform only, so it never hides the answer; none under reduced motion) */
@media (prefers-reduced-motion:no-preference){.js .af-l,.js .af-r{animation:m-settle .7s cubic-bezier(.16,1,.3,1) both}.js .af-r{animation-delay:.08s}}
@keyframes m-settle{from{transform:translateY(10px)}}

/* W1 analysis-page top (owner OK 29 Oct, decision c.d-w1-analysis-r1): the lead chart carries its number, the credit line sits under
   the short answer, and one row of four links (Table, CSV, SQL or Sources, Method) replaces the lead chart's two buttons. The row comes
   straight after the source line so it stays on the first phone screen; the caption follows, then the table when it is opened. */
.af-by{margin:0;font:400 var(--fs-label)/1.4 var(--sans);color:var(--muted)}
.af-by b{font-weight:500;color:var(--ink)}
.af .an-fig .af-cn{margin:0 0 var(--space-1);font:500 11px/1.4 var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.af .an-fig .chart-frame-foot .btns{display:none}
.af-jump{order:3;display:flex;flex-wrap:wrap;gap:var(--space-2);padding:0 var(--space-5) var(--space-3)}
.af-j{box-sizing:border-box;min-height:44px;padding:0 20px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:999px;
  background:transparent;color:var(--accent);font:500 var(--fs-3)/1 var(--sans);text-decoration:none;cursor:pointer}
.af-j:hover{border-color:var(--accent)}
.af-j[aria-expanded="true"]{background:var(--accent);border-color:var(--accent);color:var(--bg)}
.af-j:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.af .an-fig .tbl{order:4}
.af .an-fig .fig-cap{order:5;padding-top:var(--space-1)}
.af-kfig{margin-top:var(--space-6)}
.af-kfig .md-h3{margin:0 0 var(--space-3)}
@media (max-width:860px){
  .af-jump{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 var(--space-3) var(--space-2)}
  .af-j{padding:0 4px}
  /* the round-1 mockup's phone sizes, so question, figure, short answer, lead chart and the row fit one 390 x 844 screen */
  .af .an-h1{font-size:25px;line-height:1.12;max-width:none;text-wrap:balance}
  .af-num{margin-top:0}
  .af-num b{font-size:40px}
  .af-num .kl{font-size:15px;font-weight:500;margin-top:2px}
  .af-num .kn{font-size:13px}
  .af-ans p:not(.card-k){font-size:15px;font-weight:400;line-height:1.45;color:var(--ink-2);letter-spacing:0}
  .af-l{gap:6px}
  .af .wrap{gap:var(--space-3)}
  .af .an-fig .chart-frame-head .finding{font-size:16px;line-height:1.25}
  .af .an-fig .chart-frame-head{padding-top:10px}
  .af .an-fig .af-cn{margin:0}
  .af .wrap{gap:10px}
  .af .an-fig .chart-frame-foot{padding-bottom:var(--space-1)}
}
