/* This file is never linked by name. It is copied to
   assets/style.<sha256[:10]>.css by `verify_site.py --stamp-stylesheet`, and
   that hashed copy is what every page links and what ships. Edit here, restamp,
   and the verifier will fail loudly if you forget the second step.
   ==========================================================================
   TaxWorkbooks — by MBTT
   Sovereign & Brass design system: Source Serif 4 and Carlito on warm archival
   paper (#faf8f4), forest ink (#14534a), and aged brass rules (#b4843e).
   Structure comes from the serif scale and negative space — workbook cell
   semantics (input amber, calculated blue, prior-year grey) remain invariant.
   ========================================================================== */


/* --------------------------------------------------------------------------
   0. Source Serif 4 — SELF-HOSTED, on purpose
   The design arrived loading this face from fonts.googleapis.com. That is not
   available to this site: the CSP in _headers is `default-src 'none'` with
   `style-src 'self'`, so the remote stylesheet would simply be blocked and
   every page would silently fall back to Georgia. It is also a Law 25 problem
   -- docs/business/legal/privacy-policy.md enumerates every recipient of
   personal information, and Google Fonts is not among them, so loading it
   would send each visitor's IP to an undisclosed third party.
   Subsets: latin + latin-ext only (EN/FR). Variable weight 400-600 plus
   italic. Licence: SIL OFL 1.1 -- see assets/fonts/OFL.txt.
   Adding a face means adding `font-src 'self'` stays true -- no remote URLs.
   -------------------------------------------------------------------------- */
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-ext-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Carlito — metric-compatible UI sans, self-hosted */
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/carlito-latin-400.woff2) format('woff2');
}
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/carlito-latin-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/carlito-latin-700.woff2) format('woff2');
}

/* --------------------------------------------------------------------------
   1. Tokens — Sovereign & Brass
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #faf8f4;
  --color-surface: #efebe3;
  --color-text: #102027;
  --color-accent: #14534a;
  --color-accent-2: #d6006c;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #faf8f4;
  --color-neutral-200: #eeebe4;
  --color-neutral-300: #d9d3c7;
  --color-neutral-400: #bab3a5;
  --color-neutral-500: #9b9384;
  --color-neutral-600: #6b675e;
  --color-neutral-700: #55524b;
  --color-neutral-800: #3d3b37;
  --color-neutral-900: #252422;

  --color-accent-100: #e8f3ef;
  --color-accent-200: #cbe3dc;
  --color-accent-600: #14534a;
  --color-accent-700: #14534a;
  --color-accent-800: #0f3d36;

  --color-accent-2-100: #fff1f4;
  --color-accent-2-700: #aa0b56;
  --color-accent-2-800: #790e3d;

  --font-heading: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --font-ui: "Carlito", Calibri, "Segoe UI", Arial, sans-serif;
  --font-body: var(--font-ui);
  --type-page-title: 2.75rem;
  --type-section-title: 1.75rem;
  --type-subsection-title: 1.375rem;
  --type-detail-title: 1.125rem;
  --type-body-copy: 1rem;
  --type-support-copy: 0.875rem;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

  --radius: 2px;
  --gutter: 1.25rem;
  --wrap-max: 1240px;
  --measure: 68ch;
  --sec-pad: clamp(3.5rem, 6vw, 6rem);
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-emoji: text;
}

/* The same heading hierarchy applies to both site languages. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--color-text);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
h1 { font-size: var(--type-page-title); font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: var(--type-section-title); }
h3 { font-size: var(--type-subsection-title); }
h4, h5, h6 { font-size: var(--type-detail-title); }

@media (max-width:760px) {
  :root {
    --type-section-title: 1.5rem;
    --type-subsection-title: 1.25rem;
    --type-detail-title: 1rem;
  }
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

a {
  color: var(--color-accent-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--color-accent-700) 40%, transparent);
  transition: color 140ms ease, text-decoration-color 140ms ease;
}
a:hover { color: var(--color-accent-600); text-decoration-color: currentColor; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

strong { font-weight: 600; }
/* The sticky navigation bar's height, measured 2026-10-28 in both languages: 57px on one
   row, 87px on two (up to 1100px), 147px on three (up to 48rem), 191px on four (French at
   360px and narrower; 375px still fits three). Every anchor offset and the catalogue's
   sticky panel clear it through these two variables, so the next header change is one
   edit here, not twelve scattered rems. */
:root { --nav-h:3.6rem; --nav-clear:calc(var(--nav-h) + 1rem); }
@media (max-width:1100px) { :root { --nav-h:5.5rem; } }
@media (max-width:48rem) { :root { --nav-h:4.1rem; } }   /* one row since the phone drawer (Task 8, 2026-11-01) */
:target { scroll-margin-top: var(--nav-clear); }

.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap-max)); margin-inline: auto; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--color-text); color: var(--color-bg);
  padding: 0.75rem 1rem; text-decoration: none;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Masthead — sticky utility bar, brand lockup, hero
   -------------------------------------------------------------------------- */
.masthead { background: var(--color-bg); padding-bottom: clamp(2.5rem, 4.5vw, 4rem); }
.masthead-compact { padding-bottom: clamp(1.75rem, 3vw, 2.75rem); }

/* The bar itself is what stays put. Its one rule is front-page furniture. */
.topbar-fixed {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-text);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.75rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--color-text);
  flex: 0 0 auto;
}
.brand:hover { color: var(--color-text); }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
/* The colophon: the imprint sits under the title, never competing with it. */
.brand-sub {
  font-size: 0.59rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-neutral-800);
}
.brand-sub .parent { color: var(--color-accent-700); }
.brand-sub .rtm { font-size: 0.47rem; vertical-align: 0.5em; margin-left: 1px; }

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.375rem;
  list-style: none;
  font-size: 0.9rem;
  min-width: 0;
  flex: 1 1 auto;
}
.topnav a {
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { color: var(--color-accent-600); }
.topnav a.here,
.topnav a[aria-current="page"] {
  color: var(--color-accent-700);
  border-bottom-color: var(--color-accent);
}

.topbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  flex: 0 0 auto;
}

.lang { display: flex; border: 1px solid var(--color-neutral-400); }
.lang > * {
  font-size: inherit;
  letter-spacing: 0.09em;
  padding: 0.3rem 0.6rem;
  text-decoration: none;
  color: var(--color-neutral-700);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lang > .here { background: var(--color-text); color: var(--color-bg); cursor: default; }
.lang > a:hover { color: var(--color-accent-600); }

.hero { display: grid; gap: clamp(2rem, 4vw, 4rem); padding-top: clamp(2.75rem, 5vw, 4.5rem); }
.hero-copy h1 {
  line-height: 1.02;
}
.lede {
  margin-top: 1.15rem;
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--color-neutral-800);
}

/* The memo block: a file header, not a feature list. */
.memo { margin: 0; align-self: start; }
.memo-row {
  display: grid;
  grid-template-columns: 8.25rem 1fr;
  gap: 0 1.125rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-neutral-300);
}
.memo dt {
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  padding-top: 0.25em;
}
.memo dd { margin: 0; font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   4. Credibility strip — paper, not a dark band
   -------------------------------------------------------------------------- */
.credibility { background: var(--color-bg); padding: clamp(2.5rem, 4.5vw, 4rem) 0 0; }
.credential {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: -0.018em;
  max-width: 38ch;
  margin: 0 0 2rem;
}
.badges { display: grid; gap: 1.75rem 2.75rem; list-style: none; }
.badges li { display: block; }
.badge-label {
  display: block;
  font-size: 0.69rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin-bottom: 0.45rem;
}
.badge-note {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-neutral-800);
  max-width: 36ch;
}

/* --------------------------------------------------------------------------
   5. Sections and section heads — separated by whitespace
   -------------------------------------------------------------------------- */
.section { padding: var(--sec-pad) 0; }
.section-alt { background: var(--color-bg); }
.section-legal { padding-bottom: clamp(2.5rem, 4vw, 4rem); }

.sec-head {
  display: grid;
  gap: 0.5rem 1.5rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}
.sec-num {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  font-variant-numeric: tabular-nums;
  margin: 0;
  padding-top: 0.5em;
}
.sec-head h2 { letter-spacing: -0.025em; }
.sec-sub {
  margin: 0.75rem 0 0;
  max-width: 68ch;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--color-neutral-800);
}

/* --------------------------------------------------------------------------
   6. Product listings — a priced index, not a row of boxes
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: 0; }

.card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-divider);
  padding: 1.75rem 0;
  width: 100%;
}
.card-flagship { border-top-color: var(--color-accent); }

.card-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin-bottom: 0.5rem;
}
.card-head { margin-bottom: 1.25rem; }
.card-head h3 { line-height: 1.15; margin-bottom: 0.65rem; }
.card-summary {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--color-neutral-800);
  max-width: 62ch;
}

.shot { margin: 0 0 1.4rem; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-surface);
}
.shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--color-neutral-700);
}

.card-body { flex: 1 1 auto; display: flex; flex-direction: column; margin-bottom: 1.25rem; }

.inside-label {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  margin-bottom: 0.5rem;
}
.inside { list-style: none; font-size: 0.9rem; line-height: 1.5; }
.inside li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.1rem;
  border-top: 1px solid var(--color-neutral-300);
  color: var(--color-neutral-800);
}
.inside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1em;
  width: 5px;
  height: 5px;
  background: var(--color-accent-700);
}

/* Progressive disclosure */
.more { margin-top: auto; }
.more > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.5rem 0 0;
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent-700);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.78rem;
  font-size: 1rem;
  color: var(--color-neutral-600);
}
.more[open] > summary::after { content: "\2013"; }
.more > summary:hover { color: var(--color-accent-600); }
.more-body { padding-top: 0.9rem; }
.more-body h4 {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  margin: 1.25rem 0 0.35rem;
}
.more-body h4:first-child { margin-top: 0; }
.more-body p {
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--color-neutral-800);
  max-width: 66ch;
}

.card-foot { margin-top: auto; padding-top: 1.25rem; }
.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.price .cur { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--color-neutral-600); }
.price .amt { font-size: 1.75rem; letter-spacing: -0.015em; }
.licence-line {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-neutral-700);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   7. Actions
   -------------------------------------------------------------------------- */
.buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: var(--color-accent);
  color: var(--color-bg);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.buy:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); color: var(--color-bg); }
.buy:active { background: var(--color-accent-700); border-color: var(--color-accent-700); }

.buy-secondary {
  width: auto;
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-divider);
}
.buy-secondary:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
  border-color: var(--color-divider);
  color: var(--color-text);
}
.buy-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

.buy-note { margin-top: 0.55rem; font-size: 0.8rem; color: var(--color-neutral-700); }

/* --------------------------------------------------------------------------
   8. Sample strip
   -------------------------------------------------------------------------- */
.samples { display: grid; gap: 0; list-style: none; }
.samples li {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-neutral-300);
  padding: 1rem 0;
}
.sample-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}
.sample-state {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-accent-2-700);
}
.samples-note { margin-top: 1.15rem; font-size: 0.86rem; color: var(--color-neutral-700); font-style: italic; }

/* --------------------------------------------------------------------------
   9. The internal standard
   -------------------------------------------------------------------------- */
.standard { list-style: none; counter-reset: std; display: grid; gap: 0 4rem; }
.standard li {
  counter-increment: std;
  position: relative;
  padding: 1rem 0 1rem 2.5rem;
  border-top: 1px solid var(--color-neutral-300);
}
.standard li::before {
  content: counter(std, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.28em;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-700);
}
.standard h3 { letter-spacing: -0.008em; margin-bottom: 0.3rem; }
.standard p {
  font-size: 0.9rem;
  line-height: 1.58;
  margin: 0;
  max-width: 48ch;
  color: var(--color-neutral-800);
}

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--color-neutral-300); }
.faq details { border-bottom: 1px solid var(--color-neutral-300); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1rem 2.25rem 1rem 0;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.9rem;
  font-size: 1.0625rem;
  color: var(--color-neutral-600);
}
.faq details[open] summary { color: var(--color-accent-700); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--color-accent-600); }
.faq-body { padding: 0 2.25rem 1.25rem 0; max-width: var(--measure); }
.faq-body p { font-size: 0.94rem; line-height: 1.68; margin: 0; color: var(--color-neutral-800); }

/* --------------------------------------------------------------------------
   11. Split layout — reading column plus marginalia
   -------------------------------------------------------------------------- */
.split { display: grid; gap: 2.25rem; }
.margin-note {
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-neutral-300);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--color-neutral-800);
}
/* Two elements in the marginalia column need a gap above them. This was a
   style="margin-top:…" attribute on each, on both home pages, and it was being
   BLOCKED in production: style-src is 'self' with no 'unsafe-inline', so the
   browser refused all four and the elements shipped flush against what was
   above them. Nothing failed and nothing looked obviously wrong -- it took a
   console on the live custom domain to see it, which is the whole reason
   `marketing/CLAUDE.md` now names style attributes alongside onclick. */
.margin-note-spaced { margin-top: 2rem; }
.signup-spaced { margin-top: 1.25rem; }
.margin-note p { margin: 0; }
.margin-note p + p { margin-top: 0.7rem; }
.margin-label {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}
.margin-note .margin-label { margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   12. Forms and signup
   -------------------------------------------------------------------------- */
.signup {
  display: grid;
  gap: 0.85rem;
  align-items: end;
  max-width: 34rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.signup-field { display: block; min-width: 0; }
.signup label,
.form-filter label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-neutral-700);
  margin-bottom: 0.35rem;
}
.signup input,
.form-filter input {
  display: block;
  width: 100%;
  min-height: 36px;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius);
  padding: 0.5rem 0.65rem;
  -webkit-appearance: none;
  appearance: none;
}
.signup input::placeholder,
.form-filter input::placeholder {
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
  opacity: 1;
  font-style: italic;
}
.signup input:hover,
.form-filter input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.signup input:focus-visible,
.form-filter input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* --------------------------------------------------------------------------
   13. Legal documents
   -------------------------------------------------------------------------- */
.legal-doc {
  max-width: 74ch;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--color-neutral-800);
  padding-top: 0;
  border-top: 0;
  margin-top: 0;
}
.legal-doc h3 {
  margin: 2.25rem 0 0.5rem;
  color: var(--color-text);
}
.legal-doc h3:first-of-type { margin-top: 0; }
.legal-doc h4 {
  color: var(--color-text);
  margin: 1.6rem 0 0.4rem;
}
.legal-doc strong { color: var(--color-text); }
.legal-doc ul { list-style: none; margin: 0 0 1em; }
.legal-doc li { position: relative; padding-left: 1.1rem; margin-bottom: 0.4rem; }
.legal-doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 1px;
  background: var(--color-neutral-500);
}
.legal-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  margin-bottom: 1.75rem;
}
.legal-contact { margin-top: 1.75rem; }
/* The scope guide's five commitments, first on the page (site review Task 10, 2026-11-01). */
.scope-summary { margin: 0 0 2.25rem; padding: 1.1rem 1.4rem 1.2rem; border: 1px solid var(--color-neutral-300); border-left: 4px solid #163f33; background: #fffdf8; }
.scope-summary .margin-label { margin-bottom: .6rem; }
.scope-summary ul { margin: 0; }
.scope-summary li { margin-bottom: .55rem; font-size: .95rem; }

.legal-doc ol { list-style: none; margin: 0 0 1em; counter-reset: legal-step; }
.legal-doc ol li { padding-left: 1.6rem; }
.legal-doc ol li::before {
  counter-increment: legal-step;
  content: counter(legal-step) ".";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  font-variant-numeric: tabular-nums;
  color: var(--color-neutral-600);
}

.legal-doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.88rem; }
.legal-doc thead { display: none; }
.legal-doc tbody tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--color-neutral-300); }
.legal-doc tbody tr:last-child { border-bottom: 0; }
.legal-doc th, .legal-doc td { display: block; text-align: left; font-weight: 400; padding: 0.15rem 0; }
.legal-doc th[scope="row"] { color: var(--color-text); font-weight: 600; }
.legal-doc td { color: var(--color-neutral-800); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.sitefoot {
  background: var(--color-bg);
  color: var(--color-neutral-800);
  border-top: 1px solid var(--color-text);
  padding: 24px 0;
  font-size: 0.94rem;
}
.print-site-credit { display:none; }
.foot-grid { display: grid; gap: 2.25rem 3rem; padding-bottom: 2rem; }
.foot-brand .brand-name { display: block; font-size: 1.375rem; margin-bottom: 0.3rem; }
.foot-brand .brand-sub { display: block; margin-bottom: 0.75rem; font-size: 0.63rem; color: var(--color-neutral-700); }
.foot-tag { color: var(--color-neutral-800); max-width: 30ch; margin-bottom: 0.5rem; }
.foot-domain { font-size: 0.8rem; letter-spacing: 0.05em; color: var(--color-neutral-600); }
.foot-head {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
  margin-bottom: 0.75rem;
}
.foot-links ul { list-style: none; }
.foot-links li { margin-bottom: 0.4rem; }
.foot-links a { color: var(--color-text); text-decoration: none; }
.foot-links a:hover { color: var(--color-accent-600); }

.disclaimer {
  margin: 1.75rem 0 0;
  max-width: 88ch;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--color-neutral-800);
  border-top: 1px solid var(--color-neutral-300);
  padding-top: 1.5rem;
}
.disclaimer strong { color: var(--color-text); }
.copyright { margin-top: 1.25rem; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--color-neutral-600); }
.foot-legal-id {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.85;
  letter-spacing: 0.03em;
  color: var(--color-neutral-700);
}
.foot-legal-id strong { color: var(--color-neutral-800); font-weight: 400; }

/* ==========================================================================
   15. CRA form index
   ========================================================================== */

/* [hidden] must beat every layout rule in this file, GLOBALLY.

   `hidden` is honoured by a USER-AGENT rule (`[hidden] { display: none }`),
   and any author-level `display` on the same element outranks it. So the
   moment a filterable element is given `display: grid`, `flex` or `block`
   here, setAttribute("hidden", "") stops hiding it -- while every counter and
   aria state that JavaScript maintains keeps saying it is hidden.

   That shipped on 2026-07-28: `.cat-row { display: grid }` meant the home-page
   catalogue read "2 OF 16" above sixteen visible rows. The list below already
   existed for the CRA form index, which hit the same trap first; enumerating
   selectors just meant the next filterable component had to remember to join
   the list, and it did not. One global rule cannot be forgotten.

   Keep this ABOVE the component sections so it is read as a base rule, and
   never remove the !important -- that is the only thing outranking the
   component's own display declaration. */
[hidden] { display: none !important; }

.form-filter {
  display: grid;
  gap: 0.5rem 1.25rem;
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--color-text);
}
.filter-status {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  white-space: nowrap;
  padding-bottom: 0.5rem;
}

.form-jump { margin-bottom: clamp(2rem, 4vw, 3rem); }
.form-jump-label {
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
}
.form-jump ul { display: grid; gap: 0.4rem 2rem; list-style: none; font-size: 0.9rem; }
.jump-n { color: var(--color-neutral-600); font-size: 0.8rem; margin-left: 0.35rem; font-variant-numeric: tabular-nums; }

.entity { margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.entity:last-child { margin-bottom: 0; }
.entity-head {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  margin-bottom: 0.5rem;
}
.entity-n {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-neutral-600);
  margin-left: 0.5rem;
  vertical-align: 0.15em;
  font-variant-numeric: tabular-nums;
}
.entity-blurb { margin: 0 0 1.75rem; max-width: 66ch; color: var(--color-neutral-800); font-size: 0.97rem; }

.group-row th {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  text-align: left;
  padding: 1.75rem 0 0.4rem;
  border-bottom: 1px solid var(--color-divider);
}
.group-n { color: var(--color-neutral-600); margin-left: 0.5rem; }

.forms-wrap { margin: 0; }
.forms { width: 100%; border-collapse: collapse; }
.forms thead { display: none; }
.forms tbody, .forms tr, .forms td { display: block; }
.forms tr {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-neutral-300);
}
.forms tr:last-child { border-bottom: 0; }
.group-row { grid-template-columns: minmax(0, 1fr); padding: 0; border-bottom: 0; }
.group-row th { display: block; grid-column: 1 / -1; }

.f-code { font-size: 0.82rem; padding-top: 0.15em; font-variant-numeric: tabular-nums; }
.f-code a { text-decoration: none; border-bottom: 1px solid var(--color-neutral-400); }
.f-code a:hover { border-bottom-color: var(--color-accent); }
.f-title { color: var(--color-text); font-size: 0.94rem; line-height: 1.45; }
.f-date { grid-column: 2; font-size: 0.78rem; color: var(--color-neutral-600); margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
/* Template column (2026-09-26): which TaxWorkbooks template prepares the form. */
.f-tpl { grid-column: 2; font-size: 0.78rem; color: var(--color-accent-800); margin-top: 0.15rem; white-space: nowrap; }
.f-tpl:empty { display: none; }


.f-also {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-neutral-700);
  border: 1px solid var(--color-neutral-400);
  border-radius: var(--radius);
  padding: 0.08rem 0.38rem;
  vertical-align: 0.1em;
}

.no-match {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid var(--color-accent);
  font-size: 0.97rem;
  color: var(--color-neutral-800);
}

/* Entity switch — a segmented pair, the current one inked in */
.entity-switch {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--color-neutral-400);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}
.es-item {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--color-neutral-800);
  background: transparent;
  border-right: 1px solid var(--color-neutral-300);
  white-space: nowrap;
}
.es-item:last-child { border-right: 0; }
.es-item:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-accent-700); }
.es-here { background: var(--color-text); color: var(--color-bg); cursor: default; }
.es-here:hover { background: var(--color-text); color: var(--color-bg); }
.es-n { opacity: 0.7; margin-left: 0.4rem; font-variant-numeric: tabular-nums; }

/* Hub cards — genuinely discrete listings, so a boxed edge is earned */
.hub-cards { display: grid; gap: 3rem; }
.hub-card {
  display: block;
  padding: 1rem 0 0;
  border: 0;
  border-top: 3px solid var(--color-text);
  background: transparent;
  text-decoration: none;
  color: inherit;
}
.hub-card:hover { border-top-color: var(--color-accent); }
.hub-card h3 { margin: 0.15rem 0 0.75rem; }
.hub-n {
  margin: 0 0 0.4rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.hub-n-note {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  vertical-align: 0.7em;
  margin-left: 0.35rem;
}
.hub-sub { margin: 0 0 1.25rem; font-size: 0.94rem; color: var(--color-neutral-800); }
.hub-groups-label {
  margin: 0 0 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-neutral-300);
}
.hub-groups { list-style: none; margin: 0 0 1.35rem; font-size: 0.94rem; color: var(--color-neutral-800); }
.hub-groups li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-neutral-300);
}
.hub-groups li:last-child { border-bottom: 0; }
.hub-groups .tnum { color: var(--color-neutral-600); font-size: 0.82rem; }
.hub-go {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
}
.hub-card:hover .hub-go { color: var(--color-accent-600); }

/* ==========================================================================
   16. Home page — catalogue and workbook preview
   ========================================================================== */
.hero-index { display: grid; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: end; padding-top: clamp(2.75rem, 5vw, 4.5rem); }
.hero-index .lede { max-width: none; margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.25rem; }
.hero-actions .buy { width: auto; font-size: 0.97rem; padding: 0.7rem 1.25rem; }

.cat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.75rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--color-text);
  scroll-margin-top: var(--nav-clear);
}
.cat-bar .signup-field { flex: 1 1 20rem; }
.cat-count {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  padding-bottom: 0.55rem;
  margin: 0;
}

.seg-label { display: block; font-size: 0.75rem; color: var(--color-neutral-700); margin-bottom: 0.35rem; }
.seg { display: flex; border: 1px solid var(--color-neutral-400); border-radius: var(--radius); overflow: hidden; }
.seg button {
  border: 0;
  border-left: 1px solid var(--color-neutral-300);
  background: transparent;
  color: var(--color-neutral-800);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--color-accent-600); }
.seg button[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); }

.cat-layout { display: grid; gap: 2.5rem; padding-top: 1.75rem; align-items: start; }
.cat-list { display: flex; flex-direction: column; min-width: 0; }
.cat-group-label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-neutral-600);
  padding: 0 0 0.6rem;
  margin: 0;
}
.cat-list .cat-group-label + * { margin-top: 0; }
.cat-group-label.spaced { padding-top: 1.875rem; }

.cat-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 4.5rem;
  gap: 1rem;
  align-items: baseline;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--color-neutral-300);
  border-left: 3px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  padding: 0.8rem 0.75rem;
  cursor: pointer;
}
.cat-row:hover { background: var(--color-accent-100); }
.cat-row[aria-pressed="true"] { background: var(--color-accent-100); border-left-color: var(--color-accent); }
.cat-code { font-size: 0.94rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-text); }
.cat-row[aria-pressed="true"] .cat-code { color: var(--color-accent-800); }
.cat-row.pkg .cat-code { font-size: 1.1875rem; letter-spacing: -0.015em; }
.cat-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-title { font-size: 0.94rem; color: var(--color-text); }
.cat-meta { font-size: 0.69rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--color-neutral-600); }
.cat-price { font-size: 0.94rem; text-align: right; font-variant-numeric: tabular-nums; }
.cat-empty { margin: 1.5rem 0 0; font-size: 0.94rem; color: var(--color-neutral-700); font-style: italic; }

.cat-pane { display: flex; flex-direction: column; gap: 0.875rem; min-width: 0; }
.pane-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.875rem; }
.pane-kicker { font-size: 0.69rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-700); }
.pane-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.1875rem; }
.pane-blurb { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--color-neutral-800); }
.pane-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pane-actions .buy { width: auto; }
.pane-note { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-600); margin: 0; }

/* The workbook itself, on screen: an Excel file in the serif */
.wb {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 22%, transparent);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wb-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.wb-file { font-size: 0.75rem; font-weight: 600; letter-spacing: -0.01em; }
.wb-chrome-meta { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.wb-version { margin-left: auto; font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }

.wb-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
  padding: 0.45rem 0.875rem;
  border-bottom: 1px solid var(--color-neutral-300);
}
.wb-key { display: flex; align-items: center; gap: 0.375rem; font-size: 0.69rem; color: var(--color-neutral-800); }
.wb-key i { width: 9px; height: 9px; display: block; }
.wb-key.in i { background: var(--color-accent-700); }
.wb-key.fx i { background: var(--color-text); }
.wb-key.tab i { background: var(--color-accent-2-700); }
.wb-caption { margin-left: auto; font-size: 0.69rem; color: var(--color-neutral-700); font-style: italic; }

.wb-sheet { background: var(--color-neutral-100); overflow-x: auto; }
.wb-sheet table { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.wb-sheet th {
  padding: 0.3rem 0.625rem;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 400;
  text-align: left;
  color: var(--color-neutral-700);
  background: var(--color-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
}
.wb-sheet th.c-row { width: 34px; text-align: right; padding-inline: 0.375rem; border-right: 1px solid var(--color-neutral-300); }
.wb-sheet th.c-amt { width: 7rem; text-align: right; }
.wb-sheet th.c-ref { width: 6.5rem; color: var(--color-accent-700); border-left: 1px solid var(--color-neutral-300); }
.wb-sheet td { padding: 0.25rem 0.625rem; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 6%, transparent); }
.wb-sheet td.g {
  width: 34px;
  text-align: right;
  padding-inline: 0.375rem;
  font-size: 0.63rem;
  color: var(--color-neutral-700);
  background: var(--color-surface);
  border-right: 1px solid var(--color-neutral-300);
}
.wb-sheet td.l { padding-left: 1.25rem; }
.wb-sheet td.a { text-align: right; }
.wb-sheet td.r { font-size: 0.69rem; color: var(--color-accent-700); border-left: 1px solid var(--color-neutral-300); }
.wb-sheet tr:hover td.l, .wb-sheet tr:hover td.a { background: var(--color-accent-100); }

.wb-sheet tr.k-h td.l { padding-left: 0.625rem; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.wb-sheet tr.k-h td.a { color: var(--color-neutral-700); }
.wb-sheet tr.k-i td.a { color: var(--color-accent-700); }
.wb-sheet tr.k-t td.a { color: var(--color-accent-2-700); }
.wb-sheet tr.k-x td.l { font-style: italic; color: var(--color-neutral-800); }
.wb-sheet tr.k-x td.a { color: var(--color-neutral-700); }
.wb-sheet tr.k-s td.l, .wb-sheet tr.k-s td.a { font-weight: 600; }
.wb-sheet tr.k-s td.a { border-top: 1px solid var(--color-neutral-400); }
.wb-sheet tr.k-S td.l, .wb-sheet tr.k-S td.a { font-weight: 600; }
.wb-sheet tr.k-S td.a { border-top: 3px double var(--color-text); }

.wb-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-accent-100);
  border-top: 1px solid var(--color-divider);
}
.wb-flag {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  border: 1px solid var(--color-accent-700);
  padding: 0.125rem 0.375rem;
}
.wb-check span:last-child { font-size: 0.75rem; color: var(--color-neutral-800); }

.wb-tabs {
  display: flex;
  gap: 1px;
  padding: 0 0.5rem;
  background: var(--color-neutral-200);
  border-top: 1px solid var(--color-divider);
  overflow-x: auto;
}
.wb-tabs button {
  border: 0;
  border-top: 2px solid transparent;
  background: transparent;
  color: var(--color-neutral-800);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem 0.45rem;
  white-space: nowrap;
  cursor: pointer;
}
.wb-tabs button:hover { color: var(--color-accent-600); }
.wb-tabs button[aria-selected="true"] {
  background: var(--color-neutral-100);
  color: var(--color-text);
  font-weight: 600;
  border-top-color: var(--color-accent);
}

/* Author block */
.author { display: grid; gap: 2.5rem; align-items: start; }
.author-figure { margin: 0; }
.author-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
  overflow: hidden;
  filter: grayscale(0.35) contrast(1.15);
}
.author-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The newsprint dot screen, for the photograph as printed */
.author-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,0,0,0.22) 30%, transparent 32%);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}
/* An unfilled slot reads as a slot, not a hole: no 4:5 void a thousand pixels tall. */
.author-frame.is-empty { filter: none; aspect-ratio: auto; min-height: 11rem; display: grid; place-items: center; }
.author-frame.is-empty::after { content: none; }
.author-placeholder {
  font-size: 0.82rem;
  color: var(--color-neutral-700);
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--color-neutral-400);
  margin: 1rem;
}
.author-figure figcaption { margin-top: 0.5rem; font-size: 0.72rem; color: var(--color-neutral-700); }
.author-label { font-size: 0.69rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-neutral-600); margin: 0 0 1.125rem; }
.author-lead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.8125rem);
  line-height: 1.28;
  letter-spacing: -0.018em;
  margin: 0 0 1.125rem;
}
.author-body { margin: 0 0 1.75rem; font-size: 1rem; line-height: 1.65; color: var(--color-neutral-800); max-width: 62ch; }

/* --------------------------------------------------------------------------
   17. Product pages — one template, fifteen workbooks

   Every rule here replaces an inline style= attribute in the approved
   prototype. That is not a tidiness preference: script-src carries a sha256 and
   style-src is 'self', with no 'unsafe-inline' anywhere, so a style attribute is
   dropped by the browser exactly the way an onclick would be — and the page
   still serves 200 with all of its text, which is the failure mode this whole
   stylesheet's neighbours exist to prevent.

   Anything the product page could borrow, it borrows: .sec-head, .memo, .wb and
   its whole preview subtree, .buy, .margin-note, .samples, .badge-note. What is
   left below is only the shapes that had no class at all.
   -------------------------------------------------------------------------- */

/* The topbar workbook picker. Ships hidden — it navigates, so it is inert
   without JavaScript — and the script unhides it. */
.wb-pick { display: flex; align-items: center; gap: 0.6rem; }
.wb-pick[hidden] { display: none; }
.wb-pick-label {
  font-size: 0.59rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
  white-space: nowrap;
}
.wb-pick-field { position: relative; display: inline-flex; align-items: center; }
.wb-pick-sel {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--color-accent);
  border-radius: 0;
  padding: 0.32rem 1.5rem 0.26rem 0.1rem;
  max-width: min(56vw, 21rem);
  text-overflow: ellipsis;
  cursor: pointer;
}
.wb-pick-sel:hover { border-bottom-color: var(--color-accent-600); }
.wb-pick-sel:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.wb-pick-arrow {
  position: absolute;
  right: 0.3rem;
  font-size: 0.6rem;
  line-height: 1;
  color: var(--color-accent-700);
  pointer-events: none;
}

/* Hero. The preview column is tall; top-align it against the copy rather than
   letting the grid centre a short memo block against a long table. */
.hero-product { align-items: start; }
.hero-copy .sec-num { padding-top: 0; }
.prod-code { font-variant-numeric: tabular-nums; }
.hero-product .lede { max-width: 34ch; }
.prod-benefit {
  margin: 1rem 0 0;
  max-width: 50ch;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--color-neutral-800);
}
.hero-product .memo { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.prod-preview-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}
.prod-preview-note {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  color: var(--color-neutral-700);
  font-style: italic;
}

/* 01 — one card per tab. */
.tabgrid {
  display: grid;
  gap: 2.25rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.tabcard-num {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--color-accent-700);
  font-variant-numeric: tabular-nums;
}
.tabcard h3 { margin-bottom: 0.4rem; }
.tabcard-caption {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--color-neutral-700);
  font-style: italic;
}
.tabcard-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--color-neutral-800);
  max-width: 36ch;
}

/* 02 and 03 — three points, same shape in both. */
.pointgrid {
  display: grid;
  gap: 2rem 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.point h3 { margin-bottom: 0.4rem; }
.point p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--color-neutral-800);
  max-width: 36ch;
}

/* The .xlsx screenshot. Ships commented out in the markup until a capture
   exists; these rules are here so uncommenting is the whole job. */
.asset-figure {
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: start;
}
.asset-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}
.asset-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-cap {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-neutral-800);
  max-width: 44ch;
}
.asset-kicker {
  display: block;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-700);
  margin-bottom: 0.5rem;
}

/* 04 — price, licence, warranty. */
.licence-grid {
  display: grid;
  gap: 2.5rem 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  align-items: start;
}
.tier { padding: 1.1rem 0; border-top: 1px solid var(--color-neutral-300); }
.tier-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.tier-head h3 { margin: 0; }
.tier-price {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  font-size: 0.94rem;
  color: var(--color-neutral-700);
}
.tier-price-lead { font-size: 1.5rem; color: var(--color-text); }
.tier-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-neutral-800);
  max-width: 40ch;
}
.tier-actions {
  border-top: 1px solid var(--color-neutral-300);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* The accuracy warranty. Given the second accent because it is the only
   contractual sentence on the page. */
.warranty { border-top: 3px solid var(--color-accent-2-700); padding-top: 1.25rem; max-width: 46ch; }
.warranty-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.69rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-2-700);
}
.warranty-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.warranty-body { margin: 0.85rem 0 0; font-size: 0.88rem; line-height: 1.6; color: var(--color-neutral-800); }
.licence-grid .margin-note { margin-top: 2rem; }

/* 05 — related workbooks. Reuses .samples for its ruled rows, then overrides
   the three-up breakpoint below: these rows run name / note / price ACROSS,
   rather than three cards side by side. */
.related-list { grid-template-columns: 1fr; }
.related-row {
  display: grid;
  gap: 0.35rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  align-items: baseline;
}
.related-row .badge-note { margin: 0; }
.related-row .sample-state { text-align: right; font-variant-numeric: tabular-nums; }
.related-back { margin: 1.75rem 0 0; }

/* --------------------------------------------------------------------------
   18. Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 35rem) {
  .signup { grid-template-columns: 1fr auto; gap: 0.75rem; }
  .signup .buy { font-size: 0.97rem; padding: 0.6rem 1.4rem; }
  .form-filter { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 43.75rem) {
  :root { --gutter: 2rem; }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .samples { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
  /* Related workbooks opt out: those rows read across, not three abreast.
     Declared here rather than earlier so it outranks the line above. */
  .related-list { grid-template-columns: 1fr; column-gap: 0; }
  .sec-head { grid-template-columns: 4rem 1fr; }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .form-jump ul { grid-template-columns: repeat(3, 1fr); }

  .legal-doc thead { display: table-header-group; }
  .legal-doc thead tr, .legal-doc tbody tr { display: table-row; padding: 0; border-bottom: 0; }
  .legal-doc th, .legal-doc td {
    display: table-cell;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid var(--color-neutral-300);
  }
  .legal-doc th[scope="col"] {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-neutral-600);
    border-bottom: 1px solid var(--color-divider);
  }
  .legal-doc tbody tr:last-child th, .legal-doc tbody tr:last-child td { border-bottom: 0; }

  .forms { display: table; }
  .forms thead { display: table-header-group; }
  .forms tbody { display: table-row-group; }
  .forms tr { display: table-row; padding: 0; }
  .forms th, .forms td {
    display: table-cell;
    padding: 0.45rem 0.85rem 0.45rem 0;
    border-bottom: 1px solid var(--color-neutral-300);
    vertical-align: baseline;
  }
  .forms th {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-neutral-600);
    text-align: left;
    border-bottom: 1px solid var(--color-divider);
    white-space: nowrap;
  }
  .forms tr:last-child td { border-bottom: 0; }
  .f-code { width: 7.5rem; white-space: nowrap; }
  .f-date { width: 7rem; padding-right: 0; margin-top: 0; white-space: nowrap; }
  .f-tpl { width: 7rem; margin-top: 0; }
  .f-tpl:empty { display: table-cell; } /* keeps the row rule unbroken */
  .group-row th {
    display: table-cell;
    font-size: 0.72rem;
    color: var(--color-accent-700);
    padding: 1.75rem 0 0.4rem;
    border-bottom: 1px solid var(--color-divider);
    white-space: normal;
  }
  .forms tbody:first-of-type .group-row th { padding-top: 0.9rem; }
}

