/* ============================================================
   THE GOOD LEARNER PROJECT - Global Stylesheet
   UPDATED: 2026-08-07
   ------------------------------------------------------------
   Calm, documentary, editorial. Paper + ink, one green accent.
   Colours and type chosen to match the series voice:
   humane, reflective, plain. No hype.
   ------------------------------------------------------------
   HOW THIS FILE IS PUT TOGETHER (read this before editing)

   1. TOKENS. Every colour and most sizing values are CSS custom
      properties declared once in the :root block immediately
      below. Component rules should only ever use var(--token).
      If you are about to type a raw hex value into a component
      rule, add or reuse a token instead.

   2. WHERE TO CHANGE THE BRAND COLOURS.
        --ink / --paper   the two base colours
        --green           the single primary accent (growth)
        --ochre           the secondary accent, used sparingly
      Change those and the whole site changes, light and dark.

   3. THERE ARE TWO THEMES. :root holds the light theme. The
      html[data-theme="dark"] block right after it REDECLARES the
      same token names with dark values. That is the entire dark
      mode: no separate stylesheet, no duplicated components.
      So when you add a token, add it in BOTH blocks, and when
      you add a component, use tokens so it themes for free.
      The theme is chosen by a tiny inline script in every page
      head that stamps data-theme on <html> before first paint,
      and js/main.js flips it and remembers the choice in
      localStorage under the key "glp-theme".
      The --band-*, --footer-* and --modal-scrim tokens are
      deliberately NOT redeclared for dark. Those surfaces are
      meant to stay dark in both themes.

   4. THIS FILE GREW BY APPENDING. Everything below the first
      "RESPONSIVE" block was added later, in dated chunks, and
      each chunk is labelled with what it added and when. That
      ordering matters: later rules win. Read from the bottom
      when you are trying to work out why something looks the
      way it does.

   5. THE DATED CONTRAST FIX AT THE VERY BOTTOM IS LOAD-BEARING.
      The last block in this file, "ACCESSIBILITY CONTRAST FIX -
      2026-08-07", re-declares --ink-faint for the light theme
      only. Deleting it puts the site back under WCAG 2.1 AA on
      every muted line of text. See the note on that block.

   6. THERE IS A SECOND STYLESHEET. css/print.css holds the
      print and save-as-PDF rules and is linked after this one.

   7. NO BUILD STEP. This file is served exactly as written. The
      pages link it as css/style.css?v=4. If a change does not
      show up after you re-upload, bump that ?v= number in every
      .html file to bust the browser cache.
   ============================================================ */

:root {
  /* Ink + paper */
  --ink:        #211f1b;
  --ink-soft:   #4c463c;
  --ink-faint:  #7a7264;
  --paper:      #faf7f1;
  --paper-2:    #f2ebdd;
  --paper-3:    #ece3d2;
  --line:       #e2d9c7;
  --white:      #ffffff;

  /* Green = growth (primary accent) */
  --green:      #2f6d54;
  --green-dark: #245842;
  --green-soft: #e6efe9;

  /* Ochre = warmth (secondary accent, used sparingly) */
  --ochre:      #b07a1e;
  --ochre-soft: #f6ecd6;

  --shadow-sm: 0 1px 3px rgba(33,31,27,0.06);
  --shadow-md: 0 6px 24px rgba(33,31,27,0.08);
  --shadow-lg: 0 16px 48px rgba(33,31,27,0.12);
  --radius:    10px;
  --radius-lg: 18px;
  --transition: 0.2s ease;
  --maxw: 1120px;

  /* Theme-stable bands (stay dark in both light and dark themes) */
  --band-bg:    #211f1b;
  --band-text:  #f2ece1;
  --footer-bg:  #211f1b;
  --footer-text:#cfc7b8;
  --footer-head:#faf7f1;
  --header-bg:  rgba(250,247,241,0.92);
  --modal-scrim: rgba(33,31,27,0.55);
}

/* ============================================================
   DARK THEME
   The whole of dark mode is this one block. It redeclares the
   SAME token names with dark values, so every component below
   themes itself for free. Add a token to :root and you must add
   it here too, or dark mode will quietly fall back to the light
   value. Note --band-*, --footer-* and --modal-scrim are missing
   on purpose: those surfaces stay dark in both themes.
   Selector specificity matters here. html[data-theme="dark"]
   beats a plain :root, which is why the dated contrast fix at
   the bottom of this file can safely change the light theme
   without touching dark.
   ============================================================ */
html[data-theme="dark"] {
  --ink:        #f1ebdf;
  --ink-soft:   #cfc7b6;
  --ink-faint:  #9a9180;
  --paper:      #141310;
  --paper-2:    #201d15;
  --paper-3:    #2a261b;
  --line:       #37332a;
  --white:      #1d1b14;
  --green:      #6bb89a;
  --green-dark: #8ccbb0;
  --green-soft: #1e2c26;
  --ochre:      #d6a24a;
  --ochre-soft: #2c2517;
  --header-bg:  rgba(20,19,16,0.9);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.55);
}
html { transition: background-color var(--transition); }

