/* FitCalc — site-wide styles, "All Calculators" design.
   Cool paper (#F5F7FA), white cards, indigo accent, Figtree everywhere.
   Design imported from claude.ai/design: design/all-calculators/FitCalc All Calculators.dc.html
   Source of truth for every value below: FitCalc/design/all-calculators/CONTRACT.md — built to it exactly.
   This replaces the earlier "Coach's Notebook" (Petrona/Karla, cream, navy) direction —
   see design/CONTRACT.md for that superseded spec. */

/* LIGHT ONLY (owner decision, 2026-08-20, carried into this design too — see FitCalc/CLAUDE.md).
   The imported source itself never defines a dark variant; nothing below reacts to
   prefers-color-scheme, and color-scheme:light stops the browser from force-darkening
   form controls / scrollbars against a visitor's dark OS preference. */
:root {
  color-scheme: light;

  --bg:         #F5F7FA;
  --surface:    #FFFFFF;
  --text:       #131829;
  --divider:    #E2E6EE;

  --neutral-100: #F1F4F9;
  --neutral-200: #E7EBF3;
  --neutral-300: #D2D8E5;
  --neutral-400: #A9B2C6;
  --neutral-500: #8A93A8;
  --neutral-600: #69728A;
  --neutral-700: #4B5470;
  --neutral-800: #2A3149;

  --accent:      #3A32B8;
  --accent-100:  #EEEDFC;
  --accent-200:  #DCD9F8;
  --accent-300:  #B9B3F0;
  --accent-400:  #7E76DC;
  --accent-500:  #3A32B8;
  --accent-600:  #312AA0;
  --accent-700:  #282288;
  --accent-800:  #1B1764;
  --accent-900:  #12103F;

  --accent-2:     #F29A1F;
  --accent-2-100: #FFF4E3;
  --accent-2-200: #FDE6C4;
  --accent-2-300: #FBD293;
  --accent-2-400: #F7B455;
  --accent-2-500: #F29A1F;
  --accent-2-600: #D07F10;
  --accent-2-700: #A4630B;
  --accent-2-800: #7A4907;
  --accent-2-900: #4E2F04;

  --link: var(--accent-600);
  --warn: var(--accent-2-800);
  --warn-wash: var(--accent-2-100);

  /* Barbell plate diagram colours — not part of the imported palette (the design
     leaves these as literal colours in its own JS, CONTRACT.md §4.7), kept as-is
     from the previous build so the diagram still reads as steel + coloured plates
     rather than four shades of the new indigo. */
  --steel:  #B9B0A0;
  --chrome: #DCDCD6;
  --plate-25:   #B84A3C;
  --plate-10:   #D8A72E;
  --plate-2-5:  #5E7A4F;

  --r-lg: 24px;   /* form / result / author cards */
  --r:    16px;   /* stat / table / faq / other-calc cards */
  --r-sm: 14px;   /* select / time inputs, small blocks */
  --r-xl: 20px;   /* ad slot */
  --pill: 999px;

  --shadow-card:   0 1px 2px rgba(19,24,41,.04), 0 12px 32px -20px rgba(19,24,41,.18);
  --shadow-result: 0 1px 2px rgba(19,24,41,.04), 0 20px 48px -28px rgba(27,23,100,.35);
  --shadow-btn:    0 1px 2px rgba(19,24,41,.1);
  --shadow-pin:    0 10px 22px -16px rgba(50,38,18,.35);

  --font-display: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 51.25rem;    /* 820px — content column, CONTRACT.md §3 */
  --wrap-wide: 68rem;

  --pad-page: clamp(16px, 4vw, 40px);
  --pad-card: clamp(18px, 3vw, 30px);

  /* Spacing scale. The imported file references var(--space-1..8) throughout but
     never defines them inline — they live in the design system bundle this site
     does not import (see the file header: no _ds_bundle.js, no design-system
     classes). Reconstructed here as a plain 4px base scale, the most common
     convention and the one that fits every gap the file spells out literally
     (8px card-grid gaps, 6px ladder gaps) as a multiple of 4. Documented as an
     inferred value in CONTRACT.md §1. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* The blanket rule above (.01ms, not 0) exists for an old Safari quirk where a
   literal 0s transition sometimes never fired transitionend — it gets every
   animation on the site imperceptibly close to instant. This second rule takes
   the design's own reveal/lift/press motion (CONTRACT.md §5) to genuinely no
   animation at all, so a reduced-motion visitor never sees so much as a flicker
   of movement — matching the source file's own #fc-page reduced-motion guard. */
@media (prefers-reduced-motion: reduce) {
  .fc-reveal, .result, .result-hero::before, .result.is-revealed .ladder-row,
  .result.is-revealed .plate, .card, .stat, .faq details, .btn, .chip span,
  .certpins img, .certgrid img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-page); }
