/* =========================================================================
   Inset Offset — shared stylesheet
   One stylesheet for the whole site. Every page links to /styles.css.
   Visual system: warm cream base, semantic green/amber/grey day colours,
   Bricolage Grotesque (display) + Hanken Grotesk (body). Mobile-first.
   ========================================================================= */

/* ---------- Fonts (self-hosted, latin subset, variable weight; trimmed to the weights the site uses) ----------
   Served from this site so no visitor's IP address goes to a font CDN. The file names carry the
   upstream version, so they can be cached as immutable (see _headers). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin-v9-w700-800.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;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/hanken-grotesk-latin-v12-w400-700.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;
}

/* ---------- Design tokens ---------- */
:root {
  /* Base / neutrals */
  --bg:            #EFE7D7;   /* page background */
  --surface:       #FBF7EE;   /* app/card surface */
  --card:          #FFFFFF;
  --ink:           #16261E;   /* headings */
  --ink-soft:      #33403A;   /* long-form body text */
  --muted:         #5A645C;
  --muted-2:       #6B7469;
  --faint:         #9A917C;
  --line:          #EEE6D6;
  --line-2:        #EAE0CE;

  /* Semantic day system */
  --green:         #1F9D6B;   /* authorised — no fine risk */
  --green-deep:    #0F5A3C;   /* primary actions / green text */
  --green-tint:    #E7F4EC;
  --green-tint-2:  #EAF6EF;
  --green-border:  #C8E6D5;
  --sage:          #9FBFA9;   /* methodology accents — NOT the authorised green */
  --amber:         #EBA23C;   /* term-time — fine risk */
  --amber-deep:    #8A5A05;
  --amber-tint:    #FBF4E6;
  --amber-border:  #F0E2C4;
  --grey-day:      #E7E1D4;   /* normal school day */
  --grey-day-line: #DBD3C2;
  --grey-bar:      #DCD4C2;   /* logo grey bar on cream */
  --navy:          #1F3A5C;   /* action / "Search trips" / trip ring */
  --navy-soft:     #AECCEC;

  /* Footer (dark) */
  --footer-bg:     #16261E;
  --footer-text:   #AEB7AE;
  --footer-line:   #2A3A31;

  /* Type + shape */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --radius:       14px;
  --radius-lg:    20px;
  --maxw:         640px;   /* content column (mobile-first) */
  --maxw-bar:     1120px;  /* header/footer inner width */
  --shadow:       0 14px 34px -26px rgba(28, 42, 34, .5);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(31,157,107,.15), transparent 60%),
    radial-gradient(900px 520px at -6% 4%, rgba(235,162,60,.12), transparent 58%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.page { padding-top: 28px; padding-bottom: 48px; }  /* keeps .wrap's side gutter */
.section { margin-top: 40px; }

/* =========================================================================
   Shared shell — HEADER (slim, lean)
   Identical markup on every page.
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);   /* opaque: cards must not show through when scrolling */
  border-bottom: 1px solid var(--line-2);
}
.site-header__inner {
  max-width: var(--maxw-bar);
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* Three-bar green/amber/grey logo mark */
.logo-mark { display: inline-flex; align-items: center; gap: 2px; }
.logo-mark i { width: 6px; height: 20px; border-radius: 2px; display: block; }
.logo-mark i:nth-child(1) { background: var(--grey-bar); }
.logo-mark i:nth-child(2) { background: var(--amber); }
.logo-mark i:nth-child(3) { background: var(--green); }
.logo-mark--light i:nth-child(1) { background: #3E4A42; }

.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
/* Desktop and tablet: every link. Below 720px, How it works, Methodology and About move into the Menu
   (<details class="nav-menu">, closed on Escape / outside tap by /nav.js) so the header stays on one line. */
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-top: 1px; }
.nav-menu[open] summary::after { border-top: 0; border-bottom: 5px solid currentColor; }
.nav-menu summary.is-active { color: var(--ink); border-color: var(--green-border); }
.nav-menu summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.nav-menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 170px;
  display: flex; flex-direction: column; padding: 6px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 36px -18px rgba(28,42,34,.45);
}
.site-nav .nav-menu__panel a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14px; }
.site-nav .nav-menu__panel a:hover, .site-nav .nav-menu__panel a:focus-visible { background: var(--green-tint-2); color: var(--green-deep); outline: none; }
.site-nav .nav-menu__panel a.is-active { border-bottom: 0; padding-bottom: 10px; background: #F3EEE3; color: var(--ink); }
@media (max-width: 719px) {
  .site-nav .nav-wide { display: none; }
  .nav-menu { display: block; }
}
/* Phones: one line: brand, Term dates, Blog, Menu, Saved. */
@media (max-width: 440px) {
  .site-header__inner { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 16px; white-space: nowrap; }
  .site-nav { gap: 10px; }
  .site-nav a, .nav-menu summary { font-size: 12.5px; }
  .nav-menu summary { padding: 3px 7px; }
}
.site-nav a:hover { color: var(--green-deep); }
.site-nav a.is-active {
  color: var(--ink);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}
/* Saved: hidden (no space) until /nav.js finds a saved window in this browser. */
.site-nav .nav-saved { display: none; }
.has-saved .site-nav .nav-saved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-deep);
  font-weight: 700;
}
.site-nav .nav-saved svg { width: 14px; height: 14px; }
.nav-saved__n::after { content: var(--saved-count, ""); }
/* Phones: with nothing saved, About fits in the one-line header, so it leaves the Menu. With saved windows, Saved
   takes that space (About goes back in the Menu) and shows as the bookmark and the count ("Saved (2)" to screen
   readers, via nav.js). */