/* ============================================================
   RESET & BASE
   Border-box, zeroed margins, and the two global defaults: text
   colour from --ink, page background from --paper. Lists have
   their bullets stripped globally, which is why long-form copy
   has to put them back (see .post-body and .faq-a).
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   Two families, both loaded from Google Fonts in every page
   head: Fraunces for headings, Inter for everything else. Sizes
   use clamp() so they scale with the viewport instead of needing
   extra breakpoints. p has max-width:68ch on purpose. That is
   the reading measure, so avoid overriding it.
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Georgia', serif;
  line-height: 1.18;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1.1rem; max-width: 68ch; }
strong { font-weight: 600; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
}

/* ============================================================
   LAYOUT + SPACING UTILITIES
   .container (wide) and .container--narrow (760px) are the only
   two page widths. .section is the vertical rhythm, and
   .section--paper2, .section--ink and .section--green are the
   alternating bands. The .mt-* and .mb-* helpers at the end are
   the only spacing utilities. Reach for one of those before you
   add an inline style attribute in the HTML.
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--band-bg); color: var(--band-text); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--band-text); }
.section--green { background: var(--green); color: #fff; }
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}

/* ============================================================
   COMPONENTS: BUTTONS
   One .btn base plus colour variants. .btn--primary is green,
   .btn--ghost is the outlined secondary.
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all var(--transition);
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--green-dark); }

/* ============================================================
   COMPONENTS: LOGO MARK
   ============================================================ */
.enso { display: inline-block; }

/* ============================================================
   COMPONENTS: HEADER, MAIN NAV AND THE JUMPBAR
   Sticky and translucent. Below 860px the nav collapses into the
   hamburger (see the responsive block). The open and closed
   hamburger animation is driven by .nav-toggle[aria-expanded=
   "true"], further down in the 2026-08-07 block, so the visual
   state and the announced state cannot drift apart.
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: flex-start; height: 74px; gap: 1.2rem; }
.header-inner .brand { margin-right: auto; }
.header-inner .main-nav { order: 2; }
.header-inner .header-tools { order: 3; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.brand .brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.12rem; line-height: 1.05; }
.brand .brand-sub { display: block; font-family: 'Inter', sans-serif; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.main-nav a:hover, .main-nav a.active { color: var(--green-dark); }
.main-nav a.active { font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--transition); }

/* ============================================================
   COMPONENTS: HERO
   ============================================================ */