main { max-width: var(--wrap); margin: 0 auto; padding: clamp(26px,5vw,44px) var(--pad-page) 80px; }
main.wide { max-width: var(--wrap-wide); }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 40;
  background: var(--surface); color: var(--text);
  padding: .7rem 1.1rem; border-radius: var(--pill); border: 1px solid var(--divider);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */
/* Sticky, translucent, blurred — CONTRACT.md §4.1. */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245,247,250,.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.head-inner {
  max-width: var(--wrap-wide);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; min-height: 60px;
  padding-top: var(--space-3); padding-bottom: var(--space-3);
}
.brand-group { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
/* "part of FitActo" — a white plate the wordmark sits on, the same fixed-white
   device the certificate thumbnails use. No coach photo here (see item 1 in the
   task brief): the chip is the only credibility mark in the header. */
.brand-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border-radius: var(--pill);
  padding: .3rem .7rem .3rem .8rem; text-decoration: none;
}
.brand-chip span { font-size: 12.5px; font-weight: 500; color: var(--neutral-600); }
.brand-chip img { display: block; height: 15px; width: auto; }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.site-nav a {
  color: var(--neutral-700); text-decoration: none;
  padding: 7px 14px; border-radius: var(--pill);
  transition: background-color .18s ease, color .18s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent-800); font-weight: 600; background: var(--accent-100); }

/* ------------------------------------------------------------------ type */
h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.03; letter-spacing: -.045em; font-weight: 900;
  margin: 0 0 var(--space-3); text-wrap: balance;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 31px);
  line-height: 1.2; letter-spacing: -.02em; font-weight: 800;
  margin: var(--space-8) 0 var(--space-3); text-wrap: balance;
}
h3 { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; margin: var(--space-6) 0 var(--space-2); }
p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent-800); }
strong { font-weight: 700; color: var(--text); }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--divider); margin: 2.2rem 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--neutral-100); padding: .1em .4em; border-radius: 4px; }

.lede { font-size: clamp(17px,2.2vw,20px); line-height: 1.6; color: var(--neutral-700); margin-bottom: var(--space-6); max-width: 58ch; text-wrap: pretty; }
main p { max-width: 64ch; color: var(--neutral-800); line-height: 1.7; font-size: 17.5px; }
main li { color: var(--neutral-800); }
.meta { font-size: .85rem; color: var(--neutral-500); margin: 0 0 1.3rem; }

/* breadcrumb trail — an <ol> for the schema, so the list styling has to be undone */
.crumbs { margin: 0 0 var(--space-4); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem;
  list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; font-size: .82rem; color: var(--neutral-500); line-height: 1.4; }
.crumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--neutral-400); }
.crumbs a { color: var(--neutral-500); text-decoration: none; border-bottom: 1px solid var(--divider); }
.crumbs a:hover { color: var(--link); border-bottom-color: currentColor; }
.crumbs [aria-current] { color: var(--neutral-700); }

/* pill eyebrow — "Strength · Tool 5 of 5" (+ a truthful second pill on the
   calculator pages themselves, CONTRACT.md §4.2) */
.eyebrow-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-3); }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600;
  border-radius: var(--pill); padding: 6px 13px; margin: 0;
  color: var(--accent-800); background: var(--accent-100);
}
.eyebrow-row .eyebrow { margin-bottom: 0; }
.eyebrow--free { color: var(--accent-2-800); background: var(--accent-2-100); }
.microlabel {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--neutral-500);
}

/* coach note — italic aside, no avatar (task item 1: the quote survives, the
   46px photo next to it does not) */
.coachnote {
  background: var(--accent-100); border-radius: var(--r-sm);
  padding: var(--space-4) var(--space-5); margin: 0 0 var(--space-6);
}
.coachnote p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.06rem; line-height: 1.55; color: var(--accent-800); margin: 0; max-width: none;
}
.coachnote p span { color: var(--neutral-600); font-style: normal; font-weight: 400; }