@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.35fr 1fr; align-items: start; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
  .hero-index { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .credential { max-width: 42ch; }
  .sec-head { grid-template-columns: 5rem 1fr; }
  .cards { grid-template-columns: 1fr; }
  .standard { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .signup { max-width: 42rem; }
  .cat-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
  .cat-pane { position: sticky; top: 5rem; }
  .author { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; }
  /* No photograph yet — the bio and badges take the full measure on their own. */
  .author-solo { grid-template-columns: 1fr; }
  .hub-cards { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   19. Motion — one restrained reveal, above the fold only
   -------------------------------------------------------------------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-index > * { animation: rise 420ms cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .hero-index > *:nth-child(2) { animation-delay: 70ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   20. Print — the page should print like the documents it sells
   -------------------------------------------------------------------------- */
@media print {
  body { color: #000; background: #fff; }
  .topbar-fixed, .topnav, .signup, .skip, .lang, .seg, .cat-bar, .wb-tabs, .wb-pick, .form-filter, .form-jump, .no-match { display: none; }
  .buy, .tier-action, .viewer-modes, .explorer-books, .explorer-toolbar, .explorer-tabs,
  .explorer-cta, .pi-tool-panel > summary { display: none !important; }
  .section, .masthead { padding: 0.75rem 0; }
  .card, .samples li, .hub-card, .forms tr, .form-group { break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .cat-layout, .author, .split, .hero, .hero-index { display: block; }
  .cat-pane { position: static; }
}
/* Product experience — 2026-09. Static discovery, bilingual details. */
.product-experience { font-size: 17px; line-height: 1.65; }
.product-experience .section { padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.product-experience h2 { letter-spacing: -.025em; line-height: 1.16; margin-bottom: 1.1rem; }
.product-experience h3 { line-height: 1.25; }
.product-experience .buy { min-height: 44px; gap: .6rem; line-height: 1.4; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: #52616a; margin: 0 0 1rem; line-height: 1.5; }
.small-copy { font-size: .84rem; color: #52616a; line-height: 1.6; }
.measure { max-width: 70ch; }
.section-intro { max-width: 760px; margin-bottom: 2rem; }
.section-intro p:last-child { margin-bottom: 0; }
.home-hero { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(260px,.8fr); align-items: center; gap: 5rem; padding-block: 4rem 3.5rem; }
.home-hero h1 { line-height: 1.08; max-width: 16ch; margin-bottom: 1.5rem; }
.home-intro { max-width: 60ch; font-size: 1.1rem; color: #444141; }
.hero-note { padding: 2.2rem; background: var(--color-accent-800); color: var(--color-accent-100); border-top: 4px solid var(--brass); }
.hero-note .eyebrow { color: var(--color-accent-200); }
.hero-note p:last-child { font-size: .9rem; margin-bottom: 0; }
.hero-note-title { font-family: var(--font-heading); font-size: clamp(1.85rem,2.6vw,2.7rem); line-height: 1.18; margin: 1.5rem 0; color: #fff; }
.product-section { border-top: 1px solid #cdd1d2; }
.product-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.product-card { background: #fff; border: 1px solid var(--color-neutral-300); border-top: 3px solid var(--color-accent); padding: 2rem; display: flex; flex-direction: column; }
.product-card h3 { margin-bottom: .35rem; }
.product-card h3 a { text-decoration: none; color: #201e1d; display: flex; align-items: center; justify-content: space-between; }
.product-card h3 a span { font-family: var(--font-ui); font-size: 1.5rem; color: var(--color-accent); }
.card-counterpart { color: var(--color-accent); font-weight: 600; font-size: .9rem; margin-bottom: 1.25rem; }
.card-purpose { max-width: 46ch; }
.benefit-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.benefit-list li { padding-left: 1.5rem; position: relative; margin-bottom: .65rem; }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.card-bottom { border-top: 1px solid #dce1e3; margin-top: auto; padding-top: 1.3rem; }
.card-bottom p:first-child { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; margin-bottom: .3rem; font-size: .9rem; }
.card-bottom strong { font-size: 1.1rem; }
.card-bottom .buy { width: 100%; }
.text-link { display: inline-block; margin-top: .75rem; font-size: .9rem; }
.workflow-overview { list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 1.4rem; padding: 0; }
.workflow-overview li { border-top: 1px solid #b4c4cb; padding-top: 1rem; }
.step-number { color: var(--color-accent); font-weight: 600; font-variant-numeric: tabular-nums; font-size: .85rem; display: block; margin-bottom: 1rem; }
.workflow-overview h3 { margin-bottom: .7rem; }
.workflow-overview p { font-size: .93rem; }
.section-link { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.sample-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.sample-cards article { background: #e7edef; padding: 1.75rem; }
.sample-cards a { display: block; margin-top: .6rem; }
.about-layout, .release-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.about-lead { font-family: var(--font-heading); font-size: 1.55rem; line-height: 1.4; }
.quality-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; margin-top: 2rem; }
.quality-grid h3 { margin-bottom: .8rem; }
.quality-grid p { font-size: .95rem; }
.quality-detail { border-top: 1px solid #cdd1d2; margin-top: 1.5rem; padding-top: 1rem; max-width: 75ch; }
.quality-detail summary { cursor: pointer; font-weight: 600; }
.quality-detail p { margin-top: 1rem; font-size: .95rem; }
.product-faq { max-width: 880px; margin-top: 1.5rem; }
.product-experience .faq summary { font-family: var(--font-ui); font-size: 1rem; padding-block: 1.2rem; }
.product-experience .faq-body p { font-size: 1rem; }
.product-hero { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.8fr); gap: 4rem; padding-block: 3.5rem; align-items: start; }
.product-hero h1 { margin-bottom: 1.4rem; line-height: 1.15; }
.product-hero h1 span { display: block; font-size: var(--type-subsection-title); color: #52616a; margin-top: .5rem; }
.product-purpose { font-size: 1.2rem; max-width: 53ch; }
.product-facts { background: #e7edef; border-top: 3px solid #006786; padding: 1.65rem; font-size: .93rem; }
.product-facts strong { display: block; font-size: 1.5rem; color: #183f4b; }
.edition-number { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 1rem; }
.edition-number span { font-family: var(--font-ui); font-size: .85rem; color: #52616a; }
.product-contents { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; border-top: 1px solid #cdd1d2; border-bottom: 1px solid #cdd1d2; padding-block: .6rem; }
.product-contents a { padding-block: .5rem; font-size: .9rem; }
.preview-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.25fr); gap: 3rem; align-items: center; }
.preview-layout > div { min-width: 0; }
.product-experience .wb { min-width: 0; }
.product-experience .wb-sheet { overflow-x: auto; }
.product-experience .wb-sheet table { min-width: 450px; font-size: .85rem; }
.product-experience .wb-sheet td.l { white-space: normal; }
.product-experience .wb-tabs { flex-wrap: wrap; }
.product-experience .wb-tabs[hidden] { display: none; }
.product-experience .wb-tabs button { min-height: 44px; font-size: .82rem; }
.product-experience .wb-legend { gap: .5rem; }
.product-experience .wb-key, .product-experience .wb-caption, .product-experience .wb-chrome-meta, .product-experience .wb-version { font-size: .78rem; letter-spacing: 0; }
.product-experience .wb-sheet th { font-size: .72rem; letter-spacing: .05em; }
.product-experience .wb-sheet td.r { font-size: .78rem; }
.workflow-steps { list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 3rem; padding: 0; }
.workflow-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .7rem; border-top: 1px solid #cdd1d2; padding-top: 1.2rem; }
.workflow-steps h3 { margin-bottom: .75rem; }
.workflow-steps p { font-size: .97rem; }
.tab-reference { font-size: .82rem !important; color: #52616a; padding-top: .25rem; }
.coverage-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4rem; }
.scope-note { border-left: 3px solid #9f285f; padding-left: 1.25rem; margin-top: 2rem; }
.scope-note h3 { margin-bottom: .65rem; }
.scope-note p { font-size: .93rem; }
.coverage-group { border-top: 1px solid #bdc7cb; padding-block: 1rem; }
.coverage-group summary { cursor: pointer; font-weight: 600; padding-block: .3rem; }
.coverage-group summary span { float: right; font-size: .8rem; color: #52616a; font-weight: 400; }
.sheet-inventory { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.1rem 0 .3rem; padding: 0; }
.sheet-inventory li { padding: .3rem .6rem; background: #e7edef; font-size: .83rem; }
.demo-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem; margin-top: 2.5rem; }
/* The provision page's extracts, one above the other at reading width (site review Task 4, 2026-11-01). */
.demo-gallery-stacked { grid-template-columns: 1fr; max-width: 62rem; gap: 2.5rem; }
.coverage-list { margin: 0; }
.coverage-list > div { border-top: 1px solid #bdc7cb; padding-block: .8rem; }
.coverage-list dt { font-weight: 600; margin: 0 0 .25rem; }
.coverage-list dd { margin: 0; color: #52616a; font-size: .9rem; }
.product-hero .buy-box { align-self: start; }
.demo-figure { margin: 0; min-width: 0; }
.demo-figure img { width: 100%; height: auto; display: block; border: 1px solid #cdd1d2; background: #fff; }
.demo-figure a { display: block; }
.demo-figure figcaption { margin-top: .85rem; font-size: .94rem; }
.demo-figure figcaption span { display: block; color: #52616a; margin-top: .3rem; font-size: .83rem; }
.release-files { padding-left: 1.2rem; font-size: .8rem; overflow-wrap: anywhere; }
.licence-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.licence-cards article { border: 1px solid #cdd1d2; background: #fff; padding: 1.5rem; display: flex; flex-direction: column; align-items: start; }
.licence-cards .buy { margin-top: auto; font-size: .85rem; }
.tier-amount { font-size: 1.4rem; font-weight: 600; color: #183f4b; margin-top: .75rem; }
.related-band .wrap { display: flex; gap: 1rem 2rem; flex-wrap: wrap; align-items: center; }
.related-band h2 { margin: 0 auto 0 0; }
#image-dialog { width: min(96vw,1400px); max-width: 96vw; max-height: 95dvh; border: 0; padding: 1rem; background: #fff; color: #201e1d; }
#image-dialog::backdrop { background: color-mix(in srgb, var(--color-text) 87%, transparent); }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: sticky; top: -1rem; padding-block: .5rem; background: #fff; }
.dialog-toolbar h2 { margin: 0; }
#image-close { min-height: 44px; padding: .5rem 1rem; font: inherit; cursor: pointer; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-neutral-300); }
#image-full { width: 100%; height: auto; display: block; }
@media (max-width: 959px) {
 .home-hero, .product-hero { gap: 2rem; }
 .home-hero { grid-template-columns: 1.4fr 1fr; }
 .workflow-overview { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .coverage-layout, .preview-layout { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
 .licence-cards { grid-template-columns: 1fr; }
 .about-layout, .release-layout { gap: 2rem; }
}
@media (max-width: 699px) {
 .topbar-fixed { position: static; }
 .topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; padding-block: .7rem; }
 .topbar .brand { grid-column: 1; }
 .topbar .topbar-end { grid-column: 2; grid-row: 1; }
 .topbar .topnav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 .5rem; font-size: .82rem; }
 .topbar .topnav a { min-height: 44px; display: flex; align-items: center; padding-block: .3rem; }
 .topbar .lang a, .topbar .lang .here { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
 .topbar .topbar-end > .buy { display: none; }
 .topbar .brand-sub { font-size: .55rem; }
 .product-experience { font-size: 16px; }
 .home-hero, .product-hero { grid-template-columns: 1fr; padding-block: 2.25rem; }
 .home-hero h1 { max-width: 19ch; }
 .hero-note { padding: 1.5rem; }
 .hero-note-title { font-size: 1.65rem; }
 .hero-note .eyebrow { margin-bottom: .7rem; }
 .hero-note-title { margin: .5rem 0; }
 .product-card-grid, .sample-cards, .about-layout, .release-layout, .quality-grid, .workflow-steps, .demo-gallery { grid-template-columns: 1fr; }
 .product-card { padding: 1.5rem; }
 .workflow-overview { grid-template-columns: 1fr; gap: .3rem; }
 .workflow-overview li { display: grid; grid-template-columns: 2rem 1fr; gap: 0 .5rem; padding-top: 1rem; }
 .workflow-overview p { grid-column: 2; }
 .workflow-overview .step-number { grid-row: 1 / 3; }
 .product-contents { gap: .1rem 1rem; }
 .product-experience .hero-actions { align-items: stretch; }
 .product-experience .hero-actions .buy { flex: 1 1 140px; }
 .product-experience .section { scroll-margin-top: 1rem; }
 .product-experience .wb-sheet table { min-width: 470px; }
}
@media print {
 .hero-note, .product-contents, #image-dialog { display: none; }
 .home-hero, .product-hero, .coverage-layout, .preview-layout { display: block; }
 .demo-figure, .product-card, .workflow-steps li { break-inside: avoid; }
}
/* Editorial product presentation: real worksheets and compact reference sections. */
.hero-extract { margin: 0; min-width: 0; align-self: center; }
.hero-extract a { display: block; background: #fff; border: 1px solid #d7dcde; padding: 12px; }
.hero-extract img { display: block; width: 100%; height: auto; }
.hero-extract figcaption { padding-top: 14px; font-size: 13px; line-height: 1.6; }
.hero-extract figcaption strong, .hero-extract figcaption span { display: block; }
.provision-section { background: #e9eeee; }
.provision-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.provision-layout h2 { max-width: 24ch; }
.provision-details { margin: 0 0 24px; }
.provision-details > div { border-top: 1px solid #bfcaca; padding: 16px 0; }
.provision-details dt { font-weight: 600; margin-bottom: 5px; }
.provision-details dd { margin: 0; }
.edition-label { font-size: 13px; margin: 24px 0 16px; }
.product-experience .home-hero { grid-template-columns: 1.15fr 1fr; gap: 56px; }
.launch-note p { font-size: 13px; color: #435555; padding-top: 14px; }
.hero-extract a:hover { border-color: #006b7d; }
.author-expertise { border-top: 1px solid #cbd1d1; margin-top: 24px; padding-top: 20px; }
.compact-preview summary { cursor: pointer; padding: 16px 0; }
.compact-preview .preview-layout { padding: 24px 0; }
@media (max-width: 760px) { .provision-layout, .product-experience .home-hero { grid-template-columns: 1fr; gap: 28px; } }

/* Discreet, readable author independence footnote. */
.product-experience .author-footnote { font-size: 12px; line-height: 1.65; color: #555f63; margin-top: 24px; }

/* Three equal product choices; stack before the text becomes cramped. */
.product-experience .product-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-experience .product-card .card-bottom > p { flex-wrap: wrap; gap: 8px; }
@media (max-width: 1000px) { .product-experience .product-card-grid { grid-template-columns: 1fr; } }

.product-experience .hero-credentials { font-size: 14px; line-height: 1.65; max-width: 60ch; margin: 20px 0 24px; }
.product-experience .hero-launch { font-size: 12px; line-height: 1.6; color: #555f63; margin: 16px 0 0; }

/* Workflow illustrations: local assets with a readable mobile text flow. */
.workbook-flowchart { margin-top: 3rem; }
.flowchart-image { margin: 1.5rem auto; max-width: 1000px; }
.flowchart-image img { display:block; width:100%; height:auto; }
.flowchart-text ol { list-style:none; padding:0; max-width:44rem; margin:1.5rem auto; }
.flowchart-text li { position:relative; padding:1.2rem; margin:0 0 2.6rem; border:1px solid #0088b0; background:#fff; scroll-margin-top:6rem; }
.flowchart-text li:not(:last-child)::after { content:'↓'; position:absolute; bottom:-2.3rem; left:50%; color:#006882; font-size:1.5rem; }
.flowchart-text .flow-excel { background:#e8f4f7; }
.flowchart-text .flow-decision { background:#fbeaf2; border-color:#d6006c; }
.flowchart-text h4 { margin:.5rem 0; }
.flowchart-text p { font-size:1rem; white-space:pre-line; }
.flow-connections a { color:#006882; }
@media (max-width:700px) {
 .flowchart-image { display:none; }
 .workbook-flowchart { overflow-wrap:anywhere; }
 .flowchart-text summary { display:none; }
}

/* Approved Sovereign & Brass direction. Product tables retain their own styles. */
:root { --editorial-paper:#faf8f4; --editorial-ink:#102027; --editorial-teal:#14534a; --editorial-rule:#c8c2b6; --brass:#b4843e; --brass-ink:#7a561e; --brass-bg:#f6eedc; --brass-border:#d7be93; }
.topbar-fixed { position:static; background:var(--editorial-paper); border-bottom:0; backdrop-filter:none; }
.topbar { flex-wrap:nowrap; padding:1.7rem 0; gap:1.5rem; }
.topbar .brand { flex-shrink:0; }
.topbar .brand-name { font-family:var(--font-heading); font-size:2.45rem; font-weight:500; letter-spacing:-.05em; }
.brand-tagline { display:block; max-width:25rem; margin-top:.4rem; font-family:var(--font-ui); font-size:.62rem; line-height:1.65; letter-spacing:.15em; text-transform:uppercase; white-space:normal; color:#475860; }
.topbar .topnav { margin-left:auto; justify-content:flex-end; font-family:var(--font-ui); font-size:.86rem; gap:1.7rem; }
.topbar .topnav a { color:var(--editorial-ink); white-space:nowrap; padding:.6rem 0; }
.topbar .topbar-end { margin-left:0; }
.topbar .lang { font-family:var(--font-ui); font-size:.8rem; }
.author-link { text-decoration:underline; text-underline-offset:.2em; }
.about-link { margin:.4rem 0 0; font-size:.85rem; }
.about-layout .author-figure { max-width:12rem; margin:0 0 1.2rem; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:3px solid var(--editorial-teal); outline-offset:4px; }
.buy:focus-visible { outline-offset:5px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.editorial-home .wrap, .template-library .wrap { max-width:1240px; }
.editorial-home .home-hero { grid-template-columns:minmax(0,1fr) minmax(0,1.04fr); gap:4rem; padding:4.5rem 0 3.5rem; }
.editorial-home .home-hero h1 { line-height:1.08; max-width:17ch; margin:.9rem 0 1.5rem; }
.editorial-home .eyebrow { font-family:var(--font-ui); color:#475d64; font-size:.69rem; letter-spacing:.17em; }
.editorial-home .home-intro { font-size:clamp(1.15rem,1.7vw,1.45rem); line-height:1.55; max-width:37ch; color:#475860; margin-bottom:1.8rem; }
.editorial-home .hero-actions { gap:1rem; }
.product-experience .buy, .template-library .buy { background:var(--editorial-teal); color:#fff; border:1px solid var(--editorial-teal); padding:.85rem 1.4rem; border-radius:2px; font-family:var(--font-heading); font-size:1rem; box-shadow:none; }
.product-experience .buy:hover, .template-library .buy:hover { background:var(--color-accent-800); border-color:var(--color-accent-800); color:#fff; }
.product-experience .buy-secondary, .template-library .buy-secondary { background:transparent; border-color:var(--color-divider); color:var(--editorial-ink); }
.product-experience .buy-secondary:hover, .template-library .buy-secondary:hover { background:var(--color-surface); border-color:var(--color-divider); color:var(--editorial-ink); }
.editorial-home .hero-credentials { font-family:var(--font-heading); font-size:.95rem; margin:2.6rem 0 .6rem; }
.editorial-home .hero-credentials::before { content:''; display:block; width:2rem; border-top:1px solid #789c9c; margin-bottom:.85rem; }
.editorial-home .hero-launch { font-size:.73rem; margin:0; color:#536269; }
.editorial-home .hero-extract { transform:rotate(-1deg); }
.workpaper-label { display:flex; justify-content:space-between; padding:.7rem 1rem; border:1px solid #d6dfda; border-bottom:0; border-radius:6px 6px 0 0; background:#edf0eb; color:#435657; font-family:var(--font-ui); font-size:.68rem; }
.editorial-home .hero-extract a { padding:0; border:1px solid #d6dfda; box-shadow:0 12px 35px #21383418; }
.editorial-home .hero-extract figcaption { text-align:right; font-size:.8rem; line-height:1.65; padding-top:1rem; }
.editorial-home .hero-extract figcaption strong { font-family:var(--font-heading); font-style:italic; font-weight:400; font-size:.95rem; }
.editorial-home .hero-extract figcaption span { font-size:.7rem; color:#52616a; }
.expertise-band { padding:2.5rem 0; border-bottom:1px solid var(--editorial-rule); }
.expertise-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem; }
.expertise-grid article { display:grid; grid-template-columns:2.8rem minmax(0,1fr); gap:1.3rem; padding-right:1.6rem; border-right:1px solid #d3dcd6; }
.expertise-grid article:last-child { border-right:0; padding-right:0; }
.expertise-number { color:var(--brass-ink); font:600 .9rem/1.4 var(--font-ui); font-variant-numeric:tabular-nums; letter-spacing:.08em; padding-top:.15rem; }
.editorial-home .expertise-grid h2,
.editorial-home .expertise-grid h3 { line-height:1.2; letter-spacing:-.025em; margin:0 0 .55rem; font-family:var(--font-heading); font-size:1.18rem; font-weight:600; color:var(--editorial-ink); }
.expertise-grid p { font-size:.9rem; line-height:1.55; color:#52616a; }
.editorial-home .section { padding:3.5rem 0; }
.editorial-home .category-section { padding:2.5rem 0; }
.category-heading { display:flex; align-items:center; justify-content:space-between; gap:2rem; margin-bottom:1.4rem; }
.category-heading h2 { letter-spacing:-.04em; }
.category-heading .text-link { font-size:.85rem; white-space:nowrap; }
.category-index { border-bottom:1px solid var(--editorial-rule); }
.category-row { display:grid; grid-template-columns:2.5rem minmax(0,1fr) 12rem 1.5rem; align-items:center; gap:1.5rem; padding:1.3rem 0; border-top:1px solid var(--editorial-rule); color:var(--editorial-ink); text-decoration:none; }
.category-row:hover { background:#eef1ea; color:var(--editorial-teal); }
.category-number { color:var(--editorial-teal); font:600 .8rem/1.4 var(--font-ui); font-variant-numeric:tabular-nums; letter-spacing:.08em; }
.category-copy strong { display:block; font-family:var(--font-heading); font-size:1.4rem; font-weight:400; letter-spacing:-.025em; line-height:1.3; }
.category-copy > span { display:block; font-size:.88rem; color:#52616a; margin-top:.3rem; }
.category-meta { display:flex; flex-direction:column; align-items:flex-start; gap:.35rem; }
.category-code { font-size:.86rem; color:#43575e; }
.category-status, .entry-status { font-size:.7rem; border-radius:3px; padding:.18rem .5rem; background:#e3eae5; color:#30534f; display:inline-block; }
.category-arrow { font-size:1.4rem; }
.editorial-home .section-intro { margin-bottom:1.7rem; }
.editorial-home .section-intro p { font-size:.9rem; color:#52616a; }
.editorial-home .sample-cards { gap:2.5rem; }
.editorial-home .sample-cards article { border:0; border-top:1px solid var(--editorial-rule); padding:1.2rem 0 0; background:transparent; }
.editorial-home .sample-cards h3 { margin-bottom:.6rem; }
.editorial-home .sample-cards p, .editorial-home .sample-cards a { font-size:.88rem; }
.editorial-home #samples { background:#f0f1eb; }
.editorial-home .about-layout { grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:4rem; }
.editorial-home .about-layout p { font-size:.9rem; line-height:1.7; }
.editorial-home .about-layout .about-lead { font-size:1rem; }
.editorial-home .author-footnote { font-size:.75rem; }
.contact-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6rem; border-top:1px solid var(--editorial-rule); padding-top:2.5rem; }
.editorial-home .contact-layout h2 { max-width:18ch; letter-spacing:-.05em; }
.contact-layout h3 { margin-bottom:.7rem; }
.contact-layout p { max-width:43ch; font-size:.9rem; color:#52616a; }
.contact-email { display:block; width:max-content; margin-top:1rem; font-size:.85rem; }
.editorial-home #faq { padding-top:1rem; }
.editorial-home .faq { max-width:100%; }
.editorial-home .faq summary { font-size:.95rem; }
.editorial-home .faq-body p { font-size:.9rem; }
.sitefoot { background:var(--editorial-paper); border-top:1px solid var(--editorial-rule); }
.sitefoot .foot-grid { gap:3rem; }
.sitefoot .brand-name { font-size:1.8rem; }
.sitefoot p, .sitefoot a { font-size:.8rem; }
.sitefoot .business-identity { font-size:.72rem; }
.template-library .library-hero { padding:3.5rem 0 2.2rem; }
.library-hero h1 { margin-bottom:1rem; }
.library-hero p { color:#52616a; max-width:60ch; }
.library-contents { display:flex; flex-wrap:wrap; gap:.6rem 1.6rem; padding-block:1.2rem; border-block:1px solid var(--editorial-rule); font-size:.88rem; }
.library-contents a { padding:.5rem 0; }
.library-sections { padding-block:2rem 4rem; }
.library-category { padding-block:2rem; scroll-margin-top:2rem; }
.library-category-heading { display:flex; gap:1.25rem; align-items:center; margin-bottom:1.3rem; }
.library-category-heading h2 { margin-bottom:.5rem; }
.library-category-heading p { color:#52616a; font-size:.9rem; }

/* Custom workbook enquiry. The intake is deliberately copy-and-send until a server-side
   delivery route is approved; the public page must never imply the site stores answers. */
.custom-template-page { font-family:var(--font-ui); }
.custom-template-page .custom-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(17rem,.8fr); align-items:center; gap:clamp(2rem,5vw,5rem); padding:4rem 0 3rem; }
.custom-hero h1 { max-width:14ch; margin:.65rem 0 1rem; color:var(--editorial-ink); line-height:1.05; }
.custom-hero p { max-width:62ch; color:#52616a; line-height:1.65; }
.custom-hero .eyebrow { color:#a94725; }
.custom-promise { padding:1.4rem 1.5rem; border:1px solid #d7b5a7; border-top:4px solid #a94725; background:#f4ece6; }
.custom-promise h2 { margin:0 0 .8rem; color:var(--editorial-ink); line-height:1.2; }
.custom-promise ol { margin:0; padding-left:1.2rem; color:#48595d; font-size:.88rem; line-height:1.8; }
.custom-intro { padding:1.3rem 0; border-top:1px solid var(--editorial-rule); border-bottom:1px solid var(--editorial-rule); }
.custom-intro p { max-width:76ch; margin:0; color:#475960; font-size:.94rem; line-height:1.7; }
.custom-form-section { padding:2.4rem 0 4rem; }
.custom-form-section > .wrap { display:grid; grid-template-columns:minmax(13rem,.55fr) minmax(0,1.45fr); align-items:start; gap:clamp(2rem,5vw,5rem); }
.custom-form-aside { position:sticky; top:1.5rem; }
.custom-form-aside h2 { color:var(--editorial-ink); line-height:1.12; }
.custom-form-aside p { color:#52616a; font-size:.88rem; line-height:1.65; }
.custom-privacy-note { padding:1rem; border-left:3px solid #a94725; background:#f4ece6; color:#573a2e !important; }
.custom-intake { padding:clamp(1.2rem,3vw,2.4rem); border:1px solid var(--editorial-rule); background:#fffefa; box-shadow:0 14px 32px #162b350a; }
.custom-intake fieldset { min-width:0; margin:0; padding:1.6rem 0; border:0; border-top:1px solid #d7dfd7; }
.custom-intake fieldset:first-child { border-top:0; padding-top:0; }
.custom-intake legend { width:100%; padding:0 0 .85rem; color:var(--editorial-ink); font:400 1.35rem/1.2 var(--font-heading); }
.custom-intake legend span { display:inline-block; margin-right:.55rem; color:#a94725; font:700 .72rem var(--font-ui); letter-spacing:.1em; }
.custom-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem 1.2rem; }
.custom-field { display:grid; align-content:start; gap:.35rem; color:#31494c; font-size:.82rem; font-weight:600; }
.custom-field-full { grid-column:1/-1; }
.custom-field input,.custom-field select,.custom-field textarea { width:100%; min-height:44px; padding:.65rem .7rem; border:1px solid #9faaa5; border-radius:2px; background:#fff; color:#1d3337; font:400 .9rem/1.4 var(--font-ui); }
.custom-field textarea { min-height:110px; resize:vertical; }
.custom-field input:focus,.custom-field select:focus,.custom-field textarea:focus { outline:3px solid #a9472533; border-color:#a94725; }
.custom-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem 1rem; }
.custom-options-spaced,.custom-fields-spaced { margin-top:1rem; }
.custom-option { display:flex; align-items:flex-start; gap:.55rem; color:#344d50; font-size:.87rem; line-height:1.45; }
.custom-option input { flex:none; width:1.05rem; height:1.05rem; margin:.12rem 0 0; accent-color:#a94725; }
.custom-help { margin:.5rem 0 0; color:#687673; font-size:.78rem; line-height:1.55; }
.custom-consent { display:flex; gap:.65rem; align-items:flex-start; margin:0 0 1rem; color:#354b4e; font-size:.84rem; line-height:1.55; }
.custom-consent input { flex:none; width:1.05rem; height:1.05rem; margin:.14rem 0 0; accent-color:#a94725; }
.custom-submit-row { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; }
.custom-submit { min-height:48px; padding:.75rem 1.2rem; border:1px solid #a94725; border-radius:2px; background:#a94725; color:#fff; cursor:pointer; font:700 .95rem var(--font-ui); }
.custom-submit:hover { background:#83351d; border-color:#83351d; }
.custom-submit-status { margin:0; color:#52616a; font-size:.82rem; }
.custom-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.4rem; padding:0 0 4rem; }
.custom-steps article { padding:1.2rem 0 0; border-top:2px solid #a94725; }
.custom-steps b { display:block; margin-bottom:.45rem; color:#a94725; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; }
.custom-steps h2 { margin:0 0 .45rem; color:var(--editorial-ink); line-height:1.2; }
.custom-steps p { margin:0; color:#52616a; font-size:.86rem; line-height:1.6; }
.library-entries { padding-left:3.45rem; }
.library-entry { display:flex; justify-content:space-between; gap:2rem; border-top:1px solid var(--editorial-rule); padding:1.5rem 0; }
.library-entry-copy { max-width:60ch; }
.library-entry h3 { margin-bottom:.7rem; }
.library-entry p { font-size:.9rem; color:#52616a; }
.library-entry-actions { flex-shrink:0; align-self:center; font-size:.88rem; }
.library-entry .entry-status { margin-bottom:.7rem; }
.category-back { display:block; font-size:.85rem; margin-top:1.5rem; }
@media (max-width:1050px) {
 .topbar { flex-wrap:wrap; gap:.7rem 1.5rem; }
 .topbar .topnav { gap:1.3rem; }
 .editorial-home .home-hero { gap:2rem; }
 .expertise-grid { gap:1.2rem; }
 .expertise-grid article { gap:.8rem; padding-right:1rem; grid-template-columns:2rem minmax(0,1fr); }
 .category-row { grid-template-columns:2.5rem minmax(0,1fr) 10rem 1rem; gap:1rem; }
}
@media (max-width:760px) {
 .topbar { display:flex; flex-wrap:wrap; padding:1.3rem 0; }
 .topbar .brand { max-width:100%; flex-shrink:1; }
 .topbar .brand-name { font-size:2rem; }
 .brand-tagline { max-width:22rem; font-size:.59rem; letter-spacing:.1em; }
 .topbar .topnav { display:flex; flex-wrap:wrap; order:3; width:100%; margin-left:0; gap:.1rem 1.3rem; font-size:.8rem; }
 .topbar .topnav a { min-height:44px; }
 .topbar .topbar-end { margin-left:auto; }
 .editorial-home .home-hero { grid-template-columns:1fr; padding:2rem 0; gap:2rem; }
 .editorial-home .home-hero h1 { max-width:19ch; }
 .editorial-home .hero-extract { transform:none; max-width:35rem; }
 .editorial-home .hero-credentials { margin-top:1.8rem; }
 .expertise-grid { grid-template-columns:1fr; gap:1.5rem; }
 .expertise-grid article { border-right:0; padding:0; grid-template-columns:2.5rem minmax(0,1fr); }
 .expertise-grid h2 { max-width:none; }
 .category-heading { display:block; }
 .category-heading h2 { margin-bottom:1rem; }
 .category-row { grid-template-columns:2rem minmax(0,1fr) 1rem; gap:.5rem 1rem; padding:1.2rem 0; }
 .category-row .category-number { grid-column:1; grid-row:1; }
 .category-copy { grid-column:2; }
 .category-copy strong { font-size:1.3rem; }
 .category-meta { grid-column:2; flex-direction:row; flex-wrap:wrap; gap:.5rem; }
 .category-arrow { grid-column:3; grid-row:1; }
 .custom-template-page .custom-hero { grid-template-columns:1fr; padding:2.5rem 0 1.8rem; gap:1.4rem; }
 .custom-form-section > .wrap { grid-template-columns:1fr; gap:1.2rem; }
 .custom-form-aside { position:static; }
 .custom-steps { grid-template-columns:1fr; gap:1.2rem; padding-bottom:2.5rem; }
 .custom-options,.custom-fields { grid-template-columns:1fr; }
 .custom-field-full { grid-column:auto; }
 .editorial-home .about-layout, .contact-layout { grid-template-columns:1fr; gap:1.6rem; }
 .editorial-home .section { padding:2.5rem 0; }
 .library-entries { padding-left:0; }
 .library-entry { flex-direction:column; gap:1rem; }
 .library-entry-actions { align-self:flex-start; }
 .sitefoot .foot-grid { gap:2rem; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }

/* Approved editorial A: fine serif lettering, maple leaf, persistent template navigation. */
.brand-lockup { display:inline-flex; align-items:center; gap:.85rem; }
.brand-leaf { flex:none; width:1.65rem; height:1.9rem; object-fit:contain; }
.topbar .brand-name { font-weight:400; letter-spacing:-.055em; }
.brand-tagline { font-family:"Source Serif 4", "Source Serif 4 Fallback", Georgia, serif; letter-spacing:.2em; }
.sitefoot .brand-lockup .brand-name { margin:0; font-family:var(--font-heading); font-weight:400; }
.editorial-home h2, .template-library h2,
.product-experience h2, .product-experience h3 { letter-spacing:-.035em; }
.product-topbar { position:sticky; top:0; z-index:30; border-bottom:1px solid var(--editorial-rule); box-shadow:0 3px 12px #162b3508; }
.product-topbar .topbar { flex-wrap:nowrap; padding:.75rem 0; gap:1.5rem; }
.product-topbar .brand-name { font-size:2rem; }
.product-topbar .brand-tagline { display:none; }
.product-topbar .topnav { width:auto; order:initial; flex-wrap:nowrap; gap:1.5rem; }
body :target, .library-category,
.editorial-home :target, .editorial-home .section,
.product-experience :target, .product-experience .section { scroll-margin-top:var(--nav-clear); }
@media (max-width:900px) {
 .product-topbar .topbar { gap:.75rem; }
 .product-topbar .topnav { gap:.85rem; font-size:.8rem; }
 .product-topbar .brand-name { font-size:1.7rem; }
}
@media (max-width:1100px) {
 .product-topbar .topbar { padding:.6rem 0; }
 .product-topbar .brand-name { font-size:1.8rem; }
 .product-topbar .brand-leaf { width:1.3rem; height:1.5rem; }
}
@media print { .product-topbar { display:none; } }

/* Compact forms chooser. Scoped so product and legal pages keep their layout. */
.forms-compact { padding-top: 28px; padding-bottom: 24px; }
.forms-compact h1 { line-height: 1.15; margin: 0 0 8px; max-width: none; }
.forms-intro { margin: 0 0 20px; font: 1rem/1.5 var(--font-ui); }
.forms-indexes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.forms-index { display: grid; grid-template-rows: auto 1fr auto auto; padding: 16px; border: 1px solid var(--color-neutral-300); border-top: 3px solid var(--color-accent); text-decoration: none; color: inherit; gap: 8px; }
.forms-index:hover { background: #e8efed; }
.forms-index:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.forms-index h2 { line-height: 1.25; margin: 0; }
.forms-index p { font: .9rem/1.45 var(--font-ui); margin: 0; }
.forms-index-count { font: .85rem/1.4 var(--font-ui); color: #495858; }
.forms-index-open { font: 600 .9rem/1.5 var(--font-ui); color: var(--color-accent); }
.forms-source { margin: 16px 0 0; font: .8rem/1.5 var(--font-ui); color: #495858; }
.forms-hub-dense footer .disclaimer { margin-top: 16px; }
@media (max-width: 640px) {
  .forms-compact { padding-top: 20px; }
  .forms-indexes { grid-template-columns: 1fr; gap: 10px; }
  .forms-index { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 5px 12px; padding: 12px; }
  .forms-index h2, .forms-index p { grid-column: 1 / -1; }
}

/* Compact searchable form indexes. */
.forms-list-dense #forms { padding-top: 20px; padding-bottom: 24px; }
.forms-list-title { line-height: 1.15; margin: 0 0 14px; }
.forms-list-dense .entity-switch { margin-bottom: 12px; }
.forms-list-dense .es-item { padding: 6px 10px; font-size: 12px; letter-spacing: 0; text-transform: none; }
.forms-list-dense .form-filter { margin-bottom: 0; padding-bottom: 10px; gap: 6px 16px; }
.forms-list-dense .form-filter input { padding: 9px 12px; }
.forms-list-dense .group-row th { padding-top: 12px; }
@media (width < 43.75rem) {
  .f-also { max-width: calc(100% - 0.5rem); white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .forms-list-dense #forms { padding-top: 16px; }
  .forms-list-dense .form-filter { grid-template-columns: minmax(0, 1fr) auto; }
  .forms-list-dense .filter-status { font-size: 10px; letter-spacing: 0; }
  .forms-list-dense .es-item { padding: 6px 8px; }
}
/* Compact practitioner workspace: tools first, supporting detail on demand. */
.resource-main { padding-top: 16px; padding-bottom: 18px; }
.resource-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; padding: 0 0 10px; border-bottom: 1px solid #cbd4c9; }
.resource-nav a { padding: 5px 0; }
.resource-nav a[aria-current] { color: #254534; font-weight: 700; text-decoration-thickness: 2px; }
.resource-hero h1 { line-height:1.15; margin-top:16px; }
.resource-hero h1, .template-notice h1 { margin-bottom:16px; }
.template-notice .buy { width:auto; white-space:normal; }
.resource-main .buy[download], .resource-panel > .buy, .resource-panel form > .buy { white-space: normal; text-wrap: balance; }
.resource-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.resource-cards article { padding: 16px; border: 1px solid #bdc7bf; }
.resource-cards h3 { line-height:1.2; margin: 0 0 8px; }
.resource-cards h3 a { color: inherit; text-decoration: none; }
.resource-cards p { font-size: 14px; line-height: 1.5; margin: 0; }
@media (min-width:761px) and (max-width:1050px) {
  .resource-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.resource-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.resource-panel { min-width: 0; padding: 16px 20px; border: 1px solid #bdc7bf; background: #fffdf7; }
.resource-panel h2 { line-height:1.15; margin: 0 0 12px; }
.resource-panel p { font-size: var(--type-support-copy); line-height: 1.5; margin: 8px 0; }
.resource-panel label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.resource-panel input, .resource-panel select { display: block; width: 100%; min-height: 42px; padding: 8px; border: 1px solid #889b8e; border-radius: 2px; background: white; color: #233f32; font: inherit; font-size: 14px; }
.resource-panel button { margin-top: 14px; }
.resource-result { background: #eaf0e9; }
.resource-result dt { font-size: 12px; margin-top: 16px; }
.resource-result dd { margin: 4px 0; font: 24px/1.2 var(--font-heading); }
.resource-notice { border-left: 3px solid #a47c37; background: #f1ecde; padding: 9px 12px; font-size: 13px; line-height: 1.5; }
.resource-details { border-top: 1px solid #cbd4c9; padding: 10px 0; margin-top: 8px; font-size: 14px; }
.resource-details summary { cursor: pointer; font-weight: 600; padding: 5px 0; }
.resource-details p, .resource-details li { line-height: 1.6; max-width: 900px; }
.resource-details h2 { margin: 18px 0 8px; }
.resource-foot { border-top: 1px solid #cbd4c9; padding-block: 14px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 12px; }
.resource-foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.resource-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-block: 1px solid #bdc7bf; padding: 9px 0; margin-bottom: 10px; font-size: 13px; }
.resource-toolbar p { margin: 0; }
.resource-toolbar > div { display: flex; gap: 16px; align-items: center; }
#t2-checklist { columns: 2; column-gap: 30px; }
.checklist-group { margin: 16px 0; break-inside: avoid; }
.checklist-group h2 { margin: 0 0 7px; }
.checklist-group h2 span { color: #768c80; padding-right: 8px; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #d9dfd7; cursor: pointer; font-size: 13px; line-height: 1.5; }
.checklist-item input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: #284d3a; }
.checklist-item:has(input:checked) { background: #eaf0e9; }
.rate-baseline { background: #eaf0e9; padding: 8px 12px; font-size: 14px; margin: 10px 0; }
.rate-scope, .rate-short-disclosure { font-size: 12px; line-height: 1.5; margin: 8px 0; }
.rate-scroll { overflow-x: auto; }
.rate-table { border-collapse: collapse; width: 100%; min-width: 690px; font-size: 13px; }
.rate-table caption { text-align: left; font-size: 11px; padding: 0 0 8px; }
.rate-table th, .rate-table td { text-align: right; padding: 8px 10px; border-bottom: 1px solid #cbd4c9; vertical-align: top; font-variant-numeric: tabular-nums; }
.rate-table th:first-child { text-align: left; width: 38%; }
.rate-table thead { background: #254534; color: #fffdf7; }
.rate-table tbody tr:nth-child(even) { background: #edf1e9; }
.rate-note { display: block; font-size: 11px; font-weight: 400; line-height: 1.4; margin-top: 3px; }
.rate-verification { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 11px; color: #42584a; }
.rate-verification p:empty { display: none; }
.rate-verification p { margin: 0; flex-basis: 100%; }
.resource-page :focus-visible { outline: 3px solid #94671f; outline-offset: 3px; }
#deadline-error { color: #8f291e; }
.home-quick-tools .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.home-quick-tools nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.home-quick-tools h2 { margin: 0 !important; }
.optional-section details > summary { cursor: pointer; font-size: 19px; padding: 8px 0; }
.optional-section details > .wrap { width: 100%; margin-top: 14px; }
.optional-section .workbook-flowchart { margin-top: 16px; }
.compact-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 24px; font-size: 14px; }
.compact-contact h2 { margin: 0; }
@media (max-width:760px) {
 .resource-main { padding-top: 12px; }
 .resource-nav { gap: 4px 13px; font-size: 12px; }
 .resource-cards, .resource-workspace { grid-template-columns: 1fr; }
 .resource-panel { padding: 12px 14px; }
 #t2-checklist { columns: 1; }
 .resource-hero h1 { margin-top:12px; }
 .resource-hero h1, .template-notice h1 { margin-bottom:12px; }
}
@media print {
 .resource-page .topbar-fixed, .resource-page button, .resource-nav, .resource-foot { display:none !important; }
 .resource-main { padding:0; width:100%; max-width:none; }
 .resource-workspace { display:block; }
 .resource-panel { margin-bottom:12px; }
 .rate-table { min-width:0; font-size:9pt; }
 .rate-scroll { overflow:visible; }
 #t2-checklist { columns:1; }
 .resource-page { color:#000; background:white; }
}

/* IFRS reporting checklist */
.reporting-meta { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr; gap:12px; margin:16px 0; }
.reporting-meta label { font-size:12px; font-weight:600; }
.reporting-meta input, .reporting-meta select, .report-status, .report-notes textarea { display:block; width:100%; font:13px/1.4 var(--font-ui); color:#294c4e; background:#fffdf7; border:1px solid #bac8c4; border-radius:3px; padding:7px; }
.reporting-meta input, .reporting-meta select { margin-top:5px; min-height:36px; }
.report-actions { flex-wrap:wrap; gap:8px !important; }
.report-actions button, .report-load { border:1px solid #bac8c4; border-radius:3px; padding:6px 10px; background:transparent; color:#294c4e; cursor:pointer; font:12px/20px var(--font-ui); }
.report-load input { max-width:160px; font-size:11px; }
.reporting-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:start; }
.report-group { border:1px solid #cbd4c9; padding:12px; border-radius:3px; }
.report-group[hidden] { display:none; }
.report-group > summary { font-weight:700; cursor:pointer; font-size:15px; }
.group-progress { float:right; font-size:12px; font-weight:400; color:#617270; }
.report-item { border-top:1px solid #d9dfd7; margin-top:10px; padding-top:10px; font-size:13px; }
.report-task { display:block; line-height:1.5; }
.report-item-controls { display:flex; align-items:center; gap:12px; margin-top:7px; }
.report-status { width:85px; }
.report-source { font-size:11px; color:#617270; }
.report-notes summary { cursor:pointer; color:#617270; font-size:11px; margin:6px 0; }
.report-notes textarea { resize:vertical; }
.report-notes textarea[aria-invalid="true"] { border-color:#9a5d27; }
.report-print-notes { display:none; }
@media(max-width:760px) { .reporting-meta { grid-template-columns:1fr 1fr; } .reporting-grid { grid-template-columns:1fr; } }
@media print { .report-actions { display:none !important; } .reporting-grid { display:block; } .report-group { break-inside:auto; margin-bottom:12px; } .report-item { break-inside:avoid; } .report-notes textarea { display:none; } .report-print-notes { display:block; white-space:pre-wrap; overflow-wrap:anywhere; } }

/* Template explorer: browser-only views of fictional sample workbooks. */
.library-explorer-callout { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 auto 34px; padding:22px 26px; border:1px solid #cbd4c9; background:#f7f6ef; }
.library-explorer-callout h2 { margin:4px 0 7px; line-height:1.25; color:#263b3b; }
.library-explorer-callout p { margin:0; max-width:55rem; color:#52615d; font-size:.9rem; }
.explorer-cta { display:inline-flex; align-items:center; gap:12px; min-height:46px; padding:10px 16px; flex:none; background:#274f4e; color:#fff; text-decoration:none; font:600 .88rem/1.2 var(--font-ui); }
.explorer-cta:hover { background:#183c3c; }
.template-explorer-page { background:#f4f3ed; }
.explorer-hero { padding-top:38px; padding-bottom:22px; }
.explorer-hero h1 { margin:.15em 0; line-height:1.1; color:#203a3b; }
.explorer-hero > p:not(.eyebrow) { max-width:60rem; color:#4f5f5b; }
.explorer-notice { display:inline-block; margin:8px 0 0; padding:8px 12px; border-left:3px solid #a06b23; background:#f4ead7; color:#60451e !important; font-size:.82rem; font-weight:650; }
.explorer-app { margin-bottom:56px; border:1px solid #c6c9c1; background:#fffefa; box-shadow:0 12px 32px rgba(27,39,39,.09); }
.explorer-books { display:flex; gap:5px; overflow-x:auto; padding:12px 14px; border-bottom:1px solid #cfd3ca; background:#f8f7f1; }
.explorer-book { min-height:42px; padding:8px 14px; border:1px solid #c8cfc8; background:#fffefa; color:#334b49; cursor:pointer; font:600 .86rem/1.2 var(--font-ui); white-space:nowrap; }
.explorer-book:hover,.explorer-book.is-active { border-color:#315d59; background:#e5eee8; color:#244947; }
.explorer-book.is-active { box-shadow:inset 0 -2px #315d59; }
.explorer-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:7px; padding:10px 12px; border-bottom:1px solid #cfd3ca; background:#f7f7f2; }
.explorer-toolbar button,.explorer-toolbar input { min-height:38px; padding:7px 10px; border:1px solid #b9c2bc; border-radius:2px; background:#fffefa; color:#294644; font:500 .8rem/1.2 var(--font-ui); }
.explorer-toolbar button { cursor:pointer; white-space:nowrap; flex-shrink:0; }
.explorer-toolbar button:hover { border-color:#315d59; background:#e8efea; }
.explorer-toolbar button:disabled { opacity:.45; cursor:not-allowed; }
.explorer-sheet-label { font-size:.8rem; font-weight:650; color:#354d4b; }
.explorer-toolbar input { min-width:150px; width:min(220px,35vw); }
.explorer-toolbar-spacer { flex:1 0 8px; }
.explorer-toolbar output { min-width:44px; text-align:center; font:600 .78rem/1.3 var(--font-ui); color:#465854; }
.explorer-tour { display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid #d3d6cd; background:#f5f0e1; }
.explorer-tour[hidden] { display:none; }
.explorer-tour > div { flex:1; }
.explorer-tour p { margin:2px 0; color:#45534f; font-size:.83rem; }
.explorer-tour button { min-height:36px; padding:6px 10px; border:1px solid #b9c2bc; background:#fffefa; color:#294644; cursor:pointer; font:500 .8rem/1.2 var(--font-ui); }
.explorer-tabs { display:flex; overflow-x:auto; gap:0; border-bottom:1px solid #aeb8b1; background:#edeee8; scrollbar-color:#a3b1aa #edeee8; }
.explorer-sheet-tab { min-height:38px; padding:7px 12px; flex:none; border:0; border-right:1px solid #d0d4ce; background:transparent; color:#53615e; cursor:pointer; font:500 .77rem/1.2 var(--font-ui); }
.explorer-sheet-tab:hover { background:#f8f8f3; color:#244947; }
.explorer-sheet-tab[aria-selected="true"] { background:#fffefa; color:#234b49; box-shadow:inset 0 2px #315d59; font-weight:700; }
.explorer-sheet-meta { display:flex; align-items:center; gap:12px; min-height:42px; padding:6px 13px; border-bottom:1px solid #d0d4ce; color:#50605b; font:500 .76rem/1.3 var(--font-ui); }
.explorer-sheet-meta strong { color:#263f3e; font-size:.86rem; }
.explorer-sheet-meta #explorer-edition { color:#66736f; }
.explorer-sheet-meta button { margin-left:auto; border:0; background:none; color:#315d59; cursor:pointer; text-decoration:underline; font:600 .76rem/1.3 var(--font-ui); }
.explorer-grid { height:min(65vh,680px); min-height:360px; overflow:auto; overscroll-behavior:contain; background:#fffefa; }
.explorer-loading { padding:24px; color:#5b6964; font:.9rem/1.5 var(--font-ui); }
.explorer-loading.is-error { color:#852e22; }
.explorer-grid table { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; color:#273838; font: calc(.78rem * var(--explorer-zoom-scale,1))/1.15 var(--font-ui); }
.explorer-grid th,.explorer-grid td { min-width:0; max-width:none; height:auto; padding:3px 7px; overflow:hidden; border-right:1px solid #e2e4df; border-bottom:1px solid #e2e4df; text-overflow:ellipsis; white-space:nowrap; }
.explorer-grid thead th { position:sticky; z-index:3; top:0; min-width:0; height:25px; background:#eef0eb; color:#54635f; text-align:center; font-weight:600; }
.explorer-grid tr > th:first-child,.explorer-grid tbody th { position:sticky; z-index:2; left:0; min-width:46px; width:46px; max-width:46px; background:#f1f2ed; color:#72807b; text-align:right; font-size:.7rem; font-weight:500; }
.explorer-grid thead th:first-child { z-index:4; left:0; }
/* The role colours are the fallback for data carrying no workbook formatting (table without .sv). */
.explorer-grid table:not(.sv) td.cell-input { background:#fff2cc; }
.explorer-grid table:not(.sv) td.cell-calculated { background:#d9e1f2; }
.explorer-grid table:not(.sv) td.cell-prior { background:#e7e7e7; color:#69716e; }
.explorer-grid table:not(.sv) td.cell-heading { background:#f4f4f0; font-weight:650; }
.explorer-grid table:not(.sv) td.cell-title { background:#304747; color:#fff; font-weight:700; }
.explorer-grid td.has-link { cursor:pointer; }
.explorer-grid table:not(.sv) td.has-link { color:#245c5a; text-decoration:underline dotted; text-underline-offset:3px; }
.explorer-grid td.is-selected { outline:2px solid #315d59; outline-offset:-2px; background:#e4eee7; }
.explorer-grid tr.explorer-spacer td { height:var(--spacer-h, auto); padding:0; border:0; }
.explorer-footnote { margin:0; padding:10px 14px; border-top:1px solid #d0d4ce; color:#65716d; font-size:.76rem; }
.template-explorer-page.zoom-50 { --explorer-zoom-scale:.5; }
.template-explorer-page.zoom-55 { --explorer-zoom-scale:.55; }
.template-explorer-page.zoom-60 { --explorer-zoom-scale:.6; }
.template-explorer-page.zoom-65 { --explorer-zoom-scale:.65; }
.template-explorer-page.zoom-70 { --explorer-zoom-scale:.7; }
.template-explorer-page.zoom-75 { --explorer-zoom-scale:.75; }
.template-explorer-page.zoom-80 { --explorer-zoom-scale:.8; }
.template-explorer-page.zoom-85 { --explorer-zoom-scale:.85; }
.template-explorer-page.zoom-90 { --explorer-zoom-scale:.9; }
.template-explorer-page.zoom-95 { --explorer-zoom-scale:.95; }
.template-explorer-page.zoom-100 { --explorer-zoom-scale:1; }
.template-explorer-page.zoom-105 { --explorer-zoom-scale:1.05; }
.template-explorer-page.zoom-110 { --explorer-zoom-scale:1.1; }
.template-explorer-page.zoom-115 { --explorer-zoom-scale:1.15; }
.template-explorer-page.zoom-120 { --explorer-zoom-scale:1.2; }
.template-explorer-page.zoom-125 { --explorer-zoom-scale:1.25; }
.template-explorer-page.zoom-130 { --explorer-zoom-scale:1.3; }
.template-explorer-page.zoom-135 { --explorer-zoom-scale:1.35; }
.template-explorer-page.zoom-140 { --explorer-zoom-scale:1.4; }
.template-explorer-page.zoom-fit .explorer-grid table:not(.sv) { width:100%; min-width:0; table-layout:auto; font-size:.78rem; }
@media(max-width:760px) {
 .library-explorer-callout { align-items:flex-start; flex-direction:column; padding:18px; }
 .explorer-hero { padding-top:24px; }
 .explorer-toolbar { gap:6px; }
 .explorer-sheet-label { flex:0 0 54px; }
 .explorer-toolbar input { flex:1 1 140px; }
 .explorer-toolbar-spacer { display:none; }
 .explorer-toolbar button { min-height:40px; }
 .explorer-grid { height:62vh; min-height:340px; }
 .explorer-grid th,.explorer-grid td { max-width:none; }
 .explorer-sheet-meta { flex-wrap:wrap; }
}

/* Read-only T2 workbook explorer and guided review path. */
.visually-hidden { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.workbook-explorer { background:#eae9e3; border-block:1px solid #d1d1c9; }
.workbook-explorer .section-intro { max-width:58rem; margin-bottom:1.5rem; }
.t2-demo { border:1px solid #c4c6be; background:#fbfaf7; box-shadow:0 14px 42px rgba(27,39,39,.12); }
.t2-demo-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; padding:.7rem; border-bottom:1px solid #c4c6be; background:#f4f3ee; }
.t2-demo-toolbar label:not(.visually-hidden) { color:#475257; font-size:.78rem; font-weight:600; }
.t2-demo-toolbar select, .t2-demo-toolbar input, .t2-demo-toolbar button, .t2-demo-tour button, .t2-demo-footer button, .t2-demo-scenario button { min-height:40px; padding:.45rem .7rem; border:1px solid #b9beb8; border-radius:2px; background:#fff; color:#243233; font:inherit; font-size:.83rem; }
.t2-demo-toolbar select { min-width:10rem; }
.t2-demo-toolbar input { min-width:9rem; flex:1 1 9rem; }
.t2-demo-toolbar button, .t2-demo-tour button, .t2-demo-footer button, .t2-demo-scenario button { cursor:pointer; }
.t2-demo-toolbar button:hover, .t2-demo-tour button:hover, .t2-demo-footer button:hover, .t2-demo-scenario button:hover { border-color:#2e5556; color:#214748; }
.t2-demo-toolbar button:disabled, .t2-demo-footer button:disabled { cursor:not-allowed; opacity:.48; }
.t2-demo-toolbar output { min-width:3.3rem; text-align:center; color:#435252; font-size:.8rem; font-variant-numeric:tabular-nums; }
.t2-demo-tour { display:flex; align-items:center; gap:.7rem; padding:.8rem 1rem; border-bottom:1px solid #d5d6ce; background:#f8f7f2; }
.t2-demo-tour > div { flex:1; }
.t2-demo-tour p { margin:.15rem 0; font-size:.86rem; }
.t2-demo-tour .eyebrow { font-size:.67rem; }
.t2-demo-tour button { white-space:nowrap; }
.t2-demo .wb { box-shadow:none; border:0; }
.t2-demo .wb-sheet { max-height:min(58vh,680px); overflow:auto; overscroll-behavior:contain; }
.t2-demo .wb-sheet table { min-width:38rem; font-size:.9rem; }
.t2-demo .wb-sheet td { padding:.42rem .65rem; }
.t2-demo .wb-sheet td.has-sheet-link { cursor:pointer; text-decoration:underline dotted; text-underline-offset:3px; }
.t2-demo .wb-sheet td.is-selected { outline:2px solid #315a58; outline-offset:-2px; background:#e5eee8; }
.t2-demo .wb-sheet tr.wb-error-row td { background:#f6e9e4; color:#7f2718; }
.t2-demo .wb-sheet tr.wb-tour-row td { background:#f0eddc; }
.t2-demo .wb-sheet td.wb-row-arrival { box-shadow:inset 0 0 0 2px #c18b36; }
.t2-demo .wb[data-zoom="80"] .wb-sheet table { font-size:.72rem; }
.t2-demo .wb[data-zoom="120"] .wb-sheet table { font-size:1.02rem; }
.t2-demo .wb[data-zoom="140"] .wb-sheet table { font-size:1.16rem; }
.t2-demo .wb[data-zoom="fit"] .wb-sheet table { width:100%; min-width:0; table-layout:fixed; }
.t2-demo .wb[data-zoom="fit"] .wb-sheet td.l { overflow-wrap:anywhere; }
.t2-demo-footer { display:flex; align-items:center; gap:1rem; padding:.6rem .85rem; border-top:1px solid #d5d6ce; }
.t2-demo-footer .small-copy { flex:1; margin:0; }
.t2-demo-scenario { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:.5rem 1rem; padding:1rem; border-top:1px solid #d5d6ce; background:#f8f7f2; }
.t2-demo-scenario p { margin:.2rem 0 0; color:#52616a; font-size:.82rem; line-height:1.5; }
.t2-demo-scenario #wb-scenario-status { grid-column:1/-1; color:#2d4947; font-weight:600; }
.t2-demo-note { padding:.8rem 1rem; margin:0; border-top:1px solid #e0e0d9; }
.t2-demo-note a { white-space:nowrap; }
.t2-demo.is-expanded { position:fixed; z-index:1000; inset:1rem; overflow:auto; box-shadow:0 0 0 100vmax rgba(20,28,28,.78); }
.t2-demo.is-expanded .t2-demo-toolbar { position:sticky; z-index:2; top:0; }
.t2-demo.is-expanded .wb-sheet { max-height:calc(100vh - 15rem); }
.workbook-expanded { overflow:hidden; }
.t2-demo .wb-sheet td:focus-visible { outline:2px solid #315a58; outline-offset:-2px; }
@media (max-width:700px) {
  .t2-demo-toolbar { gap:.4rem; }
  .t2-demo-toolbar select { flex:1 1 10rem; }
  .t2-demo-toolbar input { flex:1 1 100%; }
  .t2-demo-tour { align-items:flex-start; flex-wrap:wrap; }
  .t2-demo-tour > div { flex:1 1 100%; }
  .t2-demo .wb-sheet { max-height:54vh; }
  .t2-demo .wb-sheet table { min-width:34rem; font-size:.8rem; }
  .t2-demo-scenario { grid-template-columns:1fr; }
  .t2-demo-scenario #wb-scenario-status { grid-column:auto; }
  .t2-demo-footer { align-items:flex-start; flex-direction:column; }
  .t2-demo.is-expanded { inset:.35rem; }
}
@media (prefers-reduced-motion:reduce) { .t2-demo *, .workbook-explorer * { scroll-behavior:auto !important; transition:none !important; animation:none !important; } }

/* --------------------------------------------------------------------------
   Home walkthrough (walkthrough.js). Append to marketing/site/style.css,
   then run verify_site.py --stamp-stylesheet.
   -------------------------------------------------------------------------- */
.walkthrough-head { display:flex; flex-wrap:wrap; align-items:flex-end; gap:1rem 2rem; margin-bottom:.5rem; }
.walkthrough-head h2 { margin:0; max-width:24ch; }
.editorial-home .walkthrough-head h2 { max-width:none; }
.wt-pick { margin-left:auto; display:flex; align-items:center; gap:.6rem; font-size:.95rem; color:#475860; }
.wt-pick select { min-width:15rem; min-height:40px; padding:.35rem .6rem; font:inherit; color:var(--color-text); background:#fff; border:1px solid #a8b4b9; border-radius:var(--radius); cursor:pointer; }
.wt-pick select:focus-visible { outline:2px solid var(--color-accent); outline-offset:2px; }
.walkthrough-intro { margin:0 0 1.5rem; max-width:var(--measure); color:#475860; font-size:1.05rem; line-height:1.55; }
.wt-steps { list-style:none; margin:0 0 1.25rem; padding:0; display:flex; }
.wt-steps li { position:relative; flex:1 1 0; min-width:0; }
.wt-steps li::before { content:""; position:absolute; top:15px; left:50%; width:100%; height:2px; background:var(--color-neutral-300); }
.wt-steps li:last-child::before { display:none; }
.wt-steps li.is-done::before { background:var(--color-accent); }
.wt-steps button { position:relative; display:flex; flex-direction:column; align-items:center; gap:.4rem; width:100%; padding:0 .25rem; background:none; border:0; font:inherit; color:var(--color-neutral-700); cursor:pointer; }
.wt-steps button:focus-visible { outline:2px solid var(--color-accent); outline-offset:2px; }
/* flex:none: in the workbook pages' column a two-line title squeezed its circle into an oval
   (17.7 px wide for 30, owner, 2026-10-25). Every step keeps one circle and one title size. */
.wt-dot { flex:none; width:30px; height:30px; display:grid; place-items:center; border-radius:50%; border:1.5px solid var(--color-accent); background:#fff; color:var(--color-accent); font-size:.8rem; font-variant-numeric:tabular-nums; }
.wt-steps .is-done .wt-dot { background:var(--color-accent-100); }
.wt-steps .is-current .wt-dot { background:var(--color-accent); color:#fff; }
.wt-steps .is-current button, .wt-steps .is-done button { color:var(--color-text); }
.wt-step-title { font-size:.88rem; line-height:1.25; text-align:center; }
.wt-window { border:1px solid #b9b9b9; background:#fff; box-shadow:0 14px 42px rgba(27,39,39,.12); }
.wt-titlebar { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; padding:.45rem .75rem; background:#263f3e; color:#fff; font:13px/1.2 Calibri,Carlito,"Segoe UI",sans-serif; }
.wt-titlebar .wt-dots { display:flex; gap:5px; }
.wt-titlebar .wt-dots i { width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.35); }
.wt-titlebar .wt-file { min-width:0; overflow-wrap:anywhere; }
.wt-edition { margin-left:auto; opacity:.8; }
.wt-zoom { display:flex; align-items:center; justify-content:flex-end; gap:6px; min-height:40px; padding:5px 12px; background:#f3f3f3; border-bottom:1px solid #d4d4d4; font:13px Calibri,Carlito,"Segoe UI",sans-serif; color:#333; }
.wt-zoom output { min-width:44px; text-align:center; font-variant-numeric:tabular-nums; }
.wt-fx { display:flex; align-items:stretch; border-bottom:1px solid #d4d4d4; background:#fff; font:13px/1.2 Calibri,Carlito,"Segoe UI",sans-serif; }
.wt-fx > span { padding:6px 10px; border-right:1px solid #d4d4d4; }
.wt-ref { width:64px; color:#333; }
.wt-fxi { color:#777; font-style:italic; }
.wt-fxv { flex:1; min-width:0; border-right:0 !important; color:#1f1f1f; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wt-grid { height:480px; min-height:0; }
.wt-grid th.is-hl { background:#d6e6dc !important; color:#1d5a3a !important; }
.explorer-grid td.wt-hl { position:relative; z-index:4; overflow:visible; outline:2.5px solid #b3261e; outline-offset:-1px; }
.wt-sheetnote { position:sticky; left:0; margin:0; padding:.5rem .8rem; background:#e5eee8; border-bottom:1px solid #d0d4ce; font:13px/1.45 Calibri,Carlito,"Segoe UI",sans-serif; color:#244947; }
.wt-callout { position:absolute; top:-10px; z-index:6; width:380px; padding:14px 16px; white-space:normal; text-align:left; background:#fff; color:var(--color-text); border:2px solid #b3261e; box-shadow:0 12px 32px rgba(0,0,0,.18); font:15px/1.5 var(--font-ui); cursor:default; }
.wt-callout.is-right { left:calc(100% + 14px); }
.wt-callout.is-left { right:calc(100% + 14px); }
.wt-callout.is-below { top:calc(100% + 12px); left:12px; }
.is-below > .wt-callout-arrow { top:-8px; left:18px; border-left:2px solid #b3261e; border-top:2px solid #b3261e; }
.wt-callout-arrow { position:absolute; top:14px; width:12px; height:12px; background:#fff; transform:rotate(45deg); }
.is-right > .wt-callout-arrow { left:-8px; border-left:2px solid #b3261e; border-bottom:2px solid #b3261e; }
.is-left > .wt-callout-arrow { right:-8px; border-right:2px solid #b3261e; border-top:2px solid #b3261e; }
.wt-callout p { margin:0; }
.wt-callout-kicker { margin-bottom:2px !important; font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#b3261e; }
.wt-callout-title { margin-bottom:6px !important; font-size:20px; line-height:1.2; letter-spacing:-.02em; }
.wt-callout-text { margin-bottom:10px !important; color:var(--color-neutral-800); }
.wt-callout-hl { margin-bottom:10px !important; font-size:13px; font-style:italic; color:#555; }
.wt-callout-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:8px; }
.wt-callout-msg { margin-bottom:10px !important; padding:6px 8px; background:#e5eee8; color:#1d5a3a; font:13px/1.4 Calibri,Carlito,"Segoe UI",sans-serif; }
.wt-callout-nav { display:flex; justify-content:flex-end; gap:8px; }
.wt-callout-nav .buy { width:auto; min-height:36px; padding:.35rem .8rem; font-size:.9rem; }
.wt-xbtn { display:inline-flex; align-items:center; min-height:26px; padding:4px 12px; font:13px/1.2 Calibri,Carlito,"Segoe UI",sans-serif; color:#1f1f1f; background:linear-gradient(#fefefe,#e4e4e4); border:1px solid #8a8a8a; border-radius:2px; box-shadow:inset 0 1px 0 #fff,0 1px 1px rgba(0,0,0,.08); cursor:pointer; }
.wt-xbtn:hover { background:linear-gradient(#fff,#d9e6f2); border-color:#5b7c99; }
.wt-xbtn:active { background:#cfdcea; }
.wt-xbtn:disabled { opacity:.45; cursor:default; }
.wt-xbtn.is-spin { width:26px; height:26px; padding:0; justify-content:center; font-size:14px; }
.wt-count { min-width:40px; padding:4px 0; text-align:center; background:#fff4b8; border:1px solid #d1b94e; font:13px Calibri,Carlito,"Segoe UI",sans-serif; }
.wt-tabs { display:flex; align-items:stretch; background:#e9e9e9; border-top:1px solid #c8c8c8; overflow-x:auto; font:12.5px/1.2 Calibri,Carlito,"Segoe UI",sans-serif; }
.wt-tab { flex:none; padding:6px 12px; border:0; border-right:1px solid #cfcfcf; background:transparent; color:#333; font:inherit; white-space:nowrap; cursor:pointer; }
.wt-tab:hover { background:#f6f6f6; }
.wt-tab.is-active { background:#fff; color:#1d5a3a; font-weight:700; box-shadow:inset 0 -3px 0 #1d5a3a; }
.wt-tabs-note { flex:none; padding:6px 12px; color:#666; font-style:italic; white-space:nowrap; }
.walkthrough-fallback { margin:1rem 0 0; color:#475860; }
.walkthrough.is-ready .walkthrough-fallback { display:none; }
/* Without the script (or if steps.json fails) the widget chrome is an empty frame: show only the intro and the fallback link. */
.walkthrough:not(.is-ready) :is(.wt-pick, .wt-steps, .wt-window) { display:none; }
@media (max-width: 760px) {
  .wt-steps { overflow-x:auto; }
  .wt-steps li { flex:0 0 96px; }
  .wt-callout { width:280px; }
}

/* Home mission statement: replaced the product hero (T2 extract, buttons,
   credits) on 2026-09-26. One column, one sentence per line. */
.editorial-home .home-mission,
html[lang="en-CA"] .editorial-home .home-mission { grid-template-columns: 1fr; }
.editorial-home .home-mission,
html[lang="en-CA"] .editorial-home .home-mission { border: 1px solid var(--color-neutral-300); padding-inline: clamp(1rem, 2vw, 2rem); }
.editorial-home .home-mission h1,
html[lang="en-CA"] .editorial-home .home-mission h1 { max-width: none; }
.home-mission h1 span { display: block; }

/* Mission benefits (owner, 2026-09-26, layout B): an arrow from each "Every..." line to
   what it buys. Subgrid shares the three rows between the heading and the list, so each
   arrow sits level with its line whatever either side's height. Stacks below 760px. */
.mission-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-template-rows: repeat(3, auto) auto; column-gap: 2.5rem; }
.editorial-home .mission-grid h1 { grid-column: 1; grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; margin: 0; }
.mission-grid h1 span { align-self: center; }
.mission-benefits { grid-column: 2; grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; list-style: none; margin: 0; padding: 0; }
.mission-benefits li { position: relative; align-self: center; padding-left: 2.5rem; }
.mission-benefits li::before { content: "\2192"; content: "\2192" / ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; line-height: 1; color: var(--color-accent); }
.mission-benefits strong { display: block; font-size: 1.15rem; line-height: 1.3; color: var(--color-accent); }
.mission-benefits span { display: block; font-size: .95rem; line-height: 1.4; color: #475860; }
.mission-grid .home-intro { grid-column: 1 / -1; max-width: none; margin-top: 1.25rem; }
/* Homepage hero copy, shared by both languages. */
.hero-product-copy .hero-kicker, .resource-hero .hero-kicker { margin:0 0 .8rem; color:var(--brass-ink); font-family:var(--font-ui); font-size:.72rem; font-weight:700; letter-spacing:.15em; text-transform:uppercase; }
.hero-product-description { max-width:34rem; margin:0 0 1.3rem; color:#475860; font-size:1rem; line-height:1.6; }
/* Draw link arrows rather than asking an OS font to choose text or emoji. */
.symbol-arrow-out { position:relative; display:inline-block; width:12px; height:12px; flex:0 0 12px; vertical-align:-1px; }
.symbol-arrow-out::before { content:""; position:absolute; left:.5px; bottom:.5px; width:15px; height:1px; background:currentColor; transform:rotate(-45deg); transform-origin:left center; }
.symbol-arrow-out::after { content:""; position:absolute; top:0; right:0; width:7px; height:7px; border-top:1px solid currentColor; border-right:1px solid currentColor; }
.hero-product-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem 1rem; }
.hero-product-action { display:inline-flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem 1rem; min-height:44px; background:#143d34; border:1px solid #143d34; color:#fff; text-decoration:none; font-size:.85rem; font-weight:700; border-radius:3px; }
.hero-product-action:hover { background:#14565a; color:#fff; }
.hero-sample-link { display:inline-flex; align-items:center; gap:.65rem; min-height:44px; color:#143d34; font-size:.85rem; font-weight:700; text-underline-offset:.2em; }
.hero-audience { margin:1rem 0 0; color:#52625b; font-size:.82rem; }
/* One launch-status chip per page (2026-10-30, owner decision Q1). It replaced the hero scope line and every
   "in development" eyebrow; tests/test_copy_certainty.py keeps it to one per page. */
p.status-chip { display:inline-block; margin:0 0 .9rem; padding:.3rem .75rem; border-radius:999px; background:#163f33; color:#fff; font-family:var(--font-ui); font-size:.72rem; font-weight:700; letter-spacing:.06em; line-height:1.3; }
@media (min-width:1200px) { .editorial-home .walkthrough-intro { max-width:none; font-size:13px; white-space:nowrap; } }
@media (max-width:760px) {
  /* The form picker is a drop-down, as wide as its longest entry. .wt-embedded is the same tour on a
     workbook page: without it the rollover page measured 406 px (English) and 578 px (French) on a
     375 px screen (2026-11-13). Pinned by test_phone_width.py. */
  .editorial-home .wt-pick, .wt-embedded .wt-pick { max-width:100%; min-width:0; }
  .editorial-home .wt-pick select, .wt-embedded .wt-pick select { min-width:0; max-width:100%; flex:1; }
  .mission-grid { grid-template-columns:1fr; grid-template-rows:none; }
  .editorial-home .mission-grid h1, .mission-benefits { grid-column:1; grid-row:auto; display:block; }
}

/* Import & export guide (2026-09-26): numbered Taxprep steps with screenshots.
   Images carry width/height attributes, so the page reserves their space. */
.legal-doc .guide-steps > li { margin-bottom: 1rem; }
.guide-shot { margin: 0.75rem 0 0.25rem; }
.guide-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--color-neutral-300); box-shadow: 0 6px 18px rgba(27, 39, 39, 0.08); }
.guide-shot figcaption { margin-top: 0.4rem; font-size: 0.8rem; color: var(--color-neutral-600); }

/* Import & export guide, page layout (2026-09-26): a tight header, and a steps
   panel on the left that stays in view beside the procedure on wide screens. */
main > .masthead-compact { padding-bottom: 0.5rem; }
main > .masthead-compact .hero { padding-top: var(--sec-pad); }
.ie-guide .hero-page h1 { margin-bottom: 0.35rem; }
.ie-guide .lede { max-width: none; margin-top: 0; }
.ie-guide #document { padding-top: 1rem; }
.ie-guide .legal-meta { margin-bottom: 0.6rem; }
.ie-guide [id] { scroll-margin-top: var(--nav-clear); } /* clears the sticky navigation bar */
@media (max-width:760px) {
  .ie-guide main[id], .ie-guide main [id],
  main[id]:has(> .masthead-compact) { scroll-margin-top:calc(var(--nav-clear) + 2.5rem); }
}
.ie-layout { display: grid; gap: 1.5rem; }
.ie-steps {
  align-self: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-neutral-300);
  background: var(--color-bg);
  font-size: 0.86rem;
  line-height: 1.5;
}
.ie-steps .margin-label { margin: 0 0 0.6rem; }
.ie-steps ol { list-style: none; margin: 0; padding: 0; }
.ie-steps > ol > li { margin-bottom: 0.8rem; }
.ie-steps > ol > li > a { font-weight: 600; color: var(--color-text); }
.ie-steps ol ol { margin-top: 0.35rem; counter-reset: ie-step; }
.ie-steps ol ol li { position: relative; counter-increment: ie-step; padding-left: 1.6rem; margin-bottom: 0.25rem; }
.ie-steps ol ol li::before {
  content: counter(ie-step);
  position: absolute; left: 0; top: 0.1rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.68rem; color: var(--color-accent-800);
  border: 1px solid var(--color-accent-800);
}
.ie-steps a { text-decoration: none; color: var(--color-neutral-800); }
.ie-steps a:hover { color: var(--color-accent); text-decoration: underline; }
.ie-steps-related { margin: 0.9rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--color-neutral-300); font-size: 0.8rem; }
@media (min-width: 60rem) {
  .ie-layout { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 3rem; }
  .ie-steps { position: sticky; top: var(--nav-clear); }
}

/* Workbook pages, layout B (2026-09-26): compact hero with a facts box, one viewer with three
   modes (Guided tour · All tabs · Forms covered), details collapsed underneath.
   .superpowers/sdd/2026-09-26-workbook-pages/spec.md */
/* One column on a phone, and it must be able to shrink: with no stated size the column is as wide
   as the widest unbreakable content inside it. The T2 step strip (five tabs that never wrap)
   pushed it to 472 px in English and 617 px in French on a 375 px screen, price box included
   (measured 2026-11-13). Pinned by test_hero_stepper.py. */
.wb-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 0.75rem 0 1rem; }
.wb-hero h1 { line-height: 1.12; margin: 0.25rem 0 0.5rem; }
.wb-hero h1 span { color: var(--color-neutral-600); }
.wb-hero .product-purpose { margin: 0; max-width: 62ch; }
.wb-benefits { margin: 0.7rem 0 0; padding-left: 1.1rem; }
.wb-benefits li { margin-bottom: 0.25rem; }
/* The workflow stepper (2026-11-01): three measured benefits above five steps. Without the script
   every panel shows as a list; .is-ready (set by hero-stepper.js) folds them into tabs. */
.hero-stepper { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--color-divider); }
.hs-kicker { margin: 0 0 0.5rem; color: var(--color-neutral-600); font: 700 0.7rem/1.2 var(--font-ui); letter-spacing: 0.09em; text-transform: uppercase; }
.hs-benefits { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.hs-benefit { display: grid; width: 100%; height: 100%; gap: 0.15rem; padding: 0.65rem 0.8rem; border: 1px solid var(--color-neutral-300); border-radius: 10px; background: var(--color-surface); color: var(--color-text); text-align: left; font: inherit; }
.hero-stepper:not(.is-ready) .hs-benefit { cursor: default; }
.hero-stepper.is-ready .hs-benefit { cursor: pointer; }
.hs-benefit.is-active { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.hs-figure { font: 700 1.5rem/1.05 var(--font-ui); letter-spacing: -0.02em; color: var(--color-accent-700); }
.hs-name { font-weight: 600; }
.hs-unit { color: var(--color-neutral-600); font-size: 0.86rem; }
.hero-stepper .hs-title { margin: 1.1rem 0 0.5rem; letter-spacing: normal; }
.hs-steps { display: flex; gap: 0.3rem; overflow-x: auto; padding-bottom: 0.2rem; }
.hs-steps:empty { display: none; }
.hs-steps [role="tab"] { flex: 1 0 auto; min-height: 44px; padding: 0.4rem 0.6rem; border: 1px solid var(--color-neutral-300); border-radius: 8px; background: var(--color-bg); color: var(--color-neutral-700); font: 600 0.82rem/1.2 var(--font-ui); cursor: pointer; white-space: nowrap; }
.hs-steps [role="tab"].is-linked { background: var(--color-accent-100); border-color: var(--color-accent-200); color: var(--color-accent-800); }
.hs-steps [role="tab"][aria-selected="true"] { border-color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.hs-steps [role="tab"]:focus-visible { outline-offset: -3px; }
.hs-panels { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.hs-panel { padding: 0.75rem 0.9rem; border: 1px solid var(--color-neutral-300); border-radius: 10px; background: var(--color-surface); }
.hero-stepper.is-ready .hs-step-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-stepper .hs-step-title { margin: 0 0 0.3rem; letter-spacing: normal; }
.hs-figure-line { margin: 0 0 0.5rem; }
.hs-vs { display: grid; gap: 0.3rem; margin: 0 0 0.5rem; }
.hs-vs div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.6rem; }
.hs-vs dt { color: var(--color-neutral-600); font-size: 0.86rem; }
.hs-vs dd { margin: 0; }
@media (max-width: 30rem) { .hs-vs div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.wb-facts { border: 1px solid var(--color-neutral-300); padding: 0.9rem 1.1rem; font-size: 0.9rem; align-self: start; }
.wb-facts dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.9rem; margin: 0 0 0.85rem; }
.wb-facts dt { color: var(--color-neutral-600); }
.wb-facts dd { margin: 0; }
.wb-facts-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
/* Every .buy is nowrap; in the price box that let a long label leave the box and widen the page
   ("Télécharger l’exemple (PDF, anglais)", 299 px: 19 px past a 320 px phone, 7 px past a 768 px
   tablet, measured 2026-11-13). Here the label wraps instead. The half-rem lean is deliberate: that
   label is 4 px wider than the box's content at 375 px and on a desktop screen, where it has always
   sat on one line; it must stay under the box's 1.2rem side padding. Pinned by test_phone_width.py. */
.wb-facts-actions .buy { width: auto; flex-shrink: 0; max-width: calc(100% + 0.5rem); white-space: normal; text-wrap: balance; }
.wb-facts-actions .small-copy { flex-basis: 100%; margin: 0; }
/* The buy box (site review Task 3, 2026-11-01): price, tiers, included, requirements, actions. */
.buy-box { padding: 1.1rem 1.2rem 1rem; background: #fffdf8; border-color: #c7d1cb; }
.buy-box-price { display: flex; flex-direction: column; margin: 0 0 .3rem; }
.buy-box-price strong { font-family: var(--font-heading); font-size: 1.8rem; line-height: 1.1; letter-spacing: -.01em; color: var(--color-text); }
.buy-box-price-pending strong { font-size: 1rem; line-height: 1.35; }
.buy-box-price span { font-size: .76rem; color: var(--color-neutral-600); }
.buy-box-scope { margin: 0 0 .85rem; font-size: .82rem; color: var(--color-neutral-700); }
.buy-box-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 0 0 .95rem; padding: 0; list-style: none; }
.buy-box-tiers li { display: flex; flex-direction: column; gap: .1rem; padding: .35rem .4rem; border: 1px solid var(--color-neutral-300); border-radius: 4px; font-size: .7rem; color: var(--color-neutral-600); text-align: center; }
.buy-box-tiers li::before { content: none; }
.buy-box-tiers li strong { font-size: .84rem; color: var(--color-text); font-variant-numeric: tabular-nums; }
.buy-box-tiers li.is-on { border-color: #1f3d33; background: #e6efe9; color: #1f3d33; }
.buy-box-label { margin: 0 0 .3rem; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-neutral-600); }
.buy-box-list { margin: 0 0 .85rem; padding-left: 1.05rem; font-size: .84rem; line-height: 1.5; }
.buy-box-list li { margin-bottom: .25rem; }
.buy-box-req { margin: 0 0 .9rem; padding: .45rem .6rem; border-radius: 4px; background: #e6efe9; color: #1f3d33; font-size: .76rem; line-height: 1.45; }
.buy-box .wb-facts-actions { margin-bottom: .75rem; }
.buy-box .buy-box-review, .buy-box .buy-box-foot { margin: 0 0 .35rem; }
.wb-viewer { padding-top: 0.25rem; padding-bottom: 1.5rem; }
.viewer-modes { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--color-neutral-300); }
.viewer-modes [role="tab"] { padding: 0.55rem 0.9rem; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; color: var(--color-neutral-700); cursor: pointer; }
.viewer-modes [role="tab"][aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-accent); font-weight: 600; }
.viewer-modes [role="tab"]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.viewer-count { font-size: 0.72rem; background: var(--color-accent-100); color: var(--color-accent-800); border-radius: 999px; padding: 0.05rem 0.45rem; margin-left: 0.2rem; }
.wb-viewer:not(.is-ready) .viewer-modes, .wb-viewer:not(.is-ready) #mode-tabs { display: none; }
.viewer-panel[hidden] { display: none; }
.guide-preview { padding:1.2rem 0 2rem; color:var(--editorial-ink); }
.wb-viewer #guide { scroll-margin-top:calc(var(--nav-clear) + 4rem); }
.product-experience section#guide:not(.viewer-panel) { scroll-margin-top:var(--nav-clear); }
.guide-preview-head { display:flex; align-items:end; justify-content:space-between; gap:1.5rem; padding:0 0 1.25rem; border-bottom:1px solid #b6c4c2; }
.guide-preview-head .eyebrow { margin:0 0 .35rem; color:#526e63; }
.guide-preview-head h2 { margin:0; line-height:1.12; }
.guide-preview-head > p { max-width:none; margin:0; color:#52616a; font-size:.87rem; line-height:1.5; }
.guide-preview-group { margin-top:1.4rem; }
.guide-preview-group h3 { margin:0 0 .7rem; line-height:1.2; }
.guide-preview-toolbar { display:none; align-items:center; justify-content:space-between; gap:.8rem; min-height:3.3rem; margin-bottom:.8rem; padding:.45rem .75rem; border:1px solid #b6c4c2; background:#fffefa; }
.guide-preview-group.is-ready .guide-preview-toolbar { display:flex; }
.guide-preview-position { margin:0; color:#173d35; font-family:var(--font-ui); font-size:.83rem; font-weight:700; }
.guide-preview-actions { display:flex; gap:.4rem; }
.guide-preview-actions button { min-height:2.1rem; padding:.35rem .7rem; border:1px solid #8da9a0; background:#f7f5ef; color:#14565a; font:700 .78rem/1.2 var(--font-ui); cursor:pointer; }
.guide-preview-actions button:hover:not(:disabled) { background:#e5efe8; }
.guide-preview-actions button:disabled { opacity:.42; cursor:default; }
.guide-preview-stage { position:relative; }
.guide-preview-group.is-ready .guide-preview-stage { display:flex; justify-content:center; padding-inline:3.5rem; }
.guide-preview-page { min-width:0; max-width:55rem; margin:0 auto 1rem; padding:1.15rem; border:1px solid #b6c4c2; background:#fffefa; }
.guide-preview-page[hidden] { display:none; }
.guide-preview-page img { display:block; width:100%; height:auto; border:1px solid #d9dcd5; box-shadow:0 10px 26px #162b3514; }
.guide-preview-page figcaption { margin-top:.7rem; color:#52616a; font-size:.75rem; text-align:center; }
.guide-side-button { display:none; position:absolute; top:50%; z-index:1; width:2.7rem; height:3.5rem; transform:translateY(-50%); border:1px solid #8da9a0; background:#eaf0e9; color:#143d34; font:400 2.3rem/1 var(--font-heading); cursor:pointer; }
.guide-preview-group.is-ready .guide-side-button { display:block; }
.guide-side-button:hover:not(:disabled) { background:#cfe2d6; }
.guide-side-button:disabled { opacity:.32; cursor:default; }
.guide-side-prev { left:.2rem; }
.guide-side-next { right:.2rem; }
.library-transfer-note { display:flex; align-items:center; gap:.55rem 1rem; margin-bottom:1.4rem; padding:.7rem 1rem; border-left:3px solid #14565a; background:#eaf0e9; color:#344e46; font-size:.82rem; }
.library-transfer-note strong { color:#143d34; white-space:nowrap; }
.library-transfer-note a { margin-left:auto; color:#14565a; font-weight:700; white-space:nowrap; }
@media (max-width:700px) {
  .library-transfer-note { display:block; }
  .library-transfer-note span { display:block; margin:.3rem 0; }
  .guide-preview-head { display:block; }
  .guide-preview-head > p { margin-top:.7rem; }
  .guide-preview-toolbar { flex-wrap:wrap; }
  .guide-preview-position { flex-basis:100%; }
  .guide-preview-actions { justify-content:space-between; width:100%; }
  .guide-preview-actions button { flex:1; }
  .guide-preview-group.is-ready .guide-preview-stage { padding-inline:1.8rem; }
  .guide-preview-page { margin-bottom:.6rem; padding:.5rem; }
  .guide-side-button { width:1.8rem; height:3rem; background:#143d34e8; color:#fff; font-size:1.8rem; }
  .viewer-modes { flex-wrap:nowrap; overflow-x:auto; }
  .viewer-modes [role="tab"] { flex:none; white-space:nowrap; }
}
.wt-embedded .walkthrough-head { margin-bottom: 0.5rem; }
.wt-embedded.is-single .walkthrough-head { display: none; }
.explorer-embedded .explorer-app { margin-bottom: 0; }
.explorer-app.is-single .explorer-books { display: none; }
.viewer-forms-title { margin: 0 0 0.75rem; }
.viewer-forms { display: grid; gap: 1rem 2rem; }
.viewer-forms-group h3 { letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-600); margin: 0 0 0.35rem; }
.viewer-forms-group h3 span { margin-left: 0.3rem; }
.viewer-forms-group ul { list-style: none; margin: 0; padding: 0; }
.viewer-forms-group li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.6rem; padding: 0.3rem 0; border-bottom: 1px solid var(--color-neutral-300); font-size: 0.88rem; break-inside: avoid; }
.viewer-forms-group li a { font-variant-numeric: tabular-nums; }
.wb-details { padding-top: 0.5rem; }
.wb-detail { border-top: 1px solid var(--color-neutral-300); padding: 0.7rem 0; }
.wb-detail > summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.wb-detail > p, .wb-detail > ul, .wb-detail > div { margin-top: 0.6rem; }
.wb-tab-groups { padding-left: 1.1rem; }
.wb-tab-groups li { margin-bottom: 0.3rem; }
@media (min-width: 60rem) {
  .wb-hero { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; }
  .hs-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-embedded .wt-body { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
  .wt-embedded .wt-steps { flex-direction: column; margin: 0; gap: 0.15rem; }
  .wt-embedded .wt-steps li { flex: none; }
  .wt-embedded .wt-steps li::before { display: none; }
  .wt-embedded .wt-steps button { flex-direction: row; align-items: center; gap: 0.6rem; padding: 0.35rem 0.2rem; }
  .wt-embedded .wt-step-title { text-align: left; }
  .viewer-forms-group ul { columns: 2; column-gap: 2rem; }
}

/* The Precision Leaf mark (2026-09-26) is wider than it is tall (about 1.07:1); the old
   maple leaf was taller. Boxes sized to the new mark so object-fit does not shrink it. */
.brand-leaf { width: 2rem; height: 1.85rem; }
.product-topbar .brand-leaf { width: 1.6rem; height: 1.5rem; }
/* Approved compact forest navigation, matching the user-guide cover (#143d34). */
html[lang] body .product-topbar { background:#143d34; border-bottom:1px solid #7eaa9180; box-shadow:none; }
html[lang] body .product-topbar .brand,
html[lang] body .product-topbar .brand:hover,
html[lang] body .product-topbar .brand-name,
html[lang] body .product-topbar .topnav a { color:#f7f5ef; }
html[lang] body .product-topbar .brand-leaf { content:url("/assets/taxworkbooks-leaf-cover.ebbdc52ce3.svg"); }
html[lang] body .product-topbar .lang { border-color:#9dbbab; }
html[lang] body .product-topbar .lang .here { background:#f7f5ef; color:#143d34; }
html[lang] body .product-topbar .lang a { color:#d0ddd5; }
html[lang] body .product-topbar a:hover { color:#fff; }

/* The forest bar stays compact: one row of navigation since 2026-10-28. */
html[lang] body .product-topbar .topbar { padding:6px 0; }
html[lang] body .product-topbar .brand-name { font-size:1.8rem; }
html[lang] body .product-topbar .brand-leaf { width:1.35rem; height:1.35rem; }
@media (max-width:360px) {
  html[lang] body .product-topbar .brand-name { font-size:1.5rem; }
  html[lang] body .product-topbar .topbar { gap:.5rem; }
}

/* One navigation bar (website trust review, 2026-10-28). The Templates, Calculators and
   Resources rows became two <details> menus in the bar. <details> opens and closes by click
   and by keyboard with no script, so the strict CSP needs no new hash. Desktop: the open
   panel drops below its summary. Up to 1100px the links take a second row; up to 48rem the
   panels sit in the flow and stack instead of floating. */
html[lang] body .product-topbar .topnav { display:flex; flex-wrap:nowrap; align-items:center; gap:1.4rem; width:auto; order:initial; margin:0 0 0 auto; padding:0; font:.86rem var(--font-ui); }
html[lang] body .product-topbar .topnav > li { position:relative; }
html[lang] body .product-topbar .topnav > li > a { display:flex; align-items:center; min-height:44px; padding:0; }
.nav-menu > summary { display:flex; align-items:center; gap:.45rem; min-height:44px; cursor:pointer; list-style:none; white-space:nowrap; }
.nav-menu > summary::-webkit-details-marker { display:none; }
.nav-menu > summary::after { content:""; width:.38rem; height:.38rem; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-.15rem) rotate(45deg); }
.nav-menu[open] > summary::after { transform:translateY(.1rem) rotate(-135deg); }
html[lang] body .product-topbar .nav-menu > summary { color:#f7f5ef; }
html[lang] body .product-topbar .nav-menu > summary:hover { color:#fff; }
html[lang] body .product-topbar .nav-menu > summary:focus-visible { outline:2px solid #f7f5ef; outline-offset:3px; }
.nav-menu[open] > div { position:absolute; top:100%; left:0; z-index:40; min-width:18rem; padding:.6rem; background:var(--editorial-paper); border:1px solid var(--editorial-rule); box-shadow:0 14px 30px #162b3533; }
.nav-menu ul { list-style:none; margin:0; padding:0; }
.nav-menu[open] > .nav-menu-workbooks { min-width:34rem; }
/* Workbooks menu headings (owner, 2026-11-14): groups two abreast, each a single column of links;
   on phones one group per row, its links two abreast. */
.nav-wb-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1.5rem; }
.nav-wb-group .nav-menu-head { margin-top:.6rem; }
/* On one-row bars the Workbooks item sits near the right edge, so the wider grouped panel opens
   leftward from it; below 1101 px the bar wraps and the item starts the row, so it opens rightward. */
@media (min-width:1101px) { .nav-menu[open] > .nav-menu-workbooks { left:auto; right:0; } }
.nav-menu-head { display:flex; align-items:center; gap:.45rem; margin:.9rem .5rem .3rem; padding-bottom:.35rem; border-bottom:1.5px solid #14565a; font:700 .7rem var(--font-ui); letter-spacing:.09em; text-transform:uppercase; color:#14565a; }
.nav-menu-head:first-child { margin-top:.2rem; }
.nav-menu-head svg { flex:none; }
html[lang] body .product-topbar .nav-menu > div a { display:flex; align-items:center; min-height:36px; padding:.3rem .5rem; border:0; color:var(--editorial-ink); text-decoration:none; white-space:nowrap; }
html[lang] body .product-topbar .nav-menu > div a:hover { background:#e4eeea; color:#143d34; }
html[lang] body .product-topbar .nav-menu > div a[aria-current="page"] { background:#dce9df; color:#143d34; font-weight:700; }
html[lang] body .product-topbar .nav-menu > div a:focus-visible { outline:2px solid #14565a; outline-offset:-2px; }
html[lang] body .product-topbar .nav-menu > div .nav-menu-all { margin-top:.4rem; border-top:1px solid var(--editorial-rule); color:#14565a; font-weight:700; }
/* A planned category (Sales tax): quieter text and a small outlined Planned marker. */
html[lang] body .product-topbar .nav-menu > div .nav-planned { gap:.45rem; color:#42565b; }
.nav-planned .switch-planned { padding:.05rem .35rem; border:1px solid var(--editorial-rule); border-radius:3px; font-size:.62rem; line-height:1.3; color:#475860; }
@media (max-width:1100px) {
 html[lang] body .product-topbar .topbar { flex-wrap:wrap; gap:0 1rem; }
 html[lang] body .product-topbar .topbar-end { margin-left:auto; }
 html[lang] body .product-topbar .topnav { order:3; width:100%; margin:0; flex-wrap:wrap; justify-content:flex-start; gap:0 1.25rem; }
}
@media (max-width:48rem) {
 html[lang] body .product-topbar .topnav { gap:0 1rem; font-size:.84rem; }
 html[lang] body .product-topbar .topnav > li:has(> .nav-menu[open]) { flex-basis:100%; }
 .nav-menu[open] > div, .nav-menu[open] > .nav-menu-workbooks { position:static; min-width:0; max-height:60vh; overflow-y:auto; margin-bottom:.6rem; box-shadow:none; }
 html[lang] body .product-topbar .nav-menu > div a { min-height:44px; white-space:normal; }
 .nav-wb-groups { grid-template-columns:1fr; }
 .nav-wb-group ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 .75rem; }
}

/* Contact page: selected service-desk layout, 2026-09-27. */
.contact-page-hero { display:flex; align-items:end; justify-content:space-between; gap:2rem; padding-top:2.25rem; padding-bottom:1.5rem; border-bottom:1px solid #b8c8c2; }
.contact-page-hero .eyebrow { margin:0 0 .65rem; color:#14565a; }
.contact-page-hero h1 { margin:0 0 .45rem; line-height:1.05; }
.contact-page-hero p { margin:0; color:#52616a; }
.contact-direct { flex:none; border-left:1px solid #b8c8c2; padding-left:1.25rem; font-size:.85rem; }
.contact-direct strong { display:block; margin-bottom:.4rem; color:#14565a; font-size:.7rem; letter-spacing:.13em; text-transform:uppercase; }
.contact-direct p + p { margin-top:.2rem; }
.contact-direct a { color:#162b35; text-underline-offset:3px; }
/* Two doors above the form (site review Task 11, 2026-11-01). */
.contact-doors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; padding-top:1.4rem; }
.contact-door { display:flex; flex-direction:column; align-items:flex-start; gap:.45rem; padding:1.2rem 1.3rem; background:#fffefa; border:1px solid #b8c8c2; }
.contact-door .eyebrow { margin:0; color:#14565a; }
.contact-door h2 { margin:0; }
.contact-door p { margin:0; color:#52616a; font-size:var(--type-support-copy); line-height:1.5; }
.contact-door .buy { width:auto; margin-top:.5rem; cursor:pointer; }
.contact-door-reply { font-size:.78rem; }
.contact-mailto-note { grid-column:1 / -1; margin:0; color:#52616a; font-size:.82rem; line-height:1.5; }
@media (max-width:760px) {
  .contact-doors { grid-template-columns:minmax(0,1fr); }
  .contact-door .buy { white-space:normal; text-wrap:balance; }
  .contact-scope { order:-1; }
}
.contact-grid { display:grid; grid-template-columns:minmax(11rem,.65fr) minmax(0,1.8fr) minmax(13rem,.75fr); gap:1.4rem; align-items:start; padding-top:1.55rem; }
.contact-types { min-width:0; margin:0; padding:.85rem 0 0; border:0; border-top:3px solid #14565a; }
.contact-types legend { padding:0 0 .8rem; color:#14565a; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.contact-type { display:block; position:relative; border-bottom:1px solid #b8c8c2; color:#31494c; font-size:.85rem; cursor:pointer; }
.contact-type input { position:absolute; left:0; top:.9rem; width:1px; height:1px; opacity:0; }
.contact-type span { display:block; padding:.72rem .15rem; }
.contact-type input:checked + span { color:#14565a; font-weight:700; }
.contact-type input:checked + span::after { content:' →'; }
.contact-type input:focus-visible + span { outline:2px solid #14565a; outline-offset:2px; }
.contact-custom-link { display:block; padding:.8rem .15rem; color:#31494c; text-decoration:none; font-size:.85rem; }
.contact-custom-link:hover { color:#14565a; text-decoration:underline; }
.contact-form-panel { min-width:0; padding:1.7rem; background:#fffefa; border:1px solid #b8c8c2; }
.contact-form-panel .eyebrow { color:#14565a; margin:0 0 .45rem; }
.contact-form-panel h2 { margin:0 0 .35rem; }
.contact-form-lead { margin:0 0 1.35rem; color:#52616a; font-size:var(--type-support-copy); }
.contact-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.contact-fields label { display:grid; align-content:start; gap:.35rem; min-width:0; color:#31494c; font-size:.79rem; font-weight:700; }
.contact-full { grid-column:1/-1; }
.contact-fields input,.contact-fields select,.contact-fields textarea { width:100%; min-height:44px; padding:.62rem .7rem; border:1px solid #a4b6b0; border-radius:2px; background:#fff; color:#162b35; font:400 .88rem/1.4 var(--font-ui); }
.contact-fields textarea { min-height:108px; resize:vertical; }
.contact-fields :is(input,select,textarea):focus { outline:3px solid #7eaa9160; border-color:#14565a; }
.contact-request-fields[hidden] { display:none; }
.contact-request-fields > label + label { margin-top:1rem; }
.contact-privacy { margin:1.25rem 0 .9rem; padding-top:.9rem; border-top:1px solid #d8e2dc; color:#52616a; font-size:.75rem; line-height:1.45; }
.contact-consent { display:flex; align-items:start; gap:.55rem; color:#31494c; font-size:.75rem; line-height:1.5; }
.contact-consent input { flex:none; margin:.18rem 0 0; accent-color:#14565a; }
.contact-submit { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-top:1.1rem; }
.contact-submit p { margin:0; color:#52616a; font-size:.73rem; line-height:1.4; }
.contact-submit .buy { flex:none; width:auto; white-space:normal; }
.contact-scope { padding:1.3rem; background:#e8efe9; border:1px solid #c7d8ce; }
.contact-scope h3 { margin:0 0 .5rem; }
.contact-scope h3:not(:first-child) { margin-top:1.2rem; padding-top:1rem; border-top:1px solid #b8cbc0; }
.contact-scope p,.contact-scope li { color:#52616a; font-size:var(--type-support-copy); line-height:1.48; }
.contact-scope ul { margin:0; padding-left:1.1rem; }
.contact-scope a { color:#14565a; font-size:.82rem; }
.contact-support-detail { margin-top:3rem; padding-top:1.75rem; padding-bottom:3.4rem; border-top:1px solid #b8c8c2; }
.contact-support-detail .eyebrow { margin:0 0 .3rem; color:#14565a; }
.contact-support-detail h2 { margin:0 0 1.35rem; }
.contact-support-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.4rem 3rem; }
.contact-support-grid h3 { margin:0 0 .5rem; }
.contact-support-grid p,.contact-support-grid li { color:#52616a; font-size:var(--type-support-copy); line-height:1.55; }
.contact-support-grid ul { margin:0; padding-left:1.2rem; }
.contact-support-grid p { margin:0 0 .5rem; }
.contact-support-grid a { color:#14565a; }
@media (max-width:1050px) { .contact-grid { grid-template-columns:12rem minmax(0,1fr); } .contact-scope { grid-column:2; } }
@media (max-width:760px) { .contact-page-hero { display:block; padding-top:1.6rem; } .contact-direct { margin-top:1.3rem; } .contact-grid { grid-template-columns:1fr; } .contact-types { display:flex; flex-wrap:wrap; gap:.3rem .75rem; } .contact-types legend { width:100%; } .contact-type { border:0; } .contact-type span { padding:.45rem .55rem; border:1px solid #b8c8c2; border-radius:3px; } .contact-type input:checked + span { background:#143d34; color:#fff; border-color:#143d34; } .contact-custom-link { padding:.5rem; } .contact-scope { grid-column:auto; } .contact-support-grid { grid-template-columns:1fr; } }
@media (max-width:540px) { .contact-fields { grid-template-columns:1fr; } .contact-full { grid-column:auto; } .contact-form-panel { padding:1.15rem; } .contact-submit { display:block; } .contact-submit .buy { margin-top:.9rem; width:100%; } }

.editorial-home .section-intro p,
.editorial-home .about-layout p,
.editorial-home .contact-layout p,
.template-library .library-category-heading p,
.custom-intro p,
.legal-doc,
.resource-hero > p { font-size:var(--type-body-copy); }
/* The 404 page (site review Task 12, 2026-11-01): two language blocks, four destinations each. */
.not-found .not-found-block { margin: 1.6rem 0 2.2rem; max-width: 60ch; }
.not-found .not-found-block h2 { margin: 0 0 .4rem; }
.not-found .not-found-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.not-found .not-found-links .buy { width: auto; }

.editorial-home .expertise-grid p,
.editorial-home .sample-cards p,
.editorial-home .sample-cards a,
.template-library .library-entry p,
.custom-form-aside p,
.custom-steps p,
.resource-cards p,
.resource-panel p,
.contact-form-lead,
.contact-scope p,
.contact-scope li,
.contact-support-grid p,
.contact-support-grid li { font-size:var(--type-support-copy); }

/* Catalogue: task-first discovery, with clear separation between detailed
   workbooks and future concepts. The product roster remains the source. */
html .template-library .library-hero {
  display:grid;
  grid-template-columns:1fr;
  gap:1.2rem;
  padding:2rem 0 1.5rem;
}
.template-library .library-hero-copy { min-width:0; }
html .template-library .library-hero h1 {
  max-width:none;
  margin:.25rem 0 .6rem;
  line-height:1.06;
}
.template-library .library-intro { max-width:none; margin:0; color:#475960; font-size:.94rem; line-height:1.5; }
.template-library .library-hero-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1rem; }
.template-library .library-hero-actions a { display:inline-flex; align-items:center; justify-content:space-between; gap:1.2rem; min-height:40px; padding:.55rem .9rem; border:1px solid #14565a; border-radius:3px; font-size:.875rem; font-weight:700; text-decoration:none; white-space:nowrap; flex-shrink:0; }
.template-library .library-primary-link { background:#14565a; color:#fff; }
.template-library .library-primary-link:hover { background:#103f43; color:#fff; }
.template-library .library-secondary-link { color:#14565a; }
.template-library .library-secondary-link:hover { background:#e9f0e9; }
.template-library .library-guide { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:1.4rem; padding:.8rem 1.1rem; background:#143d34; color:#f7f5ef; }
.template-library .library-guide h2 { margin:0; color:#f7f5ef; line-height:1.2; }
.template-library .library-guide ol { display:flex; justify-content:center; gap:1.2rem; margin:0; padding:0; list-style:none; }
.template-library .library-guide li { display:flex; align-items:baseline; gap:.4rem; font-size:.82rem; white-space:nowrap; }
.template-library .library-guide li span { color:#a7ceb6; font-size:.65rem; font-weight:700; letter-spacing:.1em; }
.template-library .library-guide > p:last-child { margin:0; color:#d1e2d7; font-size:.75rem; white-space:nowrap; }
@media (min-width:1200px) {
  .template-library .library-intro { white-space:nowrap; }
}
.template-library .library-directory { padding:1.7rem 2rem 2rem; border:1px solid #c7d8ce; background:#eaf0e9; scroll-margin-top:var(--nav-clear); }
.template-library .library-directory-heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:.5rem 2rem; margin-bottom:1.4rem; }
.template-library .library-directory-heading .eyebrow { width:100%; margin:0; }
.template-library .library-directory-heading h2 { margin:0; }
.template-library .library-directory-heading > p:last-child { max-width:36rem; margin:0; color:#52616a; font-size:.875rem; }
.template-library .library-contents { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 1.4rem; padding:0; border:0; }
.template-library .library-jump { display:grid; grid-template-columns:1.9rem minmax(0,1fr) auto; align-content:start; column-gap:.5rem; min-height:5.7rem; padding:.8rem 0; border-top:1px solid #b7c9bd; color:#162b35; text-decoration:none; }
.template-library .library-jump:hover { color:#14565a; border-color:#14565a; }
.template-library .library-jump-number { grid-row:1 / span 2; padding-top:.15rem; color:#5d746a; font-size:.65rem; font-weight:700; letter-spacing:.1em; }
.template-library .library-jump strong { font-family:var(--font-heading); font-size:1.08rem; font-weight:600; line-height:1.25; }
.template-library .library-jump-codes { grid-column:2; margin-top:.3rem; color:#52616a; font-size:.72rem; line-height:1.35; }
.template-library .library-jump-arrow { grid-column:3; grid-row:1; color:#14565a; }
.template-library .library-sections { padding:1.5rem 0 4rem; }
.template-library .library-category { padding:2.5rem 0 3rem; border-top:1px solid #b6c4c2; scroll-margin-top:var(--nav-clear); }
.template-library .library-category-heading { display:grid; grid-template-columns:4rem minmax(0,1fr); align-items:start; gap:1.4rem; margin-bottom:1.4rem; }
.template-library .library-category-mark { display:flex; flex-direction:column; align-items:flex-start; gap:.55rem; color:#14565a; }
.template-library .library-category-mark > span { font-size:.68rem; font-weight:700; letter-spacing:.12em; }
.template-library .library-category-heading h2 { margin:0 .2rem .3rem 0; }
.template-library .library-category-heading p { max-width:50rem; margin:0; color:#52616a; font-size:var(--type-support-copy); }
.template-library .library-entries { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; padding-left:0; }
.template-library .library-entry { display:flex; flex-direction:column; min-width:0; min-height:15.5rem; gap:0; padding:1.2rem 1.25rem 1rem; border:1px solid #bdccc4; background:#fffefa; box-shadow:0 7px 20px #143d3409; }
.template-library .library-entry:hover { border-color:#7ea395; box-shadow:0 9px 24px #143d3414; }
.template-library .library-entry-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.35rem .7rem; margin-bottom:1.2rem; }
.template-library .library-entry-kind { color:#526e63; font-size:.65rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.template-library .library-entry .entry-status { margin:0; background:#e3ede5; color:#244c3e; font-size:.69rem; }
.template-library .library-entry-copy { flex:1; max-width:none; }
.template-library .library-entry h3 { margin:0 0 .55rem; line-height:1.18; }
.template-library .library-entry p:not(.entry-status) { margin:0 0 1.1rem; color:#485b5b; font-size:var(--type-support-copy); line-height:1.55; }
.template-library .library-entry-link { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding-top:.8rem; border-top:1px solid #d7e1da; color:#14565a; font-size:.85rem; font-weight:700; text-decoration:none; }
.template-library .library-entry-link:hover { text-decoration:underline; text-underline-offset:.2em; }
/* Launch-wave cards carry the price; roadmap entries are compact and carry neither price nor badge
   (site review Task 5, 2026-11-01, owner decision Q2). */
.template-library .entry-price { margin:0 0 .9rem; color:#162b35; font-size:.9rem; }
.template-library .entry-price strong { font-size:1.3rem; font-weight:700; letter-spacing:-.01em; }
.template-library .library-entry p.entry-price-pending { margin:0 0 .9rem; color:#485b5b; font-size:.8rem; }
.template-library .library-entry-roadmap { min-height:0; background:#f7f6f1; border-color:#d3dcd6; box-shadow:none; }
.template-library .library-entry-roadmap .library-entry-link { padding-top:.6rem; font-size:.8rem; }
.template-library .library-roadmap-band { margin:3rem 0 -.5rem; padding:1.3rem 1.6rem; border:1px solid #d8c9b9; background:#f8f4ee; }
.template-library .library-roadmap-band .eyebrow { margin:0 0 .35rem; color:#78522f; }
.template-library .library-roadmap-band p:not(.eyebrow) { margin:0; max-width:60ch; color:#485b5b; font-size:var(--type-support-copy); }
.template-library .library-entry-planned { border-color:#d8c9b9; background:#f8f4ee; }
.template-library .library-entry-planned .entry-status { background:#f0e1cf; color:#78522f; }
@media (max-width:1050px) {
  .template-library .library-contents { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-library .library-entries { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
  .template-library .library-guide { grid-template-columns:1fr; gap:.55rem; padding:1rem 1.2rem; }
  .template-library .library-guide ol { justify-content:flex-start; flex-wrap:wrap; gap:.4rem 1.2rem; }
}
@media (max-width:760px) {
  .template-library .library-directory { padding:1.3rem; }
  .template-library .library-category { padding:1.8rem 0 2.2rem; }
  .template-library .library-category-heading { grid-template-columns:3rem minmax(0,1fr); gap:.8rem; }
}
@media (max-width:580px) {
  .template-library .library-hero-actions a { width:100%; }
  .template-library .library-guide ol { display:grid; gap:.4rem; }
  .template-library .library-contents, .template-library .library-entries { grid-template-columns:1fr; }
  .template-library .library-jump { min-height:0; }
  .template-library .library-entry { min-height:0; }
}

/* Longer French walkthrough instructions may wrap. */
html[lang="fr-CA"] .editorial-home .walkthrough-intro { white-space:normal; font-size:1rem; }

/* ==========================================================================
   Evidence, figured from each workbook's fictional sample (2026-10-08).
   Shared by the catalogue, the workbook pages and the walkthrough. Role colours mirror the
   workbook legend (yellow entered, blue calculated, grey last year) at steps validated with
   the dataviz validator on #fffefa: entered #b47c00 / calculated #2f6db5 adjacent CVD dE 24.0,
   normal 27.8, both >= 3:1; last year #8a8f8c >= 3:1. Text never wears a role colour.
   ========================================================================== */
:root { --ev-input:#b47c00; --ev-calculated:#2f6db5; --ev-prior:#8a8f8c; --ev-forest:#143d34; --ev-ink:#102027; --ev-muted:#4c5c63; --ev-card:#fffefa; --ev-rule:#d5cfc3; --sticky-top:var(--nav-h); }
.ev-r-input { fill:var(--ev-input); }
.ev-r-calculated { fill:var(--ev-calculated); }
.ev-r-prior { fill:var(--ev-prior); }
.ev-rolebar { display:block; width:100%; height:10px; border-radius:3px; overflow:hidden; background:#e6ebe7; }
.ev-legend { display:flex; flex-wrap:wrap; gap:.35rem 1rem; margin:.55rem 0 0; padding:0; list-style:none; color:var(--ev-muted); font:12px/1.4 var(--font-ui); }
.ev-legend li { display:inline-flex; align-items:center; gap:.4rem; }
.ev-swatch { display:inline-block; width:12px; height:12px; border-radius:2px; }
.ev-s-input { background:var(--ev-input); }
.ev-s-calculated { background:var(--ev-calculated); }
.ev-s-prior { background:var(--ev-prior); }

.ev-pillars { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin:1rem 0; }
.ev-pillar { position:relative; display:flex; flex-direction:column; min-width:0; padding:.95rem 1rem 1rem; border:1px solid var(--ev-rule); border-radius:10px; background:#f5f7f3; }
.ev-kicker { display:flex; align-items:center; gap:.45rem; margin:0 0 .35rem; color:#245448; font:700 .72rem/1.3 var(--font-ui); letter-spacing:.09em; text-transform:uppercase; }
.ev-icon { flex:none; width:20px; height:20px; color:#2b6552; }
.ev-figure { margin:0; color:var(--ev-ink); font:700 clamp(1.9rem,3.2vw,2.35rem)/1.05 var(--font-ui); letter-spacing:-.02em; }
.ev-copy { margin:.4rem 0 0; color:#3d4f56; font:.83rem/1.5 var(--font-ui); }
.ev-detail { margin:.55rem 0 0; color:var(--ev-muted); font:600 .72rem/1.4 var(--font-ui); letter-spacing:.02em; }
.ev-pillar .ev-rolebar { margin-top:.7rem; }
.ev-groups { display:flex; flex-wrap:wrap; gap:.3rem; margin:.65rem 0 0; padding:0; list-style:none; }
.ev-groups li { display:inline-flex; align-items:center; gap:.3rem; padding:.18rem .5rem .18rem .2rem; border:1px solid #c5d4ca; border-radius:999px; background:#fff; color:#2b4a40; font:600 .7rem/1.3 var(--font-ui); }
.ev-groups li span { display:inline-grid; place-items:center; width:1.15rem; height:1.15rem; border-radius:50%; background:var(--ev-forest); color:#f7f5ef; font-size:.62rem; }
.ev-basis { margin:.4rem 0 0; color:var(--ev-muted); font:12px/1.5 var(--font-ui); }

.ev-anatomy { position:relative; margin:1.1rem 0 0; padding:1rem 1rem .9rem; border:1px solid var(--ev-rule); border-radius:10px; background:#fff; }
.ev-anatomy figcaption { display:flex; flex-wrap:wrap; align-items:baseline; gap:.2rem .7rem; margin:0 0 .6rem; font:13px/1.45 var(--font-ui); color:var(--ev-muted); }
.ev-anatomy figcaption strong { color:var(--ev-ink); font-size:.86rem; }
.ev-waffle { min-height:48px; }
.ev-waffle-svg { display:block; width:100%; height:auto; }
.ev-waffle-svg rect { transform-box:fill-box; transform-origin:50% 50%; transition:transform .45s cubic-bezier(.2,.75,.2,1) var(--d,0ms), opacity .35s ease var(--d,0ms); }
.ev-waffle-svg.is-pre rect { opacity:0; transform:scale(.3); }
.ev-waffle-svg .ev-w-role { transition:opacity .18s ease; }
.ev-waffle-svg.is-probing .ev-w-role:not(.is-hot) { opacity:.22; }
.ev-legend li { padding:.1rem .35rem; border-radius:6px; outline-offset:2px; }
.ev-legend li strong { color:var(--ev-ink); font-variant-numeric:tabular-nums; }
.ev-legend li.is-hot { background:#eef3ef; }
.ev-legend li:focus-visible { outline:2px solid var(--ev-forest); }
.ev-unit { display:block; margin-top:.2rem; color:var(--ev-muted); font:600 .72rem/1.3 var(--font-ui); letter-spacing:0; }
.ev-tip { position:absolute; top:0; left:0; z-index:5; display:grid; gap:.1rem; max-width:220px; padding:.45rem .6rem; border-radius:6px; background:var(--ev-ink); color:#f7f5ef; font:12px/1.4 var(--font-ui); box-shadow:0 8px 22px #0b1b2240; transform:translate(var(--tx,0), var(--ty,0)); pointer-events:none; }
.ev-tip[hidden] { display:none; }
.ev-tip strong { font-size:13px; }
.ev-tip em { color:#b9d3c6; font-style:normal; }
.ev-table { margin-top:.6rem; font:12.5px/1.4 var(--font-ui); }
.ev-table summary { cursor:pointer; color:#14565a; font-weight:700; }
.ev-table-scroll { max-height:260px; margin-top:.5rem; overflow:auto; border:1px solid var(--ev-rule); border-radius:6px; }
.ev-table table { width:100%; border-collapse:collapse; }
.ev-table th, .ev-table td { padding:.3rem .55rem; border-bottom:1px solid #edf1ee; text-align:right; font-variant-numeric:tabular-nums; }
.ev-table th[scope="row"], .ev-table thead th:first-child { text-align:left; font-weight:600; }
.ev-table thead th { position:sticky; top:0; background:#f2f5f1; color:var(--ev-muted); font-weight:700; }
.ev-table-group th { background:#f7f9f6; color:#245448; text-align:left !important; font-weight:700; }

/* --------------------------------------------------------------------------
   Catalogue browser (2026-10-08): search, area filters, cards with figures and a sticky
   "inside the file" panel. Static without JavaScript; catalogue.js adds the interaction.
   -------------------------------------------------------------------------- */
html .template-library .cat-hero { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:2.5rem; align-items:start; padding:2.4rem 0 1.8rem; }
html .template-library .cat-hero h1 { max-width:18ch; margin:.3rem 0 .7rem; line-height:1.04; white-space:normal; }
@media (max-width:760px) {
  .template-library .cat-hero h1 { font-size:2rem; }
}
html .template-library .cat-hero .library-intro { max-width:58ch; color:#3f525a; font-size:1rem; white-space:normal; }
.cat-search { margin-top:1.4rem; }
.cat-search-label { display:block; margin-bottom:.45rem; color:#245448; font:700 .72rem/1.3 var(--font-ui); letter-spacing:.1em; text-transform:uppercase; }
.cat-search-field { position:relative; display:flex; align-items:center; }
.cat-search-field input { width:100%; min-height:58px; padding:.8rem 9.5rem .8rem 3.1rem; border:1.5px solid #9fb6aa; border-radius:10px; background:var(--ev-card); color:var(--ev-ink); font:1.05rem/1.3 var(--font-ui); box-shadow:0 10px 26px #143d3412, inset 0 1px 0 #fff; transition:border-color .15s, box-shadow .15s; }
.cat-search-field input::placeholder { color:#7a8a8f; }
.cat-search-field input:focus { outline:none; border-color:var(--ev-forest); box-shadow:0 0 0 4px #14565a26, 0 10px 26px #143d3418; }
.cat-search-icon { position:absolute; left:1.05rem; top:50%; width:17px; height:17px; margin-top:-10px; border:2px solid #4f6d62; border-radius:50%; pointer-events:none; }
.cat-search-icon::after { content:""; position:absolute; right:-6px; bottom:-5px; width:7px; height:2px; background:#4f6d62; transform:rotate(45deg); border-radius:1px; }
.cat-search-field output { position:absolute; right:.9rem; padding:.25rem .55rem; border-radius:999px; background:#e7efe9; color:#244c3e; font:700 .74rem/1.2 var(--font-ui); white-space:nowrap; pointer-events:none; }
.cat-suggest { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; margin:.75rem 0 0; color:var(--ev-muted); font:.8rem var(--font-ui); }
.cat-suggest[hidden] { display:none; }
.cat-suggest span { margin-right:.15rem; }
.cat-suggest button { min-height:30px; padding:.2rem .7rem; border:1px solid #bccdc3; border-radius:999px; background:#fff; color:#1f4a3e; font:600 .78rem var(--font-ui); cursor:pointer; transition:background .15s, border-color .15s; }
.cat-suggest button:hover { background:#e9f1eb; border-color:#7ea395; }
.cat-suggest button:focus-visible, .library-jump:focus-visible, .cat-all:focus-visible, .entry-select:focus-visible { outline:2px solid var(--ev-forest); outline-offset:2px; }
html .template-library .cat-hero .library-hero-actions { margin-top:1.1rem; }

/* The standard file: the numbered groups every workbook shares. */
html .template-library .cat-hero .library-guide { display:block; position:relative; padding:1.5rem 1.5rem 1.3rem; border-radius:14px; background:radial-gradient(120% 90% at 100% 0%, #24584a 0%, #143d34 55%, #0f3029 100%); color:#f7f5ef; box-shadow:0 18px 44px #0f302933; overflow:hidden; }
html .template-library .cat-hero .library-guide .eyebrow { margin:0 0 .4rem; color:#a7ceb6; font-family:var(--font-ui); font-size:.68rem; letter-spacing:.16em; }
html .template-library .cat-hero .library-guide h2 { margin:0 0 1rem; color:#f7f5ef; line-height:1.2; white-space:normal; }
html .template-library .library-guide .cat-groups { position:relative; display:grid; justify-content:stretch; gap:.45rem; margin:0; padding:0; list-style:none; }
html .template-library .library-guide .cat-groups::before { content:""; position:absolute; left:15px; top:16px; bottom:16px; width:2px; background:linear-gradient(#7eaa91,#4d8370); opacity:.55; }
html .template-library .library-guide .cat-groups li { position:relative; display:grid; grid-template-columns:32px minmax(0,1fr); grid-template-rows:auto auto; column-gap:.75rem; align-items:center; padding:.3rem .6rem .3rem 0; border-radius:8px; font-size:inherit; white-space:normal; }
html .template-library .library-guide .cat-group-n { grid-row:1 / span 2; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; border:1.5px solid #9dc6ad; background:#143d34; color:#f7f5ef; font:700 .85rem var(--font-ui); letter-spacing:0; }
html .template-library .library-guide .cat-groups strong { font:700 .95rem/1.2 var(--font-ui); }
html .template-library .library-guide .cat-group-tabs { color:#c3d9cb; font:12px/1.3 var(--font-ui); letter-spacing:0; }
html .template-library .cat-hero .library-guide > p:last-child { margin:1rem 0 0; color:#c9dccf; font:12px/1.5 var(--font-ui); white-space:normal; }
@media (prefers-reduced-motion:no-preference) {
  html .template-library .library-guide .cat-groups li { animation:cat-group-glow 1.4s ease-in-out 1 both; animation-delay:.3s; }
  html .template-library .library-guide .cat-groups li:nth-child(2) { animation-delay:1.1s; }
  html .template-library .library-guide .cat-groups li:nth-child(3) { animation-delay:1.9s; }
  html .template-library .library-guide .cat-groups li:nth-child(4) { animation-delay:2.7s; }
  html .template-library .library-guide .cat-groups li:nth-child(5) { animation-delay:3.5s; }
  html .template-library .library-guide .cat-groups li .cat-group-n { animation:cat-group-dot 1.4s ease-in-out 1 both; animation-delay:inherit; }
}
@keyframes cat-group-glow { 0%, 100% { background:transparent; } 35%, 65% { background:#ffffff14; } }
@keyframes cat-group-dot { 0%, 100% { border-color:#9dc6ad; box-shadow:0 0 0 0 #f2c14e00; } 35%, 65% { border-color:#f2c14e; box-shadow:0 0 0 5px #f2c14e40; } }

/* Area filters. */
html .template-library .library-directory { padding:1.1rem 0 .4rem; border:0; background:none; }
html .template-library .library-directory-heading { align-items:center; margin-bottom:.7rem; }
html .template-library .library-directory-heading .eyebrow { width:auto; margin:0 1rem 0 0; }
html .template-library .library-directory-heading h2 { flex:1; }
.cat-all { min-height:34px; padding:.3rem .85rem; border:1px solid #9fb6aa; border-radius:999px; background:#fff; color:#1f4a3e; font:700 .78rem var(--font-ui); cursor:pointer; }
.cat-all[hidden] { display:none; }
.cat-all[aria-pressed="true"] { background:var(--ev-forest); border-color:var(--ev-forest); color:#f7f5ef; }
html .template-library .library-contents { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; }
html .template-library .library-jump { position:relative; grid-template-columns:1.6rem minmax(0,1fr) auto; min-height:0; padding:.6rem .7rem; border:1px solid #c5d4ca; border-radius:10px; background:#fbfcf9; transition:background .15s, border-color .15s, box-shadow .15s, transform .15s; }
html .template-library .library-jump:hover { border-color:#7ea395; background:#fff; transform:translateY(-1px); box-shadow:0 6px 16px #143d3412; }
html .template-library .library-jump strong { font-family:var(--font-ui); font-size:.86rem; font-weight:700; }
html .template-library .library-jump-codes { font-size:.7rem; }
.library-jump-count { grid-column:3; grid-row:1; align-self:start; min-width:1.4rem; padding:.05rem .4rem; border-radius:999px; background:#e3ede5; color:#244c3e; font:700 .68rem/1.4 var(--font-ui); text-align:center; }
html .template-library .library-jump[aria-pressed="true"] { border-color:var(--ev-forest); background:var(--ev-forest); color:#f7f5ef; box-shadow:0 8px 20px #143d3426; }
html .template-library .library-jump[aria-pressed="true"] .library-jump-number,
html .template-library .library-jump[aria-pressed="true"] .library-jump-codes { color:#c3d9cb; }
html .template-library .library-jump[aria-pressed="true"] .library-jump-count { background:#f2c14e; color:#143d34; }

/* Results and the panel. */
.cat-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(380px,500px); gap:1.8rem; align-items:start; padding-bottom:4rem; }
html .template-library .cat-layout .library-sections { padding:0; min-width:0; }
html .template-library .library-category { padding:1.4rem 0 1.6rem; border-top:1px solid #c9d6cf; }
html .template-library .library-category[hidden] { display:none; }
html .template-library .library-category-heading { grid-template-columns:3.2rem minmax(0,1fr); gap:.9rem; margin-bottom:.9rem; }
html .template-library .library-entries { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
html .template-library .library-entry { min-height:0; padding:1rem 1.05rem .85rem; border-radius:12px; transition:border-color .18s, box-shadow .18s, transform .18s; }
html .template-library .library-entry[hidden] { display:none; }
html .template-library .library-entry.is-selectable { cursor:pointer; }
html .template-library .library-entry.is-selectable:hover { transform:translateY(-2px); border-color:#7ea395; box-shadow:0 12px 28px #143d3416; }
html .template-library .library-entry.is-selected { border-color:var(--ev-forest); box-shadow:0 0 0 1px var(--ev-forest), 0 14px 30px #143d341f; }
html .template-library .library-entry.is-selected::before { content:""; position:absolute; left:-1px; top:14px; bottom:14px; width:4px; border-radius:0 3px 3px 0; background:#f2c14e; }
html .template-library .library-entry { position:relative; }
html .template-library .library-entry-top { margin-bottom:.6rem; }
html .template-library .library-entry h3 { margin:0; }
html .template-library .library-entry .entry-title { margin:.1rem 0 .45rem; color:#244c3e; font-size:.86rem; font-weight:700; line-height:1.35; }
html .template-library .library-entry .entry-purpose { display:-webkit-box; margin:0 0 .8rem; overflow:hidden; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.entry-evidence { margin:0 0 .75rem; }
.entry-rolebar { height:8px; }
html .template-library .library-entry .entry-share { margin:.4rem 0 0; color:var(--ev-muted); font:.76rem/1.4 var(--font-ui); }
html .template-library .library-entry .entry-share strong { color:var(--ev-ink); font-size:.9rem; }
.entry-stats { display:flex; flex-wrap:wrap; gap:.25rem .9rem; margin:.4rem 0 0; padding:0; list-style:none; color:var(--ev-muted); font:.74rem/1.4 var(--font-ui); }
.entry-stats strong { color:var(--ev-ink); font-size:.82rem; }
html .template-library .library-entry .entry-matches { display:flex; flex-wrap:wrap; gap:.3rem; margin:0 0 .7rem; color:#3a3a2e; font:.74rem/1.35 var(--font-ui); }
html .template-library .library-entry .entry-matches[hidden] { display:none; }
.entry-matches span { padding:.2rem .45rem; border-radius:6px; background:#fff1c9; border:1px solid #ecd590; }
.entry-matches b { color:#7a5600; }
.entry-matches .entry-more { background:#f2f2ec; border-color:#deded6; }
.entry-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .8rem; margin-top:auto; padding-top:.7rem; border-top:1px solid #d7e1da; }
html .template-library .entry-actions .library-entry-link { flex:1; justify-content:flex-end; padding:0; border:0; }
.entry-select { order:-1; display:inline-flex; align-items:center; gap:.35rem; min-height:32px; padding:.25rem .7rem; border:1px solid #9fb6aa; border-radius:999px; background:#fff; color:#1f4a3e; font:700 .74rem var(--font-ui); cursor:pointer; }
.entry-select[hidden] { display:none; }
.entry-select::before { content:""; width:7px; height:7px; border-radius:50%; background:#c5d4ca; }
.entry-select[aria-pressed="true"] { border-color:var(--ev-forest); background:var(--ev-forest); color:#f7f5ef; }
.entry-select[aria-pressed="true"]::before { background:#f2c14e; }
.cat-empty { padding:2rem 1rem; border:1px dashed #b8c8bf; border-radius:12px; text-align:center; color:var(--ev-muted); font-family:var(--font-ui); }
.cat-empty[hidden] { display:none; }

.cat-panel { position:sticky; top:calc(var(--sticky-top) + .8rem); max-height:calc(100vh - var(--sticky-top) - 1.6rem); overflow:auto; margin-top:1.4rem; padding:1.2rem 1.2rem 1.1rem; border:1px solid #bdccc4; border-radius:16px; background:var(--ev-card); box-shadow:0 22px 50px #143d341a; overscroll-behavior:contain; scrollbar-width:thin; }
.cat-panel[hidden] { display:none; }
.cat-panel .eyebrow { margin:0 0 .2rem; color:#245448; font-family:var(--font-ui); font-size:.68rem; letter-spacing:.16em; }
.cat-panel-title { margin:0; line-height:1.15; }
.cat-panel-title span { color:#4b5d63; font-size:1.05rem; }
.cat-panel-meta { margin:.35rem 0 0; color:var(--ev-muted); font:.8rem/1.45 var(--font-ui); }
.cat-panel-meta strong { color:var(--ev-ink); }
.cat-panel-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem .9rem; margin-top:1rem; }
.cat-panel-actions .buy { width:auto; min-height:42px; padding:.5rem 1rem; font-size:.9rem; }
.cat-panel-actions .text-link { margin:0; font:700 .82rem var(--font-ui); color:#14565a; }
.cat-panel .ev-pillars { grid-template-columns:minmax(0,1fr); gap:.5rem; margin:.9rem 0; }
.cat-panel .ev-pillar { display:grid; grid-template-columns:8.6rem minmax(0,1fr); grid-template-rows:auto 1fr; column-gap:1rem; padding:.75rem .9rem; }
.cat-panel .ev-kicker { grid-column:1; grid-row:1; margin:0; font-size:.64rem; }
.cat-panel .ev-figure { grid-column:1; grid-row:2; align-self:start; margin-top:.25rem; font-size:1.85rem; }
.cat-panel .ev-groups { display:none; }
.cat-panel .ev-pillar > :not(.ev-kicker):not(.ev-figure) { grid-column:2; }
.cat-panel .ev-copy { grid-row:1 / span 2; margin:0; font-size:.79rem; }
.cat-panel .ev-pillar .ev-rolebar, .cat-panel .ev-detail, .cat-panel .ev-groups { margin-top:.45rem; }
@media (prefers-reduced-motion:no-preference) {
  .cat-panel-body.is-entering > * { animation:cat-enter .45s cubic-bezier(.2,.75,.2,1) both; }
  .cat-panel-body.is-entering > :nth-child(2) { animation-delay:.05s; }
  .cat-panel-body.is-entering > :nth-child(3) { animation-delay:.1s; }
}
@keyframes cat-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

@media (max-width:1099px) {
  .cat-layout { grid-template-columns:minmax(0,1fr); }
  .cat-panel { position:static; max-height:none; margin:0 0 1.2rem; }
  .cat-panel.is-inline { grid-column:1 / -1; margin:.2rem 0 .6rem; }
  html .template-library .library-contents { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
  html .template-library .cat-hero { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
}
@media (max-width:640px) {
  html .template-library .library-entries { grid-template-columns:minmax(0,1fr); }
  html .template-library .library-directory-heading { flex-direction:column; align-items:flex-start; gap:.35rem; }
  html .template-library .library-contents { display:flex; gap:.5rem; margin:0 calc(-1 * var(--gutter)); padding:0 var(--gutter) .4rem; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; }
  html .template-library .library-contents::-webkit-scrollbar { display:none; }
  html .template-library .library-jump { flex:0 0 auto; width:15.5rem; scroll-snap-align:start; }
  .cat-search-field input { padding-right:1rem; }
  .cat-search-field output { position:static; display:none; }
  .ev-pillars { grid-template-columns:minmax(0,1fr); }
}

/* --------------------------------------------------------------------------
   Walkthrough, evidence-led (2026-10-08): each step names its benefit and proves it with a
   figure measured from the sample on screen; a ledger shows what the file holds so far;
   a visitor-started autoplay; a closing summary.
   -------------------------------------------------------------------------- */
.wt-bar { display:flex; align-items:flex-start; gap:1rem; margin:0 0 .9rem; }
.wt-bar .wt-steps { flex:1; min-width:0; margin:0; }
.wt-icon { flex:none; width:18px; height:18px; }
.wt-step-benefit { flex:none; display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; margin-top:.1rem; border-radius:50%; color:#4f6d62; background:#eef3ef; }
.wt-step-benefit .wt-icon { width:14px; height:14px; }
.wt-steps .is-current .wt-step-benefit { color:#f7f5ef; background:var(--ev-forest); }
.wt-play { flex:none; display:inline-flex; align-items:center; gap:.55rem; min-height:40px; margin-top:-.15rem; padding:.45rem .95rem .45rem .75rem; border:1px solid #9fb6aa; border-radius:999px; background:#fff; color:#1f4a3e; font:700 .8rem var(--font-ui); white-space:nowrap; cursor:pointer; transition:background .15s, border-color .15s, color .15s; }
.wt-play:hover { border-color:var(--ev-forest); background:#eef3ef; }
.wt-play:focus-visible { outline:2px solid var(--ev-forest); outline-offset:2px; }
.wt-play-icon { position:relative; width:14px; height:14px; }
.wt-play-icon::before { content:""; position:absolute; left:3px; top:1px; border-style:solid; border-width:6px 0 6px 10px; border-color:transparent transparent transparent currentColor; }
.is-playing .wt-play { border-color:var(--ev-forest); background:var(--ev-forest); color:#f7f5ef; }
.is-playing .wt-play .wt-play-icon::before { left:2px; top:1px; width:3px; height:12px; border:0; background:currentColor; box-shadow:6px 0 0 currentColor; }
.walkthrough:not(.is-ready) :is(.wt-bar, .wt-ledger) { display:none; }
.is-playing .wt-steps .is-current button::after { content:""; position:absolute; left:22%; right:22%; bottom:-7px; height:3px; border-radius:2px; background:#f2c14e; transform-origin:left center; animation:wt-progress var(--wt-play-ms, 6500ms) linear forwards; }
@keyframes wt-progress { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@media (prefers-reduced-motion:reduce) { .is-playing .wt-steps .is-current button::after { animation:none; transform:none; } }

.wt-ledger { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6rem; margin:0 0 .9rem; font-family:var(--font-ui); }
.wt-tile { position:relative; min-width:0; padding:.7rem .8rem .75rem; border:1px solid #d7e1da; border-radius:10px; background:#f3f5f1; color:#7a8a87; transition:background .25s, border-color .25s, box-shadow .25s, color .25s; }
.wt-tile .wt-benefit { display:flex; align-items:center; gap:.4rem; color:inherit; font:700 .64rem/1.2 var(--font-ui); letter-spacing:.09em; text-transform:uppercase; }
.wt-tile .wt-icon { width:16px; height:16px; }
.wt-tile-figure { display:flex; flex-wrap:wrap; align-items:baseline; gap:.1rem .45rem; margin:.4rem 0 0; }
.wt-tile-num { color:inherit; font:700 1.55rem/1.05 var(--font-ui); letter-spacing:-.02em; }
.wt-tile-num.is-pending { color:#b8c3bf; }
.wt-tile.is-rest { color:#56676b; }
.wt-tile-num.is-rest { color:#2b3f3a; }
.wt-tile-unit { color:var(--ev-muted); font-size:.74rem; line-height:1.3; }
.wt-tile-more { margin:.25rem 0 0; color:var(--ev-muted); font-size:.7rem; line-height:1.35; }
.wt-tile.is-earned { border-color:#bfd0c6; background:#fffefa; color:var(--ev-ink); }
.wt-tile.is-earned .wt-benefit { color:#245448; }
.wt-tile.is-lit { border-color:var(--ev-forest); box-shadow:0 0 0 1px var(--ev-forest), 0 10px 24px #143d341f; }
.wt-tile.is-lit::after { content:""; position:absolute; top:.7rem; right:.75rem; width:8px; height:8px; border-radius:50%; background:#f2c14e; box-shadow:0 0 0 4px #f2c14e33; }
.wt-tile.is-done { border-color:#9fc1ad; }
@media (prefers-reduced-motion:no-preference) { .wt-tile.is-lit::after { animation:wt-pulse 1.6s ease-in-out 3; } }
@keyframes wt-pulse { 0%, 100% { box-shadow:0 0 0 3px #f2c14e33; } 50% { box-shadow:0 0 0 7px #f2c14e14; } }

.wt-callout-benefit { display:inline-flex; align-items:center; gap:.35rem; margin:0 0 .45rem; padding:.18rem .55rem .18rem .4rem; border-radius:999px; background:#e7efe9; color:#1f4a3e; font:700 11px/1.3 var(--font-ui); letter-spacing:.06em; text-transform:uppercase; }
.wt-callout-benefit .wt-icon { width:15px; height:15px; }
.wt-callout-proof { margin:0 0 10px !important; padding:6px 10px; border-left:3px solid #f2c14e; border-radius:0 6px 6px 0; background:#fff8e6; color:#3a2f12; font:600 13px/1.42 var(--font-ui); }
/* The proof line makes the callout taller: give the sheet room so its buttons stay in view. */
@media (min-width:761px) { .walkthrough .wt-grid { height:560px; } }

.wt-done { position:sticky; left:0; margin:0; padding:1.4rem 1.5rem 1.3rem; background:radial-gradient(120% 120% at 100% 0%, #24584a 0%, #143d34 60%, #0f3029 100%); color:#f7f5ef; font-family:var(--font-ui); }
.wt-done p { margin:0; }
.wt-done-kicker { color:#a7ceb6; font-size:.7rem !important; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
.wt-done-title { margin:.35rem 0 .5rem !important; font:600 1.6rem/1.15 var(--font-heading); letter-spacing:-.02em; }
.wt-done-text { max-width:none; color:#d7e6dc; font-size:.92rem; line-height:1.55; }
.wt-done-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1rem; margin-top:1rem; }
.wt-done-actions .buy { width:auto; min-height:40px; padding:.45rem .95rem; font-size:.88rem; }
.wt-done-actions .buy-secondary { border-color:#9dc6ad; background:transparent; color:#f7f5ef; }
.wt-done-actions .buy-secondary:hover { background:#ffffff1a; color:#fff; }
.wt-done-actions .buy:not(.buy-secondary) { border-color:#f2c14e; background:#f2c14e; color:#143d34; }
.wt-done-actions .text-link { margin:0; color:#f7f5ef; font-weight:700; font-size:.86rem; }

@media (min-width:60rem) {
  .wt-embedded .wt-body { grid-template-columns:13.5rem minmax(0,1fr); grid-template-areas:"bar ledger" "bar window"; }
  .wt-embedded .wt-bar { grid-area:bar; flex-direction:column; align-items:stretch; margin:0; }
  .wt-embedded .wt-play { order:-1; align-self:flex-start; margin:0 0 .4rem; }
  .wt-embedded .wt-ledger { grid-area:ledger; margin:0; }
  .wt-embedded .wt-window { grid-area:window; }
  .wt-embedded .wt-steps button { position:relative; }
  .wt-embedded .wt-step-benefit { margin:0 0 0 auto; }
  .is-playing .wt-embedded .wt-steps .is-current button::after, .wt-embedded.is-playing .wt-steps .is-current button::after { left:2.4rem; right:.4rem; bottom:-2px; }
}
@media (max-width:900px) {
  .wt-ledger { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .wt-bar { flex-direction:column; align-items:stretch; gap:.6rem; }
  .wt-bar .wt-steps { width:100%; max-width:100%; }
  .wt-bar .wt-play { align-self:flex-start; }
  .wt-play { align-self:flex-start; }
  .wt-tile-num { font-size:1.3rem; }
  .wt-done-title { font-size:1.3rem; }
}

/* --------------------------------------------------------------------------
   Explorer: search every cell, and the entered-cells view (2026-10-08).
   -------------------------------------------------------------------------- */
.explorer-find { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; padding:10px 12px; border-bottom:1px solid #cfd3ca; background:#fbfaf5; font-family:var(--font-ui); }
.explorer-find-label { color:#354d4b; font:700 .78rem/1.2 var(--font-ui); }
.explorer-find input { flex:1 1 260px; min-width:0; max-width:420px; min-height:38px; padding:7px 11px; border:1.5px solid #9fb6aa; border-radius:8px; background:#fff; color:var(--ev-ink); font:.84rem/1.2 var(--font-ui); }
.explorer-find input:focus { outline:none; border-color:var(--ev-forest); box-shadow:0 0 0 3px #14565a22; }
.explorer-find-try { display:inline-flex; flex-wrap:wrap; align-items:center; gap:5px; color:var(--ev-muted); font-size:.74rem; }
.explorer-find-try button { min-height:28px; padding:3px 9px; border:1px solid #c5d4ca; border-radius:999px; background:#fff; color:#1f4a3e; cursor:pointer; font:600 .72rem var(--font-ui); }
.explorer-find-try button:hover { border-color:#7ea395; background:#eef3ef; }
.explorer-xray { display:inline-flex; align-items:center; gap:7px; min-height:34px; margin-left:auto; padding:5px 12px 5px 9px; border:1px solid #9fb6aa; border-radius:999px; background:#fff; color:#1f4a3e; cursor:pointer; font:700 .76rem var(--font-ui); }
.explorer-xray span { width:14px; height:14px; border-radius:3px; background:linear-gradient(135deg,#fff2cc 0 50%,#d9e1f2 50% 100%); box-shadow:inset 0 0 0 1px #b8a25a; }
.explorer-xray[aria-pressed="true"] { border-color:#a07400; background:#fff2cc; color:#4b3800; }
.explorer-xray[aria-pressed="true"] span { background:#e0a800; box-shadow:none; }
.explorer-find button:focus-visible, .explorer-find input:focus-visible { outline:2px solid var(--ev-forest); outline-offset:2px; }
.explorer-roles { flex-basis:100%; color:var(--ev-muted); font:.72rem/1.3 var(--font-ui); }
.explorer-results { max-height:240px; overflow:auto; border-bottom:1px solid #cfd3ca; background:#fffefa; font-family:var(--font-ui); }
.explorer-results[hidden] { display:none; }
.explorer-results-head { position:sticky; top:0; z-index:1; margin:0; padding:7px 12px; border-bottom:1px solid #e3e6df; background:#f3f5f0; color:#354d4b; font:700 .74rem/1.3 var(--font-ui); }
.explorer-results ul { margin:0; padding:0; list-style:none; }
.explorer-results li + li { border-top:1px solid #eef0eb; }
.explorer-results li button { display:grid; grid-template-columns:minmax(9rem,13rem) minmax(0,1fr); gap:12px; width:100%; padding:7px 12px; border:0; background:none; color:var(--ev-ink); text-align:left; cursor:pointer; font:.8rem/1.4 var(--font-ui); }
.explorer-results li button:hover, .explorer-results li button:focus-visible { background:#eef3ef; outline:none; }
.explorer-hit-where { display:flex; align-items:center; gap:6px; min-width:0; overflow:hidden; color:#245448; font-weight:700; white-space:nowrap; text-overflow:ellipsis; }
.explorer-hit-kind { flex:none; width:10px; height:10px; border-radius:2px; background:#e3e6df; }
.explorer-hit-kind.cell-input { background:#e0b400; }
.explorer-hit-kind.cell-calculated { background:#6f93d0; }
.explorer-hit-kind.cell-prior { background:#a4a8a6; }
.explorer-hit-text { min-width:0; overflow:hidden; color:#3d4f56; white-space:nowrap; text-overflow:ellipsis; }
.explorer-hit-text mark { padding:0 1px; border-radius:2px; background:#ffe08a; color:#2c2400; }
.explorer-grid td.is-found { outline:2.5px solid #b3261e; outline-offset:-2px; }
@media (prefers-reduced-motion:no-preference) { .explorer-grid td.is-flash { animation:explorer-flash 1.4s ease-out 2; } }
@keyframes explorer-flash { 0% { box-shadow:inset 0 0 0 999px #ffe08a; } 100% { box-shadow:inset 0 0 0 999px #ffe08a00; } }
.explorer-grid.is-xray td { color:#b7bdb9 !important; background:#f6f6f2 !important; }
.explorer-grid.is-xray td.cell-title { color:#d9ddda !important; background:#e9ebe6 !important; }
.explorer-grid.is-xray td.cell-input { color:#2c2400 !important; background:#ffd75e !important; box-shadow:inset 0 0 0 1px #c99a00; font-weight:700 !important; }
.explorer-grid.is-xray .sv-text span { color:inherit !important; }
.explorer-grid.is-xray td .wt-callout { color:var(--color-text) !important; background:#fff !important; border-color:#b3261e; }
.explorer-grid.is-xray td .wt-callout .wt-callout-kicker { color:#b3261e !important; }
.explorer-grid.is-xray td .wt-callout .wt-callout-text { color:var(--color-neutral-800) !important; }
.explorer-grid.is-xray td .wt-callout .wt-callout-proof { color:#3a2f12 !important; background:#fff8e6 !important; }
.explorer-grid.is-xray td .wt-callout .wt-callout-hl { color:#555 !important; }
.explorer-grid.is-xray td .wt-callout .wt-callout-msg { color:#1d5a3a !important; background:#e5eee8 !important; }
.explorer-grid.is-xray td .wt-callout .wt-callout-benefit { color:#1f4a3e !important; background:#e7efe9 !important; }
@media (max-width:760px) {
  .explorer-xray { margin-left:0; }
  .explorer-results li button { grid-template-columns:1fr; gap:2px; }
}

/* Workbook pages: the four benefits under the hero (2026-10-08). */
.wb-evidence { margin-top:1.4rem; margin-bottom:.6rem; }
.wb-evidence-head { display:flex; flex-wrap:wrap; align-items:baseline; gap:.2rem 1.2rem; }
.wb-evidence-head .eyebrow { width:100%; margin:0; font-family:var(--font-ui); }
.wb-evidence-head h2 { margin:.2rem 0 0; }
.wb-evidence-head .ev-basis { margin:0; }
.wb-evidence .ev-pillars { grid-template-columns:repeat(4,minmax(0,1fr)); margin:1rem 0 0; }
.wb-evidence .ev-pillar { background:#fffefa; }
@media (max-width:1050px) { .wb-evidence .ev-pillars { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .wb-evidence .ev-pillars { grid-template-columns:minmax(0,1fr); } }
/* Without the catalogue script the unit chart cannot be drawn: the legend's exact counts and the
   table view carry the figures, so the empty plot and its "one square" caption are not shown. */
.catalogue:not(.is-ready) .ev-waffle, .catalogue:not(.is-ready) .ev-anatomy figcaption span { display:none; }
@media (max-width:640px) {
  .cat-panel .ev-pillar { display:flex; flex-direction:column; }
  .cat-panel .ev-copy { margin-top:.45rem; }
  .cat-panel { padding:1rem .9rem; border-radius:12px; }
}

/* Review fixes (2026-10-08). With the script the area links become toggle buttons. */
html .template-library button.library-jump { width:100%; margin:0; color:#162b35; font:inherit; text-align:left; cursor:pointer; -webkit-appearance:none; appearance:none; }
/* The topbar is sticky: a panel scrolled into view keeps its title clear of it. */
.cat-panel { scroll-margin-top:calc(var(--sticky-top) + .8rem); }
.cat-panel-title:focus { outline:none; }
.cat-panel-title:focus-visible { outline:2px solid var(--ev-forest); outline-offset:4px; border-radius:2px; }
html .template-library .library-entry .entry-sample { margin:.35rem 0 0; color:var(--ev-muted); font:italic .72rem/1.35 var(--font-ui); }

/* ==========================================================================
   Calculators -- free tools under /tools/ (2026-10-10). The result is drawn as a
   page of a TaxWorkbooks working paper: the homepage preview shell, the workbooks'
   own cell fills (input FFF2CC, calculated D9E1F2), the sage band (E7EFEB) and
   forest (143D34) totals. Approved as mocked up: marketing/design-directions/
   2026-10-10-calculators/. Spec: .superpowers/sdd/2026-10-10-free-calculators/.
   ========================================================================== */
.calc-page { --calc-forest:#143d34; --calc-action:#263d35; --calc-teal:#14565a; --calc-ink:#162b35;
  --calc-body:#202d27; --calc-muted:#52625b; --calc-shell-rule:#b9c6bd; --calc-title-bg:#edf1eb;
  --calc-title-rule:#c7d0c7; --calc-band:#e7efeb; --calc-grid:#d5ded8; --calc-input:#fff2cc;
  --calc-input-rule:#c9b98a; --calc-calc:#d9e1f2; --calc-panel:#fffdf7; --calc-panel-rule:#bdc7bf;
  --calc-number:#648272; --calc-amber:#a47c37; --calc-amber-bg:#f1ecde; --calc-red:#a33434; --calc-red-bg:#f6e8e6; }

.calc-intro { display:grid; gap:7px; margin:0 0 12px; }
.calc-intro .calc-lede { margin:0; max-width:80ch; font:15.5px/1.48 var(--font-ui); color:var(--calc-ink); }
.calc-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin:0; font:12px/1.4 var(--font-ui); color:var(--calc-muted); }

/* Status: law in force, before Parliament, or draft. Always text, never colour alone. */
.calc-status { display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border:1px solid; border-radius:3px; font:700 11px/1.5 var(--font-ui); letter-spacing:.04em; white-space:nowrap; }
.calc-status::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.calc-status-enacted { color:var(--calc-forest); border-color:#9fb8a8; background:var(--calc-band); }
.calc-status-bill { color:#7a5a14; border-color:#d6c08a; background:var(--calc-amber-bg); }
.calc-status-draft { color:var(--calc-red); border-color:#dfb3ad; background:var(--calc-red-bg); }
.calc-status-announced { color:#7a5a14; border-color:#d6c08a; background:var(--calc-amber-bg); }

/* Mode switch: outlined boxes (the look of the retired header rows), current one inked. */
.calc-modes { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.calc-modes a { display:inline-flex; align-items:center; min-height:36px; padding:6px 14px; border:1px solid #bac8c4; border-radius:3px; font:13px/20px var(--font-ui); color:#617270; text-decoration:none; }
.calc-modes a[aria-current="page"] { color:#294c4e; border-color:#356665; background:#e4eeea; font-weight:700; }

/* Option A horizontal one-screen layout for free calculators (2026-11-19):
   Unified dark-forest KPI banner + horizontal categorized bento cards + full-width working paper. */
.calc-workspace { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; }

/* Inputs shell: borderless outer container holding the dark banner + bento card row */
.calc-page .calc-inputs { padding:0; border:0; background:transparent; display:grid; gap:12px; }
.calc-page .calc-inputs fieldset { margin:0; padding:0; border:0; display:grid; gap:9px; min-width:0; }
.calc-page .calc-inputs fieldset > * { min-width:0; }

/* Row 1: Unified dark-forest KPI & command banner (mirrors live P&I Option 3) */
.calc-banner {
  background:var(--calc-forest); color:#f7f5ef; border-radius:var(--radius, 3px);
  padding:12px 16px; display:grid;
  grid-template-columns:minmax(220px, .9fr) minmax(0, 1.55fr) auto;
  gap:10px 18px; align-items:center;
}
.calc-banner-scope { display:flex; flex-direction:column; gap:7px; min-width:0; }
.calc-banner .calc-case-actions { display:flex; flex-wrap:wrap; gap:6px; }
.calc-banner-ghost {
  min-height:28px; padding:3px 9px; border:1px solid rgba(255,255,255,.38); border-radius:2px;
  background:transparent; color:#f7f5ef; font:600 12px/1.2 var(--font-ui); cursor:pointer;
  white-space:nowrap;
}
.calc-banner-ghost:hover { background:rgba(255,255,255,.14); }
.calc-banner .calc-legend { color:rgba(247,245,239,.84); font-size:11.5px; gap:4px 12px; }
.calc-banner .calc-legend li::before { border-color:rgba(255,255,255,.45); }
.calc-banner-kpi {
  border-left:1px solid rgba(255,255,255,.22); padding-left:16px;
  display:flex; flex-direction:column; gap:3px; min-width:0;
}
.calc-banner-status {
  display:inline-flex; align-self:flex-start; padding:1px 7px; border-radius:2px;
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28);
  color:#f7f5ef; font:700 10.5px/1.3 var(--font-ui); letter-spacing:.05em; text-transform:uppercase;
}
.calc-banner.is-stale .calc-banner-status { background:#f1ecde; border-color:#d6c08a; color:#7a5a14; }
.calc-banner-main {
  margin:0; font:700 14.5px/1.3 var(--font-ui); color:#f7d996; font-variant-numeric:tabular-nums;
}
.calc-banner.is-stale .calc-banner-main { opacity:.55; }
.calc-banner-sub {
  margin:0; font:12.5px/1.38 var(--font-ui); color:rgba(247,245,239,.86);
}
.calc-banner-actions {
  display:flex; flex-direction:column; align-items:flex-end; gap:5px; min-width:0;
}
.calc-page .calc-inputs .calc-banner-submit {
  width:auto; min-height:38px; padding:7px 16px; border:1px solid #faf8f4;
  border-radius:var(--radius, 3px); background:#faf8f4; color:var(--calc-forest);
  font:700 13.5px/1.2 var(--font-ui); white-space:nowrap;
}
.calc-page .calc-inputs .calc-banner-submit:hover { background:#f1ecde; border-color:#f1ecde; color:#0f3d36; }
.calc-banner .calc-privacy { font-size:11px; color:rgba(247,245,239,.76); text-align:right; max-width:28ch; }
.calc-banner :focus-visible { outline:2.5px solid #f7d996; outline-offset:2px; }

/* Row 2: Horizontal categorized bento cards (3 columns, or 2 when 2 cards visible) */
.calc-bento {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(295px, 1fr));
  gap:12px; align-items:stretch; counter-reset:calc-card;
}
.calc-card {
  background:#faf8f4; border:1px solid #dcd5c9; border-top:2px solid #14534a;
  border-radius:var(--radius, 3px); padding:10px 13px 11px; min-width:0;
  counter-increment:calc-card;
}
.calc-card[hidden], .calc-subblock[hidden] { display:none !important; }
.calc-card > fieldset > legend {
  width:100%; display:flex; align-items:baseline; justify-content:space-between; gap:8px;
  padding:0 0 6px; margin:0 0 2px; border-bottom:1px solid #e4ddd0;
  color:var(--calc-forest); font:400 16px/1.2 var(--font-heading, Georgia, serif);
  letter-spacing:-.01em; text-transform:none;
}
.calc-card > fieldset > legend::after {
  content:"0" counter(calc-card); flex:none; padding:2px 6px; border-radius:2px;
  background:var(--calc-amber-bg); color:#7d561c; font:700 10.5px/1 var(--font-ui);
  letter-spacing:.04em;
}
.calc-subblock {
  display:grid; gap:8px; padding-top:8px; margin-top:2px; border-top:1px dashed #d5cec0;
}
.calc-subhead {
  margin:0; color:#14534a; font:700 11px/1.3 var(--font-ui); letter-spacing:.09em; text-transform:uppercase;
}

.calc-inputs fieldset { margin:0; padding:0; border:0; display:grid; gap:10px; min-width:0; }
.calc-inputs fieldset > * { min-width:0; }
.calc-inputs legend { padding:0 0 4px; color:var(--calc-number); font:600 11px/1.4 var(--font-ui); letter-spacing:.14em; text-transform:uppercase; }
.calc-field { display:grid; gap:3px; min-width:0; align-content:start; }
.calc-field label, .calc-field .calc-label { font:600 13px/1.3 var(--font-ui); color:var(--calc-ink); }
.calc-field .calc-hint { font:11.5px/1.34 var(--font-ui); color:var(--calc-muted); }
.calc-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.calc-inputs input[type="text"], .calc-inputs input[type="number"], .calc-inputs input[type="date"], .calc-inputs select {
  width:100%; min-height:34px; padding:5px 8px; border:1px solid var(--calc-input-rule); border-radius:2px;
  background:var(--calc-input); color:var(--calc-body); font:13.5px/1.25 var(--font-ui); font-variant-numeric:tabular-nums; }
.calc-inputs input[type="number"], .calc-inputs input[data-kind] { text-align:right; }
.calc-inputs :focus-visible { outline:3px solid #94671f; outline-offset:2px; }
.calc-choice { display:flex; flex-wrap:wrap; border:1px solid #bac8c4; border-radius:3px; overflow:hidden; width:max-content; max-width:100%; background:#fff; }
.calc-choice input { position:absolute; opacity:0; width:1px; height:1px; }
.calc-choice label { padding:4px 11px; font:12.5px/18px var(--font-ui); color:#52625b; cursor:pointer; border-left:1px solid #bac8c4; }
.calc-choice label:first-of-type { border-left:0; }
.calc-choice input:checked + label { background:var(--calc-forest); color:#fff; font-weight:700; }
.calc-choice input:focus-visible + label { outline:3px solid #94671f; outline-offset:-3px; }
.calc-check { display:flex; gap:8px; align-items:flex-start; font:13px/1.35 var(--font-ui); color:var(--calc-ink); }
.calc-check input { width:16px; height:16px; flex-shrink:0; margin-top:2px; accent-color:#143d34; }
.calc-inputs .buy { width:100%; }
.calc-privacy { margin:0; font:12px/1.45 var(--font-ui); color:var(--calc-muted); }
.calc-legend { display:flex; flex-wrap:wrap; gap:4px 14px; margin:0; padding:0; list-style:none; font:12px/1.4 var(--font-ui); color:var(--calc-muted); }
.calc-legend li { display:flex; align-items:center; gap:6px; }
.calc-legend li::before { content:""; width:14px; height:10px; border:1px solid var(--calc-grid); }
.calc-legend .is-input::before { background:var(--calc-input); border-color:var(--calc-input-rule); }
.calc-legend .is-calc::before { background:var(--calc-calc); border-color:#aebbd6; }

/* Questions (screener): compact categorized rows inside horizontal bento cards */
.calc-question { display:grid; grid-template-columns:minmax(0,1fr); gap:3px; align-items:center; padding:5px 0; border-bottom:1px solid #e4ddd0; font:600 12.5px/1.28 var(--font-ui); color:var(--calc-ink); }
.calc-question:first-of-type { padding-top:2px; }
.calc-question:last-child { border-bottom:0; padding-bottom:0; }
.calc-question .calc-hint { grid-column:1/-1; margin-top:0; font:400 11px/1.28 var(--font-ui); color:var(--calc-muted); }
.calc-question.is-off { color:var(--calc-muted); }

/* The working paper */
.calc-paper { overflow:hidden; background:#fff; border:1px solid var(--calc-shell-rule); border-radius:7px; box-shadow:0 14px 30px #263d3515; min-width:0; }
.calc-paper-title { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; padding:10px 14px; background:var(--calc-title-bg); border-bottom:1px solid var(--calc-title-rule); color:var(--calc-action); font:13px/1.4 var(--font-ui); }
.calc-paper-title strong { font-weight:700; }
.calc-paper-title .calc-paper-when { margin-left:auto; font-size:11px; color:var(--calc-muted); }
.calc-file-label { flex-shrink:0; padding:.2rem .35rem; border:1px solid #a9b7ad; border-radius:2px; color:var(--calc-muted); font:600 10.5px/1.3 var(--font-ui); letter-spacing:.04em; }
.calc-sheet-scroll { overflow-x:auto; }
.calc-sheet { width:100%; min-width:520px; border-collapse:collapse; font:13px/1.4 var(--font-ui); color:var(--calc-body); }
.calc-sheet th, .calc-sheet td { padding:7px 10px; border-bottom:1px solid var(--calc-grid); text-align:left; vertical-align:top; }
.calc-sheet thead th, .calc-sheet thead th.calc-line, .calc-sheet thead th.calc-ref { background:var(--calc-forest); color:#f7f5ef; font-size:11px; font-weight:700; letter-spacing:.04em; }
.calc-sheet .calc-line { width:3.2rem; color:var(--calc-muted); font-variant-numeric:tabular-nums; }
.calc-sheet .calc-ref { width:8.5rem; color:var(--calc-muted); font-size:11.5px; }
.calc-sheet .calc-amt { width:8.5rem; text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; border-left:1px solid var(--calc-grid); }
.calc-sheet td.is-input { background:var(--calc-input); }
.calc-sheet td.is-calc { background:var(--calc-calc); }
.calc-sheet tr.calc-band th { background:var(--calc-band); color:var(--calc-forest); font-weight:700; font-size:12px; letter-spacing:.02em; }
.calc-sheet tr.calc-total th, .calc-sheet tr.calc-total td { border-top:2px solid var(--calc-forest); font-weight:700; color:var(--calc-forest); }
.calc-sheet tr.calc-total td.calc-amt { font-size:15px; }
.calc-sheet tr.is-muted td { color:var(--calc-muted); }
.calc-sheet td a { color:var(--calc-teal); }
.calc-conclusion { margin:0; padding:12px 14px; border-top:1px solid var(--calc-grid); font:14px/1.5 var(--font-ui); color:var(--calc-ink); }
.calc-conclusion strong { color:var(--calc-forest); }
.calc-insight { margin:0 14px 12px; border-left:3px solid var(--calc-amber); background:var(--calc-amber-bg); padding:9px 12px; font:13px/1.5 var(--font-ui); }
.calc-paper-foot { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; padding:10px 14px; border-top:1px solid var(--calc-title-rule); background:#fafbf8; font:12px/1.4 var(--font-ui); color:var(--calc-muted); }
.calc-paper-foot .calc-actions { display:flex; gap:12px; margin-left:auto; align-items:center; }
.calc-paper-foot .text-link { padding:0; border:0; background:none; color:var(--calc-teal); font:13px/1.4 var(--font-ui); text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.calc-paper-foot .buy { width:auto; min-height:36px; padding:.45rem .9rem; font-size:.85rem; }

/* Timeline (CCA): regimes by acquisition date, the asset's date marked. */
.calc-timeline { margin:12px 14px 14px; font:11px/1.35 var(--font-ui); color:var(--calc-muted); }
.calc-timeline-bar { display:grid; grid-template-columns:1.2fr 1.6fr 1.2fr 1fr; border:1px solid var(--calc-grid); }
.calc-timeline-bar > div { padding:7px 8px; border-left:1px solid var(--calc-grid); background:#fafbf8; min-width:0; }
.calc-timeline-bar > div:first-child { border-left:0; }
.calc-timeline-bar strong { display:block; color:var(--calc-ink); font-size:12px; }
.calc-timeline-bar > .is-here, .calc-page .calc-timeline-bar > div:not(.is-muted) { background:var(--calc-calc); box-shadow:inset 0 -3px 0 var(--calc-forest); }
.calc-timeline-bar > .is-here strong, .calc-page .calc-timeline-bar > div:not(.is-muted) strong { color:var(--calc-forest); }
.calc-page .calc-timeline-bar > div.is-muted { color:var(--calc-muted); }
.calc-timeline-dates { display:grid; grid-template-columns:1.2fr 1.6fr 1.2fr 1fr; margin-top:4px; font-variant-numeric:tabular-nums; }

/* Hand-off to the paid workbook */
.calc-handoff { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 20px; align-items:center; margin:20px 0 6px; padding:16px 18px; border:1px solid #a9b9b8; border-top:3px solid var(--color-accent); background:#fff; }
.calc-handoff p { margin:0; font:14px/1.5 var(--font-ui); }
.calc-handoff h2 { margin:0 0 4px; line-height:1.2; letter-spacing:-.02em; }

@media (max-width:900px) {
  .calc-workspace { grid-template-columns:minmax(0,1fr); }
  .calc-banner { grid-template-columns:minmax(0,1fr); gap:10px; }
  .calc-banner-kpi { border-left:0; padding-left:0; border-top:1px solid rgba(255,255,255,.22); padding-top:9px; }
  .calc-banner-actions { align-items:stretch; }
  .calc-page .calc-inputs .calc-banner-submit { width:100%; }
  .calc-banner .calc-privacy { text-align:left; max-width:none; }
  .calc-bento { grid-template-columns:minmax(0,1fr); }
  .calc-handoff { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:480px) {
  .calc-pair { grid-template-columns:1fr; }
  .calc-paper-title .calc-paper-when { margin-left:0; flex-basis:100%; }
  .calc-timeline-bar, .calc-timeline-dates { grid-template-columns:1fr 1fr; }
}
.calc-print-note { display:none; }
@media print {
  .calc-inputs, .calc-modes, .calc-handoff, .calc-paper-foot .calc-actions { display:none !important; }
  .calc-print-note { display:block; margin:10px 0 0; font:9pt/1.4 var(--font-ui); color:#000; }
  .calc-page .resource-details { display:none !important; }
  .calc-workspace { display:block; }
  .calc-paper { box-shadow:none; border-color:#999; }
  .calc-sheet { min-width:0; }
}

/* Behaviour states (calculators) */
.calc-mode-heading { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.calc-mode + .calc-mode { margin-top:28px; }
.calc-error { margin:2px 0 0; color:#8f291e; font:600 12.5px/1.4 var(--font-ui); }
.calc-inputs [aria-invalid="true"] { border-color:#8f291e; box-shadow:0 0 0 1px #8f291e; }
.calc-inputs fieldset[hidden], .calc-field[hidden], .calc-check[hidden] { display:none; }
.calc-copy-note { font-size:12px; color:var(--calc-muted); }
.calc-copy-note:empty { display:none; }
.calc-paper.is-stale .calc-sheet [data-out], .calc-paper.is-stale .calc-conclusion, .calc-paper.is-stale .calc-insight { opacity:.4; }
.calc-paper.is-stale [data-paper-status] { color:#7a5a14; font-weight:700; }
.calc-sheet tr[hidden] { display:none; }
.calc-conclusion:empty { display:none; }
.calc-case-actions { display:flex; flex-wrap:wrap; gap:10px 20px; }
.calc-case-actions .text-link { border:0; background:none; padding:0; color:var(--calc-teal); font:13px/1.4 var(--font-ui); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.calc-question { grid-template-columns:minmax(0,1fr); }
.calc-question .calc-choice { justify-self:start; }
.calc-question .calc-error, .calc-question .calc-pending { grid-column:1/-1; }
.calc-pending { color:#795511; font:600 12px/1.4 var(--font-ui); }
.calc-result-summary { padding:14px; border-bottom:1px solid var(--calc-title-rule); background:#f2f7f3; scroll-margin-top:var(--nav-clear); }
.calc-result-summary:focus-visible { outline:3px solid #94671f; outline-offset:-3px; }
.calc-eligibility-warning { margin:0 0 12px; padding:10px 12px; border-left:4px solid var(--calc-amber); background:var(--calc-amber-bg); font:600 13px/1.55 var(--font-ui); }
.calc-class-description { margin:0 0 14px; font:13px/1.55 var(--font-ui); color:var(--text-muted); }
.calc-result-summary .calc-conclusion { padding:0; margin:0; border:0; }
.calc-result-summary .calc-insight { margin-top:10px; }
.calc-summary-law { margin:0 0 10px; font:700 17px/1.45 var(--font-ui); color:var(--calc-forest); }
.calc-announcement { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.calc-export-blocked { padding:10px 14px; margin:0; font:600 13px/1.5 var(--font-ui); color:#8f291e; background:#fff2ed; }
.calc-scroll-cue { display:none; padding:8px 14px; margin:0; font:12px/1.4 var(--font-ui); color:var(--calc-muted); }
.calc-snapshot { padding:12px 14px; border-top:1px solid var(--calc-title-rule); font:12px/1.45 var(--font-ui); }
.calc-snapshot summary { cursor:pointer; font-weight:600; color:var(--calc-ink); }
.calc-snapshot dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:5px 12px; margin:12px 0 0; }
.calc-snapshot dt { font-weight:600; }
.calc-snapshot dd { margin:0; overflow-wrap:anywhere; }
.calc-copy-fallback { width:calc(100% - 28px); height:180px; margin:14px; padding:10px; font:12px/1.4 var(--font-ui); }
.calc-actions button:disabled { opacity:.45; cursor:not-allowed; text-decoration:none; }
.calc-paper.is-stale .calc-summary-law { opacity:.4; }
@media (max-width:900px) {
  .calc-scroll-cue { display:block; }
}
@media print {
  .calc-mode[hidden] { display:none !important; }
  .calc-announcement, .calc-scroll-cue, .calc-copy-fallback { display:none !important; }
  .calc-paper.is-stale .calc-sheet-scroll, .calc-paper.is-stale .calc-result-summary,
  .calc-paper.is-stale .calc-timeline, .calc-paper.is-stale .calc-snapshot,
  .calc-paper.is-stale .calc-paper-foot { display:none !important; }
  .calc-result-summary { break-inside:avoid; }
  .calc-snapshot { font-size:9pt; }
  .calc-sheet tr { break-inside:avoid; }
  .calc-sheet thead { display:table-header-group; }
  .calc-mode-heading { position:static; width:auto; height:auto; margin:0 0 8px; clip:auto; overflow:visible; line-height:1.2; }
}
/* Resources page groups (2026-10-11): calculators first, references after. */
.resource-group { margin:22px 0 10px; line-height:1.2; letter-spacing:-.02em; color:#162b35; }
.resource-main > .resource-hero + .resource-group, .resource-main > .resource-group:first-of-type { margin-top:6px; }
.resource-group:target { scroll-margin-top:var(--nav-clear); }
.calc-sheet thead .calc-ref { color:#c9d8d1; font-weight:400; }

/* ==========================================================================
   Workbook formatting -- sheet_view.js (2026-10-25). Both viewers draw a sample
   the way Excel draws it: the workbook's own fills, Calibri sizes, borders,
   conditional colours, pictures and buttons, set through the CSSOM from the
   explorer JSON. Calibri where installed, else Carlito (a metric twin, OFL,
   assets/fonts/carlito-OFL.txt). Spec: .superpowers/sdd/2026-10-25-workbook-
   preview-refresh/.
   ========================================================================== */
.explorer-grid { position:relative; }
/* An exact width (set by the script) so a spilled text never widens its column. */
.explorer-grid table.sv { width:auto; min-width:0; border-collapse:collapse; color:#000; background:#fff; font:calc(14.667px * var(--sv-scale,1))/1.2 Calibri, Carlito, "Segoe UI", Arial, sans-serif; }
.explorer-grid table.sv td { padding:0 3px; border:0; vertical-align:bottom; text-overflow:clip; }
.explorer-grid table.sv td.sv-wrap { white-space:pre-wrap; overflow-wrap:anywhere; }
.explorer-grid table.sv td.sv-spill { overflow:visible; }
.explorer-grid table.sv td.sv-spill > .sv-text { display:block; overflow:hidden; white-space:nowrap; }
.explorer-grid table.sv.sv-gridlines td:not(.sv-filled) { background-image:linear-gradient(#e1e1e1,#e1e1e1), linear-gradient(#e1e1e1,#e1e1e1); background-size:1px 100%, 100% 1px; background-position:right top, left bottom; background-repeat:no-repeat; }
.explorer-grid table.sv thead th { border:0; box-shadow:inset 0 -1px #c8c8c8, inset -1px 0 #d8d8d8; }
.explorer-grid table.sv tbody th { border:0; box-shadow:inset -1px 0 #c8c8c8, inset 0 -1px #d8d8d8; }
.sv-layer { position:absolute; z-index:1; width:0; height:0; pointer-events:none; }
.sv-pic, .sv-button, .sv-outline { position:absolute; }
.sv-button { display:flex; align-items:center; justify-content:center; box-sizing:border-box; padding:0 4px; border:1px solid #000; border-radius:4px; color:#fff; white-space:nowrap; overflow:hidden; font-family:Arial, sans-serif; }
.sv-outline { box-sizing:border-box; border:2.5px solid #f2c14e; border-radius:6px; box-shadow:0 0 0 4px rgba(242,193,78,.25); }
.explorer-sheet-tab.has-colour, .wt-tab.has-colour { box-shadow:inset 0 -3px var(--tab-colour); }
.explorer-sheet-tab.has-colour[aria-selected="true"] { box-shadow:inset 0 2px #315d59, inset 0 -3px var(--tab-colour); }
/* The tour's Cover frame (2026-10-25): its words sit above the whole, unobstructed Cover. */
.wt-sheetnote.is-cover { padding:.6rem .9rem; font-size:14px; }

/* ==========================================================================
   Phone navigation (site review Task 8, 2026-11-01). Until then the five links wrapped into a
   146 px two-row header on every page at 390 px. One bar: brand, language switch, a Menu toggle;
   the links open below it. The toggle is a checkbox and a label, not a script (CSP) and not a
   <details> (which cannot be closed on phones and open on desktops at once). These rules sit last
   so they outrank the three earlier phone blocks for .topbar and .topnav.
   ========================================================================== */
.nav-toggle { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.nav-burger { display:none; }
@media (max-width:760px) {
  html[lang] body .product-topbar .topbar { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .9rem; padding:.55rem 0; }
  html[lang] body .product-topbar .topbar .brand { order:0; max-width:none; }
  html[lang] body .product-topbar .topbar .brand-name { font-size:1.45rem; }
  html[lang] body .product-topbar .topbar .brand-tagline { display:none; }
  html[lang] body .product-topbar .topbar .topbar-end { order:1; margin-left:auto; }
  html[lang] body .product-topbar .nav-burger { display:inline-flex; align-items:center; order:2; min-height:40px; padding:0 .7rem; border:1px solid rgba(247,245,239,.55); border-radius:3px; color:#f7f5ef; font:700 .76rem/1 var(--font-ui); letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }
  html[lang] body .product-topbar .nav-toggle:focus-visible + .nav-burger { outline:2px solid #f7f5ef; outline-offset:2px; }
  html[lang] body .product-topbar .topbar .topnav {
    display:none; order:3; width:100%; flex-flow:column nowrap; align-items:stretch;
    justify-content:flex-start; gap:0; margin:.35rem 0 .2rem; padding:.35rem 0 0;
    border-top:1px solid rgba(247,245,239,.25); font-size:.95rem;
    max-height:60vh; max-height:60dvh; overflow-y:auto; overscroll-behavior-y:contain;
  }
  html[lang] body .product-topbar .nav-toggle:checked ~ .topnav { display:flex; }
  html[lang] body .product-topbar .topnav > li { flex:0 0 auto; }
  .product-topbar .nav-menu[open] > div { max-height:none; overflow:visible; }
  html[lang] body .product-topbar .topnav > li > a { display:flex; align-items:center; min-height:44px; }
}
/* Editorial workbook purchase sections — grouped scope and Clear branches (2026-11-15).
   Text stays in HTML; decorative arrows require neither scripts nor inline styles. */
.wb-hero.purchase-hero {
  --flow-ink:#14565a; --flow-rule:#93aaa3; --flow-paper:#f7f5ef;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); gap:clamp(2rem,5vw,5rem);
  align-items:start; padding-block:2.8rem 2.4rem;
}
.purchase-copy,.purchase-visual { min-width:0; }
.purchase-identity { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem 1rem; margin-bottom:1.1rem; }
.purchase-identity .eyebrow { margin:0; color:#14565a; font-size:.72rem; }
.purchase-identity .status-chip { margin:0; font-size:.68rem; }
.purchase-hero h1 { font-size:clamp(2.15rem,3.6vw,3.4rem); font-weight:400; line-height:1.08; margin:0 0 1rem; max-width:19ch; text-wrap:balance; }
.purchase-hero .product-purpose { font:1rem/1.65 var(--font-ui); max-width:56ch; color:#43565b; }
.purchase-hero .purchase-coverage { margin:1.65rem 0 1.3rem; padding:1.1rem 0 0; border-top:1px solid #c8d0c9; }
.purchase-coverage h2 { font:600 1.08rem/1.3 var(--font-heading); margin:0 0 .2rem; }
.purchase-coverage > p { font:.75rem/1.5 var(--font-ui); color:#5a6c6d; margin:0 0 .7rem; }
.purchase-coverage dl { margin:0 0 .6rem; font:.78rem/1.55 var(--font-ui); }
.purchase-coverage dl > div { display:grid; grid-template-columns:8.6rem minmax(0,1fr); gap:.8rem; padding:.36rem 0; border-bottom:1px solid #dce0d9; }
.purchase-coverage dt { font-weight:600; color:#435b5c; }
.purchase-coverage dd { margin:0; color:#213a40; }
.purchase-coverage .text-link { font:.76rem/1.4 var(--font-ui); }
.purchase-hero .buy-box { background:none; padding:0; border:0; border-radius:0; }
.purchase-price { display:flex; align-items:center; gap:1rem; margin:0 0 .85rem; }
.purchase-price .buy-box-price { flex:0 0 auto; margin:0; }
.purchase-price .buy-box-price strong { font-size:1.65rem; }
.purchase-price .buy-box-price-pending strong { font-size:1.05rem; }
.purchase-price .buy-box-scope { margin:0; padding-left:1rem; border-left:1px solid #c8d0c9; font-size:.73rem; line-height:1.5; }
.purchase-hero .wb-facts-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; margin:0 0 .8rem; }
.purchase-hero .wb-facts-actions .buy { min-height:44px; margin:0; padding:.72rem 1.3rem; }
.purchase-hero .wb-facts-actions .small-copy { flex-basis:100%; font-size:.7rem; margin:0; }
.purchase-hero .buy-box-req { background:none; padding:0; margin:0 0 .6rem; color:#435b5c; font-size:.72rem; }
.purchase-included { margin:0 0 .7rem; }
.purchase-included summary,.purchase-rules summary { color:#14565a; font:600 .76rem/1.5 var(--font-ui); cursor:pointer; padding:.35rem 0; }
.purchase-included .buy-box-list { margin:.6rem 0; }
.purchase-hero .buy-box-review,.purchase-hero .buy-box-foot { font:.7rem/1.55 var(--font-ui); color:#526669; }
.purchase-flow { margin:0; padding:0; }
.purchase-flow figcaption { font:600 .7rem/1.4 var(--font-ui); text-transform:uppercase; letter-spacing:.12em; color:#526669; margin:0 0 1.3rem; }
.purchase-visual { padding-top:.35rem; }
.workflow-branches { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:1.1rem; color:var(--flow-ink); font: .85rem/1.4 var(--font-ui); }
.flow-node { border:1px solid var(--flow-rule); border-radius:7px; padding:1rem .7rem; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:.4rem; text-align:center; background:#fcfbf7; min-width:0; overflow-wrap:anywhere; }
.flow-node strong { font:600 .91rem/1.4 var(--font-ui); color:#163e43; }
.flow-node span,.flow-node small { font-size:.77rem; line-height:1.5; }
.flow-node .flow-kicker { font:600 .62rem/1.3 var(--font-ui); text-transform:uppercase; letter-spacing:.1em; color:#586f70; }
.flow-prior { grid-column:1; grid-row:1; }
.flow-current { grid-column:2; grid-row:1; }
.flow-left-route { grid-column:1; grid-row:2; }
.flow-right-route { grid-column:2; grid-row:2; }
.flow-link { min-height:5.3rem; position:relative; display:flex; justify-content:center; align-items:center; }
.flow-link::before { content:''; position:absolute; top:0; bottom:6px; left:50%; border-left:1.5px solid var(--flow-ink); }
.flow-link::after { content:''; position:absolute; bottom:0; left:calc(50% - 4px); border-left:4px solid transparent; border-right:4px solid transparent; border-top:7px solid var(--flow-ink); }
.flow-link > span { position:relative; z-index:1; padding:.3rem .4rem; background:var(--flow-paper); text-align:center; color:#486367; font:.72rem/1.4 var(--font-ui); max-width:95%; }
.flow-hub { grid-column:1/-1; background:#e6eeea; border:1.5px solid #14565a; padding:1.35rem .8rem; }
.flow-hub strong { font:400 clamp(1.5rem,2.2vw,2rem)/1.15 var(--font-heading); }
.flow-hub small { color:#486367; }
.flow-output-route { grid-column:1/-1; min-height:4.5rem; }
.flow-output { grid-column:1/-1; justify-self:center; width:80%; max-width:21rem; background:transparent; }
.flow-output strong { font:400 1.5rem/1.2 var(--font-heading); }
.flow-output small { color:#486367; }
.flow-note { color:#526669; font:.72rem/1.5 var(--font-ui); text-align:center; margin:1rem 0 0; }
.purchase-rules { border-top:1px solid #c8d0c9; margin-top:1.3rem; padding-top:.4rem; }
.purchase-rules p { color:#526669; font:.8rem/1.6 var(--font-ui); margin:.5rem 0; }
.has-copilot { grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(0,1.3fr); column-gap:.85rem; }
.has-copilot .flow-current { grid-column:2/4; }
.has-copilot .flow-prior-route { grid-column:1; grid-row:2/5; }
.has-copilot .flow-fork { grid-column:2/4; grid-row:2; height:3rem; position:relative; }
.flow-fork::before { content:''; position:absolute; height:50%; top:0; left:50%; border-left:1.5px solid var(--flow-ink); }
.flow-fork::after { content:''; position:absolute; top:50%; left:20%; right:29%; border-top:1.5px solid var(--flow-ink); }
.flow-fork i { position:absolute; top:50%; bottom:6px; left:20%; border-left:1.5px solid var(--flow-ink); }
.flow-fork i + i { left:71%; border-left-style:dashed; }
.flow-fork i::after { content:''; position:absolute; bottom:-6px; left:-4.75px; border-left:4px solid transparent; border-right:4px solid transparent; border-top:7px solid var(--flow-ink); }
.flow-manual { grid-column:2; grid-row:3; }
.flow-assistant { grid-column:3; grid-row:3; background:#f0f4ec; border-style:dashed; padding:.8rem .55rem; }
.flow-assistant strong { font-size:.85rem; }
.flow-assistant .flow-license { font-size:.68rem; color:#365452; }
.flow-assistant .flow-rules { font-size:.68rem; color:#586f70; }
.flow-manual-route { grid-column:2; grid-row:4; min-height:3rem; }
.flow-optional { grid-column:3; grid-row:4; min-height:3rem; }
.flow-optional::before { border-left-style:dashed; }
.has-copilot .flow-hub { grid-row:5; }
.has-copilot .flow-output-route { grid-row:6; }
.has-copilot .flow-output { grid-row:7; }
@media (max-width:900px) {
  .wb-hero.purchase-hero { grid-template-columns:minmax(0,1fr); gap:2rem; padding-block:1.8rem; }
  .purchase-hero h1 { font-size:clamp(2rem,6vw,3rem); max-width:23ch; }
  .purchase-visual { max-width:35rem; width:100%; justify-self:center; }
  .purchase-copy { max-width:42rem; width:100%; justify-self:center; }
}
@media (max-width:420px) {
  .purchase-coverage dl > div { grid-template-columns:6.8rem minmax(0,1fr); gap:.6rem; }
  .purchase-price { align-items:flex-start; }
  .has-copilot { column-gap:.6rem; grid-template-columns:minmax(0,.9fr) minmax(0,.85fr) minmax(0,1.3fr); }
  .flow-node { padding:.8rem .4rem; }
  .flow-node strong { font-size:.8rem; }
  .flow-node .flow-license,.flow-node .flow-rules { font-size:.67rem; }
  .flow-hub strong { font-size:1.65rem; }
  .flow-output strong { font-size:1.4rem; }
  .flow-link > span { font-size:.68rem; }
}
@media print {
  .wb-hero.purchase-hero { display:block; }
  .purchase-visual { max-width:32rem; margin:2rem auto; break-inside:avoid; }
  .purchase-hero .purchase-coverage,.purchase-hero .buy-box { break-inside:avoid; }
}

/* Shared homepage workflow. Each destination has its own labeled route. */
html[lang] .editorial-home .home-workflow-hero {
  grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);
  gap:clamp(2rem,5vw,4.5rem);
  padding:clamp(2.5rem,5vw,4.5rem) 0;
  text-align:left;
}
html[lang] .editorial-home .home-workflow-hero h1 {
  max-width:none;
  margin:0 0 1.2rem;
  font-size:clamp(2.55rem,4.6vw,3.75rem);
  line-height:1.04;
  text-wrap:balance;
}
.home-flow { --flow-ink:#14565a; --flow-rule:#93aaa3; --flow-paper:#f7f5ef; min-width:0; }
.home-flow figcaption { margin-bottom:.9rem; }
.home-flow .flow-node { padding:.65rem .45rem; gap:.25rem; }
.home-flow .flow-hub { padding:.95rem .55rem; }
.home-flow .flow-link small { display:block; font-size:inherit; color:#526669; }
.home-flow .flow-link > span { padding:.3rem .35rem; }
.home-flow .flow-fork { height:1.55rem; }
.home-flow .flow-manual-route,.home-flow .flow-optional { min-height:1.55rem; }
.home-flow-results {
  --result-gap:.55rem;
  --result-edge:calc((100% - var(--result-gap)) / 4);
  display:grid;
  grid-column:1/-1;
  grid-row:6;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:var(--result-gap);
}
.home-flow .home-flow-fan { grid-column:1/-1; grid-row:1; }
.home-flow-fan::after { left:var(--result-edge); right:var(--result-edge); }
.home-flow-fan i { left:var(--result-edge); bottom:0; }
.home-flow-fan i + i { left:calc(100% - var(--result-edge)); border-left-style:solid; }
.home-flow-fan i::after { content:none; }
.home-flow-branch { display:grid; grid-row:2 / span 2; grid-template-rows:subgrid; min-width:0; }
.home-flow-branch .flow-link { min-height:3.35rem; }
.home-flow .flow-note { margin:.8rem 0 0; }
.home-flow .flow-note a { margin-inline-start:.25em; }
@media (max-width:800px) {
  html[lang] .editorial-home .home-workflow-hero { grid-template-columns:minmax(0,1fr); gap:1.9rem; padding-block:2.25rem; }
  html[lang] .editorial-home .home-workflow-hero h1 { max-width:22ch; text-wrap:wrap; }
  .home-flow { width:100%; max-width:37rem; }
}
@media (max-width:420px) {
  .home-flow-branches { column-gap:.45rem; grid-template-columns:minmax(0,1fr) minmax(0,.76fr) minmax(0,1.13fr); }
  .home-flow-results { --result-gap:.4rem; }
  .home-flow .flow-node { padding-inline:.3rem; }
}

/* ==========================================================================
   Sovereign & Brass refinements (2026-11-15): desktop studio tagline in the
   forest bar, interactive walkthrough X-Ray control, traps showcase with
   illustrations, triage bar, measured-ratio badges, arcade spotlight, and
   the dedicated /standard architectural page.
   ========================================================================== */
.editorial-home .eyebrow,
.category-number,
.editorial-home .hero-credentials::before { border-top-color:var(--brass); }
html[lang] body .product-topbar { border-bottom:1px solid #b4843e80; }
.sitefoot { border-top:2px solid #b4843e66; }

@media (min-width:1080px) {
  :root { --nav-h:4.6rem; }
  html[lang] body .product-topbar .brand { display:flex; flex-direction:column; align-items:flex-start; }
  html[lang] body .product-topbar .brand-tagline {
    display:block;
    max-width:none;
    margin-top:.18rem;
    font-family:var(--font-ui);
    font-size:.62rem;
    line-height:1.25;
    letter-spacing:.07em;
    text-transform:uppercase;
    white-space:nowrap;
    color:rgba(247,245,239,.88);
  }
}

/* Walkthrough X-Ray toolbar inside the simulated workbook window */
.wt-xray-wrap {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.45rem 1rem;
  padding:.5rem .75rem;
  background:#f7f4ec;
  border-bottom:1px solid #dfd8ca;
  font:12.5px/1.35 var(--font-ui);
}
.wt-xray-note { color:#4c5c63; }
.wt-xray-wrap .explorer-xray { margin-left:0; min-height:30px; padding:4px 11px 4px 8px; }

/* Homepage #how-to-use traps showcase + illustration + /standard bridge */
.traps-head { margin-bottom:1.45rem; }
.traps-head .eyebrow { margin:0 0 .3rem; }
.traps-head .traps-band-title { margin:0; line-height:1.15; letter-spacing:-.035em; }
.trap-body { min-width:0; }
.trap-illus {
  display:block;
  width:100%;
  max-width:168px;
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:contain;
  margin:0 0 .85rem;
  border:1px solid var(--brass-border);
  border-radius:4px;
  background:#fffefa;
}
.trap-meta {
  display:inline-block;
  margin:0 0 .5rem;
  padding:.15rem .5rem;
  border-radius:3px;
  background:var(--brass-bg);
  border:1px solid var(--brass-border);
  color:var(--brass-ink);
  font:700 .72rem/1.3 var(--font-ui);
  font-variant-numeric:tabular-nums;
}
.standard-cta-strip {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.65rem 1.5rem;
  margin-top:1.65rem;
  padding:.85rem 1.1rem;
  background:#f3efe5;
  border:1px solid var(--brass-border);
  border-left:3px solid var(--brass);
  border-radius:4px;
}
.standard-cta-strip p { margin:0; font-size:.88rem; color:#3d4f56; }
.standard-cta-strip a { font-weight:700; font-size:.88rem; color:var(--editorial-teal); white-space:nowrap; }

/* Homepage #about Arcade Spotlight */
.arcade-spotlight {
  margin-top:1.5rem;
  padding:1rem 1.15rem;
  background:#f4efe4;
  border:1px solid var(--brass-border);
  border-left:3px solid var(--brass);
  border-radius:4px;
}
.arcade-spotlight-kicker {
  margin:0 0 .25rem;
  color:var(--brass-ink);
  font:700 .68rem/1.3 var(--font-ui);
  letter-spacing:.13em;
  text-transform:uppercase;
}
.arcade-spotlight p:not(.arcade-spotlight-kicker) { margin:0 0 .55rem; font-size:.88rem; line-height:1.5; color:#3d4f56; }
.arcade-spotlight-link { font:700 .85rem var(--font-ui); color:#14534a; }

/* Option B Measured-Ratio Badges (never reuses .status-chip) */
.entry-ratio-badge,
.wb-ratio-badge {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  margin:.15rem 0 .45rem;
  padding:.18rem .55rem;
  border-radius:4px;
  background:var(--brass-bg);
  border:1px solid var(--brass-border);
  color:#694a17;
  font:700 .72rem/1.3 var(--font-ui);
  font-variant-numeric:tabular-nums;
}
.purchase-hero .wb-ratio-badge { margin:0 0 .9rem; }

.template-library .library-hero .library-guide a { color:#f2c14e; font-weight:700; text-underline-offset:.2em; }

/* Catalogue Concept 3 engagement triage bar */
.desk-triage {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem .65rem;
  margin:0 0 1rem;
  padding:.75rem 1rem;
  background:#f4f0e7;
  border:1px solid var(--brass-border);
  border-radius:10px;
}
.desk-triage[hidden] { display:none; }
.desk-triage-label {
  color:var(--brass-ink);
  font:700 .72rem/1.2 var(--font-ui);
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-right:.25rem;
}
.triage-pills { display:flex; flex-wrap:wrap; gap:.4rem; }
.triage-pill {
  min-height:32px;
  padding:.25rem .8rem;
  border:1px solid #b5aa95;
  border-radius:999px;
  background:#fffefa;
  color:#102027;
  font:600 .78rem/1.2 var(--font-ui);
  cursor:pointer;
  transition:background .15s, border-color .15s, color .15s;
}
.triage-pill:hover { border-color:var(--editorial-teal); background:#eef4f1; }
.triage-pill[aria-pressed="true"] { border-color:#143d34; background:#143d34; color:#f7f5ef; }
.triage-pill:focus-visible { outline:2px solid var(--editorial-teal); outline-offset:2px; }

/* Dedicated /standard architectural page */
.std-hero {
  background:radial-gradient(120% 110% at 100% 0%, #1e5245 0%, #143d34 62%, #0e2e27 100%);
  color:#f7f5ef;
  padding:2.6rem 0 2.4rem;
  border-bottom:2px solid #b4843e99;
}
.std-kicker {
  margin:0 0 .5rem;
  color:#e3c285;
  font:700 .72rem/1.3 var(--font-ui);
  letter-spacing:.15em;
  text-transform:uppercase;
}
.std-hero h1 { margin:0 0 .8rem; max-width:22ch; color:#fff; font-size:clamp(2rem,3.6vw,3.1rem); line-height:1.08; }
.std-lead { max-width:64ch; margin:0 0 1.4rem; color:#dce7e0; font-size:1.02rem; line-height:1.58; }
.std-hero-stats { display:flex; flex-wrap:wrap; gap:.8rem 1.8rem; margin:0; padding:1rem 0 0; border-top:1px solid rgba(255,255,255,.18); }
.std-hero-stats div { min-width:9rem; }
.std-hero-stats dt { color:#c3d7cb; font:700 .68rem/1.3 var(--font-ui); letter-spacing:.1em; text-transform:uppercase; }
.std-hero-stats dd { margin:.15rem 0 0; color:#fff; font:700 1.15rem/1.3 var(--font-ui); font-variant-numeric:tabular-nums; }
.std-section { padding:2.5rem 0; border-bottom:1px solid var(--editorial-rule); }
.std-section:last-of-type { border-bottom:0; }
.std-section-head { margin-bottom:1.35rem; }
.std-section-head .eyebrow { margin:0 0 .25rem; color:var(--brass-ink); }
.std-section-head h2 { margin:0 0 .45rem; }
.std-section-head p { max-width:66ch; margin:0; color:#4c5c63; font-size:.95rem; line-height:1.55; }
.std-groups-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:.85rem; }
.std-group-card {
  display:flex;
  flex-direction:column;
  gap:.45rem;
  padding:1.05rem .95rem;
  background:#fffefa;
  border:1px solid #d5cfc3;
  border-top:3px solid var(--brass);
  border-radius:6px;
}
.std-group-num {
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#143d34;
  color:#f7f5ef;
  font:700 .78rem var(--font-ui);
}
.std-group-card h3 { margin:.1rem 0 0; font-family:var(--font-heading); font-size:1.04rem; line-height:1.25; }
.std-group-tabs { margin:0; font:700 .74rem/1.35 var(--font-ui); color:var(--brass-ink); }
.std-group-card p:last-child { margin:0; font-size:.84rem; line-height:1.48; color:#4c5c63; }
.std-roles-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.9rem; }
.std-role-card {
  padding:1rem 1.05rem;
  background:#fffefa;
  border:1px solid #d5cfc3;
  border-radius:6px;
}
.std-role-head { display:flex; align-items:center; gap:.55rem; margin-bottom:.45rem; }
.std-swatch { width:16px; height:16px; border-radius:3px; border:1px solid rgba(16,32,39,.25); flex:none; }
.std-swatch-input { background:#fff2cc; }
.std-swatch-calc { background:#d9e1f2; }
.std-swatch-prior { background:#e7e7e7; }
.std-swatch-title { background:#304747; }
.std-swatch-head { background:#f4f4f0; }
.std-swatch-link { background:#e4eee7; border-color:#245c5a; }
.std-role-card code { font:700 .8rem/1.3 Consolas, monospace; color:#102027; }
.std-role-card p { margin:0; font-size:.84rem; line-height:1.48; color:#4c5c63; }
.std-checks-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin-bottom:1.35rem; }
.std-check-card { padding:1rem 1.1rem; background:#fffefa; border:1px solid #d5cfc3; border-radius:6px; }
.std-badge { display:inline-block; padding:.15rem .5rem; border-radius:3px; font:700 .7rem/1.3 var(--font-ui); letter-spacing:.08em; }
.std-badge-error { background:#fbe9e7; color:#8e1e15; border:1px solid #e6b8b3; }
.std-badge-warn { background:#fff4d4; color:#694a00; border:1px solid #e3c87d; }
.std-badge-info { background:#e5f0ed; color:#14534a; border:1px solid #b5d3ca; }
.std-check-card h3 { margin:.5rem 0 .35rem; font-family:var(--font-heading); font-size:1.05rem; }
.std-check-card p { margin:0; font-size:.84rem; line-height:1.48; color:#4c5c63; }
.std-bridge-box {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
  gap:1.5rem;
  align-items:center;
  padding:1.25rem 1.4rem;
  background:#f4efe4;
  border:1px solid var(--brass-border);
  border-left:4px solid var(--brass);
  border-radius:6px;
}
.std-bridge-box h3 { margin:0 0 .4rem; font-family:var(--font-heading); font-size:1.15rem; }
.std-bridge-box p { margin:0; font-size:.88rem; line-height:1.52; color:#3d4f56; }
.std-bridge-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; text-align:center; }
.std-bridge-stats div { padding:.7rem .5rem; background:#fffefa; border:1px solid var(--brass-border); border-radius:4px; }
.std-bridge-stats strong { display:block; font:700 1.4rem/1.1 var(--font-ui); color:#143d34; font-variant-numeric:tabular-nums; }
.std-bridge-stats span { display:block; margin-top:.2rem; font:600 .72rem/1.3 var(--font-ui); color:#4c5c63; }
.std-callout-foot { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.2rem; margin-top:1.4rem; }
.std-callout-foot .buy { width:auto; white-space:normal; }
.std-callout-foot .text-link { margin-top:0; }

@media (max-width:1050px) {
  .std-groups-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .std-roles-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .std-groups-grid,
  .std-roles-grid,
  .std-checks-grid,
  .std-bridge-box { grid-template-columns:minmax(0,1fr); }
  .trap-illus { max-width:none; }
}

/* ==========================================================================
   Homepage critique implementation (owner, 2026-11-15): product chips and
   measured figures in the hero, icon flow diagram with a phone disclosure,
   compact author strip, equal licence cards with real buttons, FAQ contact
   line, and the "by MBTT" imprint beside the header tagline. Record:
   marketing/design-directions/2026-11-15-homepage-critique/.
   ========================================================================== */
html[lang] .editorial-home .home-workflow-hero { row-gap:clamp(1.5rem,3vw,2.25rem); }
html[lang] .editorial-home .home-workflow-hero h1 { font-size:clamp(2.35rem,3.6vw,3.15rem); line-height:1.06; }
.home-workflow-hero > .hero-product-copy { grid-column:1; grid-row:1; }
.home-workflow-hero > .home-flow { grid-column:2; grid-row:1; }
.home-workflow-hero > .hero-proof { grid-column:1 / -1; grid-row:2; }

.hero-chips { list-style:none; display:flex; flex-wrap:wrap; gap:.4rem; margin:0 0 1.35rem; padding:0; }
.hero-chips li { margin:0; }
.hero-chip { display:inline-flex; align-items:center; min-height:2rem; padding:.25rem .65rem; border:1px solid #c8c2b6; border-radius:2px; background:#fff; color:#14534a; font:700 .86rem/1.2 var(--font-ui); text-decoration:none; }
.hero-chip:hover,.hero-chip:focus-visible { background:#e7efec; border-color:#14534a; color:#102027; }

.hero-proof { font-family:var(--font-ui); }
.hero-proof dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:0; border-top:1px solid #c8c2b6; border-bottom:1px solid #c8c2b6; background:#fff; }
.hero-proof dl > div { padding:.9rem 1.1rem; border-left:1px solid #c8c2b6; }
.hero-proof dl > div:first-child { border-left:0; }
.hero-proof dt { margin:0 0 .2rem; font-size:.78rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#4c5c63; }
.hero-proof dd { margin:0; font-size:.95rem; line-height:1.35; color:#102027; }
.hero-proof dd strong { display:block; font:400 clamp(1.7rem,2.4vw,2.1rem)/1.1 var(--font-heading); color:#143d34; }
.hero-proof > p { margin:.45rem 0 0; font-size:.82rem; color:#4c5c63; }

/* The flow diagram: icon nodes, larger type (owner reference image, 2026-11-15). */
.home-flow .flow-node strong { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; font-size:1rem; line-height:1.3; }
.home-flow .flow-node span,.home-flow .flow-node small { font-size:.86rem; }
.home-flow .flow-node { padding:.8rem .6rem; border-radius:8px; background:#fcfbf7; }
.home-flow .flow-assistant .flow-license { font-size:.8rem; }
.home-flow .flow-link > span { font-size:.8rem; }
.home-flow .flow-icon { flex:none; width:1.2em; height:1.2em; color:#14565a; }
.home-flow .flow-hub { padding:1.15rem .7rem; background:#e6eeea; }
.home-flow .flow-assistant { background:#f0f4ec; }
.home-flow .flow-hub strong { font:400 clamp(1.4rem,2vw,1.85rem)/1.15 var(--font-heading); color:#102027; gap:.55rem; }
.home-flow .flow-hub strong .flow-icon { width:.85em; height:.85em; }
.home-flow .flow-hub small { font-size:.9rem; }
.home-flow .flow-note { font-size:.86rem; }
/* Never split a word inside a node; on narrower two-column and phone layouts the icon sits above its title. */
.home-flow .flow-node { overflow-wrap:normal; hyphens:auto; }
@media (max-width:1100px) {
  .home-flow .flow-node strong { flex-direction:column; gap:.2rem; }
  .home-flow .flow-hub strong { flex-direction:row; }
}
.home-flow-disclosure > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:0 0 .9rem; font:600 .78rem/1.4 var(--font-ui); text-transform:uppercase; letter-spacing:.12em; color:#526669; cursor:pointer; }
.home-flow-disclosure > summary::-webkit-details-marker { display:none; }
.home-flow-toggle::after { content:"Show \25BE"; font-weight:700; letter-spacing:0; text-transform:none; color:#14534a; font-size:.95rem; }
.home-flow-disclosure[open] .home-flow-toggle::after { content:"Hide \25B4"; }
:lang(fr) .home-flow-toggle::after { content:"Afficher \25BE"; }
:lang(fr) .home-flow-disclosure[open] .home-flow-toggle::after { content:"Masquer \25B4"; }
/* Wider screens: the diagram is always shown; the summary is only its caption. Browsers
   without ::details-content keep a working Show/Hide control instead. */
@media (min-width:48.01rem) {
  @supports selector(::details-content) {
    .home-flow-disclosure::details-content { content-visibility:visible; }
    .home-flow-disclosure > summary { cursor:default; pointer-events:none; }
    .home-flow-disclosure .home-flow-toggle { display:none; }
  }
}
@media (max-width:48rem) {
  .hero-chips { display:none; }   /* phone mock-up 2: figures, not chips, share the first screen; the Workbooks menu lists every form */
  .home-flow .flow-node { overflow-wrap:normal; hyphens:manual; padding:.6rem .3rem; }
  .home-flow .flow-node strong { flex-direction:column; gap:.2rem; font-size:.84rem; }
  .home-flow .flow-node span,.home-flow .flow-node small,.home-flow .flow-assistant .flow-license { font-size:.74rem; }
  .home-flow .flow-hub strong { flex-direction:row; font-size:1.35rem; }
  .home-flow .flow-link > span { font-size:.72rem; }
  .home-flow-disclosure > summary { margin:0; padding:.8rem 1rem; min-height:44px; border:1px solid #c8c2b6; background:#fff; }
  .home-flow-disclosure[open] > summary { margin-bottom:1rem; }
}

.author-strip { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.9rem 1.25rem; margin-block:0 clamp(1.5rem,3vw,2.5rem); padding:1.1rem 1.35rem; border:1px solid #c8c2b6; background:#fff; font-family:var(--font-ui); }
.author-strip-mark { display:flex; align-items:center; justify-content:center; width:3.5rem; height:3.5rem; border-radius:50%; background:#143d34; color:#fff; font:400 1.35rem/1 var(--font-heading); object-fit:cover; }
.author-strip-copy p { margin:0; font-size:.95rem; color:#3d4f56; }
.author-strip-copy .author-strip-name { margin-bottom:.15rem; font:500 1.25rem/1.3 var(--font-heading); color:#102027; }
.author-strip-copy a { color:#14534a; }
.author-strip-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.6rem 1rem; border:1.5px solid #143d34; border-radius:2px; color:#143d34; font-weight:700; font-size:.92rem; text-decoration:none; white-space:nowrap; }
.author-strip-action:hover { background:#143d34; color:#fff; }
.author-strip-note { grid-column:1 / -1; margin:0; padding-top:.65rem; border-top:1px solid #e1dcd2; font-size:.8rem; line-height:1.5; color:#4c5c63; }

.licence-intro { margin:.35rem 0 0; font-size:.98rem; color:#4c5c63; }
html[lang] .licence-cards article { gap:.55rem; padding:1.4rem; }
.licence-cards article.is-featured { border:2px solid #14534a; }
.licence-cards .tier-audience { margin:0; font:700 .76rem/1.3 var(--font-ui); letter-spacing:.09em; text-transform:uppercase; color:var(--brass-ink); }
.licence-cards h3 { margin:0; }
.licence-cards .tier-amount { margin:.2rem 0 0; font:400 1.9rem/1.15 var(--font-heading); color:#143d34; }
.licence-cards .tier-amount.is-quoted { font-size:1.35rem; color:#3d4f56; }
.licence-cards .tier-unit { margin:0; font-size:.86rem; color:#4c5c63; }
.licence-cards .tier-scope { margin:.2rem 0 .9rem; }
.tier-action { align-self:stretch; margin-top:auto; display:flex; align-items:center; justify-content:center; min-height:44px; padding:.65rem 1rem; border:1.5px solid #143d34; border-radius:2px; font:700 .95rem/1.25 var(--font-ui); text-align:center; text-decoration:none; }
.tier-action.is-primary { background:#143d34; color:#fff; }
.tier-action.is-primary:hover { background:#14565a; border-color:#14565a; }
.tier-action.is-secondary { background:#fff; color:#143d34; }
.tier-action.is-secondary:hover { background:#e7efec; }

.faq-contact { margin:.45rem 0 0; font-size:.98rem; color:#3d4f56; }

@media (max-width:800px) {
  .home-workflow-hero > .hero-product-copy,.home-workflow-hero > .home-flow,.home-workflow-hero > .hero-proof { grid-column:1; grid-row:auto; }
}
@media (max-width:48rem) {
  .hero-proof dl { grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid #c8c2b6; }
  .hero-proof dl > div { border-left:0; }
  .hero-proof dl > div:nth-child(odd) { border-right:1px solid #c8c2b6; }
  .hero-proof dl > div:nth-child(-n+2) { border-bottom:1px solid #c8c2b6; }
  .author-strip { grid-template-columns:auto minmax(0,1fr); }
  .author-strip-action { grid-column:1 / -1; }
}

/* Compact homepage (owner, 2026-11-15): minimal space between sections, homepage only. */
html[lang] body.editorial-home .home-workflow-hero { padding-block:1.25rem .75rem; row-gap:1rem; align-items:start; }
html[lang] body.editorial-home .hero-product-copy .hero-kicker { margin-bottom:.5rem; }
html[lang] body.editorial-home .home-workflow-hero h1 { margin-bottom:.75rem; }
html[lang] body.editorial-home .hero-product-description { margin-bottom:.9rem; }
html[lang] body.editorial-home .hero-chips { margin-bottom:.9rem; }
html[lang] body.editorial-home .hero-audience { margin-top:.6rem; }
html[lang] body.editorial-home .author-strip { margin-block:0 .75rem; padding:.7rem 1.1rem; gap:.5rem 1.1rem; }
html[lang] body.editorial-home main > .section,
html[lang] body.editorial-home main > .expertise-band { padding-block:.75rem; margin-block:0; }
html[lang] body.editorial-home main .section-intro { margin-bottom:.75rem; }
html[lang] body.editorial-home .walkthrough-head { margin-bottom:.4rem; }
html[lang] body.editorial-home .walkthrough-intro { margin-bottom:.6rem; }
html[lang] body.editorial-home .walkthrough-fallback { margin:.5rem 0 0; }
html[lang] body.editorial-home .traps-head { margin-bottom:.75rem; }
html[lang] body.editorial-home .standard-cta-strip { margin-top:.9rem; }
html[lang] body.editorial-home .licence-cards .tier-scope { margin-bottom:.5rem; }
html[lang] body.editorial-home #licences .small-copy { margin:.5rem 0 0; }
html[lang] body.editorial-home .faq.product-faq { margin:0; }
html[lang] body.editorial-home #faq summary { padding-block:.6rem; min-height:44px; }
html[lang] body.editorial-home #faq .section-link { margin:.6rem 0 0; }
html[lang] body.editorial-home #faq summary::after { top:50%; transform:translateY(-50%); line-height:1; }

/* Size-matched stand-in for Source Serif 4 (2026-11-15). Until the web font arrives
   (a fraction of a second on slow lines, despite the _headers preload), headings draw
   in the visitor's own Georgia scaled to Source Serif 4's width and line metrics, so
   the swap no longer makes text grow or shrink. Ratios calibrated in Chrome by rendering the site's own heading
   text in both families at each weight until widths and line boxes matched. local() only: nothing is downloaded. */
@font-face { font-family:"Source Serif 4 Fallback"; src:local("Georgia"); font-weight:300 500; font-style:normal; size-adjust:95.8%; ascent-override:108.6%; descent-override:35.5%; line-gap-override:0%; }
@font-face { font-family:"Source Serif 4 Fallback"; src:local("Georgia Bold"), local("Georgia-Bold"); font-weight:600 900; font-style:normal; size-adjust:83.7%; ascent-override:124.3%; descent-override:40.6%; line-gap-override:0%; }
@font-face { font-family:"Source Serif 4 Fallback"; src:local("Georgia Italic"), local("Georgia-Italic"); font-weight:300 500; font-style:italic; size-adjust:95.8%; ascent-override:108.6%; descent-override:35.5%; line-gap-override:0%; }

/* ==========================================================================
   Site-wide compact rhythm (owner, 2026-11-15): one line spacing for running
   text and one compact gap between sections on every page family, so similar
   pages (the workbook pages above all) read alike. Worksheet previews keep
   their own Excel-derived metrics and are excluded.
   ========================================================================== */
:root { --sec-pad: clamp(1rem, 2vw, 1.75rem); --rhythm-lh: 1.5; --rhythm-lh-tight: 1.4; }
html[lang] body main :is(p, li, dd, dt, summary, blockquote, figcaption, label):not(.explorer-grid *, .wt-grid *, .sheet-grid *, .xl-sheet *) { line-height:var(--rhythm-lh); }
html[lang] body main :is(td, th):not(.explorer-grid *, .wt-grid *, .sheet-grid *, .xl-sheet *) { line-height:var(--rhythm-lh-tight); }
html[lang] body main :is(h1, h2, h3, h4) { line-height:1.15; }
:where(html[lang] body main) p { margin-block:0 .6em; }
html[lang] body main :is(p, ul, ol, dl, table):last-child { margin-bottom:0; }
html[lang] body main .section { padding-block:var(--sec-pad); }
html[lang] body main .section-intro { margin-bottom:.75rem; }
html[lang] body main .section-intro h2 { margin-bottom:.35rem; }
/* The workbook standard page */
html[lang] body .std-section { padding-block:1.25rem; }
html[lang] body .std-section-head { margin-bottom:.8rem; }
/* Workbook pages, including the tax-provision page, share one hero and section rhythm. */
html[lang] body .wb-hero.purchase-hero { padding-block:1.25rem .75rem; }
/* The template catalogue: its cards and bands follow the same rhythm. */
html[lang] body.template-library .library-entry .entry-purpose { line-height:var(--rhythm-lh); }
html[lang] body.template-library .library-entry .entry-title { line-height:1.25; }
html[lang] body .library-hero.cat-hero { padding-block:1.25rem .75rem; }
html[lang] body .cat-layout.wrap { padding-block:var(--sec-pad); }

/* Print uses one reading size. Keep worksheet and SVG preview geometry intact. */
@media print {
  :root { --print-body-size:10.5pt; }
  body,
  :is(main, .masthead) :where(:not(svg, svg *, .explorer-grid *, .wt-grid *, .sheet-grid *, .xl-sheet *, .pi-sheet *)) {
    font-size:var(--print-body-size) !important;
  }
  :is(main, .masthead) h1 { font-size:21pt !important; }
  :is(main, .masthead) h2 { font-size:15.75pt !important; }
  :is(main, .masthead) h3:not(.pi-sheet *) { font-size:12.6pt !important; }
  :is(main, .masthead) :is(h1, h2, h3, h4, h5, h6) :where(:not(svg, svg *, .pi-sheet *)) {
    font-size:inherit !important;
  }
  .sitefoot { padding-block:.5rem; background:white; }
  .sitefoot > .wrap > :not(.print-site-credit) { display:none; }
  .sitefoot .print-site-credit {
    display:block;
    margin:0;
    font-size:var(--print-body-size);
    white-space:nowrap;
  }
}

/* Option B — compact product pages with working-paper references. */
body.product-standard {
  --flow-ink:var(--color-accent);
  --flow-rule:var(--editorial-rule);
  --flow-paper:var(--color-bg);
  line-height:1.35;
}
html[lang] body.product-standard main :is(p, li, dd, dt, summary, blockquote, figcaption, label, td, th):not(:where(.explorer-grid *, .wt-grid *, .sheet-grid *, .xl-sheet *)) {
  line-height:1.35;
}
html[lang] body.product-standard main > .product-panel {
  min-width:0;
  padding:0.9rem 1.15rem;
  margin-block:0 0.75rem;
  border:1px solid var(--editorial-rule);
  border-left:4px solid var(--brass);
  background:white;
}
html[lang] body.product-standard main > .product-standard-hero {
  display:grid;
  grid-template-columns:minmax(0,1.28fr) minmax(0,1fr);
  align-items:start;
  gap:clamp(1.25rem,3vw,2.5rem);
  padding:1rem 1.25rem;
  margin-block:1rem 0.65rem;
}
.product-standard-hero .purchase-identity { margin-bottom:.45rem; }
.product-standard-hero .purchase-identity .eyebrow { color:var(--color-accent); }
.product-standard-hero .status-chip {
  border-radius:999px;
  background:var(--color-accent-800);
  color:white;
  padding:.2rem .65rem;
}
.product-standard-hero h1 {
  font-size:clamp(1.5rem,2.2vw,1.85rem);
  font-weight:400;
  line-height:1.15;
  letter-spacing:-.025em;
  margin:0 0 .45rem;
}
.product-standard-hero h1 span {
  display:block;
  margin-top:.12rem;
  font-size:.74em;
  line-height:1.25;
  color:var(--color-neutral-600);
}
.product-standard-hero .product-purpose { max-width:none; margin:0 0 .65rem; font:14.5px/1.35 var(--font-ui); }
.product-standard-hero .buy-box { background:none; padding:0; border:0; }
.product-standard-hero .purchase-price {
  display:block;
  margin-bottom:.55rem;
  line-height:1.35;
}
.product-standard-hero .purchase-price .buy-box-price {
  display:inline;
  margin:0;
}
.product-standard-hero .purchase-price .buy-box-price strong {
  margin-right:.45rem;
}
.product-standard-hero .purchase-price .buy-box-price span {
  font-size:.78rem;
  line-height:1.35;
  color:var(--color-neutral-700);
}
.product-standard-hero .purchase-price .buy-box-scope {
  display:inline;
  margin:0;
  padding-left:0;
  border-left:0;
  font-size:.78rem;
  line-height:1.35;
  color:var(--color-neutral-700);
}
.product-standard-hero .purchase-price .buy-box-scope::before {
  content:"·";
  margin-inline:.45rem;
  color:var(--color-neutral-500);
}
.product-standard .wb-facts-actions { gap:.45rem .65rem; }
.product-standard-hero .wb-facts-actions { margin-bottom:.45rem; }
.product-standard .wb-facts-actions .buy, .product-standard .product-related-links .buy {
  width:auto;
  min-height:44px;
  padding:.55rem .9rem;
  white-space:normal;
}
.product-standard-hero .buy-box-req { background:none; padding:0; margin:.45rem 0 0; }
.product-standard-hero .purchase-included { margin:.3rem 0; }
.product-standard-hero :is(.buy-box-review, .buy-box-foot, .product-sample-note) { margin:.25rem 0; }
.product-standard-hero .pi-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:.45rem .85rem; }
.product-standard-hero .pi-price strong { font:400 1.65rem/1.15 var(--font-heading); }
.product-standard-hero .pi-price span { font-size:.8rem; color:var(--color-neutral-700); }
.product-standard-hero .pi-actions > a[href="#estimate"] { align-content:center; min-height:44px; }
/* Option 2 — Sovereign Workbook Buttons (T2 mint fill + forest border + brass letter chip). */
.product-jumps {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.4rem .42rem;
  margin-block:0 .85rem;
}
.product-jumps-label {
  font:700 .7rem/1 var(--font-ui);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#4e6b61;
  margin-right:.1rem;
}
.product-jumps a {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  max-width:100%;
  padding:.26rem .62rem .26rem .36rem;
  border-radius:4px;
  background:#eef6ef;
  border:1.5px solid #143d34;
  color:#143d34;
  font:700 .85rem/1.2 var(--font-ui);
  text-decoration:none;
  transition:background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.product-jump-ref {
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.25rem;
  height:1.25rem;
  padding:0 .25rem;
  border-radius:var(--radius);
  background:white;
  border:1px solid var(--brass);
  color:var(--brass-ink);
  font:700 .72rem/1 var(--font-ui);
  transition:background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.product-jumps a:hover,
.product-jumps a:active {
  background:#143d34;
  border-color:#143d34;
  color:white;
  text-decoration:none;
}
.product-jumps a:hover .product-jump-ref,
.product-jumps a:active .product-jump-ref {
  background:var(--brass);
  border-color:var(--brass);
  color:var(--color-text);
}
.product-jumps a:focus-visible {
  outline:3px solid var(--color-accent);
  outline-offset:2px;
}
@media (prefers-reduced-motion:reduce) {
  .product-jumps a,
  .product-jump-ref { transition:none; }
}
.product-standard .product-panel-title {
  display:flex;
  align-items:baseline;
  gap:.65rem;
  margin:0 0 .65rem;
  font:400 1.25rem/1.25 var(--font-heading);
}
.product-reference {
  flex:none;
  min-width:1.55rem;
  padding:.16rem .28rem;
  border:1px solid var(--brass);
  border-radius:var(--radius);
  color:var(--brass-ink);
  font:700 .8rem/1.2 var(--font-ui);
  text-align:center;
}
.product-standard main [id] { scroll-margin-top:var(--nav-clear); }
.product-facts-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6rem 1rem; margin:0; }
.product-facts-grid dt { margin:.1rem 0; color:var(--color-accent); font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.product-facts-grid dd { margin:0; }
.product-standard .wb-ratio-badge { margin:.55rem 0 0; }
/* Flow diagrams read like the other panels (owner, 2026-11-18): full panel width, left edge
   aligned with the panel text, body-size type and the panel heading size for the hub. */
.product-standard .purchase-flow { max-width:none; margin-inline:0; }
.product-standard .purchase-flow figcaption { margin-bottom:.5rem; }
.product-standard .workflow-branches { column-gap:.75rem; font-size:.85rem; }
.product-standard .flow-node { padding:.4rem .6rem; gap:.15rem; border-radius:var(--radius); background:white; border-color:var(--editorial-rule); }
.product-standard .flow-node strong { font-size:.88rem; }
.product-standard .flow-link, .product-standard .flow-output-route { min-height:2rem; }
.product-standard .flow-link > span { padding:.1rem .4rem; background:white; }
.product-standard .flow-hub { padding:.5rem .7rem; background:var(--color-surface); border:1px solid var(--color-accent); }
.product-standard .flow-hub strong { font:400 1.25rem/1.25 var(--font-heading); }
.product-standard .flow-output { width:50%; max-width:none; }
.product-standard .flow-output strong { font:400 1.1rem/1.25 var(--font-heading); }
.product-standard .purchase-rules { margin-top:.65rem; }
.product-standard .wb-evidence { width:100%; }
.product-standard .wb-viewer .guide-preview { padding-bottom:1rem; }
.product-standard .wb-detail > summary, .product-standard .faq summary { padding-block:.5rem; }
.product-standard .product-faq { max-width:none; margin-top:.6rem; }
.product-standard .faq-body { max-width:none; padding-right:0; }
.product-standard .walkthrough-intro { max-width:none; }
.product-coverage-table { width:100%; table-layout:fixed; border-collapse:collapse; margin:.4rem 0 .65rem; }
.product-coverage-table :is(td, th) {
  padding:.38rem .5rem;
  border-bottom:1px solid var(--editorial-rule);
  vertical-align:top;
  overflow-wrap:anywhere;
}
.product-coverage-table th { width:27%; text-align:left; }
.product-coverage-table thead th { background:var(--color-surface); }
.product-coverage-table td > p:last-child { margin-bottom:0; }
.product-related-links { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem .85rem; }
.product-related-links .text-link { margin:0; }

/* Worksheet preview card, shared by text extracts, screenshots and the P&I picker. */
.worksheet-card { margin:0; min-width:0; align-self:start; }
.worksheet-card figcaption, .worksheet-file {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.25rem .65rem;
}
.worksheet-card figcaption { margin:0 0 .5rem; color:var(--color-neutral-700); font-size:.8rem; }
.worksheet-card figcaption strong, .worksheet-folio {
  color:var(--color-accent); font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
}
.worksheet-surface { border:1px solid var(--editorial-rule); padding:.75rem; background:var(--color-surface); }
.worksheet-window { min-width:0; margin:0; padding:0; border:1px solid var(--editorial-rule); background:var(--color-bg); }
.worksheet-file { padding:.55rem .8rem; background:var(--color-accent-800); color:white; font-size:.92rem; font-weight:700; }
.worksheet-file span { font-size:.74rem; text-transform:uppercase; }
.worksheet-window .worksheet-folio { margin:.7rem .8rem .25rem; }
.worksheet-sheet { padding:0 .8rem .7rem; }
.worksheet-sheet h3 { margin:0 0 .3rem; font:400 1.2rem/1.25 var(--font-heading); }
.worksheet-sheet p { color:var(--color-neutral-700); font-size:.85rem; }
.worksheet-sheet img { width:100%; max-height:18rem; height:auto; object-fit:contain; display:block; }
.worksheet-sheet table { width:100%; margin:.4rem 0 0; border-collapse:collapse; }
.worksheet-sheet :is(th, td) { padding:.35rem 0; border-top:1px solid var(--editorial-rule); vertical-align:baseline; }
.worksheet-sheet th { text-align:left; font-weight:400; }
.worksheet-sheet td { padding-left:.6rem; text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.pi-sheet { display:none; }
#pi-sheet-results tr:last-child > * { font-weight:700; }
.pi-tabs { display:flex; flex-wrap:wrap; padding-inline:.5rem; background:var(--color-surface); border-top:1px solid var(--editorial-rule); }
.pi-tabs label { display:inline-flex; align-items:center; min-height:44px; padding:.4rem .65rem; color:var(--color-text); cursor:pointer; font-size:.9rem; }
.pi-radio { position:absolute; width:1px; height:1px; clip-path:inset(50%); }
#pi-tab-results:checked ~ #pi-sheet-results, #pi-tab-monthly:checked ~ #pi-sheet-monthly { display:block; }
#pi-tab-results:checked ~ .pi-tabs label[for="pi-tab-results"], #pi-tab-monthly:checked ~ .pi-tabs label[for="pi-tab-monthly"] { background:var(--color-bg); font-weight:700; }
#pi-tab-results:focus-visible ~ .pi-tabs label[for="pi-tab-results"], #pi-tab-monthly:focus-visible ~ .pi-tabs label[for="pi-tab-monthly"] { outline:3px solid var(--color-accent); outline-offset:-2px; }

.pi-tool-panel > summary {
  width:fit-content;
  min-height:44px;
  padding:.55rem .85rem;
  margin:.45rem 0 .65rem;
  border:1px solid var(--editorial-rule);
  border-radius:var(--radius);
  color:var(--color-accent);
  font-weight:700;
  cursor:pointer;
}
.pi-tool-panel > summary:hover { background:var(--color-surface); }
.pi-tool-panel .pi-open, .pi-tool-panel[open] .pi-closed { display:none; }
.pi-tool-panel[open] .pi-open { display:inline; }
.pi-tool #estimate { margin-top:.6rem; }

/* Option 3: Top live KPI banner + three-zone horizontal bento for the P&I web estimator */
.pi-bento-shell {
  display:grid;
  grid-template-columns:minmax(360px,1.02fr) minmax(0,1.42fr);
  grid-template-rows:auto auto;
  row-gap:12px;
  column-gap:0;
}
.pi-tool .pi-bento-form {
  display:contents;
}

/* Row 1: Unified dark-forest live KPI banner */
.pi-banner-scope {
  grid-column:1;
  grid-row:1;
  background:var(--calc-forest);
  color:#f7f5ef;
  padding:.68rem .85rem;
  border-radius:var(--radius) 0 0 var(--radius);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.45rem;
  min-width:0;
}
.pi-banner-top {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.4rem .6rem;
}
.pi-auth-dark {
  display:inline-flex;
  border:1px solid rgba(255,255,255,.35);
  border-radius:2px;
  overflow:hidden;
  flex-shrink:0;
}
.pi-auth-dark button {
  min-height:32px;
  padding:.22rem .58rem;
  border:0;
  border-left:1px solid rgba(255,255,255,.25);
  background:transparent;
  color:rgba(247,245,239,.88);
  font:600 .8rem/1.2 var(--font-ui);
  cursor:pointer;
  white-space:nowrap;
}
.pi-auth-dark button:first-child { border-left:0; }
.pi-auth-dark button:hover { background:rgba(255,255,255,.12); color:#fff; }
.pi-auth-dark button[aria-pressed="true"] {
  background:var(--brass);
  color:#102027;
  font-weight:700;
}
.pi-banner-sit { width:100%; min-width:0; }
.pi-tool .pi-banner-sit select {
  width:100%;
  min-height:32px;
  padding:.2rem .55rem;
  border:1px solid rgba(255,255,255,.34);
  border-radius:2px;
  background:rgba(255,255,255,.13);
  color:#fff;
  font:600 .84rem/1.25 var(--font-ui);
}
.pi-tool .pi-banner-sit select option { background:#fff; color:var(--color-text); }
.pi-tool .pi-banner-meta.pi-example-controls {
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.35rem .55rem;
}
.pi-case-pill {
  padding:.12rem .45rem;
  border-radius:2px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  color:#f7f5ef;
  font:700 .73rem/1.25 var(--font-ui);
}
.pi-example-actions { display:inline-flex; flex-wrap:wrap; gap:.32rem; }
.pi-example-actions button {
  min-height:26px;
  padding:.14rem .52rem;
  border:1px solid rgba(255,255,255,.35);
  border-radius:2px;
  background:transparent;
  color:#f7f5ef;
  font:600 .76rem/1.2 var(--font-ui);
  cursor:pointer;
  white-space:nowrap;
}
.pi-example-actions button:hover { background:rgba(255,255,255,.14); }
.pi-tool .pi-banner-scope :focus-visible { outline:2.5px solid #f7d996; outline-offset:2px; }

/* Row 1 right: Live KPI readout inside dark-forest banner */
.pi-tool #pi-result.calc-paper {
  grid-column:2;
  grid-row:1;
  border:0;
  border-radius:0 var(--radius) var(--radius) 0;
  box-shadow:none;
  background:var(--calc-forest);
  color:#f7f5ef;
  padding:.7rem .9rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.28rem;
}
.pi-kpi-strip {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(95px,1fr)) minmax(168px,1.4fr) auto;
  gap:.45rem .8rem;
  align-items:center;
}
.pi-kpi-cell {
  border-left:1px solid rgba(255,255,255,.22);
  padding-left:.75rem;
  display:flex;
  flex-direction:column;
  gap:.08rem;
  min-width:0;
}
.pi-kpi-lbl {
  font:700 .66rem/1.2 var(--font-ui);
  letter-spacing:.09em;
  text-transform:uppercase;
  color:rgba(247,245,239,.76);
}
.pi-kpi-val {
  font:700 1.15rem/1.18 var(--font-ui);
  font-variant-numeric:tabular-nums;
  color:#fff;
  white-space:nowrap;
}
.pi-kpi-total .pi-kpi-val {
  font-size:1.32rem;
  color:#f7d996;
}
.pi-kpi-sub {
  font:400 .72rem/1.2 var(--font-ui);
  color:rgba(247,245,239,.78);
  font-variant-numeric:tabular-nums;
}
.pi-kpi-cta { display:flex; align-items:center; justify-content:flex-end; }
.pi-kpi-cta .buy {
  background:#faf8f4;
  color:var(--calc-forest);
  border:1px solid #faf8f4;
  min-height:38px;
  padding:.42rem .9rem;
  font-size:.84rem;
  white-space:nowrap;
}
.pi-kpi-cta .buy:hover { background:#fff; color:var(--color-accent-800); }
.pi-kpi-cta .buy:focus-visible { outline:2.5px solid #f7d996; outline-offset:2px; }
.pi-kpi-status {
  margin:0;
  padding-left:.75rem;
  font:400 .76rem/1.3 var(--font-ui);
  color:rgba(247,245,239,.85);
  text-align:right;
}

/* Row 2: Non-CRA authority notice (Revenu Québec / Alberta) */
.pi-authority-notice {
  grid-column:1 / -1;
  grid-row:2;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.75rem 1.25rem;
  padding:1.1rem 1.25rem;
  background:#fcf7eb;
  border:1px solid #dcc89a;
  border-left:4px solid var(--brass);
  border-radius:var(--radius);
}
.pi-authority-notice-copy { min-width:0; max-width:none; flex:1 1 28rem; }
.pi-authority-notice strong {
  display:block;
  margin-bottom:.25rem;
  font:400 1.05rem/1.25 var(--font-heading);
  color:var(--calc-forest);
}
.pi-authority-notice p { margin:0; font-size:.9rem; color:var(--calc-body); }
.pi-switch-cra {
  min-height:36px;
  padding:.35rem .8rem;
  border:1px solid var(--calc-forest);
  border-radius:var(--radius);
  background:#fff;
  color:var(--calc-forest);
  font:700 .84rem/1.2 var(--font-ui);
  cursor:pointer;
  white-space:nowrap;
}
.pi-switch-cra:hover { background:var(--calc-band); }

/* Row 2: Three-zone horizontal bento cards */
.pi-bento-grid-wrap {
  grid-column:1 / -1;
  grid-row:2;
}
.pi-bento-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.28fr);
  grid-template-rows:auto 1fr;
  column-gap:12px;
  row-gap:0;
  align-items:stretch;
}
.pi-tool .pi-sit-fieldset:not([hidden]):not(.pi-sit-full) {
  display:contents;
}
.pi-tool .pi-sit-fieldset.pi-sit-full {
  grid-column:1 / -1;
  grid-row:1 / 3;
  display:block;
  padding:1rem 1.15rem;
  background:var(--color-bg);
  border:1px solid var(--editorial-rule);
  border-top:2px solid var(--color-accent);
}
.pi-bento-card {
  background:var(--color-bg);
  border:1px solid var(--editorial-rule);
  border-top:2px solid var(--color-accent);
  padding:.7rem .85rem .75rem;
  display:flex;
  flex-direction:column;
  gap:.58rem;
  min-width:0;
}
.pi-col-a {
  grid-column:1;
  grid-row:1;
  border-bottom:0;
  padding-bottom:.5rem;
}
.pi-col-b {
  grid-column:2;
  grid-row:1 / 3;
}
.pi-tool .pi-asat-field {
  grid-column:1;
  grid-row:2;
  background:var(--color-bg);
  border:1px solid var(--editorial-rule);
  border-top:1px solid #e4ddd0;
  padding:.5rem .85rem .75rem;
  align-content:start;
}
.pi-card-head {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.5rem;
  padding-bottom:.35rem;
  border-bottom:1px solid #e4ddd0;
}
.pi-card-title {
  margin:0;
  font:400 1.02rem/1.2 var(--font-heading);
  color:var(--calc-forest);
}
.pi-card-head::after {
  font:700 .7rem/1 var(--font-ui);
  letter-spacing:.08em;
  color:var(--brass-ink);
  background:var(--calc-amber-bg);
  padding:.16rem .38rem;
  border-radius:2px;
}
.pi-col-a .pi-card-head::after { content:"01"; }
.pi-col-b .pi-card-head::after { content:"02"; }
.pi-ledger-col .pi-card-head::after { content:"03"; }

/* Bento inputs & compact Yes/No rows */
.pi-tool .pi-bento-field { gap:3px; }
.pi-tool .pi-bento-field label { font:600 .83rem/1.22 var(--font-ui); color:var(--calc-ink); }
.pi-tool .pi-bento-field .calc-hint { font:400 .72rem/1.26 var(--font-ui); color:var(--calc-muted); }
.pi-tool .pi-bento-field input[type="date"],
.pi-tool .pi-bento-field input[type="text"],
.pi-tool .pi-bento-field select {
  min-height:33px;
  padding:4px 8px;
  font-size:.85rem;
}
.pi-tool .pi-bento-yn {
  display:grid;
  grid-template-columns:minmax(0,1fr) 82px;
  gap:2px 10px;
  align-items:start;
  padding-top:.42rem;
  border-top:1px solid #e7e1d5;
}
.pi-yn-copy { display:grid; gap:2px; min-width:0; }
.pi-yn-ctrl select { width:100%; }
.pi-bento-note, .pi-workbook-note { margin:0; font-size:.84rem; line-height:1.42; color:var(--calc-muted); }

/* Card 03: Intuitive Statement of account (Ledger) */
.pi-tool .pi-ledger-col {
  grid-column:3;
  grid-row:1 / 3;
  background:var(--color-bg);
  border:1px solid var(--editorial-rule);
  border-top:2px solid var(--color-accent);
  padding:.7rem .85rem .75rem;
  gap:.5rem;
  align-content:start;
}
.pi-ledger-lead {
  margin:0;
  font:400 .78rem/1.38 var(--font-ui);
  color:var(--calc-body);
}
.pi-ledger-key {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
}
.pi-ledger-key li {
  display:inline-flex;
  align-items:baseline;
  gap:.3rem;
  padding:.18rem .48rem;
  border-radius:2px;
  font:400 .73rem/1.25 var(--font-ui);
  border:1px solid var(--editorial-rule);
  background:#fff;
}
.pi-ledger-key li.is-charge { border-left:3px solid var(--brass); }
.pi-ledger-key li.is-charge strong { color:var(--brass-ink); }
.pi-ledger-key li.is-pay { border-left:3px solid var(--color-accent); background:#eef5f1; }
.pi-ledger-key li.is-pay strong { color:var(--calc-forest); }
.pi-ledger-key li span { color:var(--calc-muted); }

.pi-tool #pi-ledger.calc-sheet { min-width:0; font-size:.8rem; background:#fff; border:1px solid var(--calc-grid); }
.pi-tool #pi-ledger.calc-sheet th { padding:.34rem .4rem; font-size:.67rem; text-transform:uppercase; letter-spacing:.05em; }
.pi-tool #pi-ledger.calc-sheet td { padding:.26rem .24rem; vertical-align:middle; }
.pi-tool #pi-ledger input[type="date"],
.pi-tool #pi-ledger input[type="text"],
.pi-tool #pi-ledger select {
  min-height:30px;
  padding:2px 5px;
  font-size:.79rem;
}
.pi-ledger-foot { display:grid; gap:.38rem; }
.pi-ledger-actions { display:flex; flex-wrap:wrap; gap:.4rem; }
.pi-ledger-add {
  min-height:32px;
  padding:.24rem .62rem;
  border:1px solid var(--calc-panel-rule);
  border-radius:2px;
  background:#fff;
  color:var(--calc-forest);
  font:700 .78rem/1.2 var(--font-ui);
  cursor:pointer;
}
.pi-ledger-add:hover { background:var(--color-surface); }
.pi-ledger-add.is-pay {
  border-color:var(--color-accent);
  background:#e7efeb;
  color:var(--calc-forest);
}
.pi-ledger-add.is-pay:hover { background:#d7e6de; }
.pi-ledger-add:disabled { opacity:.5; cursor:not-allowed; }
.pi-ledger-foot .calc-hint { margin:0; font-size:.72rem; line-height:1.3; color:var(--calc-muted); }

/* Compact "In the workbook" footer strip */
.pi-locked-bar {
  margin-top:.75rem;
  padding-top:.55rem;
  border-top:1px solid var(--editorial-rule);
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.35rem .65rem;
}
.pi-locked-bar h3 {
  margin:0;
  font:700 .74rem/1.3 var(--font-ui);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--color-accent);
  white-space:nowrap;
}
.pi-tool ul.pi-locked {
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:.3rem .4rem;
}
.pi-tool ul.pi-locked li {
  margin:0;
  padding:.16rem .45rem;
  border:1px solid var(--editorial-rule);
  border-radius:2px;
  background:var(--color-surface);
  font-size:.76rem;
  color:var(--calc-body);
}
.pi-tool ul.pi-locked .calc-pending { display:none; }
.pi-est-foot { margin:.55rem 0 0; font-size:.78rem; color:var(--calc-muted); }

/* Keep [hidden] authoritative on flex/grid containers inside the estimator */
.pi-tool [hidden] { display:none !important; }

@media (max-width:1100px) {
  .pi-bento-shell { grid-template-columns:minmax(0,1fr); }
  .pi-banner-scope { grid-column:1; grid-row:1; border-radius:var(--radius) var(--radius) 0 0; border-bottom:1px solid rgba(255,255,255,.18); }
  .pi-tool #pi-result.calc-paper { grid-column:1; grid-row:2; border-radius:0 0 var(--radius) var(--radius); margin-top:-12px; }
  .pi-authority-notice, .pi-bento-grid-wrap { grid-row:3; }
  .pi-kpi-cell:first-child { border-left:0; padding-left:0; }
  .pi-kpi-status { text-align:left; padding-left:0; }
}
@media (max-width:960px) {
  .pi-bento-grid { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; row-gap:12px; }
  .pi-tool .pi-sit-fieldset:not([hidden]):not(.pi-sit-full) { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  .pi-col-a, .pi-col-b, .pi-tool .pi-asat-field, .pi-tool .pi-ledger-col { grid-column:auto; grid-row:auto; }
  .pi-col-a { border-bottom:1px solid var(--editorial-rule); padding-bottom:.75rem; }
  .pi-tool .pi-asat-field { border-top:2px solid var(--color-accent); }
}
@media (max-width:640px) {
  .pi-kpi-strip { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
  .pi-kpi-cell { border-left:0; padding-left:0; }
  .pi-kpi-total, .pi-kpi-cta { grid-column:1 / -1; }
  .pi-kpi-cta .buy { width:100%; }
  .pi-tool .pi-bento-yn { grid-template-columns:minmax(0,1fr); }
}

@media (max-width:760px) {
  html[lang] body.product-standard main > .product-standard-hero { grid-template-columns:minmax(0,1fr); padding:1rem; }
  html[lang] body.product-standard main > .product-panel { padding-inline:.9rem; }
  .product-standard-hero .purchase-price .buy-box-scope { display:block; margin-top:.2rem; }
  .product-standard-hero .purchase-price .buy-box-scope::before { content:none; }
  .product-jumps a { padding:.36rem .68rem .36rem .4rem; }
  .product-standard main [id] { scroll-margin-top:calc(var(--nav-clear) + 2.5rem); }
  .product-facts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-coverage-table th { width:35%; }
}
@media print {
  html[lang] body.product-standard main > .product-standard-hero { display:block; }
  .product-jumps, .pi-tabs, .pi-kpi-cta, .pi-switch-cra, .pi-banner-scope { display:none; }
  .pi-tool #pi-result.calc-paper { background:#fff; color:#000; border:1px solid #999; }
  .pi-kpi-lbl, .pi-kpi-val, .pi-kpi-total .pi-kpi-val, .pi-kpi-sub, .pi-kpi-status { color:#000; }
  .worksheet-card { max-width:32rem; margin-block:1rem; break-inside:avoid; }
}

/* Landing page aligned to the Option B working-paper panel system (adjusted for landing-page hierarchy). */
body.editorial-home {
  --flow-ink:var(--color-accent);
  --flow-rule:var(--editorial-rule);
  --flow-paper:white;
  line-height:1.4;
}
html[lang] body.editorial-home main :is(p, li, dd, dt, summary, blockquote, figcaption, label, td, th):not(:where(.explorer-grid *, .wt-grid *, .sheet-grid *, .xl-sheet *)) {
  line-height:1.4;
}
html[lang] body.editorial-home main > .section {
  padding-block:0;
  margin-block:0;
  border:0;
  background:transparent;
}
html[lang] body.editorial-home main > .home-workflow-hero,
html[lang] body.editorial-home main > .author-strip,
html[lang] body.editorial-home main > .expertise-band,
html[lang] body.editorial-home main > .section > .wrap {
  min-width:0;
  padding:1.05rem 1.35rem;
  margin-block:0 0.75rem;
  border:1px solid var(--editorial-rule);
  border-left:4px solid var(--brass);
  background:white;
}
html[lang] body.editorial-home main > .home-workflow-hero {
  padding:1.25rem 1.4rem 1.05rem;
  margin-block:1rem 0.75rem;
  gap:clamp(1.25rem,3vw,2.4rem);
  row-gap:1.1rem;
  align-items:start;
}
html[lang] body.editorial-home main > #about > .wrap {
  margin-block:0 1.25rem;
}
html[lang] body.editorial-home .hero-product-copy .hero-kicker,
html[lang] body.editorial-home .eyebrow {
  color:var(--color-accent);
  font:700 .72rem/1.3 var(--font-ui);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 .45rem;
}
html[lang] body.editorial-home .home-workflow-hero h1 {
  font-size:clamp(1.9rem,2.9vw,2.5rem);
  font-weight:400;
  line-height:1.1;
  letter-spacing:-.028em;
  margin:0 0 .65rem;
}
html[lang] body.editorial-home .hero-product-description {
  max-width:none;
  margin:0 0 .9rem;
  font:.96rem/1.45 var(--font-ui);
  color:var(--color-text);
}
html[lang] body.editorial-home .hero-chips {
  gap:.35rem;
  margin:0 0 .95rem;
}
html[lang] body.editorial-home .hero-chip {
  min-height:1.95rem;
  padding:.22rem .6rem;
  border:1px solid var(--editorial-rule);
  border-radius:var(--radius);
  background:var(--color-bg);
  color:var(--color-accent);
  font:700 .83rem/1.2 var(--font-ui);
}
html[lang] body.editorial-home .hero-chip:hover,
html[lang] body.editorial-home .hero-chip:focus-visible {
  background:var(--color-accent-100);
  border-color:var(--color-accent);
  color:var(--color-accent-800);
}
html[lang] body.editorial-home .hero-product-actions {
  gap:.45rem .7rem;
}
html[lang] body.editorial-home .hero-product-action {
  min-height:44px;
  padding:.58rem 1.05rem;
  background:var(--color-accent);
  border:1px solid var(--color-accent);
  border-radius:var(--radius);
  color:white;
  font:400 .95rem/1.2 var(--font-heading);
}
html[lang] body.editorial-home .hero-product-action:hover {
  background:var(--color-accent-800);
  border-color:var(--color-accent-800);
  color:white;
}
html[lang] body.editorial-home .hero-sample-link {
  min-height:44px;
  padding:.58rem .95rem;
  border:1px solid var(--editorial-rule);
  border-radius:var(--radius);
  background:white;
  color:var(--color-text);
  text-decoration:none;
  font:400 .95rem/1.2 var(--font-heading);
}
html[lang] body.editorial-home .hero-sample-link:hover {
  background:var(--color-surface);
  border-color:var(--color-neutral-500);
  color:var(--color-text);
}
html[lang] body.editorial-home .hero-audience {
  margin:.65rem 0 0;
  font-size:.82rem;
  color:var(--color-neutral-700);
}
/* Harmonize landing-page flow diagram with the product pages' architectural diagram style. */
html[lang] body.editorial-home .home-flow {
  --flow-ink:var(--color-accent);
  --flow-rule:var(--editorial-rule);
  --flow-paper:white;
}
html[lang] body.editorial-home .home-flow-disclosure > summary {
  color:var(--color-accent);
  font:700 .72rem/1.3 var(--font-ui);
  letter-spacing:.08em;
  margin-bottom:.65rem;
}
html[lang] body.editorial-home .home-flow .flow-node {
  padding:.52rem .55rem;
  border:1px solid var(--editorial-rule);
  border-radius:var(--radius);
  background:white;
}
html[lang] body.editorial-home .home-flow .flow-node strong {
  font-size:.88rem;
  color:var(--color-text);
}
html[lang] body.editorial-home .home-flow .flow-node span,
html[lang] body.editorial-home .home-flow .flow-node small {
  font-size:.78rem;
  color:var(--color-neutral-700);
}
html[lang] body.editorial-home .home-flow .flow-assistant {
  background:var(--color-bg);
  border-style:dashed;
}
html[lang] body.editorial-home .home-flow .flow-icon {
  color:var(--color-accent);
}
html[lang] body.editorial-home .home-flow .flow-hub {
  padding:.72rem .65rem;
  background:var(--color-surface);
  border:1px solid var(--color-accent);
}
html[lang] body.editorial-home .home-flow .flow-hub strong {
  font:400 clamp(1.2rem,1.65vw,1.42rem)/1.2 var(--font-heading);
  color:var(--color-text);
}
html[lang] body.editorial-home .home-flow .flow-hub small {
  font-size:.82rem;
  color:var(--color-neutral-700);
}
html[lang] body.editorial-home .home-flow .flow-link > span {
  background:white;
  color:var(--color-neutral-700);
  font-size:.76rem;
}
html[lang] body.editorial-home .home-flow .flow-note {
  margin:.65rem 0 0;
  font-size:.82rem;
  color:var(--color-neutral-700);
}
/* Hero proof strip integrated inside the bottom of the hero panel like Panel A facts. */
html[lang] body.editorial-home .hero-proof {
  padding-top:.8rem;
  border-top:1px solid var(--editorial-rule);
}
html[lang] body.editorial-home .hero-proof dl {
  border:0;
  background:transparent;
}
html[lang] body.editorial-home .hero-proof dl > div {
  padding:.25rem 1rem .25rem 1.05rem;
  border-left:1px solid var(--editorial-rule);
}
html[lang] body.editorial-home .hero-proof dl > div:first-child {
  padding-left:0;
  border-left:0;
}
html[lang] body.editorial-home .hero-proof dt {
  margin:0 0 .15rem;
  color:var(--color-accent);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.08em;
}
html[lang] body.editorial-home .hero-proof dd {
  font-size:.88rem;
  color:var(--color-neutral-700);
}
html[lang] body.editorial-home .hero-proof dd strong {
  font:400 clamp(1.45rem,2vw,1.8rem)/1.15 var(--font-heading);
  color:var(--color-text);
}
html[lang] body.editorial-home .hero-proof > p {
  margin:.5rem 0 0;
  font-size:.78rem;
  color:var(--color-neutral-700);
}
/* Author strip & section headings harmonized to product-panel typography. */
html[lang] body.editorial-home .author-strip {
  padding:.85rem 1.3rem;
  gap:.5rem 1.1rem;
}
html[lang] body.editorial-home .author-strip-mark {
  width:3.1rem;
  height:3.1rem;
  background:var(--color-accent-800);
  font-size:1.2rem;
}
html[lang] body.editorial-home .author-strip-copy .author-strip-name {
  font:400 1.2rem/1.25 var(--font-heading);
  color:var(--color-text);
}
html[lang] body.editorial-home .author-strip-action {
  border:1px solid var(--color-accent);
  border-radius:var(--radius);
  color:var(--color-accent);
  font:400 .92rem/1.2 var(--font-heading);
  padding:.52rem .95rem;
}
html[lang] body.editorial-home .author-strip-action:hover {
  background:var(--color-accent);
  color:white;
}
html[lang] body.editorial-home .author-strip-note {
  border-top-color:var(--editorial-rule);
  color:var(--color-neutral-700);
}
html[lang] body.editorial-home main :is(#how-it-works, #how-to-use, #licences, #faq, #about) h2 {
  font:400 clamp(1.3rem,1.9vw,1.5rem)/1.2 var(--font-heading);
  letter-spacing:-.02em;
  color:var(--color-text);
}
html[lang] body.editorial-home .expertise-number {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:1.85rem;
  height:1.55rem;
  padding:.14rem .35rem;
  border:1px solid var(--brass);
  border-radius:var(--radius);
  color:var(--brass-ink);
  font:700 .78rem/1.2 var(--font-ui);
}
html[lang] body.editorial-home .expertise-grid h3 {
  font:400 1.18rem/1.25 var(--font-heading);
  color:var(--color-text);
}
html[lang] body.editorial-home .standard-cta-strip {
  margin-top:1rem;
  padding:.75rem 1rem;
  background:var(--color-bg);
  border:1px solid var(--editorial-rule);
  border-left:3px solid var(--brass);
  border-radius:var(--radius);
}
html[lang] body.editorial-home .standard-cta-strip a {
  color:var(--color-accent);
}
html[lang] body.editorial-home .licence-cards article {
  border:1px solid var(--editorial-rule);
  border-radius:var(--radius);
  background:var(--color-bg);
  padding:1.1rem 1.2rem;
}
html[lang] body.editorial-home .licence-cards article.is-featured {
  background:white;
  border:1.5px solid var(--color-accent);
}
html[lang] body.editorial-home .licence-cards .tier-amount {
  font:400 1.7rem/1.15 var(--font-heading);
  color:var(--color-text);
}
html[lang] body.editorial-home .tier-action {
  border:1px solid var(--color-accent);
  border-radius:var(--radius);
  font:400 .94rem/1.2 var(--font-heading);
  padding:.58rem .95rem;
}
html[lang] body.editorial-home .tier-action.is-primary {
  background:var(--color-accent);
  border-color:var(--color-accent);
  color:white;
}
html[lang] body.editorial-home .tier-action.is-primary:hover {
  background:var(--color-accent-800);
  border-color:var(--color-accent-800);
}
html[lang] body.editorial-home .tier-action.is-secondary {
  background:white;
  border-color:var(--editorial-rule);
  color:var(--color-text);
}
html[lang] body.editorial-home .tier-action.is-secondary:hover {
  background:var(--color-surface);
  border-color:var(--color-neutral-500);
}
html[lang] body.editorial-home .section-intro,
html[lang] body.editorial-home .walkthrough-intro {
  max-width:none;
}
html[lang] body.editorial-home #faq summary {
  padding-block:.55rem;
  border-color:var(--editorial-rule);
}
html[lang] body.editorial-home .faq-body {
  max-width:none;
  padding-right:0;
}
html[lang] body.editorial-home .about-layout {
  gap:clamp(1.5rem,3vw,2.75rem);
}
@media (max-width:48rem) {
  html[lang] body.editorial-home main > .home-workflow-hero,
  html[lang] body.editorial-home main > .author-strip,
  html[lang] body.editorial-home main > .expertise-band,
  html[lang] body.editorial-home main > .section > .wrap {
    padding:.95rem .9rem;
  }
  html[lang] body.editorial-home .home-flow-disclosure > summary {
    margin:0;
  }
  html[lang] body.editorial-home .home-flow-disclosure[open] > summary {
    margin-bottom:1rem;
  }
  html[lang] body.editorial-home .home-flow .flow-node {
    padding:.5rem .35rem;
  }
  html[lang] body.editorial-home .home-flow .flow-node strong {
    font-size:.84rem;
  }
  html[lang] body.editorial-home .home-flow .flow-node span,
  html[lang] body.editorial-home .home-flow .flow-node small {
    font-size:.74rem;
  }
  html[lang] body.editorial-home .home-flow .flow-hub strong {
    font-size:1.35rem;
  }
  html[lang] body.editorial-home .home-flow .flow-link > span {
    font-size:.72rem;
  }
  html[lang] body.editorial-home .hero-proof dl {
    grid-template-columns:repeat(2,minmax(0,1fr));
    border:1px solid var(--editorial-rule);
  }
  html[lang] body.editorial-home .hero-proof dl > div {
    padding:.65rem .75rem;
    border-left:0;
  }
  html[lang] body.editorial-home .hero-proof dl > div:first-child {
    padding-left:.75rem;
  }
  html[lang] body.editorial-home .hero-proof dl > div:nth-child(odd) {
    border-right:1px solid var(--editorial-rule);
  }
  html[lang] body.editorial-home .hero-proof dl > div:nth-child(-n+2) {
    border-bottom:1px solid var(--editorial-rule);
  }
}
/* Landing-page topbar Precision Leaf: single 3D Y-axis 360-degree spin on load
   (matching the 3D spinning leaf brand exploration GIFs, G12/G13). Scoped to
   English and French homepages only (excluding contact pages and footer), with
   reduced-motion and print guards. */
@keyframes brand-leaf-spin {
  from { transform:perspective(260px) rotateY(0deg); }
  to { transform:perspective(260px) rotateY(360deg); }
}
@media (prefers-reduced-motion:no-preference) {
  html[lang] body.editorial-home:not(.contact-page) .product-topbar .brand-leaf {
    transform-origin:center center;
    -webkit-backface-visibility:visible;
    backface-visibility:visible;
    animation:brand-leaf-spin 1.6s cubic-bezier(.42, 0, .58, 1) .35s 1 none;
  }
}
@media print {
  html[lang] body.editorial-home:not(.contact-page) .product-topbar .brand-leaf { animation:none; }
  html[lang] body.editorial-home main > .home-workflow-hero { display:block; }
  html[lang] body.editorial-home main > .author-strip,
  html[lang] body.editorial-home .licence-cards article { break-inside:avoid; }
}