/* (From 370px: below that the header has no room for it.) */
@media (min-width: 370px) and (max-width: 719px) {
  html:not(.has-saved) .site-nav > a.nav-wide[href="/about/"] { display: inline; }
  html:not(.has-saved) .site-nav .nav-menu__panel a[href="/about/"] { display: none; }
}
@media (max-width: 440px) {
  .site-nav .nav-saved__label { display: none; }
  .site-nav .nav-saved { gap: 3px; }
  .nav-saved__n::after { content: var(--saved-num, ""); }
}
/* The narrowest phones (320–359px): tighter spacing so Term dates, Blog, Menu and Saved stay on one line. */
@media (max-width: 359px) {
  .site-header__inner { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .brand-name { font-size: 14.5px; }
  .site-nav { gap: 5px; }
  .nav-menu summary { padding: 3px 5px; }
}

/* =========================================================================
   Shared shell — FOOTER (dark; carries required disclosures)
   Identical markup on every page.
   ========================================================================= */
.site-footer { background: var(--footer-bg); margin-top: 56px; color: var(--footer-text); }
.site-footer__inner {
  max-width: var(--maxw-bar);
  margin: 0 auto;
  padding: 34px 20px 22px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 300px; }
.footer-brand .brand-name { color: #fff; font-size: 16px; }
.footer-tagline { font-size: 13.5px; line-height: 1.5; color: #9DA79E; margin: 11px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.footer-nav a { font-size: 13.5px; font-weight: 600; color: #C7D0C7; text-decoration: none; white-space: nowrap; }
.footer-nav a:hover { color: #fff; }

.footer-disclosures { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 13px; }
.disclosure { display: flex; gap: 11px; align-items: flex-start; }
.disclosure svg { flex: 0 0 auto; margin-top: 1px; width: 18px; height: 18px; stroke: #7FC7A2; stroke-width: 2; }
.disclosure__label { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.disclosure__label--affiliate { color: var(--amber); }
.disclosure__body { font-size: 13px; line-height: 1.55; color: #B9C2B9; margin-top: 3px; }
.disclosure__body--solo { margin-top: 0; }

.footer-legal {
  max-width: var(--maxw-bar);
  margin: 0 auto;
  padding: 0 20px 26px;
}
.footer-legal__rule { height: 1px; background: var(--footer-line); margin: 0 0 14px; }
.footer-legal__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-legal__row span { font-size: 12px; color: #7E887E; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .12s ease, background .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green-deep); color: #fff; box-shadow: 0 12px 26px -12px rgba(15,90,60,.85); }
.btn-primary:hover { background: #0C4A31; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #3C4841; border: 1px solid #DFD6C4; }
.btn-secondary:hover { background: #F2EBDD; }
.btn-block { width: 100%; }

/* =========================================================================
   Cards + eyebrow + pills
   ========================================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: #F0E8D8; border: 1px solid #E7DDC9;
  font-size: 12px; font-weight: 600; color: #6E6552;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill--green { background: var(--green-tint); color: var(--green-deep); }
.pill--amber { background: #FBF1DD; color: var(--amber-deep); }

/* =========================================================================
   Hero (index / tool entry)
   ========================================================================= */
.hero-layout { margin-top: 8px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 35px;
  line-height: 1.04;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 0;
  text-wrap: balance;
}
.hero p.lede { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; text-wrap: pretty; }

.saving-panel {
  display: inline-block;
  margin-top: 18px;
  padding: 16px 22px 14px;
  border-radius: 20px;
  background: linear-gradient(160deg, #E7F4EC, #DCEFE2);
  border: 1px solid var(--green-border);
  box-shadow: 0 14px 30px -20px rgba(31,157,107,.5);
}
.saving-panel__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #2C6A4C; }
.saving-panel__figure { display: flex; align-items: baseline; gap: 3px; margin: 2px 0; }
.saving-panel__figure .num { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: .95; letter-spacing: -.03em; color: var(--green-deep); }
.saving-panel__figure .pct { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--green-deep); }
[data-hero-range] { white-space: nowrap; }
.saving-panel__upto { align-self: center; margin-right: 6px; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; color: var(--green-deep); }
.saving-panel__pound { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--green-deep); }
.saving-panel__sub { font-size: 13.5px; font-weight: 600; color: #234A38; line-height: 1.4; }
.saving-panel__scope { font-size: 12px; color: #4C6A58; margin-top: 6px; }
.saving-panel__scope a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* "Your school calendar" card beside the saving panel (design: dev/design-reference/latest/index.html).
   Phones: above the panel. Desktop: beside it (see the 720px block). Day colours are the site's own:
   grey school days, lighter weekends, holiday green, and inset days in the calendar's inset style
   (deep green, navy ring, ✓) — still the authorised family, never amber. */
.hero-panel-row { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 18px; }
.hero-panel-row .saving-panel { margin-top: 0; }
.hero-cal {
  order: -1; align-self: center;
  margin: 6px 0 0; width: 100%; max-width: 300px;
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 36px -20px rgba(28,42,34,.45);
  transform: rotate(-3deg);
}
.hero-cal__head { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 11px 16px; }
.hero-cal__dow, .hero-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 14px; }
.hero-cal__dow { padding-top: 12px; }
.hero-cal__dow span { text-align: center; font-size: 10px; font-weight: 700; color: #B3AB98; }
.hero-cal__grid { padding-top: 7px; }
.hero-cal__day { position: relative; height: 26px; border-radius: 6px; }
.hero-cal__day--g { background: var(--green); }
.hero-cal__day--w { background: #D9EEDF; }
.hero-cal__day--s { background: var(--grey-day); border: 1px solid var(--grey-day-line); }
.hero-cal__day--i { background: var(--green-deep); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); z-index: 1; }
.hero-cal__day--i::after { content: "\2713"; position: absolute; top: -6px; right: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 8px; font-weight: 800; line-height: 13px; text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.hero-cal__key { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px 15px; margin: 0; }
.hero-cal__key span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.hero-cal__key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hero-cal__key .k-inset { background: var(--green-deep); box-shadow: 0 0 0 1px #fff, 0 0 0 2.5px var(--navy); margin: 0 2px; }
.hero-cal__key .k-off { background: var(--green); }
.hero-cal__key .k-school { background: var(--grey-day); border: 1px solid var(--grey-day-line); }

.reassure {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px; padding: 12px 14px;
  border-radius: 14px; background: var(--green-tint-2); border: 1px solid #DCEBE1;
}
.reassure .sq { width: 9px; height: 9px; border-radius: 3px; background: var(--green); flex: 0 0 auto; }
.reassure span { font-size: 13.5px; font-weight: 600; color: #2C4A3B; }

.cta-row { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }

/* Section heading */
.kicker { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #8A806C; }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.step { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.step__num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: var(--green-tint); color: var(--green-deep); font-family: var(--font-display); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.step__body { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 2px; }

/* =========================================================================
   Day-strip (reusable semantic visual)
   ========================================================================= */
.day-strip { display: flex; gap: 4px; }
.day {
  flex: 1 1 0; min-width: 0; height: 48px;
  border-radius: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-weight: 700;
}
.day .dow { font-size: 9px; font-weight: 600; opacity: .85; }
.day .n { font-size: 13px; line-height: 1; }
.day .tag { font-size: 6.5px; font-weight: 800; letter-spacing: .04em; line-height: 1; opacity: .9; }
.day--green { background: var(--green); color: #fff; }
.day--amber { background: var(--amber); color: #5A3A05; }
.day--grey  { background: var(--grey-day); color: #A79E8C; border: 1px solid var(--grey-day-line); }
.day--inset { background: var(--green-deep); color: #fff; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--navy); position: relative; z-index: 1; }

.legend { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 13px; }
.legend span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; }
.legend .sw--inset { background: var(--green-deep); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--navy); }

/* =========================================================================
   Long-form prose (how-it-works, privacy)
   ========================================================================= */
.prose h1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.08; letter-spacing: -.025em; color: var(--ink); margin: 8px 0 0; text-wrap: balance; }
.prose .standfirst { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 30px 0 0; }
.prose p { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); margin: 14px 0 0; }
.prose ul { margin: 12px 0 0; padding-left: 20px; }
.prose li { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); margin: 6px 0 0; }
.prose a { color: var(--green-deep); font-weight: 700; }
.prose a.btn-primary { color: #fff; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.meta-row .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; }
.meta-row .m { font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.meta-row .m--read { color: var(--green-deep); font-weight: 700; }
.meta-row .sep { width: 3px; height: 3px; border-radius: 50%; background: #C9C0AC; }

/* Figure with day-strip */
.figure { margin: 22px 0 0; padding: 16px 15px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.figure figcaption { font-size: 12.5px; line-height: 1.5; color: #7C776B; margin-top: 11px; font-style: italic; }

/* Booking-window table */
.io-table { margin-top: 16px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; width: 100%; border-collapse: collapse; }
.io-table thead th { background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-align: left; padding: 10px 12px; }
.io-table thead th:last-child { text-align: right; }
.io-table td { border-top: 1px solid #F1EBDD; padding: 11px 12px; font-size: 12.5px; color: var(--muted); }
.io-table td:first-child { font-size: 13px; font-weight: 700; color: var(--ink); }
.io-table td:last-child { text-align: right; font-weight: 700; color: var(--green-deep); }
.io-table tr.is-highlight td { background: var(--green-tint-2); }
.table-note { font-size: 13px; line-height: 1.55; color: #7C776B; margin: 11px 0 0; font-style: italic; }

/* Contextual CTA card (in articles / mid-page) */
.cta-card {
  margin-top: 26px; padding: 20px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #EAF6EF, #DBEEE1); border: 1px solid var(--green-border);
}
.cta-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.cta-card p { font-size: 14px; line-height: 1.5; color: #2C4A3B; margin: 6px 0 0; }
.cta-card .btn { margin-top: 14px; }

/* Sources */
.sources { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.sources .kicker { letter-spacing: .06em; }
.sources ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; counter-reset: src; }
.sources li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.5; color: var(--muted-2); }
.sources li::before { counter-increment: src; content: counter(src); font-family: var(--font-display); font-weight: 800; font-size: 12px; color: #B3AB98; }

/* =========================================================================
   Blog index
   ========================================================================= */
.blog-masthead h1 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.08; letter-spacing: -.025em; color: var(--ink); margin: 0; }
.blog-masthead p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cat-chip {
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: #F0E8D8; border: 1px solid #E7DDC9; color: #6E6552;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
}
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

.post-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.post-card { display: block; text-decoration: none; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.post-card__meta-top { display: flex; align-items: center; gap: 8px; }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 9px 0 0; text-wrap: pretty; }
.post-card--featured .post-card__title { font-size: 20px; }
.post-card__summary { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; text-wrap: pretty; }
.post-card__meta { font-size: 11.5px; font-weight: 600; color: var(--faint); margin: 10px 0 0; }
.post-card.is-hidden { display: none; }
.featured-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #B3AB98; }

/* Category tags (identity colours — kept clear of the green/amber semantics) */
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.tag--timing       { background: #E7EDF2; color: #3A5A72; }
.tag--rules        { background: #F0EAF3; color: #6E4E7E; }
.tag--destinations { background: #F5EBE0; color: #8A5A2E; }
.tag--saving       { background: #EDF1E2; color: #4E6A26; }

/* Inline tool nudge (used once, mid-list) */
.tool-nudge { padding: 16px 17px; border-radius: 18px; background: linear-gradient(160deg, #EAF6EF, #DCEFE2); border: 1px solid var(--green-border); text-decoration: none; display: block; }
.tool-nudge h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--green-deep); margin: 0; display: flex; align-items: center; gap: 9px; }
.tool-nudge p { font-size: 13px; line-height: 1.5; color: #2C4A3B; margin: 7px 0 0; }
.tool-nudge .go { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 13.5px; font-weight: 700; color: var(--green-deep); }

/* Disclaimer line under content */
.fineprint { font-size: 12px; line-height: 1.5; color: #948B78; margin-top: 20px; text-wrap: pretty; }

/* =========================================================================
   App flow — input screens, results, detail
   ========================================================================= */

/* Screen chrome */
.io-back { background: none; border: none; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 0; margin-bottom: 4px; }
.io-back:hover { color: var(--green-deep); }
.io-step { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.io-screen h1 { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 0; }
.io-screen .io-desc { font-size: 14.5px; color: var(--muted); margin: 8px 0 18px; line-height: 1.5; }
.io-section { margin-bottom: 16px; }
.io-section h2 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.io-section .io-desc { margin: 0 0 12px; }
.io-paste-hint { font-size: 14px; color: var(--muted); margin: 2px 0 10px; line-height: 1.45; }
.io-paste { display: block; width: 100%; box-sizing: border-box; font-family: var(--font-body); font-size: 14px; line-height: 1.5; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; resize: vertical; background: var(--surface); color: var(--ink); margin-bottom: 10px; }
.io-paste:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
.io-success { color: #27783d; font-size: 13.5px; font-weight: 600; margin: 10px 0 0; line-height: 1.45; }
.io-year-switch { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.io-link-btn { background: none; border: none; color: var(--brand); font-family: var(--font-body); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.io-link-btn:hover { color: var(--green-deep); }

/* Estimated holiday banner + hint */
.io-est-banner { font-size: 13.5px; color: #92600a; background: #fef9ec; border: 1.5px solid #f5d98a; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; line-height: 1.45; }
.io-hol-row--est { background: #fefcf4; border-radius: 8px; padding-left: 10px; padding-right: 10px; margin: 0 -10px; }
.io-est-hint { font-size: 12px; color: #92600a; font-style: italic; width: 100%; margin-top: 2px; }

/* Form rows */
.io-term-row, .io-hol-row, .io-inset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.io-term-row:last-child, .io-hol-row:last-child, .io-inset-row:last-child { border-bottom: none; }
.io-row-label { font-size: 14px; font-weight: 700; color: var(--ink); min-width: 70px; }
.io-hol-label { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 0; flex: 1 1 120px; }
.io-fields { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; }
.io-to { font-size: 13px; color: var(--muted); }

input[type="date"].io-date { font-family: var(--font-body); font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--card); color: var(--ink); flex: 1 1 0; min-width: 0; }
input[type="date"].io-date:focus { outline: 2px solid var(--green); border-color: transparent; }

.io-add { background: none; border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px; width: 100%; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--green-deep); cursor: pointer; margin: 10px 0; }
.io-add:hover { background: var(--green-tint); border-color: var(--green-border); }
.io-remove { background: none; border: none; font-size: 18px; color: var(--muted); cursor: pointer; padding: 4px 8px; line-height: 1; }
.io-remove:hover { color: #c0392b; }

/* Bank holiday checkboxes */
.io-checks { display: flex; flex-direction: column; gap: 2px; }
.io-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; cursor: pointer; }
.io-check input { width: 18px; height: 18px; accent-color: var(--green); }

/* Trip type toggle */
.io-toggle { display: flex; gap: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.io-toggle-btn { flex: 1; padding: 11px; border: none; background: var(--card); font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.io-toggle-btn.active { background: var(--green-deep); color: #fff; }

/* Term-time days picker */
.io-tt-picker { display: flex; gap: 6px; }
.io-tt-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--muted); cursor: pointer; }
.io-tt-btn.active { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }

/* Error text */
.io-error { color: #c0392b; font-size: 13px; font-weight: 600; margin: 8px 0; }
.io-warning { background: #e8f0fe; border: 1px solid #a8c7f0; border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 13px; color: #1a4a7a; }
.io-warning p { margin: 4px 0; }

/* Result cards — window-led design */
.io-results { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.io-card {
  --navy: #1F3A5C; --navy-soft: #AECCEC;
  box-sizing: border-box; width: 100%;
  font-family: var(--font-body); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 18px 42px -28px rgba(28,42,34,.55); padding: 19px 18px 16px; cursor: pointer;
  transition: transform .1s ease;
}
.io-card:hover { transform: translateY(-1px); }
.io-card * { box-sizing: border-box; }

/* eyebrow row */
.io-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.io-eyebrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.io-eyebrow__dot { width: 7px; height: 7px; border-radius: 2px; background: var(--amber); flex: 0 0 auto; }
.io-eyebrow__name { font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: .02em; color: #A9843C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.io-badge { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: var(--green-tint);
  color: var(--green-deep); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.io-badge--hero { background: #FFF3D6; color: #A9843C; }

/* Hero hidden-win card */
.io-card--hero { border-color: #D4C8A0; box-shadow: 0 18px 42px -22px rgba(28,42,34,.45), 0 0 0 1px #D4C8A0; }

/* Section headers for hidden wins / safe bets */
.io-section-group { margin-top: 0; }
.io-section-header { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 2px; }
.io-section-header__icon { display: flex; color: #A9843C; }
.io-section-header--quiet { font-size: 14px; font-weight: 600; color: var(--muted); }
.io-section-desc { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0 0 12px; }
.io-separator { border: none; border-top: 1px solid var(--line); margin: 22px 0 18px; }
.io-section-group--quiet .io-card { box-shadow: 0 8px 20px -16px rgba(28,42,34,.3); }
.io-empty-hidden { padding: 14px 0 4px; }
.io-empty-hidden p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }

/* Insight callout on hidden cards */
.io-insight { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--green-tint);
  font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.io-insight__icon { flex: 0 0 auto; color: var(--green-deep); margin-top: 1px; }

/* Detail view insight */
.io-detail-insight { display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 12px; background: var(--green-tint);
  font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 14px; }
.io-detail-insight svg { flex: 0 0 auto; color: var(--green-deep); margin-top: 2px; }

/* Hidden win badge in detail view */
.io-rc-best--hidden { background: #FFF3D6; color: #A9843C; }


/* Price bar — fill = share of peak you pay. Shorter = cheaper. */
.price-bar-wrap { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.price-bar { flex: 1 1 auto; height: 6px; border-radius: 3px;
  background: #EDE7DA; overflow: hidden; }
.price-bar__fill { display: block; height: 100%; border-radius: 3px; background: #4C574F; }
.price-bar__label { flex: 0 0 auto; font-size: 10.5px; font-weight: 600; color: var(--faint); }



/* Expanded detail */
.detail__dateline { display: flex; align-items: center;
  justify-content: space-between; gap: 10px; }
.detail__dates { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.detail__total { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Day tiles inside rows (design-spec version) */
.day-strip-row { display: flex; align-items: flex-end; gap: 3px; margin-top: 11px; overflow-x: auto; }
.day-tile { flex: 1 1 0; min-width: 0; height: 30px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; }
.day-tile--inset { flex-direction: column; line-height: 1; gap: 1px; }
.day-tile__tag { font-size: 5.5px; font-weight: 800; letter-spacing: .03em; opacity: .9; }
.day-tile--authorised { background: var(--green); color: #fff; }
.day-tile--term-time { background: var(--amber); color: #5A3A05; }
.day-tile--neutral { background: var(--grey-day); color: #A79E8C;
  border: 1px solid var(--grey-day-line); }

.day-counts { display: flex; align-items: center; gap: 13px; margin-top: 11px; }
.day-count { display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; }
.day-count__swatch { width: 9px; height: 9px; border-radius: 3px; }
.day-count--authorised { color: #2C4A3B; }
.day-count--authorised .day-count__swatch { background: var(--green); }
.day-count--term-time { color: var(--amber-deep); }
.day-count--term-time .day-count__swatch { background: var(--amber); }
.day-count--none { color: var(--faint); }
.day-count--none .day-count__swatch { background: #DDD8CC; }

.permission-note { margin-top: 11px; padding: 9px 12px; border-radius: 11px;
  background: #FBF1DD; border: 1px solid #F0E2C4;
  font-size: 12px; line-height: 1.45; font-weight: 500; color: #7A5305; }

/* Best time to book — card used in detail screen and results dropdown */
.book-when { margin-top: 13px; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.book-when__head { padding: 14px 15px 13px; background: linear-gradient(165deg, #EAF6EF, #DCEFE2); border-bottom: 1px solid #CFE7DA; }
.book-when__title { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.book-when__bell { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 9px; background: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; }
.book-when__bell svg { stroke: var(--navy); }
.book-when__label { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #3E7C5C; margin-top: 11px; }
.book-when__dates { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: -.015em; color: var(--green-deep); margin-top: 4px; }
.book-when__body { padding: 13px 15px 15px; }
.book-when__timeline { padding: 12px 12px 11px; border-radius: 13px; background: #FBF9F3; border: 1px solid #F0E9DA; }
.book-when__track { position: relative; height: 12px; }
.book-when__rail { position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; background: #E3DCC9; }
.book-when__span { position: absolute; left: 32%; width: 30%; top: 4px; height: 4px; border-radius: 2px; background: #A8BED6; }
.book-when__dot { position: absolute; top: 2px; width: 8px; height: 8px; border-radius: 50%; }
.book-when__dot--today { left: 2px; background: #C9C0AC; }
.book-when__dot--trip { right: 2px; background: #B8AF99; }
.book-when__ping { position: absolute; left: 32%; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(31,58,92,.2); }
.book-when__legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; }
.book-when__legend span { font-size: 10px; font-weight: 700; color: var(--faint); }
.book-when__legend .is-ping { flex: 1 1 auto; text-align: center; font-weight: 800; color: var(--navy); }
.book-when__legend .is-trip { color: var(--faint); }
.book-when__claim { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.book-when--early .book-when__dates { font-size: 14px; }
.book-when__evidence { margin: 0; padding: 11px 15px 13px 32px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* Tested-saving card (evidence.json) */
.btn-remind { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 13px; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 14px; padding: 12px; border-radius: 13px; background: #EDF2F8; border: 1.5px solid #C3D4E6; color: var(--navy); }
.btn-remind:hover { background: #E2EAF4; }
.btn-remind svg { flex: 0 0 auto; stroke: var(--navy); }
.book-when__reassure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 9px; }
.book-when__reassure svg { flex: 0 0 auto; stroke: var(--faint); }
.book-when__reassure span { font-size: 11px; font-weight: 600; color: var(--faint); }

.btn-search { display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; margin-top: 12px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 13px; border-radius: 13px; background: var(--navy); color: #fff;
  box-shadow: 0 12px 24px -14px rgba(20,40,70,.75); }
.affiliate-note { text-align: center; font-size: 11px; font-weight: 500;
  color: var(--faint); margin-top: 8px; }

/* Insight callout inside expanded row */
.row-insight { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px;
  padding: 10px 12px; border-radius: 12px; background: var(--green-tint);
  font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.row-insight svg { flex: 0 0 auto; color: var(--green-deep); margin-top: 1px; }

/* saving hero + gauge */
.io-saving { display: flex; align-items: center; gap: 11px; margin-top: 14px; }
.io-gauge { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; }
.io-gauge__axis { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; height: 70px; padding: 1px 0; }
.io-gauge__axis span { font-size: 7.5px; font-weight: 700; letter-spacing: .05em; }
.io-gauge__axis .a-peak { color: #B3AB98; }
.io-gauge__axis .a-save { color: #3E7C5C; }
.io-gauge__bar { position: relative; width: 15px; height: 70px; border-radius: 5px;
  background: #DEDDD8; border: 1px solid #D0CFC9; overflow: hidden; }
.io-gauge__fill { position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--green) 0%, var(--green) 60%, rgba(31,157,107,.35) 100%); }
.io-saving__fig { display: flex; align-items: flex-start; gap: 1px; }
.io-saving__tilde { font-size: 14px; font-weight: 800; color: var(--green-deep); margin-top: 6px; }
.io-saving__num { font-family: var(--font-display); font-weight: 800; font-size: 50px;
  line-height: .82; letter-spacing: -.035em; color: var(--green-deep); }
.io-saving__pct { font-family: var(--font-display); font-weight: 800; font-size: 23px;
  line-height: 1; color: var(--green-deep); margin-top: 4px; }
.io-saving__vs { font-family: var(--font-display); font-weight: 800; font-size: 19px;
  line-height: 1.05; letter-spacing: -.01em; color: var(--ink); align-self: flex-end; margin: 0 0 8px 8px; }
.io-saving__note { font-size: 11px; font-weight: 600; color: var(--faint); margin-top: 5px; }

/* bookable anchor — navy distinct from green */
.io-book { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 15px; padding: 13px 14px;
  border: none; border-radius: 16px; background: var(--navy); color: #fff; text-align: left;
  box-shadow: 0 15px 28px -16px rgba(20,40,70,.62); font-family: inherit; }
.io-book__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
.io-book__text { min-width: 0; flex: 1 1 auto; }
.io-book__label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .09em; color: var(--navy-soft); text-transform: uppercase; }
.io-book__dates { display: block; font-family: var(--font-display); font-weight: 800; font-size: 21px;
  line-height: 1.05; letter-spacing: -.02em; color: #fff; margin-top: 3px; }
.io-book__chev { flex: 0 0 auto; }

/* day strip — faded context + bright slice */
.io-strip { margin-top: 16px; overflow-x: auto; display: flex; flex-direction: column; align-items: flex-start; }
.io-strip__row { display: inline-flex; align-items: flex-end; gap: 2px; height: 40px;
  border: 2px solid var(--green); border-radius: 8px; padding: 3px; background: var(--green-tint-2); }
.io-strip__day { flex: 0 0 14px; width: 14px; height: 24px; border-radius: 2px; background: #D8D8D0; opacity: .45; }
.io-strip__cue { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px 2px 7px;
  border-radius: 999px; white-space: nowrap; background: var(--navy, #1F3A5C); color: #fff;
  font-size: 8px; font-weight: 800; letter-spacing: .06em; line-height: 1;
  margin-bottom: 4px; align-self: flex-end; }
.io-strip__slice { display: flex; align-items: flex-end; gap: 2px; }
.io-strip__slice span { flex: 0 0 14px; width: 14px; height: 32px; border-radius: 2px; background: var(--green); }
.io-strip__slice span.io-strip__day--amber { background: var(--amber); }
.io-strip__caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.io-strip__caption .edge { font-size: 11px; font-weight: 600; color: var(--faint); }
.io-strip__caption .mid { font-size: 11.5px; font-weight: 600; color: #5A7A68; }

/* tip (unchanged placement) */
.io-rc-tip { font-size: 12.5px; color: var(--muted); line-height: 1.45; padding: 8px 12px; margin-top: 12px; background: var(--sand, #faf6f0); border-radius: 8px; }
.io-detail-tip { font-size: 13.5px; color: var(--muted); line-height: 1.5; padding: 12px 14px; margin-bottom: 16px; background: var(--sand, #faf6f0); border-radius: 10px; }
.io-summer-signpost { text-align: center; padding: 20px 16px; margin-top: 8px; }
.io-summer-signpost p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; }

/* footer row */
.io-foot { display: flex; align-items: center; gap: 9px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #F2ECDE; }
.io-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: #2C6A4C; background: #EEF6F0; border: 1px solid #DCEBE1; }
.io-tag__sq { width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.io-tag--amber { color: var(--amber-deep); background: var(--amber-tint); border-color: var(--amber-border); }
.io-tag--amber .io-tag__sq { background: var(--amber); }
.io-foot__range { font-size: 12.5px; font-weight: 500; color: var(--faint); }
.io-foot__chev { margin-left: auto; flex: 0 0 auto; color: #B3AB98; display: flex; }

/* legacy card classes kept for detail view */
.io-rc-eyebrow { font-size: 12px; font-weight: 600; color: var(--faint); }
.io-detail-hero { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 4px; }
.io-detail-hero__pct { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--green-deep); line-height: 1; }
.io-detail-hero__label { font-size: 15px; font-weight: 600; color: var(--muted); }
.io-rc-name { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); font-style: italic; }
.io-rc-best { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--green-deep); background: var(--green-tint); border-radius: 999px; padding: 3px 9px; }

/* Sub-window cards on detail view */
.io-sub-card { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.io-sub-card.io-sub-best { border-color: var(--brand); background: var(--green-tint); }
.io-sub-range { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.io-sub-saving { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.io-sub-band { font-size: 12px; color: var(--muted); margin-top: 4px; }
.io-sub-family { font-size: 12px; color: var(--amber-deep, #b45309); margin-top: 6px; font-style: italic; }

/* Detail view */
.io-detail .io-pills { display: flex; gap: 8px; margin: 12px 0 18px; flex-wrap: wrap; }
.io-detail .io-daystrip { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
.io-detail .io-daystrip.io-daystrip--ringed { margin-top: 20px; }
.io-detail .io-daystrip .day { flex: 0 0 auto; width: 34px; }
.trip-ring { position: relative; display: flex; gap: 3px; padding: 14px 5px 5px;
  border: 2px solid var(--navy); border-radius: 12px; background: #F2F6FA; }
.trip-ring .day { border-radius: 8px; font-weight: 800; }
.trip-ring__label { position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%); padding: 2px 8px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .05em; white-space: nowrap; }
.trip-ring--mini { flex: none; padding: 10px 2.5px 2.5px; gap: 1.5px; border-width: 2px; border-radius: 7px; }
.trip-ring--mini .day-tile { flex: none; width: 30px; border-radius: 3px; }
.trip-ring--mini .trip-ring__label { font-size: 8px; padding: 1.5px 6px; }
.day-strip-row:has(.trip-ring--mini) > .day-tile { flex: none; width: 30px; }
.io-detail .io-save-figure { font-family: var(--font-display); font-weight: 800; font-size: 48px; color: var(--green-deep); line-height: 1; }
.io-detail .io-save-figure small { font-size: 24px; }
.io-detail .io-save-label { font-size: 14px; color: var(--muted); }
.io-detail .io-save-range { display: flex; justify-content: space-between; font-size: 14.5px; padding: 4px 0; }
.io-detail .io-save-range strong { color: var(--ink); }
.io-detail .io-save-banner { display: flex; justify-content: space-between; align-items: center; background: var(--green-deep); color: #fff; border-radius: 10px; padding: 14px 16px; margin-top: 12px; font-weight: 700; font-size: 14px; }
.io-detail .io-brow { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14.5px; }
.io-detail .io-brow + .io-brow { border-top: 1px solid var(--line); }
.io-detail .io-brow-name { display: inline-flex; align-items: center; gap: 9px; }
.io-detail .io-brow-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.io-detail .io-brow-dot.a { background: var(--green); } .io-detail .io-brow-dot.t { background: var(--amber); }
.io-detail .io-brow-qty { color: var(--muted); }
.io-detail .io-amber-note { background: var(--amber-tint); border: 1px solid var(--amber-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.io-detail .io-amber-note h3 { margin: 0 0 6px; font-size: 15px; color: var(--amber-deep); }
.io-detail .io-amber-note p { margin: 0; font-size: 14px; color: var(--amber-deep); }
.io-detail .io-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.io-detail .io-action-btn { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.io-detail .io-action-btn.on { background: var(--green-tint); border-color: var(--green-border); color: var(--green-deep); }
.io-actions--row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.io-actions--row .io-action-btn { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.io-actions--row .io-action-btn:hover { border-color: var(--green-border); color: var(--green-deep); }
.io-detail .io-search-cta { display: block; width: 100%; text-align: center; text-decoration: none; border: none; border-radius: 12px; padding: 16px; font-family: var(--font-body); font-size: 16px; font-weight: 700; background: var(--green-deep); color: #fff; cursor: pointer; }
.io-detail .io-search-hint { display: block; font-size: 12px; font-weight: 500; opacity: .85; margin-top: 3px; }

/* Saved list */
.io-saved-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; }
.io-saved-item + .io-saved-item { border-top: 1px solid var(--line); }
.io-saved-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.io-saved-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.io-saved-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.io-saved-del:hover { color: #c0392b; }
.io-saved-body { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.io-copy-link { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; border-radius: 6px; opacity: .5; }
.io-copy-link:hover { opacity: 1; background: var(--green-tint); }
.io-stale-note { background: #fef9e7; border: 1px solid #f0e2a0; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #7d6608; margin-bottom: 12px; }
.io-empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 15px; }
.io-empty__go { margin-top: 18px; }
/* The empty saved screen: the page fills the viewport so the footer sits at the bottom. */
body:has(.io-screen--fill) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body:has(.io-screen--fill) > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.past-windows { margin: 18px 0 8px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 13px; }
.past-windows summary { cursor: pointer; font-weight: 700; }
.past-windows__note { margin: 8px 0 4px; }
.past-windows__list { margin: 0; padding-left: 18px; line-height: 1.6; }

/* Toast */
.io-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--green-deep); color: #fff; padding: 12px 18px; border-radius: 999px; font-family: var(--font-body); font-size: 14px; font-weight: 600; opacity: 0; transition: all .25s; pointer-events: none; z-index: 50; }
.io-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Trip toggle on results */
.io-trip-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.io-trip-label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Family flow — child badge in wizard */
.io-child-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--green-deep); background: var(--green-tint); border: 1px solid var(--green-border); margin-bottom: 8px; }
.io-child-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.io-child-name { flex: 1 1 160px; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-body); }
.io-same-school { font-size: 13px; color: var(--muted); flex: 0 0 100%; margin-top: -4px; }

/* Heatmap */
.io-map { margin-top: 14px; background: rgba(255,255,255,.6); border-radius: 14px; padding: 11px 11px 12px; overflow-x: auto; }
.io-map__head { display: flex; align-items: center; gap: 5px; }
.io-map__labelcol { flex: 0 0 auto; width: 70px; }
.io-map__cols { flex: 1 1 auto; display: flex; gap: 4px; }
.io-map__col { flex: 1 1 0; min-width: 0; text-align: center; }
.io-map__dow { font-size: 8px; font-weight: 700; color: #B3AB98; letter-spacing: .02em; }
.io-map__date { font-size: 10px; font-weight: 700; color: #8A8574; }
.io-map__rows { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.io-map__row { display: flex; align-items: center; gap: 5px; }
.io-map__label { flex: 0 0 auto; width: 70px; display: flex; align-items: center; gap: 6px; }
.io-map__badge { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 11px; }
.io-map__badge--a { background: #46708C; }
.io-map__badge--b { background: #8A6597; }
.io-map__badge--c { background: #7A8B4A; }
.io-map__badge--d { background: #C06040; }
.io-map__badge--e { background: #5A8A8A; }
.io-map__badge--everyone { background: var(--green-deep); }
.io-map__badge--everyone svg { width: 13px; height: 13px; }
.io-map__name { font-size: 11.5px; font-weight: 700; color: #3A433C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.io-map__name--everyone { color: var(--green-deep); }
.io-map__cells { flex: 1 1 auto; display: flex; gap: 4px; }
.io-cell { flex: 1 1 0; min-width: 0; height: 24px; border-radius: 6px; }
.io-cell--lg { height: 30px; }
.io-cell--g { background: var(--green); }
.io-cell--a { background: var(--amber); }
.io-cell--s { background: #E7E1D4; border: 1px solid #DBD3C2; }
.io-map__note { font-size: 12px; color: var(--amber-deep); font-style: italic; margin-top: 8px; padding: 8px 10px; background: var(--amber-tint); border-radius: 8px; border: 1px solid var(--amber-border); }
.io-map__legend { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.io-map__key { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--muted); }
.io-map__key .io-cell { width: 12px; height: 12px; flex: 0 0 12px; }
.io-overlap-badge { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.io-overlap-badge--strong { color: var(--green-deep); }
.io-overlap-badge--poor { color: var(--amber-deep); }

/* =========================================================================
   Larger screens — gentle enhancements only (design stays mobile-first)
   ========================================================================= */
@media (min-width: 720px) {
  .hero h1 { font-size: 42px; }
  .hero-layout { display: flex; gap: 40px; align-items: flex-start; }
  .hero-copy { flex: 1 1 0; min-width: 0; }
  .hero-visual { flex: 0 0 auto; margin-top: 0; }
  .hero-panel-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; gap: 18px; }
  .hero-panel-row .saving-panel { display: block; }
  .hero-cal { order: 0; margin: 0; justify-self: center; }
  .cta-row { flex-direction: row; }
  .cta-row .btn { flex: 1 1 0; }
}

/* Term-time budget section */
.tt-section { margin: 2rem 0; padding: 1.25rem; border: 2px solid var(--amber, #e6a817); border-radius: 12px; background: rgba(230, 168, 23, 0.06); }
.tt-section__header { margin-bottom: 1rem; }
.tt-section__title { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.25rem; }
.tt-section__amber-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber, #e6a817); flex-shrink: 0; }
.tt-section__desc { font-size: 0.88rem; color: var(--faint, #666); margin: 0; }
.tt-candidate { padding: 0.75rem 0; border-top: 1px solid var(--rule, rgba(0,0,0,0.08)); }
.tt-candidate:first-of-type { border-top: none; }
.tt-candidate__header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.tt-candidate__dates { font-weight: 600; font-size: 0.95rem; }
.tt-candidate__badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 20px; background: var(--amber, #e6a817); color: #000; font-weight: 600; white-space: nowrap; }
.tt-candidate__saving { font-size: 0.88rem; color: var(--faint, #666); margin-top: 0.25rem; }
.tt-candidate__trip-label { font-size: 0.8rem; color: var(--faint, #888); margin-top: 0.125rem; }
.tt-candidate__days { display: flex; gap: 3px; margin-top: 0.5rem; flex-wrap: wrap; }
.tt-section__caveat { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--rule, rgba(0,0,0,0.08)); font-size: 0.8rem; color: var(--faint, #666); }
.tt-section__caveat p { margin: 0.5rem 0; }
.tt-section__caveat-source { font-size: 0.75rem; }
.tt-section__caveat-source a { color: inherit; }
.tt-section__caveat-warn { padding: 0.5rem; border-radius: 6px; background: rgba(230, 168, 23, 0.1); }

/* ---------- Homepage example section ---------- */
.example-results { max-width: 620px; margin: 32px auto 0; padding: 0 12px; }
.example-results__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.example-results__badge { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--green-deep); background: var(--green-tint); padding: 3px 8px; border-radius: 6px; }
.example-results__sub { font-size: 13px; color: var(--muted); }
.example-results__intro { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; }

.ex-layout { display: flex; gap: 20px; align-items: flex-start; }
.ex-card { flex: 1 1 0; min-width: 0; background: var(--card); border-radius: 14px; border: 1px solid var(--line); padding: 16px 16px 14px; box-shadow: 0 2px 8px rgba(28,42,34,.06); }
.ex-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ex-card__name { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.ex-card__name .sq { width: 9px; height: 9px; border-radius: 3px; background: var(--green); flex: 0 0 auto; }
.ex-card__trip { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ex-card__saving { text-align: right; flex: 0 0 auto; }
.ex-card__pct { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--green-deep); display: block; line-height: 1.1; }
.ex-card__pctlabel { font-size: 10px; font-weight: 600; color: var(--muted); display: block; }

.ex-strip { display: flex; gap: 4px; margin-bottom: 12px; }
.ex-day { flex: 1 1 0; min-width: 0; text-align: center; background: var(--green); color: #fff; border-radius: 7px; padding: 6px 0 5px; }
.ex-day__dow { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.ex-day__n { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 800; line-height: 1.2; }
.ex-day__tag { display: block; font-size: 7px; font-weight: 800; letter-spacing: .06em; margin-top: 1px; opacity: .8; }
.ex-day--inset { background: var(--green-deep); }
.ex-day--framed { box-shadow: 0 0 0 2px var(--ink); }
.ex-day--school { background: var(--grey-day); color: var(--muted-2); }

.ex-card__counts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ex-count { font-size: 12px; font-weight: 600; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }
.ex-count .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--green); flex: 0 0 auto; }
.ex-badge-clear { font-size: 10.5px; font-weight: 700; color: var(--green-deep); background: var(--green-tint); padding: 3px 8px; border-radius: 6px; }

.ex-card__insight { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

.ex-anchor { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font-size: 9px; font-weight: 800; vertical-align: middle; margin: 0 1px; }

/* The notes column has a fixed basis: with "auto" a long note took its full one-line width and squeezed the
   card to a sliver (the card is min-width: 0). The card keeps the rest. */
.ex-notes { list-style: none; padding: 0; margin: 0; flex: 0 0 196px; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ex-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.ex-note__mark { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font-size: 10px; font-weight: 800; flex: 0 0 auto; margin-top: 1px; }

.example-results__cta { margin-top: 20px; max-width: 380px; margin-left: auto; margin-right: auto; }
.example-results__foot { text-align: center; font-size: 12px; color: var(--faint); margin: 14px 0 0; }
.example-results__foot a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.example-results__foot a:hover { color: var(--green-deep); }

@media (max-width: 640px) {
  .ex-layout { flex-direction: column; }
  .ex-card { flex: 0 0 auto; width: 100%; }
  .ex-notes { flex: 0 0 auto; flex-direction: column; gap: 8px; }
}

/* ---------- Example connector lines ---------- */
.ex-layout { position: relative; }
.ex-connectors { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
@media (max-width: 640px) { .ex-connectors { display: none; } }
.day-strip-more { flex: none; align-self: center; font-size: 10.5px; font-weight: 600; color: var(--muted-2); margin: 0 6px; white-space: nowrap; }

/* =========================================================================
   RESULTS v2: "You have N cheaper windows". Hero card, "Also worth it",
   ranked "More wins", saving bars, calendar strip, option groups.
   Built from the Results v2 design (dev/design-reference/results-v2).
   ========================================================================= */
.wrap.wrap--wide { max-width: var(--maxw-bar); }
.wres { padding-bottom: 32px; }

/* Header */
.wres__header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin: 8px 0 22px; }
.wres__intro { flex: 1 1 420px; min-width: 0; }
.wres__year { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--faint); }
.wres .wres__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4.2vw, 40px); line-height: 1.05; letter-spacing: -.025em; margin: 4px 0 8px; }
.wres__summary { font-size: 16px; color: var(--ink-soft); line-height: 1.45; margin: 0 0 12px; max-width: 46ch; }
.wres__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--green-tint); border: 1px solid var(--green-border); color: var(--green-deep); font-size: 13px; font-weight: 700; text-decoration: none; }
.wres__badge:hover { background: var(--green-tint-2); text-decoration: underline; }
.wres__header--detail { align-items: center; }
.wres__lead { flex: 0 0 auto; }
.wres__lead-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.wtoggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); }
.wtoggle__btn { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font: 700 14px var(--font-body); color: var(--muted); cursor: pointer; }
.wtoggle__btn.is-on { background: var(--green-deep); color: #fff; }

/* Wins layout: 1 = hero; 2 = hero + "Also worth it" beside; 3+ = hero + ranked rows */
.wwins--two { display: grid; gap: 18px; }
.wwins__expanded { margin-top: 18px; }
@media (min-width: 900px) {
  .wwins--two { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
  .wwins--two.is-expanded { grid-template-columns: 1fr; }
}
.wwins--two.is-expanded .wwins__side { display: none; }

/* Cards */
.wcard { container-type: inline-size; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.wcard__top { display: flex; gap: 20px; align-items: flex-start; }
.wcard__main { flex: 1 1 auto; min-width: 0; }
.wcard__illo { flex: 0 0 auto; }
@container (max-width: 520px) { .wcard__illo { display: none; } }
.wcard__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--green-deep); }
.wcard__holiday { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.015em; margin-top: 6px; }
.wcard__lead { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; margin-top: 16px; }
.wcard__note { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.wcard__fallback { font-size: 13px; color: var(--muted); margin-top: 4px; }

.wparasol { position: relative; display: inline-block; width: 18px; height: 16px; }
.wparasol__canopy { position: absolute; left: 0; top: 0; width: 18px; height: 9px; border-radius: 18px 18px 0 0; background: repeating-linear-gradient(90deg, #D9644A 0 4.5px, #FBF7EE 4.5px 9px); }
.wparasol__pole { position: absolute; left: 8px; top: 8px; width: 2px; height: 8px; background: var(--navy); border-radius: 1px; }

/* Big figure: "UP TO" over "49% less", never wraps */
.wfig { margin-top: 10px; }
.wfig__up { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.wfig__line { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.wfig__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 17cqw, 72px); line-height: .95; letter-spacing: -.04em; color: var(--green-deep); }
.wfig__less { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 6cqw, 26px); color: var(--green-deep); }
.wfig--small .wfig__num { font-size: clamp(36px, 15cqw, 52px); }
.wfig__dep { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.wfig--none { font-weight: 700; color: var(--muted); }
.wfound { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #EDF2F8; border: 1px solid #D3DFEC; }
.wfound__label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: #46698C; }
.wfound__text { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 7cqw, 26px); line-height: 1.15; color: var(--navy); margin-top: 3px; }
.wfound--small .wfound__text { font-size: 20px; }
/* Not priced yet: a plain note, not a finding. */
.wfound--unpriced { background: #F7F1E4; border-color: #ECE2CD; }
.wfound--unpriced .wfound__label { color: #8A6E33; }
.wfound--unpriced .wfound__text { font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--ink); }
.wfound--unpriced.wfound--small .wfound__text { font-size: 15px; }

/* Saving bars: coral = usual dates (100%); green = your dates. Solid / striped / hatched. */
.wbar { margin-top: 14px; }
.wbar__label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 6px 0 4px; }
.wbar__label--yours { color: var(--green-deep); }
.wbar__usual { height: 18px; border-radius: 6px; background: #D9644A; }
.wbar__track { position: relative; height: 18px; border-radius: 6px; overflow: hidden; }
.wbar__track > span { position: absolute; top: 0; bottom: 0; transition: left .9s cubic-bezier(.2,.7,.2,1), width .9s cubic-bezier(.2,.7,.2,1); }
.wbar__solid { left: 0; width: 100%; background: var(--green-deep); border-radius: 6px 0 0 6px; }
.wbar__stripe { left: 100%; width: 0; background: repeating-linear-gradient(90deg, #7FC7A2 0 4px, #B6DFC8 4px 7px); }
.wbar__hatch { left: 100%; right: 0; background: repeating-linear-gradient(135deg, #CDEBD9 0 3px, #EAF6EF 3px 6px); border: 1px dashed #8FCFAB; border-left: 0; border-radius: 0 6px 6px 0; }
.wbar.is-on .wbar__solid { width: var(--to); }
.wbar.is-on .wbar__stripe { left: var(--from); width: calc(var(--to) - var(--from)); }
.wbar.is-on .wbar__hatch { left: var(--from); }
.wbar__gap { font-size: 13px; font-weight: 800; color: var(--green-deep); margin-top: 6px; }
.wbar--slim { margin-top: 8px; }
.wbar--slim .wbar__usual { height: 5px; border-radius: 3px; margin-bottom: 3px; }
.wbar--slim .wbar__track { height: 5px; border-radius: 3px; }
.wbar--slim .wbar__hatch { border: 0; }
@media (prefers-reduced-motion: reduce) { .wbar__track > span { transition: none; } }

/* Calendar strip */
/* No horizontal scrollbar: app.js trims the strip to fit (fitStrip) and counts the rest on the buttons. */
.wstrip { display: flex; align-items: flex-end; gap: 6px; overflow: hidden; padding: 16px 6px 10px; margin-top: 18px; }
.wstrip--scroll { overflow-x: auto; }
.wstrip--stack { flex-wrap: wrap; row-gap: 8px; }
.wstrip--stack .wstrip__more { order: 2; }
.wstrip--stack .wstrip__more[data-side="after"] { margin-left: auto; }
.wstrip--all { flex-wrap: wrap; row-gap: 18px; }
.wstrip--all .wring { flex-wrap: wrap; }
.wstrip--tight { gap: 3px; }
.wstrip--tight .wday { width: 32px; height: 46px; border-radius: 8px; }
.wstrip--tight .wday__n { font-size: 14px; }
.wstrip--tight .wday__dow { font-size: 8px; }
.wstrip--tight .wday__tag { font-size: 6.5px; }
.wstrip--tight .wring { gap: 5px; padding: 4px; }
.wstrip--tight { gap: 5px; }
.wstrip--tight .wday--inset { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--navy); }
.wday { position: relative; flex: 0 0 auto; width: 40px; height: 52px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.wday__dow { font-size: 9px; font-weight: 800; letter-spacing: .06em; opacity: .85; }
.wday__n { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1; }
.wday__tag { font-size: 7.5px; font-weight: 800; letter-spacing: .06em; }
.wday--green { background: var(--green); color: #fff; }
/* Inset days stand out from holidays: deeper green, white ring then navy ring, ✓ in the corner. */
.wday--inset { background: var(--green-deep); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); z-index: 1; }
.wday--inset .wday__n { font-weight: 800; }
/* ✓ at the bottom corner: the top is where "BOOK THESE" and the after-school marker sit. */
.wday--inset::after { content: "\2713"; position: absolute; bottom: -6px; right: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 9px; font-weight: 800; line-height: 14px; text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.wday--mini.wday--inset { box-shadow: 0 0 0 1px #fff, 0 0 0 2.5px var(--navy); }
.wday--mini.wday--inset::after { display: none; }
.wday--term { background: var(--amber); color: #3B2604; }
.wday--school { background: var(--grey-day); color: var(--muted); }
.wday__marker { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; }
.wring { position: relative; flex: 0 0 auto; display: inline-flex; gap: 6px; padding: 5px; border: 2px solid var(--navy); border-radius: 13px; background: #F2F6FA; }
.wring__label { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.wstrip__more { flex: 0 0 auto; align-self: center; font-size: 11px; font-weight: 700; color: var(--faint); padding: 0 4px; }
.wstrip--mini { padding-top: 6px; margin-top: 12px; gap: 3px; }
.wday--mini { width: 13px; height: 18px; border-radius: 4px; }
.wring--mini { gap: 3px; padding: 2px; border-width: 1.5px; border-radius: 7px; }
.wdates { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 8px; font-size: 14.5px; font-weight: 700; }
.wdates__book, .wdates__marker { display: inline-flex; align-items: center; gap: 7px; }
.wdates__ring { width: 14px; height: 10px; border: 2px solid var(--navy); border-radius: 4px; background: #F2F6FA; }
.wdates__marker { font-weight: 600; color: var(--muted); }
.wdates__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.wcard .permission-note { margin-top: 10px; }

/* The tactic */
.wtactic { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #F7F1E4; border: 1px solid #ECE2CD; }
.wtactic__label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: #8A6E33; }
.wtactic__line { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 3px; }

/* Trip-type groups and operator cards */
.illo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: #F3ECDE; }
.illo svg { display: block; }
.wgroups { display: grid; gap: 12px; margin-top: 16px; }
.wgroup { padding: 14px; border-radius: 16px; background: #FBF7EE; border: 1px solid var(--line); }
.wgroup__row { display: flex; align-items: center; gap: 12px; }
.wgroup__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wgroup__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.wgroup__sub { font-size: 13px; color: var(--muted); }
.wgroup__label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.wgroup__row + .wgroup__label { margin-top: 14px; }
.wgroup__ops { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
/* Cards may shrink below their content (grid items default to min-width: auto, which let a nowrap pill
   push out of the card); the head wraps, and a pill is never wider than its card. */
.wop { display: flex; flex-direction: column; min-width: 0; padding: 11px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); }
.wop__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 8px; }
.wop__name { min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.wop .wpill--text { flex: 1 1 100%; text-align: left; border-radius: 10px; padding: 5px 9px; }
.wgroup__row { flex-wrap: wrap; }
.wpill { max-width: 100%; overflow-wrap: anywhere; }
/* Operators priced for a different trip: one line under the groups, not a card each */
.wnotpriced { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #EDF2F8; border: 1px solid #D3DFEC; font-size: 13px; line-height: 1.5; color: #2E4A68; }
.wnotpriced__label { font-weight: 800; color: var(--navy); }
.wop__detail { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 6px; }
.wop__see { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.wop__see:hover { text-decoration: underline; }
.wop__links { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.wop__links .wop__see { padding-top: 0; }
.wop__nolink { margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--faint); line-height: 1.4; }
.wpill { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--green-tint); color: var(--green-deep); font-size: 13px; font-weight: 800; white-space: nowrap; }
.wpill--text { background: #EDF2F8; color: var(--navy); white-space: normal; text-align: right; }
.wgroup--single .wgroup__row { flex-wrap: wrap; }
.wgroup--single .wgroup__text { flex-basis: 160px; }
.wgroup--single .wpill--text { flex: 1 1 100%; text-align: left; border-radius: 10px; padding: 6px 10px; }
.wgroup--single .wop__see { display: inline-block; }
.wop__aff { font-size: 11px; color: var(--faint); margin-top: 2px; }
.wop__caveat { font-size: 12px; color: var(--faint); line-height: 1.4; margin-top: 5px; }
.wair .wop__caveat { margin-top: 4px; }
/* Flights checked at a few airports: one line, not a card per airport */
.wair { margin-top: 10px; }
.wair__line { font-size: 14px; font-weight: 700; color: var(--ink); }
.wair__else { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.wair .wop__see { display: inline-block; }
.wop--air { grid-column: 1 / -1; }
button.wstrip__more { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 5px 10px; font: 700 12px var(--font-body); color: var(--navy); cursor: pointer; white-space: nowrap; }
button.wstrip__more:hover { border-color: var(--navy-soft); }

/* "Also for these dates" (the other trip type) */
.walso { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #F7F4EC; border: 1px dashed #DCD2BC; }
.walso__label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.walso__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.walso__row .wgroup__text { flex-basis: 160px; }
.walso__row .wpill--text { flex: 1 1 100%; text-align: left; border-radius: 10px; padding: 6px 10px; }
.walso__name { font-weight: 700; font-size: 14px; }
.walso__line { font-size: 12.5px; color: var(--muted); }
.walso__switch { margin-top: 10px; border: 0; background: none; padding: 0; font: 700 13.5px var(--font-body); color: var(--navy); cursor: pointer; }
.walso__switch:hover { text-decoration: underline; }

/* Actions */
.wactions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 20px; }
.wbtn-search { border: 0; border-radius: 12px; background: var(--navy); color: #fff; padding: 13px 20px; font: 700 15px var(--font-body); cursor: pointer; }
.wbtn-search:hover { background: #16304D; }
.wactions__aff { font-size: 11.5px; color: var(--faint); margin-top: 5px; }
.wactions__links { display: flex; gap: 6px; flex-wrap: wrap; }
.wactions__links button { border: 1px solid var(--line-2); background: var(--card); border-radius: 10px; padding: 8px 12px; font: 600 13.5px var(--font-body); color: var(--ink); cursor: pointer; }
.wactions__links button:hover { border-color: var(--green-border); }
.wactions__note { font-size: 12px; color: var(--faint); margin-top: 8px; text-align: right; }
.wless { display: block; margin: 16px auto 0; border: 0; background: none; font: 700 14px var(--font-body); color: var(--navy); cursor: pointer; }

/* "Also worth it" card */
.wcard--secondary { padding: 20px; }
.wsec__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wsec__tag { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.wsec__tag--cross { color: var(--navy); }
.wsec__lead { font-weight: 700; font-size: 15px; margin-top: 10px; }
.wsec__booking { font-size: 14px; font-weight: 700; margin-top: 6px; }
.wsec__expand { width: 100%; margin-top: 14px; padding: 11px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font: 700 14px var(--font-body); color: var(--navy); cursor: pointer; }

/* "More wins" ranked list */
.wmore__label, .wother__label { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin: 26px 0 10px; }
.wmore { display: grid; gap: 10px; }
.wrow { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.wrow__head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wrow__rank { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--green-tint); color: var(--green-deep); font-family: var(--font-display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wrow__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wrow__name { font-weight: 700; font-size: 15px; }
.wrow__booking { font-size: 13px; color: var(--muted); }
.wrow__head-fig { flex: 0 0 auto; font-weight: 800; font-size: 14.5px; color: var(--green-deep); text-align: right; max-width: 40%; }
.wrow__chev { flex: 0 0 auto; color: var(--muted); transition: transform .2s; }
.wrow.is-open .wrow__chev { transform: rotate(180deg); }
.wrow__full { padding: 0 10px 10px; }
.wrow__full .wcard { box-shadow: none; }

/* Zero wins */
.wzero { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.wzero__title { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.wzero p { margin: 4px 0 0; color: var(--ink-soft); }
.wzero__parasol { position: relative; flex: 0 0 auto; width: 36px; height: 34px; }
.wzero__parasol span:first-child { position: absolute; left: 0; top: 0; width: 36px; height: 18px; border-radius: 36px 36px 0 0; background: repeating-linear-gradient(90deg, #C9C0AC 0 9px, #FBF7EE 9px 18px); }
.wzero__parasol span:last-child { position: absolute; left: 17px; top: 16px; width: 2px; height: 18px; background: var(--faint); }

/* Honesty: one "doesn't help" box, book early, footnote */
.whonest { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .whonest { grid-template-columns: 1fr 1fr; align-items: start; } }
.wnosave { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.wnosave__title { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.wnosave ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.wnosave li + li { margin-top: 4px; }
.whonest__side .book-when { margin-top: 0; }
.wfoot { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.wfoot a { color: var(--green-deep); font-weight: 700; }

/* Other windows (no saving found) */
.wother { display: grid; gap: 6px; }
.wother__row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.55); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.wother__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grey-day-line); }
.wother__name { flex: 1 1 auto; font-weight: 700; color: var(--ink-soft); }
.wother__note { font-size: 12.5px; color: var(--faint); margin-top: 8px; }
.wres .past-windows { margin-top: 20px; }
.io-copy-note { font-size: 12.5px; color: var(--muted); margin: -10px 0 14px; }

@media (max-width: 600px) {
  .wcard { padding: 18px 16px; }
  .wcard--secondary { padding: 16px; }
  .wres__header { margin-bottom: 16px; }
  .wactions { flex-direction: column; align-items: stretch; }
  .wbtn-search { width: 100%; }
  .wactions__aff, .wactions__note { text-align: center; }
  .wgroup__ops { grid-template-columns: 1fr; }
  .wrow__head-fig { font-size: 13px; }
}

/* =========================================================================
   DATE INPUT (Stage 3b): entry routes, council search, the inset-day
   calendar, paste and review. From the Date Input design (D1–D4).
   Day colours keep their meaning: green = authorised (holiday, weekend,
   inset with the INSET label), grey = school day.
   ========================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.di { padding-bottom: 36px; }
.di-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.di-step { font-size: 12px; font-weight: 700; color: var(--faint); }
.di h1 { margin-top: 10px; }
.di h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin: 0; }
.di-sub { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 4px 0 0; }
.di-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--green-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }

/* Children */
.di-children { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.di-child { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font: inherit; text-align: left; }
.di-child.is-on { border: 2px solid var(--green); }
.di-child__name { font-weight: 700; font-size: 14px; color: var(--ink); }
.di-child__src { font-size: 11.5px; color: var(--muted); }
.di-name { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.di-name input { font: inherit; font-weight: 600; color: var(--ink); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }

/* Entry: three routes */
.di-routes { display: grid; gap: 10px; margin-top: 4px; }
.di-route { display: flex; align-items: flex-start; gap: 13px; width: 100%; padding: 15px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.di-route:hover { border-color: var(--green-border); }
.di-route.is-rec { border: 2px solid var(--green); box-shadow: 0 14px 30px -20px rgba(31,157,107,.6); }
.di-route__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.di-route--council .di-route__icon { background: var(--green-tint); color: var(--green-deep); }
.di-route--usual .di-route__icon { background: #F3ECDE; color: #8A6E33; }
.di-route--paste .di-route__icon { background: #EDF2F8; color: var(--navy); }
.di-route__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.di-route__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.di-rec { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: var(--green-deep); color: #fff; font-family: var(--font-body); font-size: 9.5px; font-weight: 800; letter-spacing: .05em; }
.di-route__desc { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.di-route__time { font-size: 11px; font-weight: 700; color: var(--faint); margin-top: 6px; }
.di-route__chev { flex: 0 0 auto; margin-top: 12px; color: #B3AB98; }
.di-entry-foot { display: grid; gap: 12px; margin-top: 18px; }
.di-skel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; border: 1.5px dashed #D8CDB4; background: rgba(255,255,255,.5); font-size: 12.5px; font-weight: 600; color: #7A7160; text-align: center; }
.di-skel__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; opacity: .55; }
.di-skel__cell { height: 14px; border-radius: 4px; background: #E4DDCD; }
.di-skel__cell.is-hol { background: #B9DCC6; }
.di-addchild { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: #3C4841; text-align: left; margin-top: 16px; }
.di-entry-foot .di-addchild { margin-top: 0; }
.di-addchild__plus { font-size: 18px; font-weight: 700; color: var(--green-deep); line-height: 1; }
.di-addchild > span:nth-child(2) { flex: 1 1 auto; }
.di-addchild__opt { font-size: 11.5px; color: var(--faint); }
@media (min-width: 900px) {
  .di-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .di-route { flex-direction: column; padding: 22px; border-radius: 20px; }
  .di-route__title { font-size: 19px; margin-top: 4px; }
  .di-route__desc { font-size: 14px; }
  .di-route__chev { display: none; }
  .di-entry-foot { grid-template-columns: minmax(0, 1fr) 340px; }
  .di-skel { flex-direction: row; text-align: left; font-size: 14px; }
  .di-skel__grid { width: auto; grid-template-columns: repeat(7, 14px); gap: 3px; }
}

/* Council search */
.di-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 14px; }
.di-council { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line-2); color: var(--faint); font: inherit; text-align: left; }
.di-council:focus-within { border-color: var(--green); }
.di-council input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.di-council.is-picked { border-color: var(--green); cursor: pointer; }
.di-council__name { flex: 1 1 auto; font-size: 15px; font-weight: 700; color: var(--ink); }
.di-council__tick { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.di-council__change { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.di-council.is-picked:has(.di-council__change) { border-color: var(--line-2); }
.di-results { display: grid; gap: 4px; margin-top: 6px; }
.di-result { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.di-result:hover, .di-result:focus { border-color: var(--green); }
.di-results__none { font-size: 13px; color: var(--muted); padding: 6px 2px; }
.di-note { font-size: 12.5px; line-height: 1.45; color: #6E6552; margin: 8px 0 0; }
.di-note--quiet { color: #7A7160; }
.di-note--flag { padding: 9px 12px; border-radius: 12px; background: var(--amber-tint); border: 1px solid var(--amber-border); color: var(--amber-deep); font-weight: 600; }
.di-note--warn { padding: 9px 12px; border-radius: 12px; background: var(--amber-tint); border: 1px solid var(--amber-border); color: var(--amber-deep); font-weight: 600; margin-top: 10px; }
.di-note--strong { padding: 12px 14px; border-radius: 14px; background: #FDF1E7; border: 1.5px solid #E9B48F; color: #7A3E14; font-weight: 700; font-size: 13.5px; margin: 14px 0 0; }
.di-unavail { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.di-unavail p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.di-unavail__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.di-info { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #F3ECDE; border: 1px solid #E9DFCB; font-size: 13px; line-height: 1.45; color: #6E6552; }
.di-info__i { flex: 0 0 auto; font-weight: 800; color: #8A6E33; }
.di-info--paste { background: #EDF2F8; border-color: #D3DFEC; color: var(--navy); }

/* Years and the calendar */
.di-years { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); margin-top: 14px; }
.di-year { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: 700 13.5px var(--font-body); color: var(--muted); cursor: pointer; }
.di-year.is-on { background: var(--ink); color: #fff; }
.di-cal { margin-top: 18px; }
.di-cal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.di-count { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: #FBF1DD; color: var(--amber-deep); font-size: 12px; font-weight: 800; }
.di-count.is-ok { background: var(--green-tint); color: var(--green-deep); }
.di-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 11px; padding: 11px 13px; border-radius: 13px; background: #EDF2F8; border: 1px solid #D3DFEC; font-size: 12.5px; line-height: 1.5; color: #2E4A68; }
.di-tip svg { flex: 0 0 auto; margin-top: 2px; color: var(--navy); }
.di-tip strong { color: var(--navy); }
.di-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.di-chip { padding: 7px 11px; border-radius: 999px; background: var(--card); border: 1px solid #DFD6C4; color: #3C4841; font: 600 12.5px var(--font-body); cursor: pointer; }
.di-chip.is-done { background: var(--green-tint); border-color: var(--green-border); color: var(--green-deep); font-weight: 700; }
.di-chip.is-open { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.di-picker { margin-top: 9px; padding: 11px; border-radius: 15px; background: #FBF9F3; border: 1px solid #E7DDCB; box-shadow: 0 12px 26px -20px rgba(28,42,34,.5); display: grid; gap: 6px; max-width: 420px; }
.di-picker__title { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 2px 2px; }
.di-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); font: inherit; cursor: pointer; text-align: left; }
.di-pick span:first-child { font-size: 13px; font-weight: 700; color: var(--ink); }
.di-pick.is-on { background: var(--green-tint); border: 1.5px solid var(--green); }
.di-pick__day { font-size: 12px; font-weight: 600; color: var(--green-deep); }
.di-picker__foot { font-size: 11px; color: var(--faint); padding: 2px 2px 0; }
.di-key { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; font-size: 11.5px; font-weight: 600; color: #3C4841; }
.di-key span { display: inline-flex; align-items: center; gap: 6px; }
.di-key__sw { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 4px; font-style: normal; }
.di-key__sw--weekend { background: #D9EEDF; }
.di-key__sw--holiday { background: var(--green); }
.di-key__sw--inset { position: relative; width: 32px; height: 18px; margin: 0 3px; background: var(--green-deep); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--navy); color: #fff; font-size: 6.5px; font-weight: 800; letter-spacing: .04em; }
.di-key__sw--school { background: var(--grey-day); border: 1px solid var(--grey-day-line); }
.di-mchips { display: flex; gap: 4px; margin-top: 16px; position: sticky; top: 52px; z-index: 5; padding: 6px 0; background: var(--bg); }
.di-mchip { flex: 1 1 0; min-width: 0; padding: 6px 0 5px; border: 0; border-radius: 8px; background: #F0E8D8; color: #7A7160; font: 700 10.5px var(--font-body); cursor: pointer; }
.di-mchip:hover { background: var(--ink); color: #fff; }
.di-mchip__dot { display: block; width: 5px; height: 5px; border-radius: 50%; margin: 3px auto 0; }
.di-mchip__dot.is-on { background: var(--green); }
.di-months { display: grid; gap: 14px; margin-top: 10px; }
@media (min-width: 900px) { .di-months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.di-month { padding: 13px 12px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); scroll-margin-top: 110px; }
.di-month__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px; }
.di-month__head h3 { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 0; }
.di-month__head span { font-size: 11px; font-weight: 600; color: #3E7C5C; text-align: right; }
.di-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 5px; }
.di-grid--dow { margin-top: 9px; }
.di-grid--dow span { text-align: center; font-size: 10px; font-weight: 700; color: #B3AB98; }
.di-day { height: 42px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 12.5px var(--font-body); padding: 0; border: 0; }
.di-day--pad { background: none; }
.di-day--weekend { background: #D9EEDF; color: #3E7C5C; }
.di-day--holiday { background: var(--green); color: #fff; }
.di-day--school { background: var(--grey-day); color: #6E6857; border: 1px solid var(--grey-day-line); cursor: pointer; }
.di-day--school:hover { border-color: var(--green); }
/* Inset days are the strongest tile: deep green (holidays are mid-green), bold white date,
   a white then thick navy ring, the INSET label and a ✓ in the corner. Still the authorised family. */
.di-day--inset { position: relative; z-index: 1; background: var(--green-deep); color: #fff; font-weight: 800; box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--navy); cursor: pointer; }
.di-day--inset::after { content: "\2713"; position: absolute; top: -7px; right: -7px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.di-day--pop { animation: di-pop .32s cubic-bezier(.2,.9,.3,1.4); }
@keyframes di-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .di-day--pop { animation: none; } }
.di-day__tag { font-size: 7.5px; font-weight: 800; letter-spacing: .04em; line-height: 1; margin-top: 2px; }
.di-day:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.di-more { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.di-more summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.di-more h3 { font-size: 14px; margin: 14px 0 6px; }
.di-go { margin-top: 16px; }
.di-foot { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--faint); margin: 9px 0 0; }
@media (min-width: 900px) {
  .di-dates__side { max-width: 640px; }
  .di-go { max-width: 420px; margin-left: auto; margin-right: auto; display: flex; }
}

/* Paste and review */
.di-paste { margin-top: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.di-pasted { margin-top: 12px; max-height: 96px; overflow: hidden; position: relative; padding: 12px 13px; border-radius: 14px; background: var(--card); border: 1.5px solid #DFD6C4; }
.di-pasted pre { margin: 0; white-space: pre-wrap; font: 11px/1.6 ui-monospace, Menlo, Consolas, monospace; color: var(--muted-2); }
.di-pasted::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.di-found { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.di-found h2 { font-size: 17px; }
.di-found__tick { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.di-list-label { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: var(--faint); margin-top: 14px; }
.di-list { margin-top: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 2px 14px; }
.di-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; flex-wrap: wrap; }
.di-row + .di-row { border-top: 1px solid #F2ECDE; }
.di-row--empty { cursor: default; font-size: 13px; color: var(--muted); margin: 0; }
.di-row__sw { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: var(--green); }
.di-row__sw--inset { background: var(--green-deep); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--navy); }
.di-row__name { flex: 1 1 auto; font-size: 13.5px; font-weight: 600; color: #3C4841; }
.di-row__name--strong { font-weight: 700; color: var(--ink); }
.di-row__dates { font-size: 13px; font-weight: 700; color: var(--ink); }
.di-row__from { font-size: 11px; font-weight: 600; color: var(--faint); }
.di-row.is-editing { cursor: default; }
.di-row__edit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.di-row__edit input { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 8px; }
.di-read { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 11px 13px; border-radius: 13px; background: #EDF2F8; border: 1px solid #D3DFEC; font-size: 12.5px; line-height: 1.45; color: #2E4A68; }
.di-read > span:first-child { font-weight: 800; color: var(--navy); }
.di-read .di-link { color: var(--navy); }
.wres__year--source { letter-spacing: .02em; color: var(--muted); font-size: 12.5px; }

/* =========================================================================
   Council term-date pages (/term-dates/<slug>/ and /term-dates/), generated by
   scripts/build-council-pages.js. Holiday green, term-time sand, navy for
   today, bank holidays and info notes. Inset tiles match the app (deep green,
   navy ring, tick).
   ========================================================================= */
.tdp { max-width: 1040px; }
.tdp h2 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.02em; margin: 0; }
.tdp-crumbs { font-size: 12px; font-weight: 600; color: var(--faint); }
.tdp-crumbs a { color: var(--muted); text-decoration: none; }
.tdp-crumbs a:hover { color: var(--green-deep); text-decoration: underline; }
.tdp-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; margin-top: 6px; }
.tdp-head__text { flex: 1 1 auto; min-width: 0; }
.tdp h1 { font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); margin: 0; text-wrap: balance; }
.tdp-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; max-width: 64ch; }
.tdp-trust { display: inline-flex; align-items: flex-start; gap: 6px; margin: 9px 0 0; font-size: 12px; line-height: 1.45; font-weight: 600; color: #2C6A4C; background: var(--green-tint-2); border: 1px solid #CFE7DA; padding: 4px 11px; border-radius: 13px; }
.tdp-trust svg { flex: 0 0 auto; margin-top: 2px; color: var(--green-deep); }
.tdp-trust a { color: var(--green-deep); font-weight: 700; }
.tdp-scene { flex: 0 0 auto; width: 92px; aspect-ratio: 5 / 3; margin: 0; border-radius: 12px; overflow: hidden; }
.tdp-scene svg { display: block; width: 100%; height: 100%; }
@media (min-width: 760px) {
  .tdp h1 { font-size: 36px; }
  .tdp-head { gap: 28px; }
  .tdp-sub { font-size: 14.5px; }
  .tdp-scene { width: 230px; border-radius: 16px; }
}

.tdp-years { display: flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 12px; background: #F0E8D8; width: max-content; max-width: 100%; }
.tdp-year { padding: 6px 13px; border-radius: 9px; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tdp-year[aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); color: var(--ink); }
.tdp-year--soon { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; font-weight: 600; color: #A9A08A; cursor: default; }
.tdp-soon { font-size: 10px; font-weight: 700; background: #E7DDC9; color: #7A7160; padding: 2px 6px; border-radius: 999px; }
.tdp-strong { margin: 12px 0 0; padding: 11px 13px; border-radius: 12px; background: #EDF2F8; border: 1px solid #C3D4E6; font-size: 13.5px; line-height: 1.5; font-weight: 700; color: #2E4A68; }

.tdp-dates { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 15px 16px 14px; }
.tdp-dates__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tdp-dates h2 { font-weight: 700; font-size: 16px; letter-spacing: 0; }
.tdp-view { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #F3EEE3; }
.tdp-view button { padding: 5px 10px; border-radius: 8px; border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tdp-view button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.tdp-tl-wrap { overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -4px 0; padding: 0 4px 4px; }
.tdp-tl-wrap[hidden], .tdp-swipe[hidden], .tdp-months[hidden] { display: none; }
.tdp-tl { position: relative; height: 104px; min-width: 920px; }
@media (min-width: 760px) { .tdp-tl { min-width: 0; } .tdp-swipe { display: none; } }
.tdp-tl__track { position: absolute; left: 0; right: 0; top: 20px; height: 28px; border-radius: 9px; background: #F3EEE3; border: 1px solid #E7DFCD; }
.tdp-tl__block { position: absolute; top: 20px; height: 28px; min-width: 5px; border-radius: 7px; background: var(--green); cursor: pointer; transition: box-shadow .15s; }
.tdp-tl__block.is-on { box-shadow: 0 0 0 3px var(--navy); z-index: 2; }
.tdp-tl__bank { position: absolute; top: 8px; width: 7px; height: 7px; margin-left: -3.5px; background: var(--navy); transform: rotate(45deg); border-radius: 1px; }
.tdp-tl__month { position: absolute; top: 52px; scroll-snap-align: start; padding-left: 3px; border-left: 1px solid #DCD3BF; height: 12px; line-height: 12px; font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--faint); }
.tdp-tl__label { position: absolute; top: 69px; white-space: nowrap; transform: translateX(-50%); text-align: center; }
.tdp-tl__label--right { right: 0; transform: none; text-align: right; }
.tdp-tl__label b { display: block; font-size: 11px; font-weight: 800; color: var(--ink); }
.tdp-tl__label span { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted-2); margin-top: 1px; }
.tdp-tl__today { position: absolute; top: 14px; width: 2px; height: 38px; margin-left: -1px; background: var(--navy); border-radius: 1px; z-index: 3; }
.tdp-tl__today span { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--navy); padding: 1px 6px; border-radius: 999px; }
.tdp-tl__today[hidden] { display: none; }
.tdp-swipe { font-size: 11px; font-weight: 600; color: var(--faint); margin: 2px 0 0; }

.tdp-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 14px; margin-top: 14px; }
.tdp-mo__name { font-size: 11.5px; font-weight: 800; color: #3C4841; margin-bottom: 5px; }
.tdp-mo__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tdp-mo__dow { font-size: 8px; font-weight: 700; color: #B3AB98; text-align: center; }
.tdp-mo__d { height: 17px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 700; }
.tdp-mo__d--hol { background: var(--green); color: #fff; }
.tdp-mo__d--wknd { background: #F3EEE3; color: #A9A08A; }
.tdp-mo__d--term { background: #fff; color: #575245; box-shadow: inset 0 0 0 1px var(--line); }
.tdp-mo__d--bank { text-decoration: underline; text-decoration-color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.tdp-mo__d--today { outline: 2px solid var(--navy); outline-offset: -1px; }

.tdp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tdp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tdp-legend i { display: block; }
.tdp-legend__hol { width: 12px; height: 12px; border-radius: 3px; background: var(--green); }
.tdp-legend__term { width: 12px; height: 12px; border-radius: 3px; background: #F3EEE3; border: 1px solid #E1D8C4; }
.tdp-legend__bank { width: 7px; height: 7px; background: var(--navy); transform: rotate(45deg); margin: 0 2px; }
.tdp-legend__today { width: 2px; height: 12px; background: var(--navy); margin: 0 4px; }

.tdp-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); column-gap: 26px; margin-top: 10px; border-top: 1px solid #F2ECDE; padding-top: 4px; }
.tdp-row { display: flex; gap: 11px; align-items: flex-start; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; border-bottom: 1px solid #F2ECDE; transition: background .15s; }
.tdp-row.is-on { background: var(--green-tint-2); box-shadow: inset 0 0 0 1.5px #9FD3B6; }
.tdp-chip { flex: 0 0 auto; width: 58px; border-radius: 9px; overflow: hidden; text-align: center; background: #fff; border: 1px solid #9FD3B6; }
.tdp-chip__top { display: block; padding: 2px 0; font-size: 8.5px; font-weight: 800; letter-spacing: .05em; background: var(--green); color: #fff; }
.tdp-chip--edge { border-color: var(--grey-day-line); }
.tdp-chip--edge .tdp-chip__top { background: var(--grey-day); color: #575245; }
.tdp-chip__day { display: block; font-family: var(--font-display); font-weight: 800; font-size: 12px; line-height: 1; color: var(--ink); padding: 4px 0 5px; }
.tdp-row__body { flex: 1 1 auto; min-width: 0; }
.tdp-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tdp-row__label { font-size: 12px; font-weight: 700; color: #7A7160; }
.tdp-row__dur { font-size: 10.5px; font-weight: 700; color: #2C6A4C; background: var(--green-tint-2); padding: 2px 7px; border-radius: 999px; }
.tdp-row__date { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-top: 1px; }
.tdp-row__note { font-size: 11.5px; line-height: 1.4; font-weight: 500; color: var(--muted-2); margin-top: 2px; }
.tdp-flag { display: flex; gap: 9px; align-items: flex-start; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #EDF2F8; border: 1px solid #C3D4E6; font-size: 12.5px; line-height: 1.5; font-weight: 600; color: #2E4A68; }
.tdp-flag__i { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.tdp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tdp-btn { padding: 10px 14px; border-radius: 12px; border: 1.5px solid #DFD6C4; background: transparent; color: #3C4841; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tdp-btn--navy { border-color: var(--navy); background: var(--navy); color: #fff; }

.tdp-hook { margin-top: 28px; }
.tdp-hook h2, .tdp-faq h2 { font-weight: 800; font-size: 21px; }
.tdp-lede { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; max-width: 66ch; }
.tdp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 14px; }
.tdp-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 13px; }
.tdp-card__top { display: flex; align-items: center; gap: 10px; }
.tdp-card__top > :first-child { flex: 0 0 auto; }
.tdp-card__kicker { font-size: 11px; font-weight: 700; color: var(--faint); }
.tdp-card__fig { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; color: var(--green-deep); }
.tdp-card__strip { display: flex; gap: 4px; margin-top: 12px; }
.tdp-card__day { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tdp-tile { position: relative; width: 100%; height: 36px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: var(--green); color: #fff; }
.tdp-tile span { font-size: 7.5px; font-weight: 600; opacity: .85; }
.tdp-tile b { font-size: 11px; font-weight: 700; line-height: 1; }
.tdp-tile--s, .tdp-tile--w { background: var(--grey-day); color: #575245; border: 1px solid var(--grey-day-line); }
.tdp-tile--i { background: var(--green-deep); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px var(--navy); z-index: 1; }
.tdp-tile--i b { font-weight: 800; }
.tdp-tile--i::after { content: "\2713"; position: absolute; bottom: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 8px; font-weight: 800; line-height: 12px; text-align: center; box-shadow: 0 0 0 1.5px #fff; }
.tdp-tile__tag { font-size: 7px; font-weight: 800; letter-spacing: .03em; line-height: 1.15; text-align: center; min-height: 9px; color: var(--navy); }
.tdp-bar { margin-top: 11px; }
.tdp-bar__label { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: var(--faint); margin-top: 5px; }
.tdp-bar__label:first-child { margin-top: 0; }
.tdp-bar__label b { font-weight: 800; color: var(--green-deep); }
.tdp-bar__usual { height: 6px; border-radius: 3px; background: #D9644A; margin-top: 3px; }
.tdp-bar__yours { position: relative; height: 6px; margin-top: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, #B6DFC8 0 3px, transparent 3px 6px); }
.tdp-bar__yours span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--green-deep); }
.tdp-card__line { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 11px 0 0; }
.tdp-foot { font-size: 12px; color: #7A7160; margin: 10px 0 0; }

.tdp-cta { margin-top: 14px; padding: 16px; border-radius: 20px; background: linear-gradient(160deg, #EAF6EF, #DBEEE1); border: 1px solid var(--green-border); }
.tdp-cta .btn { line-height: 1.3; text-align: center; }
.tdp-cta p { text-align: center; font-size: 12px; font-weight: 600; color: #2C6A4C; margin: 8px 0 0; }

.tdp-nocal { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.tdp-nocal__head { display: flex; gap: 12px; align-items: flex-start; }
.tdp-nocal__icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px; background: #EDF2F8; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.tdp-nocal h2 { font-weight: 700; font-size: 17px; letter-spacing: 0; }
.tdp-nocal p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 5px 0 0; }
.tdp-nocal .btn { margin-top: 15px; }
.tdp-nocal .tdp-nocal__sub { text-align: center; font-size: 12px; color: #7A7160; margin-top: 8px; }

.tdp-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 26px; }
.tdp-box { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.tdp-box--sand { background: #F3ECDE; border-color: #E9DFCB; }
.tdp-box h2 { font-weight: 700; font-size: 17px; letter-spacing: 0; }
.tdp-box p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 8px 0 0; }
.tdp-box a { font-weight: 700; color: var(--green-deep); }

.tdp-faq { margin-top: 26px; }
.tdp-faq__list { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 2px 16px; }
.tdp-faq details { border-bottom: 1px solid #F2ECDE; padding: 13px 0; }
.tdp-faq details:last-child { border-bottom: 0; }
.tdp-faq summary { cursor: pointer; font-size: 14.5px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.tdp-faq summary::-webkit-details-marker { display: none; }
.tdp-faq summary::after { content: "\25BE"; color: var(--faint); flex: 0 0 auto; }
.tdp-faq details[open] summary::after { content: "\25B4"; }
.tdp-faq p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 7px 0 0; }

.tdp-nearby { margin-top: 22px; }
.tdp-nearby h2 { font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8A806C; }
.tdp-nearby div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.tdp-nearby a { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid #E7DDC9; font-size: 13px; font-weight: 600; color: #3C4841; text-decoration: none; }
.tdp-nearby a:hover { border-color: var(--green-border); color: var(--green-deep); }
.tdp-note { font-size: 12px; line-height: 1.5; color: #948B78; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* Index: A–Z by region with a search box */
.tdp-search { display: block; margin-top: 16px; }
.tdp-search input { width: 100%; max-width: 460px; padding: 13px 15px; border-radius: 14px; border: 1.5px solid #DFD6C4; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.tdp-search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.tdp-search__none { font-size: 14px; color: var(--muted); }
.tdp-region { margin-top: 24px; }
.tdp-region h2 { font-weight: 700; font-size: 18px; }
.tdp-region ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
.tdp-region li { font-size: 14.5px; }
.tdp-region li[hidden], .tdp-region[hidden] { display: none; }
.tdp-region a { color: var(--ink); font-weight: 600; text-decoration: none; }
.tdp-region a:hover { color: var(--green-deep); text-decoration: underline; }
.tdp-index__nocal { display: inline-block; margin-left: 7px; font-size: 10.5px; font-weight: 700; color: #7A7160; background: #F0E8D8; padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }

@media print {
  .site-header, .site-footer, .tdp-years, .tdp-view, .tdp-actions, .tdp-hook, .tdp-cta, .tdp-help, .tdp-faq, .tdp-nearby, .tdp-scene, .tdp-swipe, .tdp-crumbs { display: none !important; }
  .tdp-dates { border: 0; padding: 0; }
  .tdp-tl { min-width: 0; }
  body { background: #fff; }
}
.wres__year--source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.wres__year--source a:hover { color: var(--green-deep); }

.footer-contact { font-size: 13px; color: #9DA79E; margin: 8px 0 0; }
.footer-contact a { color: #C7D0C7; }

/* =========================================================================
   Blog posts and findings (/blog/<slug>/, /research/<slug>/), built by
   scripts/build-blog.js. Findings components: stat, heatmap, bars, next,
   saving, picker, method. Holiday green, inset = deep green + navy ring,
   school day grey. Works without JS (numbers as text and tables).
   ========================================================================= */
.fd-post { max-width: 780px; }
.fd-post h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); margin: 32px 0 0; }
.fd-post--findings > article > p, .fd-post--findings > article > ul { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 8px 0 0; }
.fd-post a { color: var(--green-deep); font-weight: 600; }
.fd-hero { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.fd-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: 27px; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); margin: 12px 0 0; text-wrap: balance; }
.fd-hero__illo { flex: 0 0 auto; width: 84px; aspect-ratio: 5 / 3; margin: 0; border-radius: 12px; overflow: hidden; }
.fd-hero__illo svg { display: block; width: 100%; height: 100%; }
.fd-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #E7EDF2; color: #3A5A72; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.fd-post .fd-lede { font-size: 16px; line-height: 1.6; color: #4C574F; margin: 12px 0 0; text-wrap: pretty; }
.fd-meta { font-size: 12px; font-weight: 600; color: var(--faint); margin: 12px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
@media (min-width: 720px) {
  .fd-hero h1 { font-size: 38px; }
  .fd-hero__illo { width: 140px; border-radius: 14px; }
  .fd-post .fd-lede { font-size: 17px; }
  .fd-post h2 { font-size: 22px; }
  .fd-post--findings > article > p { font-size: 16.5px; }
}

.fd { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; scroll-margin-top: 16px; }
.fd.is-target { box-shadow: 0 0 0 3px var(--navy-soft); }
@media (min-width: 720px) { .fd { padding: 20px 22px; } }
.fd h3 { margin: 0; }
.fd-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--ink); }
.fd-sub { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 3px 0 0; }
.fd-source { font-size: 11.5px; line-height: 1.5; color: #7A7160; margin: 14px 0 0; padding-top: 11px; border-top: 1px solid #F2ECDE; }
.fd-actions { display: flex; justify-content: flex-end; gap: 14px; margin: 7px 2px 0; }
.fd-actions a { font-size: 11.5px; font-weight: 700; color: var(--navy) !important; text-decoration: none; }
.fd-actions a:hover { text-decoration: underline; }
.fd-numbers { margin-top: 12px; }
.fd-numbers summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--navy); }
.fd-numbers .io-table { margin-top: 8px; font-size: 12.5px; }
.fd-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 11px 0 0; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.fd-key span { display: inline-flex; align-items: center; gap: 6px; }
.fd-key i { display: block; width: 11px; height: 11px; border-radius: 3px; }
.fd-key__on { background: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--navy); border-radius: 50% !important; }
.fd-key__off { background: #F6F1E6; box-shadow: inset 0 0 0 1px #EAE2D2; }
.fd-key__hol { background: var(--green); }
.fd-key__school { background: #E9E3D6; }
.fd-key__scale { width: 70px !important; background: linear-gradient(90deg, #CDEBDB, #0B4A31); box-shadow: inset 0 0 0 1.5px var(--navy); }
.fd--stat .fd-key__off { background: var(--grey-day); box-shadow: none; border-radius: 50%; }

/* 1 · big stat */
.fd-stat { display: flex; flex-wrap: wrap; gap: 20px 30px; align-items: center; }
.fd-stat__text { flex: 1 1 280px; min-width: 0; }
.fd-stat__viz { flex: 1 1 300px; min-width: 0; }
.fd-stat__headline { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.fd-stat__big { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 0; }
.fd-stat__big b { font-family: var(--font-display); font-weight: 800; font-size: 58px; line-height: .9; letter-spacing: -.045em; color: var(--green-deep); }
.fd-stat__big span { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--muted); }
.fd-stat__sub { font-size: 13.5px; line-height: 1.55; color: #4C574F; margin: 8px 0 0; text-wrap: pretty; }
.fd-dots { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.fd-dots i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--grey-day); transition: background-color .35s ease, box-shadow .35s ease; }
.fd-dots i.on { background: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--navy); }
@media (min-width: 720px) {
  .fd-stat__headline { font-size: 23px; }
  .fd-stat__big b { font-size: 84px; }
  .fd-stat__big span { font-size: 30px; }
  .fd-dots { grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .fd-dots i { transition: none; } }

/* 2 · year heatmap */
.fd-read { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: #F7F3EA; border: 1px solid var(--line); min-height: 40px; }
.fd-read b { font-size: 13.5px; color: var(--ink); }
.fd-read span:last-child { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fd-read__sw { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 4px; background: #E9E3D6; }
.fd-read__sw.is-inset { box-shadow: inset 0 0 0 1.5px var(--navy); }
.fd-read__sw.is-hol { background: var(--green); }
.fd-heat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; margin-top: 12px; }
.fd-heat__m p { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #3C4841; margin: 0 0 4px; }
.fd-heat__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.fd-heat__dow { display: none; font-size: 8px; font-weight: 700; color: #B3AB98; text-align: center; line-height: 12px; }
.fd-heat__d { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 3px; font-size: 0; font-weight: 700; line-height: 1; cursor: pointer; background: #E9E3D6; color: #7C776B; }
.fd-heat__d.is-hol { background: var(--green); color: #fff; }
.fd-heat__d.is-off { background: #F6F1E6; color: #B8AF9A; box-shadow: inset 0 0 0 1px #EAE2D2; }
.fd-heat__d.is-inset { color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--navy); }
.fd-heat__d.is-dark { color: #fff; }
.fd-heat__d.is-sel { outline: 2.5px solid var(--navy); outline-offset: 1px; position: relative; z-index: 2; }
@media (min-width: 640px) {
  .fd-heat { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
  .fd-heat__dow { display: block; }
  .fd-heat__d { font-size: 8.5px; border-radius: 4px; }
}

/* 3 · top inset days */
.fd-bars { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 5px; }
.fd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; padding: 7px 9px; border-radius: 11px; border: 0; background: transparent; cursor: pointer; font: inherit; text-align: left; }
.fd-bar[aria-pressed="true"] { background: #EDF2F8; box-shadow: inset 0 0 0 1.5px var(--navy); }
.fd-bar__label { flex: 1 1 100%; display: flex; align-items: baseline; gap: 8px; }
.fd-bar__label b { font-size: 13px; color: var(--ink); white-space: nowrap; }
.fd-bar__label span { font-size: 11px; font-weight: 600; color: #7A7160; white-space: nowrap; }
.fd-bar__track { flex: 1 1 auto; min-width: 60px; height: 16px; border-radius: 8px; background: #F3EEE3; overflow: hidden; display: block; }
.fd-bar__track span { display: block; height: 100%; border-radius: 8px; background: var(--green-deep); }
.fd-bar[aria-pressed="true"] .fd-bar__track span { box-shadow: inset 0 0 0 1.5px var(--navy); }
.fd-bar__value { flex: 0 0 auto; width: 72px; text-align: right; font-size: 12.5px; font-weight: 800; color: var(--green-deep); white-space: nowrap; }
.fd-hint { font-size: 11.5px; color: var(--faint); margin: 9px 0 0; }
html:not(.fd-js) .fd-hint { display: none; }
@media (min-width: 640px) { .fd-bar { flex-wrap: nowrap; gap: 12px; } .fd-bar__label { flex: 0 0 200px; gap: 9px; } }

/* 4 · next to a holiday */
.fd--next { background: #F7F3EA; }
.fd-next { list-style: none; padding: 0; margin: 13px 0 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .fd-next { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.fd-next li { padding: 12px 12px 11px; border-radius: 15px; background: #fff; border: 1px solid var(--line); }
.fd-next__name { display: block; font-size: 12px; font-weight: 800; color: #3C4841; }
.fd-next__n { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #7A7160; }
.fd-next__n b { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.03em; color: var(--green-deep); }
.fd-next__bar { display: block; height: 5px; border-radius: 3px; background: #F3EEE3; margin-top: 7px; overflow: hidden; }
.fd-next__bar span { display: block; height: 100%; background: var(--green-deep); }
.fd-next__strip { display: flex; align-items: flex-start; gap: 3px; margin-top: 11px; }
.fd-tile { flex: 0 0 auto; width: 28px; text-align: center; }
.fd-tile b { display: flex; align-items: center; justify-content: center; height: 28px; border-radius: 6px; font-size: 10px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--navy); }
.fd-tile span, .fd-next__hol span { display: block; font-size: 8.5px; font-weight: 700; color: #7A7160; margin-top: 3px; white-space: nowrap; }
.fd-next__hol { flex: 1 1 auto; min-width: 18px; text-align: center; }
.fd-next__hol i { display: block; height: 28px; border-radius: 6px; background: var(--green); }
.fd-next__hol span { color: #2C6A4C; white-space: normal; line-height: 1.15; }

/* 5 · saving */
.fd-saves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 26px; }
.fd-save__top { display: flex; align-items: center; gap: 11px; }
.fd-save__top > :first-child { flex: 0 0 auto; }
.fd-save__fig { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.025em; color: var(--green-deep); margin: 0; }
.fd-save__cap { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 3px 0 0; }
.fd-save__label { font-size: 11px; font-weight: 700; color: #7A7160; margin: 12px 0 4px; }
.fd-save__usual { display: block; height: 10px; border-radius: 5px; background: #D9644A; }
.fd-save__ours { position: relative; display: block; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, #B6DFC8 0 4px, transparent 4px 8px); margin-bottom: 22px; }
.fd-save__ours > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--green-deep); }
.fd-save__ours em { position: absolute; top: 14px; right: 0; text-align: center; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--green-deep); white-space: nowrap; }

/* 6 · picker */
.fd-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.fd-chips button { padding: 8px 13px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; background: #fff; color: #3C4841; border: 1.5px solid #DFD6C4; }
.fd-chips button[aria-checked="true"] { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
html:not(.fd-js) .fd-chips { display: none; }
.fd-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 14px; }
.fd-pick > div { padding: 15px 16px; border-radius: 16px; border: 1px solid var(--line); }
.fd-pick__share { background: #F7F3EA; }
.fd-pick__share p { margin: 0; }
.fd-pick__share p:first-child { display: flex; align-items: baseline; gap: 8px; }
.fd-pick__share b { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: .9; letter-spacing: -.04em; color: var(--green-deep); }
.fd-pick__share p:first-child span { font-size: 13px; font-weight: 700; color: #3C4841; }
.fd-pick .fd-pick__count { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.fd-pick .fd-pick__next { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--green-deep); background: var(--green-tint-2); border: 1px solid #CFE7DA; padding: 4px 10px; border-radius: 999px; }
.fd-pick__next i { display: block; width: 9px; height: 9px; border-radius: 3px; background: var(--green); }
.fd-pick__found { background: #fff; }
.fd-pick__kicker { font-size: 10px; font-weight: 800; letter-spacing: .09em; color: #8A806C; margin: 0; }
.fd-pick__fig { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.05; letter-spacing: -.02em; color: var(--green-deep); margin: 6px 0 9px; }
.fd-pick__found .fd-save__ours { margin: 3px 0 0; height: 6px; }
.fd-pick__found .fd-save__usual { height: 6px; }
.fd-pick__line { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin: 9px 0 0; }
.fd-pick__none { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--muted); margin: 8px 0 0; }
.fd-post .fd-cta { margin-top: 14px; color: #fff; }
.fd-alt { text-align: center; margin: 10px 0 0; font-size: 13.5px; }

/* 7 · method */
.fd-method { margin-top: 24px; background: #F3ECDE; border: 1px solid #E9DFCB; border-radius: 16px; padding: 13px 16px; }
.fd-method summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.fd-method summary::-webkit-details-marker { display: none; }
.fd-method__toggle::after { content: "Show \25BE"; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--muted); }
.fd-method[open] .fd-method__toggle::after { content: "Hide \25B4"; }
.fd-method ul { margin: 11px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.fd-method li { font-size: 13px; line-height: 1.5; color: #4C4433; }
.fd-method__contact { font-size: 13px; line-height: 1.5; color: #4C4433; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #E2D6BE; }
.fd-method__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 9px 0 0; font-size: 12.5px; }

/* press pack */
.fd-press { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.fd-press p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; }
.fd-press ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.fd-press a { display: block; text-decoration: none; color: var(--ink); font-weight: 600; }
.fd-press img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.fd-press span { display: block; font-size: 13px; line-height: 1.35; margin-top: 7px; }
.fd-press em { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); margin-top: 3px; }

/* ?press=<id>: the 1200x675 frame the build screenshots */
body.fd-press-mode { margin: 0; background: var(--surface); }
.fd-frame { width: 1200px; height: 675px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; padding: 34px 56px 28px; box-sizing: border-box; }
.fd-frame__top { display: flex; align-items: center; justify-content: space-between; }
.fd-frame__top .brand-name { font-size: 21px; }
.fd-frame__url { font-size: 14px; font-weight: 700; color: var(--muted); }
.fd-frame__title { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 18px 0 0; }
.fd-frame__body { flex: 1 1 auto; min-height: 0; margin-top: 14px; overflow: hidden; }
.fd-frame__source { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; padding-top: 12px; border-top: 1px solid var(--line-2); }
.fd--share { margin: 0; padding: 0; border: 0; background: transparent; }
.fd--share .fd-title, .fd--share .fd-sub, .fd--share .fd-source, .fd--share .fd-numbers, .fd--share .fd-hint, .fd--share .fd-stat__headline { display: none; }
.fd--share .fd-stat__big b { font-size: 120px; }
.fd--share .fd-stat__big span { font-size: 40px; }
.fd--share .fd-stat__sub { font-size: 19px; max-width: 30ch; }
.fd--share .fd-dots { grid-template-columns: repeat(18, minmax(0, 1fr)); gap: 7px; }
.fd--share .fd-key { font-size: 14px; }
.fd--share .fd-heat { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 18px; margin-top: 8px; }
.fd--share .fd-heat__d { font-size: 8px; }
.fd--share .fd-heat__dow { display: block; }
.fd--share .fd-read { display: none; }
.fd--share .fd-bars { gap: 4px; margin-top: 4px; }
.fd--share .fd-bar { flex-wrap: nowrap; gap: 14px; padding: 5px 0; }
.fd--share .fd-bar__label { flex: 0 0 300px; }
.fd--share .fd-bar__label b { font-size: 17px; }
.fd--share .fd-bar__label span { font-size: 14px; }
.fd--share .fd-bar__track { height: 22px; border-radius: 11px; }
.fd--share .fd-bar__value { width: 100px; font-size: 17px; }
.fd--share.fd--next { background: transparent; }
.fd--share .fd-next { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.fd--share .fd-next li { padding: 18px 16px; }
.fd--share .fd-next__name { font-size: 16px; }
.fd--share .fd-next__n b { font-size: 40px; }
.fd--share .fd-tile { width: 40px; }
.fd--share .fd-tile b, .fd--share .fd-next__hol i { height: 40px; font-size: 13px; }
.fd--share .fd-tile span, .fd--share .fd-next__hol span { font-size: 11px; }
.fd--share .fd-saves { grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 40px; }
.fd--share .fd-save__fig { font-size: 40px; }
.fd--share .fd-save__cap, .fd--share .fd-save__label { font-size: 15px; }
.fd--share .fd-save__usual, .fd--share .fd-save__ours { height: 16px; border-radius: 8px; }
.fd--share .fd-save__ours em { top: 20px; font-size: 15px; }

/* council term-dates page: link to a findings post */
.tdp-findings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding: 13px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.tdp-findings:hover { border-color: #C3D4E6; color: var(--green-deep); }
.tdp-findings__tag { padding: 3px 9px; border-radius: 999px; background: #E7EDF2; color: #3A5A72; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.fd-frame__top .brand { display: flex; align-items: center; gap: 9px; }
.fd-frame__top .logo-mark { gap: 3px; }
.fd-frame__top .logo-mark i { width: 7px; height: 24px; }
.fd--share .fd-heat { max-width: 860px; gap: 6px 16px; }
.fd--share .fd-heat__m p { font-size: 11px; margin-bottom: 2px; }
.fd--share .fd-heat__dow { line-height: 10px; }
.fd--share .fd-key { margin-top: 8px; }
.fd--share .fd-bar { padding: 3px 0; }
.fd--share .fd-bar__label { gap: 10px; }
.fd--share .fd-bar__track { height: 18px; }

/* =========================================================================
   About page (/about/), author box (posts) and 404, built by scripts/build-pages.js
   ========================================================================= */
.ab { max-width: 1040px; }
.ab h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.ab-who { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.ab-photo { display: block; width: 212px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 1px solid #E7DDCB; box-shadow: 0 18px 36px -24px rgba(28,42,34,.5); background: #F6EEDC; }
.ab-photo svg, .ab-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-who h1 { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); margin: 0; }
.ab-who__text > p:not(.ab-links) { font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); margin: 14px 0 0; text-wrap: pretty; }
.ab-links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 16px 0 0; }
.ab-links a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid #E7DDC9; font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.ab-links a:hover { border-color: #C3D4E6; }
.ab-sec { margin-top: 30px; scroll-margin-top: 16px; }
.ab-why { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 12px; align-items: start; }
.ab-why__text p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 12px; max-width: 62ch; text-wrap: pretty; }
.ab-why__cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ab-why__cards li { padding: 13px 15px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.ab-k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; margin-bottom: 4px; }
.ab-k--prices { color: #B8482B; }
.ab-k--fines { color: var(--amber-deep); }
.ab-k--inset { color: var(--green-deep); }
.ab-promise { margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(160deg, #EAF6EF, #DBEEE1); border: 1px solid var(--green-border); }
.ab-promise p { font-size: 14px; line-height: 1.5; color: #2C4A3B; margin: 8px 0 0; }
.ab-promise .ab-promise__lead { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); margin: 0; text-wrap: pretty; }
.ab-promise strong { color: var(--green-deep); }
.ab-promise a, .ab-card a, .ab-steps a, .ab-more { font-weight: 700; color: var(--green-deep); }
.ab-check-head { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid #E7DDCB; }
.ab-check-head__illo { flex: 0 0 auto; width: 80px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid #E7DDCB; }
.ab-check-head__illo svg { display: block; width: 100%; height: 100%; }
.ab-check-head p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.ab-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.ab-steps li { display: flex; flex-direction: column; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.ab-steps__top { display: flex; align-items: center; justify-content: space-between; }
.ab-steps__icon { display: block; width: 56px; height: 56px; border-radius: 14px; background: #F3ECDE; overflow: hidden; }
.ab-steps__n { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #B3AB98; }
.ab-steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); margin: 12px 0 0; }
.ab-steps p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 6px 0 0; flex: 1 1 auto; }
.ab-steps .ab-fact { flex: 0 0 auto; align-self: flex-start; margin-top: 11px; font-size: 12px; font-weight: 700; color: var(--navy); background: #EDF2F8; padding: 5px 9px; border-radius: 9px; }
.ab-steps li > a { font-size: 13px; margin-top: 10px; }
.ab-more { display: inline-block; margin-top: 14px; font-size: 14px; }
.ab-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px; margin-top: 30px; }
.ab-card { padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.ab > .ab-card { margin-top: 30px; }
.ab-card h2 { font-size: 19px; }
.ab-card p, .ab-card li { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.ab-card p { margin: 10px 0 0; }
.ab-card ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ab-card > a { display: inline-block; font-size: 13.5px; margin-top: 9px; }
.ab-card--sand { background: #F3ECDE; border-color: #E9DFCB; }
.ab-card .ab-note { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px 13px; border-radius: 13px; background: #EDF2F8; border: 1px solid #C3D4E6; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.ab-note svg { flex: 0 0 auto; }
.ab-card .ab-updated { font-size: 12px; font-weight: 600; color: #8A806C; margin-top: 12px; }
.ab-press { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-top: 12px; }
.ab-press a { display: block; padding: 12px 14px; border-radius: 13px; background: #F7F3EA; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 700; color: var(--navy) !important; overflow-wrap: anywhere; }
.ab-press a span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #8A806C; margin-bottom: 3px; }
.ab-card .ab-press__note { font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .ab-who { grid-template-columns: 280px minmax(0, 1fr); gap: 44px; }
  .ab-photo { width: 280px; }
  .ab-who h1 { font-size: 52px; }
  .ab-who__text > p:not(.ab-links) { font-size: 19px; }
  .ab h2 { font-size: 26px; }
  .ab-card h2 { font-size: 20px; }
  .ab-sec, .ab-pair, .ab > .ab-card { margin-top: 44px; }
  .ab-why { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
  .ab-why__text p { font-size: 16px; }
  .ab-promise .ab-promise__lead { font-size: 20px; }
  .ab-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab-check-head__illo { width: 96px; }
  .ab-check-head h2 { font-size: 26px; }
}

/* author box on posts: the whole box links to /about/ */
.ab-box { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none !important; }
.ab-box:hover { border-color: #C3D4E6; }
.ab-box__pic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #F6EEDC; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E7DDCB; display: block; }
.ab-box__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ab-box__text { flex: 1 1 auto; min-width: 0; }
.ab-box__text b { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.ab-box__text span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; font-weight: 500; }
.ab-box__go { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.fd-post article > .ab-box:last-child { margin-top: 32px; }

/* 404 */
.nf { max-width: 640px; }
.nf__code { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .14em; color: #8A806C; margin: 0; }
.nf h1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); margin: 8px 0 0; }
.nf > p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin: 10px 0 0; }
.nf__search { margin-top: 22px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.nf__search label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.nf__search div { display: flex; gap: 8px; margin-top: 10px; }
.nf__search input { flex: 1 1 auto; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #DFD6C4; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.nf__search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.nf__search .btn { flex: 0 0 auto; }
.nf__links { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.nf__links a { display: block; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.nf__links a:hover { border-color: var(--green-border); }
.nf__links b { display: block; font-size: 15px; color: var(--green-deep); }
.nf__links span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Holiday edges a parent can correct (tap: holiday -> inset day -> school day -> holiday) */
.di-day--edge { position: relative; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.di-day--edge:hover { box-shadow: inset 0 0 0 2px #fff; }
.di-day--edited { position: relative; }
.di-day--edited::before { content: "edited"; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); padding: 0 4px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 7.5px; font-weight: 800; letter-spacing: .03em; line-height: 11px; z-index: 2; white-space: nowrap; }
.di-key__sw--edited { width: auto !important; padding: 0 4px; background: var(--navy); color: #fff; font-size: 7.5px; font-weight: 800; border-radius: 6px; }

/* =========================================================================
   Contact page (/contact/): email only, no form. Same type scale as About.
   ========================================================================= */
.ct { max-width: 960px; }
.ct-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ct-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); margin: 0; }
.ct-lede { font-size: 16px; line-height: 1.55; color: #33403A; margin: 12px 0 0; max-width: 56ch; }
.ct-lede a { font-weight: 700; }
.ct-illo { flex: 0 0 auto; order: -1; width: 96px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; border: 1px solid #E7DDCB; box-shadow: 0 14px 28px -20px rgba(28,42,34,.5); background: #F6EEDC; }
.ct-illo svg { display: block; width: 100%; height: 100%; }
.ct-email { margin-top: 22px; padding: 18px 16px; border-radius: 22px; background: linear-gradient(160deg, #EAF6EF, #DBEEE1); border: 1px solid #C8E6D5; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.ct-email__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 15px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 16px -10px rgba(15,90,60,.6); }
.ct-email__body { flex: 1 1 260px; min-width: 0; }
.ct-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #2C6A4C; }
.ct-email__row { display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin-top: 8px; }
.ct-email__addr { display: inline-flex; align-items: center; justify-content: center; padding: 12px 15px; border-radius: 14px; background: var(--green-deep); color: #fff !important; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; box-shadow: 0 12px 26px -12px rgba(15,90,60,.85); max-width: 100%; overflow-wrap: anywhere; }
.ct-email__addr:hover { background: #0C4A31; }
.ct-copy { display: inline-flex; align-items: center; justify-content: center; padding: 11px 15px; border-radius: 13px; border: 1.5px solid #9FD3B6; background: #fff; color: var(--green-deep); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ct-copy[hidden] { display: none; }
.ct-copy span { display: inline-flex; align-items: center; gap: 7px; }
.ct-copy .ct-copy__done, .ct-copy.is-copied .ct-copy__idle { display: none; }
.ct-copy.is-copied .ct-copy__done { display: inline-flex; }
.ct-copy:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.ct-email__note { font-size: 13px; font-weight: 600; color: #2C4A3B; margin: 10px 0 0; }
.ct-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
.ct-card { display: flex; flex-direction: column; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #EEE6D6; }
.ct-card__icon { display: block; width: 40px; height: 40px; border-radius: 12px; background: #F3ECDE; }
.ct-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.25; color: var(--ink); margin: 12px 0 0; }
.ct-card p { font-size: 13.5px; line-height: 1.55; color: #33403A; margin: 6px 0 0; flex: 1 1 auto; }
.ct-card a { font-size: 13.5px; font-weight: 700; margin-top: 10px; }
.ct-noforms { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; font-size: 13px; font-weight: 600; color: #7A7160; text-align: center; }
.ct-noforms svg { flex: 0 0 auto; }
/* "Legal details" line: the contact page and the privacy page. */
.legal-line { font-size: 11.5px; line-height: 1.5; color: #9A917C; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid #EAE0CE; text-align: center; }
.legal-line a { color: #7A7160; }
@media (min-width: 760px) {
  .ct-hero { flex-direction: row; align-items: center; gap: 40px; }
  .ct-hero h1 { font-size: 50px; }
  .ct-lede { font-size: 18.5px; }
  .ct-illo { order: 2; width: 132px; }
  .ct-email { margin-top: 30px; padding: 24px 26px; }
  .ct-email__row { flex-direction: row; align-items: center; }
  .ct-email__addr { padding: 13px 20px; font-size: 22px; }
  .ct-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
  .ct-noforms { margin-top: 30px; }
}