/* --------------------------------------------------------------- the tool */
.calc {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--r-lg); padding: var(--space-6) var(--pad-card) var(--space-5); margin: 0 0 var(--space-4);
  box-shadow: var(--shadow-card);
}
.calc > .microlabel {
  display: block; margin-bottom: var(--space-6);
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: -.02em; text-transform: none; color: var(--text);
}

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--space-4) var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
/* Any author rule that sets `display` beats the browser's own [hidden] rule, so the line above
   silently un-hid the imperial inputs: the unit switch set hidden="" and the fields stayed on
   screen anyway, showing kg and lb — and cm and ft/in — at the same time. Restore the attribute's
   meaning explicitly rather than relying on it. */
[hidden] { display: none !important; }
.field.span-2 { grid-column: 1 / -1; }
/* Option labels carry the meaning ("0.25% / week — slow, easiest to hold"), and a
   native select clips rather than wraps. Give every select the full row so the
   selected option stays readable; the max-width stops it sprawling on desktop. */
.field-grid > .field:has(select) { grid-column: 1 / -1; }
.field select { max-width: 30rem; }
.field label, .field .field-name { font-size: 13px; font-weight: 600; color: var(--neutral-700); }
.field .hint { font-size: 12.5px; color: var(--neutral-500); line-height: 1.45; }

/* imperial height — a feet input and an inches input side by side, not one
   decimal-feet field (a fractional foot is not how anyone reads a height) */
.unit-pair { display: flex; align-items: center; gap: .4rem; }
.unit-pair input[type="number"] { width: 4.5rem; flex: none; }
.unit-pair-sep { font-size: 13px; color: var(--neutral-500); margin-right: .3rem; }

input[type="number"], input[type="time"], select {
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  color: var(--text); background: var(--neutral-100);
  border: 1.5px solid var(--divider); border-radius: var(--r-sm);
  padding: 13px 14px; width: 100%; min-height: 48px;
}
input[type="number"]:focus, input[type="time"]:focus, select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
/* The native select arrow is drawn flush against the border box; appearance:none
   drops the native arrow (which differs across Windows/macOS/Android anyway) and
   this SVG redraws it clear of the corner curve. Colour is --neutral-600 hardcoded
   to #69728A because a data: URI can't read a CSS custom property — keep this in
   sync if the token ever changes. padding-right leaves room for the arrow plus a
   gap so a long option label never runs under it. */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2369728A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

/* chipset — radio pills, CONTRACT.md §4 (options component) */
.chipset { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--divider); border-radius: var(--pill);
  padding: 11px 18px; min-height: 44px; line-height: 22px;
  transition: transform .12s ease, background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}
.chip input:checked + span {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip span:active { transform: scale(.95); }

.btn-row { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); flex-wrap: wrap; }
.btn {
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  background: var(--accent-2); color: var(--accent-900);
  border: 0; border-radius: var(--pill); padding: 16px 34px; cursor: pointer;
  transition: filter .15s ease-out, transform .12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.95); }
.btn-note { font-size: 13.5px; color: var(--neutral-500); line-height: 1.5; max-width: 38ch; }

/* -------------------------------------------------------------- the result */
/* One addressable block — hero + body live inside this single container so the
   reveal animation has one thing to trigger, not several. */
.result {
  margin: var(--space-4) 0; border: 1px solid var(--divider);
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-result);
}
.result[hidden] { display: none; }

/* Reveal timing/easing/keyframe shape from the imported design's own #fc-motion
   block (CONTRACT.md §5: fc-in, .55s cubic-bezier(.2,.7,.2,1), translateY only —
   never opacity, so a crawler that never runs JS still sees the finished result
   the instant innerHTML is set). .is-revealed is added by a few lines of JS at
   each calculator's "show the result" point — see src/content/calculators.mjs —
   never on page load. */