.hero { padding: 5.5rem 0 4.5rem; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.4rem; max-width: 60ch; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.thesis {
  border-left: 3px solid var(--green);
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.4;
  color: var(--ink); max-width: 32ch;
}

/* ============================================================
   COMPONENTS: CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--ink); }
.card .ep-num { font-family: 'Fraunces', serif; font-size: 0.9rem; color: var(--green); font-weight: 600; }
.card h3 { margin: 0.3rem 0 0.5rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 0.22rem 0.6rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark);
}
.tag--ochre { background: var(--ochre-soft); color: #8a5c13; }
.read-more { font-weight: 600; font-size: 0.9rem; }

/* ============================================================
   COMPONENTS: SIX KINDS OF HARD GRID (home page)
   The framework is the spine of the whole series. Six items,
   always six, always in the same order.
   ============================================================ */
.kinds { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.kind {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem;
}
.kind .num { font-family: 'Fraunces', serif; color: var(--ochre); font-weight: 600; }
.kind h4 { margin: 0.2rem 0 0.3rem; }
.kind p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   COMPONENTS: ARTICLE / EPISODE POST BODY
   .post-body puts list bullets and link underlines back for long
   body copy, because the global reset strips them.
   ============================================================ */
.post-head { padding: 3.5rem 0 2rem; }
.post-meta { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; color: var(--ink-faint); font-size: 0.85rem; }
.post-body { font-size: 1.06rem; }
.post-body h2 { margin: 2.4rem 0 0.9rem; }
.post-body h3 { margin: 1.8rem 0 0.6rem; }
.post-body p { color: var(--ink-soft); }
.post-body strong { color: var(--ink); }
.pullquote {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 1.35rem; line-height: 1.45; color: var(--ink);
  border-left: 3px solid var(--green); padding-left: 1.3rem;
  margin: 2rem 0; max-width: 40ch;
}

/* ============================================================
   COMPONENTS: FRAMEWORK CARD
   The boxed, named framework that each episode hands over.
   ============================================================ */
.framework {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin: 1.6rem 0;
}
.framework-head { background: var(--band-bg); color: var(--band-text); padding: 1.1rem 1.4rem; }
.framework-head .eyebrow { color: #cdb98f; }
.framework-head h3 { color: var(--band-text); margin-top: 0.2rem; }
.framework-table { width: 100%; border-collapse: collapse; }
.framework-table th, .framework-table td { text-align: left; padding: 0.85rem 1.4rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: top; }
.framework-table th { font-family: 'Inter',sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.framework-table tr:last-child td { border-bottom: 0; }
.framework-table td:first-child { font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.framework-list { padding: 1.2rem 1.4rem; }
.framework-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.7rem; }
.framework-list li:last-child { border-bottom: 0; }
.framework-list .n { font-family:'Fraunces',serif; color: var(--green); font-weight: 600; flex-shrink:0; }

/* ============================================================
   COMPONENTS: AI PROMPT BLOCK + COPY BUTTON
   The prompt sits in a <pre><code id="..."> and the .copy-btn
   beside it carries data-target="#thatId". js/main.js copies the
   innerText of whatever that selector matches, so the id and the
   data-target must stay in step. .copy-btn.copied is the short
   lived "Copied" state.
   ============================================================ */
.prompt {
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: var(--radius); margin: 1.4rem 0; overflow: hidden;
}
.prompt-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.prompt-bar span { font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); letter-spacing: 0.04em; }
.copy-btn { font-family:'Inter',sans-serif; font-size: 0.8rem; font-weight: 600; background: var(--green); color: #fff; border: 0; padding: 0.4rem 0.85rem; border-radius: 999px; cursor: pointer; transition: var(--transition); }
.copy-btn:hover { background: var(--green-dark); }
.copy-btn.copied { background: var(--ochre); }
.prompt pre { margin: 0; padding: 1.1rem 1.2rem; overflow-x: auto; }
.prompt code { font-family: 'SFMono-Regular', ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.86rem; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }

/* ============================================================
   COMPONENTS: CHECKLIST
   Draws its own boxes with ::before, so there are no checkbox
   inputs to manage and nothing to submit.
   ============================================================ */
.checklist { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.checklist li { position: relative; padding: 0.55rem 0 0.55rem 2.1rem; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.7rem;
  width: 18px; height: 18px; border: 2px solid var(--green); border-radius: 5px;
}
.behaviour {
  background: var(--green-soft); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; border-left: 3px solid var(--green);
}
.behaviour .eyebrow { color: var(--green-dark); }

/* ============================================================
   COMPONENTS: RESOURCE / DOWNLOAD ROWS
   ============================================================ */
.res-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.res-row:last-child { border-bottom: 0; }
.res-row .r-title { font-weight: 600; }
.res-row .r-sub { font-size: 0.9rem; color: var(--ink-faint); }

/* ============================================================
   COMPONENTS: FORMS
   Every field is label + control. All forms on this site are
   handled by Netlify Forms; nothing is posted anywhere else.
   ============================================================ */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color var(--transition);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green); }
.form-note { font-size: 0.85rem; color: var(--ink-faint); }

/* ============================================================
   COMPONENTS: FOOTER
   Uses the theme-stable --footer-* tokens rather than --ink and
   --paper, so it stays dark in both themes.
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 3.5rem 0 2rem; margin-top: 3rem; }
.site-footer h4 { color: var(--footer-head); margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #cfc7b8; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-links li { padding: 0.28rem 0; }
.footer-brand p { font-size: 0.95rem; color: #b7ae9e; max-width: 42ch; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid #4a4438; border-radius: 50%; }
.footer-social a:hover { border-color: var(--green); background: rgba(47,109,84,0.2); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid #3a352c; margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: #948b7b; }

/* ============================================================
   RESPONSIVE BREAKPOINTS (base set)
   Two, both mobile-narrowing (max-width), so the desktop rules
   above are the source of truth.
     860px  grids collapse to one column and the main nav becomes
            the slide-down mobile menu
     520px  tighter section padding
   Later blocks in this file add their own 860px, 700px, 520px
   and 500px rules for the components they introduce. Keep a new
   breakpoint with its component rather than gathering them all
   here.
   ============================================================ */
@media (max-width: 860px) {
  .grid-2, .grid-3, .kinds, .footer-grid { grid-template-columns: 1fr; }
  .kinds { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1.5rem; display: none; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .kinds { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* ============================================================
   LATER ADDITION: theme toggle, download modal, pricing, support
   ------------------------------------------------------------
   Everything from here down was appended after the first build,
   so these rules win over anything above with equal specificity.
   This chunk styles: the header light/dark button (its sun and
   moon icons swap purely on html[data-theme="dark"], no JS class
   involved), the email-gate modal, the pricing cards and the
   support blocks.
   ============================================================ */

/* Header tools cluster */
.header-tools { display: flex; align-items: center; gap: 0.4rem; }
.theme-toggle {
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--green); color: var(--green-dark); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* Author card mark (ensō) */
.author-mark { color: var(--ink); flex-shrink: 0; }
.author-mark svg { width: 60px; height: 60px; }

/* Fine print / small legal text */
.fineprint { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.55; }
.fineprint p { max-width: none; margin-bottom: 0.7rem; }
.fineprint h2 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; color: var(--ink); }
.fineprint a { color: var(--green-dark); text-decoration: underline; }

/* Support / coffee call-out */
.support-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--ochre-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.7rem; flex-wrap: wrap;
}
.support-cta h3 { margin: 0; }
.support-cta p { margin: 0; max-width: 52ch; color: var(--ink-soft); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.price-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price-card--featured { border-color: var(--green); box-shadow: var(--shadow-md); }
.price-card h3 { margin: 0.2rem 0 0.4rem; }
.price-card p { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }
.price-card .btn { width: 100%; justify-content: center; }
.price { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 600; color: var(--ink); margin-bottom: 0.6rem; }
.price span { font-size: 0.85rem; font-family: 'Inter', sans-serif; color: var(--ink-faint); font-weight: 500; }

/* Download email-gate modal */
.modal-overlay {
  position: fixed; inset: 0; background: var(--modal-scrim);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  padding: 1.2rem;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  max-width: 460px; width: 100%; padding: 2rem 2rem 1.7rem; position: relative;
}
.modal h3 { margin: 0.2rem 0 0.5rem; }
.modal p { font-size: 0.95rem; color: var(--ink-soft); }
.modal .btn { width: 100%; justify-content: center; margin-top: 0.3rem; }
.modal-close {
  position: absolute; top: 0.7rem; right: 0.9rem; background: none; border: 0;
  font-size: 1.6rem; line-height: 1; color: var(--ink-faint); cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.dl-skip { display: block; text-align: center; margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-faint); }
.dl-skip:hover { color: var(--green-dark); }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .support-cta { flex-direction: column; align-items: flex-start; }
}

/* FAQ accordion (uses native <details>) */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 0.7rem; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--ink);
  list-style: none; position: relative; padding-right: 2.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--green); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 0.9rem 1.2rem 1.1rem; }
.faq-a p { margin: 0; color: var(--ink-soft); }
.faq-item summary:hover { color: var(--green-dark); }

/* PayPal hosted button container */
.paypal-btn { min-width: 220px; }
.paypal-btn > div { min-height: 45px; }
@media (max-width: 860px){ .paypal-btn { width: 100%; } }


/* ============================================================
   LATER ADDITION: the "aha" diagrams (inline SVG, theme-aware)
   ------------------------------------------------------------
   The small hand-drawn figures inside .glp-fig. They are inline
   SVG rather than image files so they inherit the theme: strokes
   use currentColor or a var(), so they redraw correctly in dark
   mode with no second asset. Each svg in the HTML carries
   role="img" and an aria-label, which is what a screen reader
   announces in place of the drawing.
   ============================================================ */
.glp-fig { margin: 2.4rem auto 0; max-width: 340px; text-align: center; color: var(--ink); }
.glp-fig--wide { max-width: 460px; }
.glp-fig svg { width: 100%; height: auto; overflow: visible; display: block; }
.glp-fig figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.7rem; line-height: 1.5; }
.g-stroke { stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.g-green { stroke: var(--green); }
.g-faint { stroke: var(--ink-faint); }
.g-dash { stroke-dasharray: 5 7; }
.g-fill-ink { fill: currentColor; }
.g-fill-green { fill: var(--green); }
.g-t { font-family: 'Inter', sans-serif; fill: var(--ink-soft); font-size: 13px; }
.g-t-sm { font-size: 11px; fill: var(--ink-faint); }
.g-t-green { fill: var(--green); font-weight: 600; }
.g-t-white { fill: #fff; }
.g-t-cap { text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 600; }

/* ============================================================
   LATER ADDITION: Strategy & Process Studio page (studio.html)
   ------------------------------------------------------------
   Gold accent plus a navy and cream brand kit, bolted onto the
   shared site shell. Scoped to .studio-* classes and the
   .studio-page body wrapper, so it cannot leak onto other pages.
   studio.html ALSO carries a small inline <style> in its head
   that re-points --green at the studio gold for that page only.
   If a studio colour looks wrong, check that inline block first.
   ============================================================ */
:root {
  --s-navy: #1B2A41;
  --s-gold: #C69A3D;
  --s-gold-dark: #a87f28;
  --s-stone: #E7E2DA;
  --s-cream: #F5F2ED;
}
.btn--gold { background: var(--s-gold); color: #fff; }
.btn--gold:hover { background: var(--s-gold-dark); color: #fff; }
.studio-eyebrow { color: var(--s-gold); }

.studio-hero-wrap { padding-top: 2.5rem; }
.studio-hero {
  background: var(--s-cream); border: 1px solid var(--s-stone);
  border-radius: var(--radius-lg); padding: 2.6rem 2rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.studio-hero, .studio-hero h1, .studio-hero p { color: var(--s-navy); }
.studio-logo { width: min(560px, 88%); height: auto; margin: 0 auto 1.4rem; }
.studio-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }
.studio-hero .lead { color: #3c4a5f; max-width: 52ch; margin: 0.4rem auto 0.8rem; }
.studio-hero p { max-width: 54ch; margin-left: auto; margin-right: auto; }
.studio-reassure { font-style: italic; color: var(--s-gold-dark) !important; margin-top: 1rem; }
.studio-hero .btn--gold { margin-top: 1.4rem; }

.studio-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.studio-card h3 { margin: 0.5rem 0 0.4rem; }
.studio-card p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }
.studio-ico { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: block; }

.studio-step {
  display: flex; gap: 1rem; align-items: flex-start; position: relative;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.studio-step .studio-ico { width: 56px; height: 56px; flex-shrink: 0; margin: 0; }
.studio-step-n {
  position: absolute; top: 0.9rem; right: 1.1rem;
  font-family: 'Fraunces', serif; font-weight: 600; color: var(--s-gold); font-size: 1.2rem;
}
.studio-step h3 { margin: 0 0 0.3rem; }
.studio-step p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.studio-goal {
  max-width: 56ch; margin: 2rem auto 0; color: var(--ink-soft);
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.15rem;
}
.studio-notice {
  background: var(--paper-2); border-left: 3px solid var(--s-gold);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.studio-notice p { color: var(--ink-soft); margin-bottom: 0.6rem; font-size: 0.95rem; }
.studio-notice p:last-child { margin-bottom: 0; }
.studio-close {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.5rem;
  color: var(--s-gold-dark); margin-top: 1.4rem;
}
@media (max-width: 860px) { .studio-cards, .studio-steps { grid-template-columns: 1fr; } }

/* Studio standalone slim footer (theme toggle + privacy/disclaimer only) */
.studio-footer { border-top: 1px solid var(--line); padding: 1.4rem 0; margin-top: 2.5rem; }
.studio-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.studio-footer-links { display: flex; gap: 1.3rem; }
.studio-footer-links a { color: var(--ink-soft); font-size: 0.9rem; }
.studio-footer-links a:hover { color: var(--s-gold-dark); }
.studio-footer-copy { font-size: 0.82rem; color: var(--ink-faint); }

/* Studio page tweaks: smaller hero card + floating top-right theme toggle */
.studio-hero { max-width: 620px; margin: 0 auto; padding: 2rem 1.7rem; }
.studio-logo { width: min(430px, 76%); }
.studio-topbar { position: fixed; top: 0.8rem; right: 0.8rem; z-index: 60; }
.studio-topbar .theme-toggle { background: var(--paper); box-shadow: var(--shadow-sm); }

/* Studio hero trust line */
.studio-trust { text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem; font-weight: 600; color: var(--s-gold-dark) !important; margin-top: 0.9rem; }

/* SPIRE Studio hero: identity line + acronym explainer */
.studio-identity { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--s-navy) !important; margin: 0.1rem auto 0.7rem; max-width: 46ch; }
.studio-spire { text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; font-weight: 600; color: var(--s-gold-dark) !important; margin-top: 0.7rem; }

/* Studio hero: "Learn how it works" readable on the cream hero in both themes */
.studio-hero .btn--ghost { color: var(--s-navy) !important; border-color: rgba(27,42,65,0.40); background: transparent; }
.studio-hero .btn--ghost:hover { color: var(--s-navy) !important; border-color: var(--s-navy); background: rgba(27,42,65,0.06); }

/* SPIRE acronym: label + expansion with gold acronym letters */
.studio-spire { text-transform: none !important; letter-spacing: normal !important; color: var(--s-navy) !important; margin-top: 0.9rem; line-height: 1.55; }
.studio-spire .spire-word { display: block; font-weight: 800; letter-spacing: 5px; font-size: 0.95rem; color: var(--s-navy); }
.studio-spire .spire-exp { display: inline-block; font-size: 0.7rem; letter-spacing: 1.5px; font-weight: 600; color: var(--s-navy); margin-top: 0.25rem; }
.studio-spire .spire-exp b { color: var(--s-gold-dark); font-weight: 800; }

/* Center button label text */
.btn { justify-content: center; text-align: center; }
.studio-learn { justify-content: center; }

/* Tighten the footer (~25% shorter) */
.site-footer { padding: 2.3rem 0 1.3rem; margin-top: 2rem; }
.site-footer h4 { margin-bottom: 0.5rem; }
.site-footer p { margin-bottom: 0.5rem; }
.footer-links li { padding: 0.13rem 0; }
.footer-social { margin-top: 0.7rem; }
.footer-bottom { margin-top: 1.4rem; padding-top: 0.9rem; }

/* Pricing cards: equal height, full width, buttons pinned to the bottom */
.pricing-grid { align-items: stretch; }
.price-card { height: 100%; }

/* ============================================================
   LATER ADDITION: Fables for All (fables-for-all.html, was worldwise-fables.html until 2026-08-14)
   ------------------------------------------------------------
   A warm "fireside" accent layered on the shared paper and ink
   shell, with the same fonts, cards and buttons as the rest of
   the site. Adds its own --wf-* tokens in both themes. The same
   .wf-* classes are reused by figures-of-speech.html and
   logical-fallacies.html, so a change here shows up on all three
   pages.
   ============================================================ */
:root {
  --wf-brown: #6d4a2c;
  --wf-brown-dark: #4f3620;
  --wf-moss: #6b8a45;
  --wf-moss-soft: #e9efdd;
  --wf-gold-soft: #f8ecd2;
  --wf-gold-text: #8a5c13;
}
html[data-theme="dark"] {
  --wf-brown: #d3a479;
  --wf-brown-dark: #e6c4a2;
  --wf-moss: #9dbb78;
  --wf-moss-soft: #1f2718;
  --wf-gold-soft: #2c2517;
  --wf-gold-text: #d6a24a;
}
.wf-theme .eyebrow.ffa-eyebrow { color: var(--wf-brown); }
.wf-theme .wf-tagline {
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  color: var(--ink-soft); font-size: 1.05rem; margin: 0.5rem 0 0.9rem;
}
.wf-theme .btn--wf-primary { background: var(--wf-brown); color: #fff; }
.wf-theme .btn--wf-primary:hover { background: var(--wf-brown-dark); color: #fff; }
.wf-hero img { width: 100%; height: auto; object-fit: cover; }

.wf-audience-grid .kind, .wf-use-grid .kind {
  border-left: 3px solid var(--wf-moss); border-radius: var(--radius);
}
.wf-use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.tag--wf { background: var(--wf-moss-soft); color: var(--wf-brown-dark); }
.tag--wf-soft { background: var(--wf-gold-soft); color: var(--wf-gold-text); }

.fable-card { display: flex; flex-direction: column; }
.fable-card .fable-stories { font-size: 0.92rem; color: var(--ink-soft); font-style: italic; margin-bottom: 0.7rem; }
.fable-card .post-meta { flex-wrap: wrap; }
.fable-hook {
  font-family: 'Fraunces', Georgia, serif; font-style: italic;
  color: var(--ink); font-size: 1rem; line-height: 1.5;
  border-left: 2px solid var(--wf-gold-text); padding-left: 0.8rem;
  margin-bottom: 0.9rem;
}
.fable-story-summary {
  font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.7rem;
  padding-bottom: 0.7rem; border-bottom: 1px dashed var(--line);
}
.fable-story-summary:last-of-type { border-bottom: 0; margin-bottom: 0.8rem; }
.fable-story-summary strong { color: var(--wf-brown); font-family: 'Fraunces', Georgia, serif; }

.fable-details { margin-top: auto; padding-top: 0.4rem; border-top: 1px dashed var(--line); }
.fable-details summary {
  cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--wf-brown);
  list-style: none; padding: 0.6rem 1.6rem 0.6rem 0; position: relative;
}
.fable-details summary::-webkit-details-marker { display: none; }
.fable-details summary::after {
  content: "+"; position: absolute; right: 0.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--wf-moss); font-weight: 400; line-height: 1;
}
.fable-details[open] summary::after { content: "\2212"; }
.wf-fields { padding: 0.3rem 0 0.2rem; }
.wf-fields dt {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 600; margin-top: 0.9rem;
}
.wf-fields dt:first-child { margin-top: 0; }
.wf-fields dd { font-size: 0.93rem; color: var(--ink-soft); margin: 0.25rem 0 0; }
.wf-vocab { list-style: none; margin: 0; padding: 0; }
.wf-vocab li { padding: 0.2rem 0; font-size: 0.9rem; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.wf-vocab li:last-child { border-bottom: 0; }

.wf-closing {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--band-text); line-height: 1.5;
}

@media (max-width: 860px) {
  .wf-use-grid { grid-template-columns: 1fr; }
  .wf-hero .grid-2 { display: flex; flex-direction: column-reverse; }
}

/* ============================================================
   LATER ADDITION: Learn tab + self-correcting quiz
   ------------------------------------------------------------
   Styles learn.html and the .quiz block. .is-correct and
   .is-wrong are set on each .quiz-q by js/main.js after the
   answers are checked. Colour is not the only signal in the
   markup: the result line also states the score in words, which
   is what keeps this usable without colour vision.
   ============================================================ */
/* --- Learn --- */
.build-note {
  display: inline-block; margin-top: 1rem; font-size: 0.85rem; color: var(--ink-faint);
  border: 1px dashed var(--line); border-radius: 999px; padding: 0.3rem 0.9rem;
}
.section-intro { max-width: 60ch; color: var(--ink-soft); margin-bottom: 1.6rem; }
.learn-ph { color: var(--ink-soft); }
.learn-quote {
  font-family: 'Fraunces', serif; font-size: 1.15rem; line-height: 1.5; color: var(--ink);
  border-left: 3px solid var(--green); padding: 0.4rem 0 0.4rem 1.2rem; margin: 0;
}
.learn-quote cite { display: block; margin-top: 0.7rem; font-size: 0.85rem; font-style: normal; color: var(--ink-faint); font-family: 'Inter', sans-serif; }
.myth-card p { margin: 0.2rem 0 0.9rem; }
.myth-card p:last-child { margin-bottom: 0; }
.myth-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; padding: 0.15rem 0.6rem; border-radius: 999px;
}
.myth-tag--myth { background: var(--ochre-soft); color: var(--ink); }
.myth-tag--real { background: rgba(60,130,90,0.15); color: var(--green); }

/* --- Quiz --- */
.quiz { max-width: 60ch; }
.quiz-q { border: 1px solid var(--line); border-radius: 10px; padding: 0.2rem 0.9rem; margin-bottom: 0.7rem; transition: border-color .15s, background .15s; }
.quiz-opt { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.7rem 0; cursor: pointer; line-height: 1.5; }
.quiz-opt input { margin-top: 0.28rem; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; accent-color: var(--green); }
.quiz-q.is-correct { border-color: var(--green); background: rgba(60,130,90,0.08); }
.quiz-q.is-wrong { border-color: #c56; background: rgba(200,90,100,0.08); }
.quiz-result { margin-top: 1rem; font-family: 'Fraunces', serif; font-size: 1.25rem; color: var(--ink); }
.quiz-email { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); max-width: 60ch; }
.quiz-email label { display: block; margin-bottom: 0.5rem; font-size: 0.95rem; }
.quiz-email-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.quiz-email-row input { flex: 1; min-width: 220px; padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.quiz-privacy { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.7rem; }
.hidden { position: absolute; left: -9999px; }

/* ============================================================
   LATER ADDITION: the single-page fold, 12 episodes as sections
   ------------------------------------------------------------
   Styles the .glp-ep sections on index.html and the .glp-more
   <details> inside each one. The + and the minus sign on the
   summary are drawn with ::before and switched by the [open]
   attribute, so the marker always matches the real state of the
   element. The default disclosure triangle is hidden, which is
   why that ::before has to stay.
   ============================================================ */
.glp-ep { padding-top: 2.6rem; padding-bottom: 2.6rem; }
.glp-ep .post-meta { margin-bottom: 0.6rem; }
.glp-ep-title { margin: 0 0 1rem; }
.glp-ep h3 { margin-top: 1.8rem; }
.glp-more { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.glp-more > summary {
  cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 600; list-style: none;
  display: flex; align-items: center; gap: 0.5rem; color: var(--ink);
}
.glp-more > summary::-webkit-details-marker { display: none; }
.glp-more > summary::before { content: "+"; font-size: 1.2rem; color: var(--green); line-height: 1; }
.glp-more[open] > summary::before { content: "\2212"; }
.glp-more[open] > summary { border-bottom: 1px solid var(--line); }
.glp-more-body { padding: 0.4rem 1.1rem 1.2rem; }
.glp-more-body h4 { margin: 1.2rem 0 0.5rem; }

/* ============================================================
   LATER ADDITION, 2026-08-07: accessibility, brand mark, support
   block, back-to-top and the resource filter.
   ------------------------------------------------------------
   Palette unchanged. Every colour below is an existing variable.
   Three rules in this block are load-bearing for accessibility
   and must not be removed:
     .skip-link            the "Skip to main content" target. It
                           is moved off-screen with a transform
                           and slides back on :focus, which is
                           why it must not be display:none.
     :focus-visible        the 3px visible focus ring on every
                           interactive element (WCAG 2.4.7). Do
                           not replace it with outline:none.
     [hidden] { display:none !important }
                           several components set display:flex,
                           which would otherwise beat the plain
                           [hidden] attribute. The filter, the
                           modal, the back-to-top button and the
                           quiz result all rely on toggling
                           hidden, so without this !important
                           they would stay visible.
   The prefers-reduced-motion block at the end of this chunk is
   also an accessibility requirement, not a nicety.
   ============================================================ */

/* --- Skip link --- */
.skip-link {
  position: absolute; left: 0; top: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--green); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
}
.skip-link:focus { transform: translateY(0); color: #fff; outline: 3px solid var(--ochre); outline-offset: 2px; }

/* --- Visible focus everywhere (WCAG 2.4.7) --- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-footer a:focus-visible { outline-color: var(--footer-head); }

/* --- Header brand mark (the sprout logo) --- */
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 8px; object-fit: contain; display: block;
}
@media (max-width: 500px) { .brand-mark { width: 34px; height: 34px; } }

/* --- Footer support (Buy me a coffee) --- */
.footer-support {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
  margin-top: 2rem; padding: 1.1rem 1.3rem;
  border: 1px solid rgba(214,162,74,0.45);
  border-radius: var(--radius);
  background: rgba(214,162,74,0.10);
}
.footer-support-text { margin: 0; max-width: 58ch; color: var(--footer-text); font-size: 0.92rem; }
.footer-support-text strong { color: var(--footer-head); }
.bmc-btn { flex-shrink: 0; }
@media (max-width: 700px) { .footer-support { flex-direction: column; align-items: flex-start; } }

/* --- Inline support card (resources page) --- */
.support-inline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.3rem; flex-wrap: wrap;
  margin: 2.2rem 0 0; padding: 1.4rem 1.5rem;
  border: 1px solid var(--line); border-left: 4px solid var(--ochre);
  border-radius: var(--radius); background: var(--ochre-soft);
}
.support-inline h3 { margin: 0.15rem 0 0.35rem; }
.support-inline p { margin: 0; max-width: 54ch; color: var(--ink-soft); }
@media (max-width: 700px) { .support-inline { flex-direction: column; align-items: flex-start; } }

/* --- Back to top --- */
.back-to-top {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 95;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.85rem;
  background: var(--green); color: #fff;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top svg { width: 16px; height: 16px; }
.back-to-top:hover { background: var(--green-dark); }
.back-to-top[hidden] { display: none; }
html[data-theme="dark"] .back-to-top { color: #141310; }
@media (max-width: 520px) { .back-to-top-label { display: none; } }

/* --- [hidden] must win over display rules on cards and rows.
       The filter above toggles the hidden attribute, and several
       components set display:flex, which would otherwise override it. --- */
[hidden] { display: none !important; }

/* --- Filter / search field --- */
.filter-bar { margin: 0 0 1.6rem; }
.filter-bar label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.4rem; }
.filter-bar input {
  width: 100%; max-width: 420px; padding: 0.7rem 0.95rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--ink); font: inherit;
}
.filter-bar input:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.filter-count { margin-top: 0.5rem; font-size: 0.88rem; color: var(--ink-faint); }
[data-filter-empty] { padding: 1.2rem 0; color: var(--ink-soft); }

/* --- Resource groups --- */
.res-group { margin-bottom: 2.4rem; }
.res-group > h2 { margin-bottom: 0.3rem; }
.res-group-note { color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 62ch; }
.res-row .r-note { font-size: 0.86rem; color: var(--ink-faint); margin-top: 0.2rem; max-width: 60ch; }
.res-meta { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); font-weight: 600; }

/* --- Mobile nav: state on the toggle --- */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   ACCESSIBILITY CONTRAST FIX - 2026-08-07
   DATED OVERRIDE BLOCK. DO NOT DELETE.
   ------------------------------------------------------------
   WHAT IT FIXES: --ink-faint is the muted grey used for captions,
   hints, form help text, filter counts, footnotes and the
   .fineprint pages. Its original value #7a7264 measured 4.44:1
   against the light paper background #faf7f1, which is BELOW the
   WCAG 2.1 AA minimum of 4.5:1 for body text. This block
   redeclares it as #61666f, which measures 5.40:1 and passes.

   WHY IT IS DOWN HERE INSTEAD OF UP IN :root: it is deliberately
   the last declaration in the file so it wins over the original
   :root value without that value being edited, which keeps the
   fix visible, dated and reversible in one place.

   WHY IT DOES NOT AFFECT DARK MODE: html[data-theme="dark"] is a
   more specific selector than :root, so the dark theme keeps its
   own --ink-faint and is untouched.

   REMOVING THIS BLOCK PUTS THE SITE BACK UNDER WCAG AA on every
   muted line of text on every page. If you ever do need to
   change it, change the value, do not delete the block, and
   re-measure the contrast ratio against --paper first.

   Same value the sister site already uses at
   goodlearningbydesign-site/css/style.css.
   ============================================================ */
:root { --ink-faint: #61666f; }
/* ============================================================ */


/* Spire Studio masthead, used on the legal pages only. index.html opens with its own hero. */
.studio-mast{padding:1.2rem 0;border-bottom:1px solid rgba(0,0,0,0.08)}
.studio-mast img{display:block;height:34px;width:auto}

/* ===== 2026-11-17 booking layout: offer cards and button row ===== */
.studio-offers { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.studio-offers .studio-card { display: flex; flex-direction: column; }
.studio-offers .studio-card p:last-child { margin-top: auto; padding-top: 0.8rem; }
.studio-price { font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--ink) !important; margin: 0 0 0.5rem !important; }
.studio-price small { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--ink-faint); font-weight: 500; }
.studio-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.2rem; }
@media (max-width: 860px) { .studio-offers { grid-template-columns: 1fr; } }