.result.is-revealed { animation: fc-in .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fc-in { from { transform: translateY(10px); } to { transform: translateY(0); } }

/* Static content settling in on load — the same fc-in keyframe and timing as
   the result reveal above, applied directly (no JS trigger needed since these
   sections are in the DOM from the start either way). Transform-only, so a
   crawler that never paints a frame still gets the complete section. */
.fc-reveal { animation: fc-in .55s cubic-bezier(.2,.7,.2,1) both; }

.result-hero {
  position: relative; overflow: hidden;
  background: var(--accent-800); color: var(--bg);
  padding: clamp(22px,3.4vw,34px) var(--pad-card);
}
/* Two soft decorative circles (CONTRACT.md §4.5) — a hard-edged indigo one and a
   faint orange one, folded into one pseudo-element as layered radial-gradients
   so the JS-generated result markup in calculators.mjs never has to change. */
.result-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 170px at calc(100% + 90px) -120px, var(--accent-700) 0 100%, transparent 100%),
    radial-gradient(circle 110px at calc(100% - 60px) calc(100% + 140px), rgba(242,154,31,.16) 0 100%, transparent 100%);
}
/* A thin highlight sweeping the top edge — the same fc-sweep keyframe the
   design defines in its own <style id="fc-motion"> block. */
.result-hero::before {
  content: ''; position: absolute; left: 0; top: 0; width: 60%; height: 2px; z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-2-400), transparent);
  animation: fc-sweep 2.6s ease-in-out infinite;
}
@keyframes fc-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.result-hero > * { position: relative; z-index: 2; }
.result-hero .microlabel { color: var(--accent-2-300); opacity: 1; display: block; margin-bottom: var(--space-3); }
.result-headline { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.result-figure {
  font-family: var(--font-display); font-size: clamp(42px, 9.5vw, 80px);
  line-height: .9; font-weight: 900; letter-spacing: -.05em;
}
.result-sub { font-size: 16.5px; color: var(--accent-200); line-height: 1.4; }
.result-note {
  font-size: 16px; line-height: 1.6; margin: var(--space-4) 0 0;
  color: var(--accent-200); max-width: 58ch;
}
.result-body { padding: var(--pad-card); }
.result-body .microlabel { display: block; margin-bottom: var(--space-3); }
.result-body .microlabel + * { margin-top: 0; }
.result-body .microlabel:not(:first-child) { margin-top: var(--space-6); }
.result-foot { font-size: 13px; color: var(--neutral-500); margin: .75rem 0 0; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr)); gap: 8px; }
.stat {
  background: var(--surface); border: 1.5px solid var(--divider);
  border-radius: var(--r); padding: 14px 16px 15px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.stat:hover { transform: translateY(-2px); }
.stat dt { font-size: 12.5px; font-weight: 600; color: var(--neutral-600); margin-bottom: .1rem; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; color: var(--text); }
.stat.is-key { background: var(--accent-100); border-color: var(--accent-200); }
.stat.is-key dt { color: var(--accent-600); }
.stat.is-key dd { color: var(--accent-800); }

/* the warm-up ladder — pill rows, work set in the orange accent */
.ladder { display: flex; flex-direction: column; gap: 6px; }
.ladder-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 11px 18px 11px 11px; background: var(--surface); border: 1.5px solid var(--divider);
  border-radius: var(--pill);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ladder-row:hover { transform: translateY(-2px); }
.ladder-n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--neutral-100);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: var(--text); flex: none;
}
.ladder-load { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.03em; min-width: 5rem; }
.ladder-desc { font-size: 14.5px; color: var(--text); opacity: .82; }
.ladder-row.is-work {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.ladder-row.is-work .ladder-n { background: rgba(255,255,255,.22); color: inherit; }
.ladder-row.is-work .ladder-desc { color: inherit; opacity: .9; }
.ladder-row.is-work .ladder-desc strong { color: inherit; }

/* Rows settle in one after another once the parent result reveals — no extra JS,
   the .result.is-revealed trigger above does the work. `backwards` holds each
   row at its `from` state during its delay so nothing flashes at the wrong spot
   first. Longest warm-up ladder in the current calculators is 5 rows (the 1RM
   tool); extend the +35ms pattern if a 6th row is ever added. */
.result.is-revealed .ladder-row {
  animation: ladder-settle 160ms cubic-bezier(.2,.7,.2,1) backwards;
}
.result.is-revealed .ladder-row:nth-child(1) { animation-delay: 0ms; }
.result.is-revealed .ladder-row:nth-child(2) { animation-delay: 35ms; }
.result.is-revealed .ladder-row:nth-child(3) { animation-delay: 70ms; }
.result.is-revealed .ladder-row:nth-child(4) { animation-delay: 105ms; }
.result.is-revealed .ladder-row:nth-child(5) { animation-delay: 140ms; }
@keyframes ladder-settle {
  from { transform: translateY(-4px); }
  to   { transform: translateY(0); }
}

/* barbell plate diagram — working-weight calculator only. Height scales with
   plate weight; colours mark the four sizes CONTRACT.md §4.7 defines (kept from
   the previous build — the imported file leaves these as literal JS colours,
   not design tokens). Decorative, so it is hidden from assistive tech; the
   caption underneath carries the same information as text. */
.barbell { display: flex; align-items: center; gap: 3px; overflow-x: auto; padding: .3rem .1rem 1rem; }
.barbell-sleeve { flex: none; width: 30px; height: 12px; border-radius: 3px 0 0 3px; background: var(--steel); }
.plate { flex: none; width: 15px; border-radius: 5px; box-shadow: var(--shadow-pin); }

/* Plates settle onto the bar the same way the ladder rows settle into the list —
   triggered by the same .result.is-revealed, no extra JS. scaleY is compositor-
   only in every browser, where clip-path's hardware acceleration is less
   consistent. First child of .barbell is always .barbell-sleeve, not a plate,
   so the nth-child count below is offset by one. */
.result.is-revealed .plate {
  transform-origin: bottom center;
  animation: plate-settle 140ms cubic-bezier(.2,.7,.2,1) backwards;
}
.result.is-revealed .plate:nth-child(2) { animation-delay: 0ms; }
.result.is-revealed .plate:nth-child(3) { animation-delay: 30ms; }
.result.is-revealed .plate:nth-child(4) { animation-delay: 60ms; }
.result.is-revealed .plate:nth-child(5) { animation-delay: 90ms; }
.result.is-revealed .plate:nth-child(6) { animation-delay: 120ms; }
.result.is-revealed .plate:nth-child(7) { animation-delay: 150ms; }
.result.is-revealed .plate:nth-child(8) { animation-delay: 180ms; }
@keyframes plate-settle {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.note {
  background: var(--accent-2-100); border: 1px solid var(--accent-2-200); border-radius: var(--r);
  padding: var(--space-4); font-size: 15.5px; color: var(--accent-2-900);
  line-height: 1.6; margin: 1.1rem 0;
}
.note strong { color: inherit; }

/* tables — long ones must survive a 375px screen */
.table-scroll {
  overflow-x: auto; margin: 0 0 1.2rem;
  border: 1px solid var(--divider); border-radius: var(--r); background: var(--surface);
}
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--divider); }
tr:first-child th, tr:first-child td { border-top: 0; }
thead th {
  background: var(--neutral-100); font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-600); white-space: nowrap;
  border-top: 0;
}
tbody td { color: var(--neutral-700); }
tbody th { font-weight: 700; color: var(--text); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr.is-break td, tbody tr.is-break th { background: var(--accent-100); color: var(--accent-800); }
caption { caption-side: bottom; text-align: left; padding: .7rem .85rem; font-size: .8rem; color: var(--neutral-500); line-height: 1.5; }

/* ------------------------------------------------------------------- ads */
/* This styling only ever reaches the page once adsense.enabled and clientId
   are set — src/layout.mjs adSlot() emits nothing at all (no container, no
   label, no reserved height) while ads are off, so an empty labelled box
   never ships to a reviewer or a visitor. These rules stay ready for the day
   ads switch on. Sizes: 336×280 mid-content, 728×90 divider, both collapsing
   to a 300×250 box once the row can no longer fit them (CONTRACT.md §4.9). */
.adslot { margin: var(--space-8) 0; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-xl); padding: var(--space-3); }
.adslot-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--neutral-500); font-weight: 700; margin-bottom: var(--space-2); }
.adslot-inner { background: var(--neutral-100); border-radius: 14px; display: flex; margin: 0 auto; }
.adslot--rect .adslot-inner { width: 336px; max-width: 100%; height: 280px; }
.adslot--leader .adslot-inner { width: 728px; max-width: 100%; height: 90px; }
@media (max-width: 640px) {
  .adslot--rect .adslot-inner, .adslot--leader .adslot-inner { width: 300px; height: 250px; }
}
.adslot-inner .adsbygoogle { width: 100%; }

/* ------------------------------------------------------------------- faq */
.faq { margin: var(--space-6) 0; }
.faq h2 { margin-top: 0; margin-bottom: var(--space-3); }
.faq details { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 0 var(--space-4); margin-bottom: 8px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.faq details:hover { transform: translateY(-2px); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 800; font-size: 16.5px; letter-spacing: -.02em; padding: var(--space-4) 0; display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-100); color: var(--accent-700);
  display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform 160ms ease-out;
}
/* CSS `content` strings cannot be interpolated ("+" cannot morph into "–"), so
   the swap itself is instant — what animates is the glyph flipping 180°
   alongside it, which reads as "the mark turns over" rather than a smooth
   morph. Trigger is the native [open] attribute of <details>; no JS involved,
   and the answer text is already in the DOM at page load either way. */
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq details p { font-size: 16px; line-height: 1.65; color: var(--neutral-700); margin: 0 0 var(--space-4); max-width: 64ch; }

/* --------------------------------------------------------------- author */
.authorbox { margin: var(--space-8) 0 var(--space-4); background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-lg); padding: var(--space-6) var(--pad-card) var(--space-5); }
.authorbox-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--neutral-500); margin-bottom: .35rem; }
.authorbox-name { font-family: var(--font-display); font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin: 0; }
.authorbox-title { font-size: .92rem; color: var(--neutral-600); margin: 0 0 var(--space-3); }
.authorbox-bio { font-size: 1rem; line-height: 1.65; color: var(--neutral-700); margin: 0 0 var(--space-4); max-width: none; }
.credpills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.credpills li { margin: 0; }
.credpills li:nth-child(-n+4) span { color: var(--accent-800); background: var(--accent-100); }
.credpills li:nth-child(n+5) span { color: var(--accent-2-800); background: var(--accent-2-100); }
.credpills span { display: inline-block; font-size: 12.5px; font-weight: 600; border-radius: var(--pill); padding: 6px 12px; }

/* Certificate thumbnails — flat, small, no rotation (this design has no "pinned
   scan" device the way the previous Coach's Notebook direction did — the source
   file shows plain fc-lift squares beside "See all N"). The certificates
   themselves are unchanged; only the frame around them is. */
.certpins { display: flex; gap: 8px; margin-top: var(--space-4); align-items: center; flex-wrap: wrap; }
.certpins figure { margin: 0; }
.certpins img {
  /* Fixed box, not height:auto. The scans are not all the same shape — ISSA issues 760x587,
     PESA 760x537 — so letting height follow the image leaves the row visibly uneven, and a
     portrait scan (the dry-sports-massage one, published until 2026-08-31) came out twice as
     tall as its neighbours. `contain` on a white plate keeps every scan whole in an identical
     frame no matter what shape the next certificate body uses. */
  width: 118px; height: 84px; object-fit: contain; background: #fff;
  display: block; border-radius: 8px;
  border: 1px solid var(--divider);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.certpins figure:hover img { transform: translateY(-2px); }
.certpins figcaption { position: absolute; left: -9999px; }
.certpins a { font-size: .92rem; font-weight: 600; }
.authorbox-date { font-size: 12.5px; color: var(--neutral-500); margin: var(--space-4) 0 0; }

/* ---------------------------------------------------------- disclaimer */
.disclaimer {
  margin: var(--space-4) 0 0; display: flex; gap: var(--space-4);
  background: var(--warn-wash); border-radius: var(--r); padding: var(--space-4) var(--space-5);
  border: 1px solid var(--accent-2-200); border-left: 4px solid var(--warn);
}
.disclaimer h2 {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--warn);
  white-space: nowrap; margin: .15rem 0 0; flex: none; line-height: 1.4;
}
.disclaimer div { min-width: 0; }
.disclaimer p { font-size: .88rem; line-height: 1.6; color: var(--accent-2-900); margin: 0 0 .55rem; max-width: none; }
.disclaimer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ home hero */
.hero { margin-bottom: var(--space-6); }
.hero-greeting { display: flex; gap: 1rem; align-items: center; margin-bottom: var(--space-4); }
.hero-greeting p { font-size: .92rem; color: var(--neutral-600); line-height: 1.5; margin: 0; max-width: none; }
.trustline { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.trustline li { margin: 0; }
.trustline span { display: inline-block; font-size: 12.5px; font-weight: 600; background: var(--neutral-100); border-radius: var(--pill); padding: 7px 14px; color: var(--neutral-700); }

/* --------------------------------------------------------- cards / lists */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); gap: 8px; margin: var(--space-4) 0 var(--space-6); padding: 0; list-style: none; }
.cards li { margin: 0; }
.card {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-sm); padding: var(--space-4);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-2px); border-color: var(--accent-200); }
.card .tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-600); font-weight: 700; }
.card strong { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--text); margin: 2px 0 4px; }
.card span:not(.tag) { font-size: 14px; color: var(--neutral-600); line-height: 1.5; }

.postlist { list-style: none; padding: 0; margin: var(--space-4) 0 var(--space-6); display: flex; flex-direction: column; gap: 8px; }
.postlist li { margin: 0; }
.postlist a { display: block; padding: var(--space-4); text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r-sm);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.postlist a:hover { transform: translateY(-2px); border-color: var(--accent-200); }
.postlist strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: .2rem; }
.postlist span { font-size: .9rem; color: var(--neutral-600); line-height: 1.5; }

/* byline chip on guides */
.byline {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--neutral-100); border-radius: var(--pill);
  padding: .4rem 1rem; margin: 0 0 var(--space-5);
}
.byline span { font-size: 13.5px; color: var(--neutral-700); }

.certgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-5); margin: var(--space-5) 0 var(--space-4); }
.certgrid figure { margin: 0; }
/* One shared box for every cell, so the captions sit on one line instead of one
   certificate running taller than its neighbour. Certificate bodies do not agree on a
   shape — ISSA issues 760x587 (1.29), PESA 760x537 (1.41) — so the box takes a ratio
   between the two and `contain` letterboxes the difference onto the white plate. A fixed
   270px height was right while one scan was portrait; with all ten landscape it left a
   band of empty white under every one. */
.certgrid img { width: 100%; aspect-ratio: 1.35; height: auto; object-fit: contain;
  display: block; border-radius: 8px; border: 1px solid var(--divider); background: #fff; }
.certgrid figcaption { font-size: .8rem; color: var(--neutral-500); margin-top: .5rem; line-height: 1.45; }

/* ---------------------------------------------------------------- footer */
/* FitCalc ends every page on a full-bleed indigo band — the site's most
   recognisable device after the orange. */
.site-foot { background: var(--accent-900); color: var(--accent-200); border-top: 0; margin-top: var(--space-8); }
.site-foot a { color: #fff; }
.site-foot .foot-note { color: inherit; opacity: .85; }
.foot-inner {
  max-width: var(--wrap-wide); display: flex; justify-content: space-between;
  gap: var(--space-6); flex-wrap: wrap; padding-top: var(--space-8); padding-bottom: var(--space-8);
}
.foot-brand { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -.04em; color: #fff; margin: 0 0 var(--space-2); }
.foot-note { font-size: 14px; color: inherit; margin: 0; max-width: 42ch; line-height: 1.6; }
.foot-nav { display: flex; gap: var(--space-6); flex-wrap: wrap; align-items: flex-start; }
.foot-nav a { font-size: 14px; color: inherit; text-decoration: none; }
.foot-nav a:hover { color: #fff; }

/* Very narrow phones (320px): tighten table cells so the food table fits without
   a sideways scroll. Page margin already floors at 16px via --pad-page. */
@media (max-width: 360px) {
  th, td { padding: .5rem .5rem; font-size: .86rem; }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .calc { padding: var(--space-5); }
  .disclaimer { flex-direction: column; gap: .5rem; }
  .foot-inner { flex-direction: column; gap: var(--space-5); }

  /* Ladder rows must stay one line — a wrapped pill reads as a broken shape. */
  .ladder-row { gap: .7rem; padding: 10px 14px; border-radius: var(--r-sm); }
  .ladder-load { min-width: 4.4rem; }

  /* Long result tables: drop the phase column rather than clip a number in half.
     Maintenance weeks stay readable through the row highlight (see the caption). */
  .col-phase { display: none; }
  th, td { padding: .55rem .7rem; }

  .credpills { gap: 4px; }
  .credpills span { font-size: 12px; padding: 5px 10px; }

  /* Certificates: two per row at half width beats three at postage-stamp size —
     at 128px they were unreadable, which defeats the point of showing them. */
  .certpins { gap: 8px; align-items: flex-start; }
  .certpins figure { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .certpins img { width: 100%; }
  .certpins a { flex: 1 0 100%; padding-top: .2rem; }
}
