/*
 * SEN2gether site v2: design system (assets/s2.css)
 * Matches the iPhone / Android apps (Theme.swift, Decorations.swift, ui-refresh):
 * cream page, soft pastel tiles, calm section banners, navy ink, the system font,
 * 24px cards, pill buttons. Tokens mirror the apps; live server colours apply
 * (native_app_colors). Light only, as the apps open in light.
 */
:root {
  color-scheme: light;

  /* Surfaces: page and cards are server-set in the apps (native_app_colors) */
  --s2-page: #FFFDF7;            /* live main_background (app default #F7F3EA) */
  --s2-card: #F7F3EA;            /* live card_background, "card cream" (default #EFE9DC) */
  --s2-white: #FFFFFF;           /* surfaceWhite: posts, fields, idle pills */
  --s2-rail-pill: #F7F3EA;       /* live home_rail_pills (default #FFFFFF) */

  /* Text */
  --s2-ink: #1F2A5B;             /* navy: display type, primary buttons, icon discs */
  --s2-on-ink: #FFFFFF;
  --s2-text: #000000;            /* iOS label: body copy */
  --s2-text-muted: #6B6573;      /* onPastelText; use for all secondary text on the web (AA) */
  --s2-text-ios-secondary: rgba(60, 60, 67, .6); /* iOS secondaryLabel, below AA on cream: large text only */
  --s2-text-faint: rgba(60, 60, 67, .3);
  --s2-link: #46388C;            /* soft-lavender fg; AA text link (app "See all" #8C7AC7 is 3.6:1) */

  /* Lines */
  --s2-hairline: rgba(60, 60, 67, .17);  /* cardBorder = separator x .6 */
  --s2-card-edge: rgba(0, 0, 0, .07);    /* 1px edge on white post cards */
  --s2-divider: rgba(0, 0, 0, .06);      /* list-row dividers inside cream cards */

  /* Accents and states */
  --s2-tab-active: #8C7AC7;      /* tab_active_color: selected tab disc, floating "New post" */
  --s2-tab-inactive: #C4C0CC;    /* tab_inactive_color */
  --s2-brand-accent: #40C2B8;    /* legacy teal CTA ("Try again"); use ink text on it, never white */
  --s2-badge: #E5484D;           /* unread count badge, 2px page-colour ring */
  --s2-danger: #E07868;          /* app: log-out pill, error disc (icon/fill only, 3:1) */
  --s2-danger-text: #8A3A36;     /* AA danger text (soft pink fg) */
  --s2-success: #6CAB75;         /* app: toast tick (icon only) */
  --s2-success-text: #2E5E3E;    /* AA success text (soft green fg) */
  --s2-new-fill: #FCEBB0;        /* "New" tag */
  --s2-new-text: #7A5C00;

  /* Pastel washes + paired inks (icon discs, avatars, small tags) */
  --s2-lavender: #F1ECFB; --s2-lavender-ink: #8C7AC7;
  --s2-mint: #EAF4ED;     --s2-mint-ink: #6CAB75;
  --s2-sky: #EDF3F9;      --s2-sky-ink: #5996CB;
  --s2-pink: #FFEFEC;     --s2-pink-ink: #E07868;
  --s2-cream: #FFF7E2;    --s2-cream-ink: #C99A2E;
  --s2-peach: #FFEFE0;    --s2-peach-ink: #E68B4D;
  --s2-lilac: #FBEEF5;    --s2-lilac-ink: #C07BAB;
  --s2-butter: #FFF6D8;   --s2-butter-ink: #C79A1C;

  /* Tiles, SOFT set (live): tiles, cards, trending, active pills */
  --s2-soft-green-bg: #E2F2E7;    --s2-soft-green-fg: #2E5E3E;    --s2-soft-green-accent: #BFE2CA;
  --s2-soft-yellow-bg: #FDF3D2;   --s2-soft-yellow-fg: #6B5210;   --s2-soft-yellow-accent: #F6E09C;
  --s2-soft-blue-bg: #E6E7F8;     --s2-soft-blue-fg: #363B8C;     --s2-soft-blue-accent: #C7CAEF;
  --s2-soft-pink-bg: #FCE8E6;     --s2-soft-pink-fg: #8A3A36;     --s2-soft-pink-accent: #F6CBC7;
  --s2-soft-mint-bg: #E0F4EE;     --s2-soft-mint-fg: #245B4C;     --s2-soft-mint-accent: #BDE6D8;
  --s2-soft-peach-bg: #FDEBDC;    --s2-soft-peach-fg: #7A4520;    --s2-soft-peach-accent: #F8D2B2;
  --s2-soft-lavender-bg: #ECE8F9; --s2-soft-lavender-fg: #46388C; --s2-soft-lavender-accent: #D3CBF2;

  /* Tiles, CALM set (live): page banners, hero discs, coloured main buttons */
  --s2-calm-green-bg: #92C2A4;    --s2-calm-green-fg: #1E4A33;    --s2-calm-green-accent: #539870;
  --s2-calm-yellow-bg: #F7DD85;   --s2-calm-yellow-fg: #2A2A2A;   --s2-calm-yellow-accent: #E9C243;
  --s2-calm-blue-bg: #9194D2;     --s2-calm-blue-fg: #222660;     --s2-calm-blue-accent: #ADB0E4;
  --s2-calm-pink-bg: #F6C6C5;     --s2-calm-pink-fg: #2A2A2A;     --s2-calm-pink-accent: #E78584;
  --s2-calm-mint-bg: #A8DBCC;     --s2-calm-mint-fg: #1E3A32;     --s2-calm-mint-accent: #65B59E;
  --s2-calm-peach-bg: #F6C49B;    --s2-calm-peach-fg: #3A2616;    --s2-calm-peach-accent: #E89856;
  --s2-calm-lavender-bg: #B2A7E0; --s2-calm-lavender-fg: #2E2566; --s2-calm-lavender-accent: #CCC3EE;

  /* Tiles, BOLD set (original look; server switches off = this). Reference only */
  --s2-bold-green-bg: #6FAF88;    --s2-bold-green-fg: #FFFFFF;    --s2-bold-green-accent: #3E8A5F;
  --s2-bold-yellow-bg: #F6D35F;   --s2-bold-yellow-fg: #2A2A2A;   --s2-bold-yellow-accent: #E4B92D;
  --s2-bold-blue-bg: #6E72C6;     --s2-bold-blue-fg: #FFFFFF;     --s2-bold-blue-accent: #B6B9EA;
  --s2-bold-pink-bg: #F4B4B4;     --s2-bold-pink-fg: #2A2A2A;     --s2-bold-pink-accent: #E26F6F;
  --s2-bold-mint-bg: #8CD1BE;     --s2-bold-mint-fg: #1E3A32;     --s2-bold-mint-accent: #4FA88F;
  --s2-bold-peach-bg: #F5B27C;    --s2-bold-peach-fg: #3A2616;    --s2-bold-peach-accent: #E3893F;
  --s2-bold-lavender-bg: #9A8BD8; --s2-bold-lavender-fg: #FFFFFF; --s2-bold-lavender-accent: #D5CCF3;

  /* Chips laid on a tile fill (soft set: white 70%) */
  --s2-chip-on-fill: rgba(255, 255, 255, .7);

  /* Type: the apps use the platform system font (SF Pro / Roboto). No serif. */
  --s2-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --s2-font-rounded: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;

  --s2-fs-display: clamp(2.375rem, 1.9rem + 2.2vw, 3.5rem);   /* 38px wordmark/hero, up to 56px */
  --s2-fs-large-title: clamp(2.125rem, 1.8rem + 1.4vw, 2.75rem); /* 34-36pt: greeting name */
  --s2-fs-title-1: clamp(1.75rem, 1.5rem + 1.1vw, 2.25rem);   /* 28-30pt: page title, banner heading */
  --s2-fs-title-2: 1.5rem;                                     /* 22-24pt: tile title (800) */
  --s2-fs-title-3: clamp(1.25rem, 1.15rem + .45vw, 1.4375rem); /* 20-22pt: section header, card title */
  --s2-fs-headline: 1.125rem;                                  /* 17-19pt semibold/bold: post title, FAQ q */
  --s2-fs-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);     /* 17-19pt */
  --s2-fs-subhead: clamp(.9375rem, .9rem + .2vw, 1.0625rem);   /* 15-17pt: pills, secondary lines */
  --s2-fs-footnote: .875rem;                                   /* 13-15pt */
  --s2-fs-caption: .8125rem;                                   /* 12-14pt */
  --s2-fs-caption-2: .75rem;                                   /* 11-13pt */

  --s2-lh-tight: 1.12;
  --s2-lh-title: 1.22;
  --s2-lh-ui: 1.35;
  --s2-lh-body: 1.5;

  /* Spacing (Theme.Spacing) */
  --s2-space-xs: 4px;
  --s2-space-sm: 8px;
  --s2-space-md: 12px;
  --s2-space-lg: 16px;   /* page gutter, gap between bento tiles */
  --s2-space-xl: 24px;   /* gap between sections */
  --s2-space-xxl: 32px;
  --s2-pad-card: 18px;   /* tiles, rail cards, story cards */
  --s2-pad-hero: 20px;   /* banners, cream copy cards, closing card */

  /* Radii (continuous corners in-app) */
  --s2-r-sm: 8px;
  --s2-r-md: 14px;
  --s2-r-field: 16px;    /* text fields, thumbnails, rule rows */
  --s2-r-lg: 20px;       /* small tiles, notices, error banners */
  --s2-r-row: 22px;      /* episode rows */
  --s2-r-card: 24px;     /* THE card radius: tiles, cards, posts, sheets' cards */
  --s2-r-banner: 28px;   /* bottom corners of full-bleed banners */
  --s2-r-pill: 999px;

  /* Elevation (light mode only; dark mode drops all shadows) */
  --s2-shadow-card: 0 6px 28px rgba(0, 0, 0, .07);    /* white post card (+1px --s2-card-edge) */
  --s2-shadow-float: 0 4px 24px rgba(0, 0, 0, .08);   /* floating nav pill, logo disc */
  --s2-shadow-avatar: 0 4px 24px rgba(0, 0, 0, .10);
  --s2-shadow-raised: 0 5px 24px rgba(0, 0, 0, .18);  /* floating primary action */
  --s2-shadow-toast: 0 6px 28px rgba(0, 0, 0, .12);
  --s2-shadow-badge: 0 2px 8px rgba(0, 0, 0, .12);    /* "New" pill on a tile */
  --s2-shadow-tab: 0 4px 16px rgba(140, 122, 199, .35);

  /* Motion */
  --s2-ease-out: cubic-bezier(.22, 1, .36, 1);        /* spring(0.55, 0.85): no visible overshoot */
  --s2-ease-spring: cubic-bezier(.34, 1.3, .64, 1);   /* spring(0.6, 0.78): small overshoot */
  --s2-ease-bounce: cubic-bezier(.34, 1.56, .64, 1);  /* press release, bounce-in */
  --s2-dur-press: 180ms;
  --s2-dur-fast: 250ms;
  --s2-dur-enter: 550ms;
  --s2-dur-tile: 600ms;
  --s2-stagger: 60ms;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--s2-page); color: var(--s2-text);
  font: 400 var(--s2-fs-body)/var(--s2-lh-body) var(--s2-font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; color: var(--s2-ink); font-weight: 800; letter-spacing: -.02em; line-height: var(--s2-lh-title); text-wrap: balance; }
h1 { font-size: var(--s2-fs-large-title); }
h2 { font-size: var(--s2-fs-title-1); }
h3 { font-size: var(--s2-fs-title-3); letter-spacing: -.01em; }
h4 { font-size: var(--s2-fs-headline); letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
/* Ornaments draw a little past their 100x100 box (ring strokes, petal tips):
   never trim them there; cards and banners still clip at their own edges. */
svg.art { overflow: visible; }
a { color: var(--s2-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--s2-tab-active); outline-offset: 2px; border-radius: 8px; }
button { font: inherit; color: inherit; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 1.2em; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24; -webkit-font-smoothing: antialiased; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 18px; border-radius: var(--s2-r-pill); background: var(--s2-ink); color: var(--s2-on-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--s2-text-muted); }

/* Layout */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.section--tight { padding: 24px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head h2 { font-size: var(--s2-fs-title-2); }
.sec-head .lead, .lead { color: var(--s2-text-muted); font-size: var(--s2-fs-body); max-width: 62ch; }
.see-all { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: var(--s2-fs-subhead); font-weight: 650; color: var(--s2-link); text-decoration: none; }
.see-all .ms { font-size: 18px; }
.see-all:hover { text-decoration: underline; }
.stack { display: flex; flex-direction: column; gap: var(--s2-space-lg); }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Header ─────────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 247, .9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-scrolled { border-bottom-color: var(--s2-divider); }
.hdr-in { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--s2-ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; flex: none; }
.brand-disc { width: 40px; height: 40px; border-radius: 999px; background: var(--s2-white); box-shadow: 0 0 0 3px var(--s2-card), var(--s2-shadow-float); display: grid; place-items: center; }
.brand-disc img { width: 28px; height: 28px; }
.nav { display: none; margin-left: 8px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link, .nav-btn { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--s2-r-pill); background: none; color: var(--s2-ink); font-size: var(--s2-fs-subhead); font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--s2-card); }
.nav-link[aria-current="page"] { background: var(--s2-soft-lavender-bg); color: var(--s2-soft-lavender-fg); }
.nav-btn .ms { font-size: 20px; transition: transform var(--s2-dur-fast) var(--s2-ease-out); }
.nav-btn[aria-expanded="true"] .ms { transform: rotate(180deg); }
.nav-item { position: relative; }
.mega { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); width: min(620px, 92vw); padding: 18px; border-radius: var(--s2-r-card); background: var(--s2-white); box-shadow: 0 18px 50px rgba(31, 42, 91, .14), 0 0 0 1px var(--s2-card-edge); display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.mega-intro { padding: 16px; border-radius: 20px; background: var(--bg, var(--s2-card)); color: var(--fg, var(--s2-ink)); display: flex; flex-direction: column; gap: 8px; }
.mega-intro b { font-size: var(--s2-fs-headline); }
.mega-intro p { font-size: var(--s2-fs-footnote); opacity: .9; }
.mega-intro a { margin-top: auto; color: inherit; font-weight: 700; font-size: var(--s2-fs-footnote); display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; align-content: start; list-style: none; }
.mega-links--single { grid-template-columns: 1fr; }
.mega-group { grid-column: 1 / -1; margin: 8px 0 2px 10px; font-size: var(--s2-fs-caption); font-weight: 700; color: var(--s2-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.mega-group:first-child { margin-top: 0; }
.mega-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; color: var(--s2-ink); font-size: var(--s2-fs-subhead); font-weight: 600; text-decoration: none; }
.mega-links a:hover { background: var(--s2-card); }
.disc { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; flex: none; background: var(--dbg, var(--s2-lavender)); color: var(--dfg, var(--s2-lavender-ink)); }
.disc .ms { font-size: 17px; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--s2-white); color: var(--s2-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1px var(--s2-card-edge); text-decoration: none; transition: transform var(--s2-dur-press) var(--s2-ease-bounce); }
.icon-btn:active { transform: scale(.94); }
.icon-btn .ms { font-size: 22px; }
.hdr-actions .hdr-signin { display: none; }
.hdr-actions .btn { white-space: nowrap; }
@media (min-width: 1000px) {
  .nav { display: block; }
  .hdr-menu { display: none; }
  .hdr-actions .hdr-signin { display: inline-flex; }
}

/* Mobile menu: a full-height sheet */
.menu { position: fixed; inset: 68px 0 0; z-index: 49; background: var(--s2-page); overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 40px; display: flex; flex-direction: column; gap: 14px; animation: s2-rise .25s var(--s2-ease-out); }
html.menu-open { overflow: hidden; }
.menu-search { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px; border-radius: var(--s2-r-pill); background: var(--s2-white); box-shadow: 0 0 0 1px var(--s2-card-edge); }
.menu-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 var(--s2-fs-body) var(--s2-font); color: var(--s2-ink); }
.menu-group { border-radius: var(--s2-r-card); background: var(--s2-card); overflow: hidden; }
.menu-group summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 700; color: var(--s2-ink); cursor: pointer; }
.menu-group summary::-webkit-details-marker { display: none; }
.menu-group summary .chev { margin-left: auto; transition: transform var(--s2-dur-fast) var(--s2-ease-out); }
.menu-group[open] summary .chev { transform: rotate(180deg); }
.menu-group ul { list-style: none; padding: 0 8px 10px; }
.menu-group li a, .menu-plain a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; color: var(--s2-ink); font-weight: 600; text-decoration: none; }
.menu-plain { list-style: none; border-radius: var(--s2-r-card); background: var(--s2-card); padding: 6px 8px; }
.menu-cta { display: grid; gap: 10px; }

/* ── Buttons, pills, chips ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border: 0; border-radius: var(--s2-r-pill); font: 700 var(--s2-fs-subhead)/1.2 var(--s2-font); text-decoration: none; cursor: pointer; transition: transform var(--s2-dur-press) var(--s2-ease-bounce), background .15s; }
.btn:active { transform: scale(.97); }
.btn .ms { font-size: 19px; }
.btn--ink { background: var(--s2-ink); color: var(--s2-on-ink); }
.btn--ink:hover { background: #18214a; }
.btn--white { background: var(--s2-white); color: var(--s2-ink); font-weight: 650; box-shadow: 0 0 0 1px var(--s2-card-edge); }
.btn--cream { background: var(--s2-card); color: var(--s2-ink); }
.btn--calm { background: var(--bg, var(--s2-calm-lavender-bg)); color: var(--fg, var(--s2-calm-lavender-fg)); }
.btn--block { width: 100%; min-height: 54px; font-size: var(--s2-fs-body); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: var(--s2-fs-footnote); }
.btn[disabled], .btn.is-busy { opacity: .5; pointer-events: none; }
.text-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--s2-ink); font-weight: 650; cursor: pointer; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: var(--s2-r-pill); background: var(--s2-rail-pill); color: var(--s2-ink); font-size: var(--s2-fs-footnote); font-weight: 650; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 1px var(--s2-card-edge); transition: transform var(--s2-dur-press) var(--s2-ease-bounce); }
.pill:active { transform: scale(.97); }
.pill .disc { width: 26px; height: 26px; }
.pill .disc .ms { font-size: 15px; }
.rail { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px; margin: -2px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--s2-r-pill); background: var(--bg, var(--s2-lavender)); color: var(--fg, var(--s2-soft-lavender-fg)); font-size: var(--s2-fs-caption); font-weight: 700; white-space: nowrap; }
.tag .ms { font-size: 15px; }
.tag--new { background: var(--s2-new-fill); color: var(--s2-new-text); }

/* ── Section banner (calm colour, heading, subtitle, ornament) ──────────── */
.banner { position: relative; overflow: hidden; background: var(--bg, var(--s2-calm-lavender-bg)); color: var(--fg, var(--s2-calm-lavender-fg)); border-radius: 0 0 var(--s2-r-banner) var(--s2-r-banner); }
.banner-in { position: relative; z-index: 1; padding: 28px 16px 32px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 720px) { .banner-in { padding: 44px 28px 52px; } }
.banner .crumbs { margin-bottom: 18px; }
.banner-glyph { font-size: 30px; margin-bottom: 10px; }
.banner h1 { color: inherit; font-size: var(--s2-fs-title-1); max-width: 20ch; }
.banner .sub { margin-top: 10px; max-width: 58ch; font-size: var(--s2-fs-body); opacity: .94; padding-right: 48px; }
.banner .orn { position: absolute; z-index: 0; width: var(--o, 190px); height: var(--o, 190px); right: calc(var(--o, 190px) * -.22); bottom: calc(var(--o, 190px) * -.22); color: var(--accent); opacity: .7; pointer-events: none; }
@media (min-width: 900px) { .banner .orn { --o: 300px; } }
.banner-search { margin-top: 18px; max-width: 520px; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; font-size: var(--s2-fs-footnote); font-weight: 600; }
.crumbs a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; opacity: .9; }
.crumbs li + li::before { content: '/'; margin-right: 4px; opacity: .5; }
.crumbs [aria-current] { opacity: .8; }

/* ── Explore tiles (the Home bento) ─────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento-col { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) { .bento { gap: 16px; } .bento-col { gap: 16px; } }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--s2-r-card); background: var(--bg); color: var(--fg); padding: 18px 24px 18px 18px; text-decoration: none; transition: transform var(--s2-dur-press) var(--s2-ease-bounce); }
.tile:active { transform: scale(.97); }
.tile--tall { height: 196px; } .tile--short { height: 150px; }
@media (min-width: 900px) { .tile--tall { height: 240px; } .tile--short { height: 180px; } }
.tile-title { position: relative; z-index: 1; font-size: var(--s2-fs-title-2); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.tile-sub { position: relative; z-index: 1; margin-top: 4px; font-size: var(--s2-fs-footnote); font-weight: 600; opacity: .85; }
.tile .orn { position: absolute; z-index: 0; width: var(--o); height: var(--o); right: calc(var(--o) * -.22); bottom: calc(var(--o) * -.22); color: var(--accent); pointer-events: none; }
.tile--tall .orn { --o: 150px; } .tile--short .orn { --o: 112px; }
@media (min-width: 900px) { .tile--tall .orn { --o: 180px; } .tile--short .orn { --o: 136px; } }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card { position: relative; overflow: hidden; border-radius: var(--s2-r-card); background: var(--s2-card); padding: var(--s2-pad-card); color: var(--s2-ink); }
.card--white { background: var(--s2-white); box-shadow: 0 0 0 1px var(--s2-card-edge), var(--s2-shadow-card); }
.card--soft { background: var(--bg); color: var(--fg); }
a.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; transition: transform var(--s2-dur-press) var(--s2-ease-bounce); }
a.card:active { transform: scale(.98); }
a.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card-kicker { font-size: var(--s2-fs-footnote); font-weight: 650; color: var(--s2-text-muted); }
.card-title { font-size: var(--s2-fs-title-3); font-weight: 800; letter-spacing: -.01em; line-height: 1.22; color: inherit; }
.card-text { color: var(--s2-text-muted); font-size: var(--s2-fs-subhead); }
.card .cluster { position: absolute; right: -10px; bottom: -10px; width: 88px; height: 88px; pointer-events: none; }
.card--tool { min-height: 176px; }
.card--tool .card-title, .card--tool .card-kicker { position: relative; z-index: 1; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.ink-disc { width: 32px; height: 32px; border-radius: 999px; background: var(--s2-ink); color: var(--s2-on-ink); display: grid; place-items: center; flex: none; }
.ink-disc .ms { font-size: 18px; }
.media { position: relative; overflow: hidden; border-radius: var(--s2-r-field); background: var(--s2-card); aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.media img.is-loaded { opacity: 1; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--s2-r-card); background: var(--s2-card); padding: 16px; color: var(--s2-ink); }
.notice .ink-disc { width: 28px; height: 28px; }
.notice .ink-disc .ms { font-size: 16px; }

/* FAQ / accordion */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--s2-r-card); background: var(--s2-card); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: var(--s2-fs-headline); color: var(--s2-ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { margin-left: auto; transition: transform var(--s2-dur-fast) var(--s2-ease-out); }
.faq details[open] summary .ms { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 18px; line-height: 1.6; }
.faq .answer > * + * { margin-top: 10px; }

/* Prose (legal pages, guides) */
.prose { max-width: 70ch; line-height: 1.65; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 34px; font-size: var(--s2-fs-title-3); }
.prose h3 { margin-top: 24px; font-size: var(--s2-fs-headline); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: var(--s2-fs-subhead); font-weight: 700; color: var(--s2-ink); }
.input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--s2-hairline); border-radius: var(--s2-r-field); background: var(--s2-white); font: 500 var(--s2-fs-body) var(--s2-font); color: var(--s2-ink); }
.input:focus { outline: 0; border-color: var(--s2-soft-lavender-fg); box-shadow: 0 0 0 4px var(--s2-soft-lavender-bg); }
textarea.input { min-height: 130px; resize: vertical; line-height: 1.5; }
.search-pill { display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 8px 0 18px; border-radius: var(--s2-r-pill); background: var(--s2-white); box-shadow: 0 0 0 1px var(--s2-card-edge); }
.search-pill .ms { color: var(--s2-text-muted); }
.search-pill input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 var(--s2-fs-body) var(--s2-font); color: var(--s2-ink); }
.search-pill input::placeholder { color: var(--s2-text-muted); }
.search-pill:focus-within { box-shadow: 0 0 0 2px var(--s2-soft-lavender-fg), 0 0 0 6px var(--s2-soft-lavender-bg); }
.msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; font-size: var(--s2-fs-subhead); font-weight: 600; }
.msg--ok { background: var(--s2-soft-green-bg); color: var(--s2-soft-green-fg); }
.msg--bad { background: var(--s2-soft-pink-bg); color: var(--s2-soft-pink-fg); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 20px 8px 16px; border-radius: var(--s2-r-pill); background: var(--s2-ink); color: #fff; text-decoration: none; transition: transform var(--s2-dur-press) var(--s2-ease-bounce); }
.store:active { transform: scale(.97); }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: .85; line-height: 1.1; }
.store b { display: block; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; }
.store--light { background: var(--s2-white); color: var(--s2-ink); box-shadow: 0 0 0 1px var(--s2-card-edge); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { margin-top: 56px; background: var(--s2-card); border-radius: var(--s2-r-banner) var(--s2-r-banner) 0 0; color: var(--s2-ink); }
.foot-bare { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }
.foot-bare-legal { margin: 0; }
.foot-bare-legal button { padding: 4px 8px; border: 0; background: none; color: var(--s2-text-muted); font-size: var(--s2-fs-footnote); text-decoration: underline; cursor: pointer; }
.foot-bare .stores { justify-content: center; }
.foot-get { display: grid; gap: 18px; padding: 32px 0 28px; border-bottom: 1px solid var(--s2-divider); }
@media (min-width: 900px) { .foot-get { grid-template-columns: 1fr auto; align-items: center; } }
.foot-get h2 { font-size: var(--s2-fs-title-2); }
.foot-get p { margin-top: 6px; color: var(--s2-text-muted); max-width: 52ch; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 28px 0; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-brand p { margin-top: 12px; color: var(--s2-text-muted); font-size: var(--s2-fs-subhead); max-width: 36ch; }
.foot-social { display: flex; gap: 8px; margin-top: 14px; }
.foot-social a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--s2-white); color: var(--s2-ink); }
.foot-social svg { width: 18px; height: 18px; }
.foot h3 { font-size: var(--s2-fs-subhead); font-weight: 800; margin-bottom: 10px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot ul a, .foot-legal a { color: var(--s2-ink); text-decoration: none; font-size: var(--s2-fs-subhead); }
.foot ul a:hover, .foot-legal a:hover { text-decoration: underline; }
.foot-legal { padding: 18px 0 32px; border-top: 1px solid var(--s2-divider); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--s2-text-muted); font-size: var(--s2-fs-footnote); }
.foot-legal button { padding: 0; border: 0; background: none; color: var(--s2-ink); font-size: var(--s2-fs-footnote); text-decoration: underline; cursor: pointer; }

/* ── Consent sheet ──────────────────────────────────────────────────────── */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; padding: 18px; border-radius: var(--s2-r-card); background: var(--s2-white); box-shadow: 0 18px 50px rgba(31, 42, 91, .18), 0 0 0 1px var(--s2-card-edge); animation: s2-rise .35s var(--s2-ease-out); }
.consent p { font-size: var(--s2-fs-subhead); color: var(--s2-ink); }
.consent-actions { display: flex; gap: 10px; margin-top: 14px; }
.consent-actions .btn { flex: 1; }

/* ── Motion ─────────────────────────────────────────────────────────────── */
@keyframes s2-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform var(--s2-dur-enter) var(--s2-ease-out); transition-delay: calc(var(--i, 0) * var(--s2-stagger)); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tile.reveal { transform: translateY(24px) scale(.94); transition: opacity .5s ease-out, transform var(--s2-dur-tile) var(--s2-ease-spring); transition-delay: calc(100ms + var(--i, 0) * 70ms); }
.js .tile.reveal.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .tile.reveal { transform: none; }
}
@media print { .hdr, .foot, .consent, .menu { display: none !important; } body { background: #fff; } }

/* ── Home (pages/home.php) ──────────────────────────────────────────────── */
.hero { padding: 24px 0 8px; }
@media (min-width: 900px) { .hero { padding: 56px 0 24px; } }
.hero-in { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; } }
.hero h1 { margin-top: 0; font-size: var(--s2-fs-display); line-height: 1.06; letter-spacing: -.03em; max-width: 16ch; }
.hero-sub { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--s2-text-muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.hero-stores { margin-top: 18px; }
.hero-art { position: relative; display: none; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
@media (min-width: 900px) { .hero-art { display: block; } }
.hero-disc { position: absolute; inset: 18%; border-radius: 999px; background: var(--s2-white); box-shadow: 0 0 0 10px var(--s2-card), var(--s2-shadow-float); display: grid; place-items: center; animation: s2-pop .8s var(--s2-ease-bounce) both; }
.hero-disc img { width: 48%; height: auto; }
.hero-orn { position: absolute; width: 30%; height: 30%; }
.hero-orn--1 { right: 2%; top: 2%; color: var(--s2-soft-yellow-accent); transform: rotate(-12deg); }
.hero-orn--2 { left: 0; bottom: 4%; color: var(--s2-soft-blue-accent); }
.hero-orn--3 { right: 6%; bottom: 0; width: 22%; height: 22%; color: var(--s2-soft-pink-accent); }
@keyframes s2-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 80% { transform: scale(.98); } 100% { transform: none; } }
.help-h { font-size: var(--s2-fs-headline); color: var(--s2-text-muted); font-weight: 700; margin-bottom: 10px; letter-spacing: 0; }
@media (min-width: 900px) { .help-rail { flex-wrap: wrap; overflow: visible; } }
.bento--home { --cols: 2; }
@media (min-width: 900px) {
  .bento--home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento--home .bento-col { display: contents; }
  .bento--home .tile { order: var(--i); }
  .bento--home .tile { height: 200px; }
}
.finder-band { padding: 8px 0; }
.finder-card { border-radius: var(--s2-r-card); }
.finder-card h2 { color: inherit; font-size: var(--s2-fs-title-1); max-width: 18ch; }
.finder-also { margin-top: 12px; font-size: var(--s2-fs-subhead); }
.finder-also a { color: inherit; font-weight: 700; }
.tools-rail > .card { width: 280px; }
@media (min-width: 900px) { .tools-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } .tools-rail > .card { width: auto; } }
@media (min-width: 1100px) { .tools-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; } }
.split-copy h2 { margin-top: 12px; }
.split-copy .lead { margin-top: 10px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--s2-ink); }
.checks .ms { color: var(--s2-success); font-size: 22px; }
.community-art { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--s2-r-card); background: var(--bg); }
.community-art .cluster { position: absolute; inset: 12% 14% auto auto; width: 62%; height: 62%; right: auto; left: 12%; top: 14%; }
.community-art .orn { position: absolute; width: 40%; height: 40%; right: -6%; bottom: -8%; color: var(--accent); }
.row-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: var(--s2-r-row); background: var(--s2-card); color: var(--s2-ink); text-decoration: none; transition: transform var(--s2-dur-press) var(--s2-ease-bounce); }
.row-card:active { transform: scale(.98); }
.row-card:hover .row-title { text-decoration: underline; }
.row-thumb { width: 96px; aspect-ratio: 118 / 84; border-radius: var(--s2-r-field); overflow: hidden; background: var(--s2-soft-yellow-bg); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.row-thumb img.is-loaded { opacity: 1; }
.row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-title { font-weight: 700; font-size: var(--s2-fs-subhead); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; align-items: center; gap: 4px; font-size: var(--s2-fs-caption); font-weight: 600; color: var(--s2-text-muted); }
.row-meta .ms { font-size: 15px; }
.row-card .ink-disc { width: 38px; height: 38px; }
.date-disc { width: 56px; height: 56px; border-radius: 18px; background: var(--bg); color: var(--fg); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-disc b { font-size: 20px; }
.date-disc small { font-size: 12px; font-weight: 700; text-transform: uppercase; margin-top: 2px; }
.fresh-grid { gap: 28px; }
.fresh-grid .sec-head { margin-bottom: 0; }
@media (min-width: 720px) { .fresh-solo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } .fresh-solo > .sec-head { grid-column: 1 / -1; } }
.story-card { display: grid; gap: 24px; padding: 24px; }
@media (min-width: 900px) { .story-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding: 36px; } }
.story-copy .lead { margin: 10px 0 18px; }
.faces { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faces li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: var(--s2-white); }
.faces img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; background: var(--bg); box-shadow: 0 0 0 3px var(--s2-white), 0 0 0 5px var(--bg); flex: none; opacity: 0; transition: opacity .25s; }
.faces img.is-loaded { opacity: 1; }
.faces b { display: block; font-size: var(--s2-fs-subhead); color: var(--s2-ink); }
.faces small { display: block; font-size: var(--s2-fs-caption); color: var(--s2-text-muted); line-height: 1.3; }
.closing { position: relative; overflow: hidden; border-radius: var(--s2-r-card); background: var(--bg); color: var(--fg); }
.closing-in { position: relative; z-index: 1; padding: 28px 24px 30px; max-width: 640px; }
@media (min-width: 900px) { .closing-in { padding: 44px; } }
.closing h2 { color: inherit; }
.closing p { margin-top: 8px; font-size: var(--s2-fs-body); opacity: .92; }
.closing .orn { position: absolute; width: 160px; height: 160px; right: -24px; bottom: -30px; color: var(--accent); opacity: .7; }
@media (min-width: 900px) { .closing .orn { width: 260px; height: 260px; } }

/* ── Photos and logos: initials underneath, the picture fades in on top ── */
.avatar, .person-photo { position: relative; overflow: hidden; display: grid; place-items: center; flex: none; background: var(--bg, var(--s2-soft-lavender-bg)); color: var(--fg, var(--s2-soft-lavender-fg)); font-weight: 800; }
.avatar { width: 64px; height: 64px; border-radius: 999px; font-size: 20px; box-shadow: 0 0 0 3px var(--s2-white); }
.avatar--lg { width: 96px; height: 96px; font-size: 30px; box-shadow: 0 0 0 4px var(--s2-chip-on-fill); }
.avatar img, .person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--s2-white); opacity: 0; transition: opacity .3s; }
.avatar img.is-loaded, .person-photo img.is-loaded { opacity: 1; }
.banner-kicker .avatar { margin-bottom: 4px; }

/* Empty / error / not-found states */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 40px 24px; max-width: 640px; margin: 0 auto; }
.empty h1 { font-size: var(--s2-fs-title-1); }
.empty-disc { width: 64px; height: 64px; }
.empty-disc .ms { font-size: 30px; }
.nf-search { width: 100%; max-width: 460px; margin-top: 8px; }
@media (max-width: 420px) {
  .hdr-in { gap: 8px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-disc { width: 36px; height: 36px; }
  .brand-disc img { width: 24px; height: 24px; }
  .hdr-actions { gap: 4px; }
  .hdr-actions .icon-btn { width: 40px; height: 40px; }
  .hdr-actions .btn--sm { padding: 8px 14px; }
}

/* ── Shared page parts ──────────────────────────────────────────────────── */
.narrow { max-width: 860px; }
.sec-title { font-size: var(--s2-fs-title-2); margin-bottom: 16px; }
.sec-sub { font-size: var(--s2-fs-headline); margin: 24px 0 10px; }
.faq-h { font-size: var(--s2-fs-title-2); margin-bottom: 16px; }
.banner--page h1 { max-width: 24ch; }
.banner-kicker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.banner-kicker .tag { background: var(--s2-chip-on-fill); color: var(--s2-ink); }
.banner .hero-cta { margin-top: 20px; }
.tag--plain { background: var(--s2-card); color: var(--s2-text-muted); }
.tag--lg { padding: 7px 14px; font-size: var(--s2-fs-subhead); }
.link-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pill--plain { padding: 9px 16px; }
.pill b { font-size: var(--s2-fs-caption); color: var(--s2-text-muted); font-weight: 700; }
a.link-card { gap: 6px; }
.link-card .disc { margin-bottom: 6px; }
.link-card .card-title { display: inline-flex; align-items: center; gap: 6px; font-size: var(--s2-fs-headline); }
.link-card .card-title .ms { font-size: 18px; color: var(--s2-text-muted); }
.kind-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; }
@media (min-width: 640px) { .kind-card { min-height: 150px; padding: 20px 22px; } }
.kind-card .card-title, .kind-card .kind-text { position: relative; z-index: 1; }
.kind-text { font-size: var(--s2-fs-subhead); line-height: 1.5; max-width: 40ch; }
.kind-card .orn { position: absolute; width: 110px; height: 110px; right: -26px; bottom: -26px; color: var(--accent); pointer-events: none; }
.attrib { margin-top: 24px; font-size: var(--s2-fs-footnote); line-height: 1.55; color: var(--s2-text-muted); max-width: 90ch; }
.attrib a { color: inherit; }
.attrib + p { margin-top: 14px; }
.msg .ms { font-size: 20px; margin-top: 1px; }

/* ── Finders: search box, filters, results, map ─────────────────────────── */
.ffind { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; max-width: 640px; }
.ffind .search-pill { height: 58px; box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.ffind .search-pill input { font-size: 17px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pick label { position: relative; display: inline-flex; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 15px; border-radius: var(--s2-r-pill); background: var(--s2-chip-on-fill); color: var(--s2-ink); font-size: var(--s2-fs-footnote); font-weight: 700; transition: background .15s, color .15s; }
.pick span .ms { font-size: 17px; }
.pick input:checked + span { background: var(--s2-ink); color: var(--s2-on-ink); }
.pick input:focus-visible + span { outline: 3px solid var(--s2-ink); outline-offset: 2px; }

.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.results-head h2 { font-size: var(--s2-fs-title-2); }
.results-range { color: var(--s2-text-muted); font-weight: 700; }
.results-head p { margin-top: 6px; color: var(--s2-text-muted); font-size: var(--s2-fs-subhead); max-width: 64ch; }
.results { display: grid; gap: 14px; }
.results-list { display: grid; gap: 12px; align-content: start; }
@media (min-width: 640px) and (max-width: 999px) { .results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.results-map { display: none; }
.results[data-view="map"] .results-list { display: none; }
.results[data-view="map"] .results-map { display: block; }
.seg { display: none; justify-self: start; padding: 4px; gap: 2px; border-radius: var(--s2-r-pill); background: var(--s2-card); }
.js .seg { display: inline-flex; }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 16px; border: 0; border-radius: var(--s2-r-pill); background: none; color: var(--s2-ink); font-size: var(--s2-fs-footnote); font-weight: 700; cursor: pointer; }
.seg button .ms { font-size: 18px; }
.seg button[aria-pressed="true"] { background: var(--s2-white); box-shadow: 0 1px 6px rgba(0, 0, 0, .1); }
@media (min-width: 1000px) {
  .js .seg { display: none; }
  .results { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: start; gap: 20px; }
  .results-list, .results[data-view="map"] .results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-map, .results[data-view="map"] .results-map { display: block; position: sticky; top: 88px; }
}
html:not(.js) .results-map { display: none !important; }

.fmap { position: relative; z-index: 0; height: 68vh; min-height: 340px; border-radius: var(--s2-r-card); overflow: hidden; background: var(--s2-soft-mint-bg); }
@media (min-width: 1000px) { .results .fmap { height: calc(100vh - 120px); max-height: 760px; } }
.fmap--small { height: 260px; min-height: 0; margin-top: 16px; }
.fmap-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: var(--s2-soft-mint-fg); font-weight: 650; font-size: var(--s2-fs-subhead); }
.fmap .leaflet-popup-content-wrapper { border-radius: 16px; }
.fmap .leaflet-popup-content { margin: 12px 14px; font: 600 14px/1.35 var(--s2-font); }
.fmap-pop { display: flex; flex-direction: column; gap: 3px; }
.fmap-pop a, .fmap-pop strong { color: var(--s2-ink); font-weight: 800; font-size: 15px; }
.fmap-pop span { color: var(--s2-text-muted); font-weight: 600; }

/* Result cards (white, like the apps' post cards) */
.rcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--s2-r-card); background: var(--s2-white); box-shadow: 0 0 0 1px var(--s2-card-edge); transition: box-shadow .15s, transform var(--s2-dur-press) var(--s2-ease-bounce); }
.rcard:has(.rcard-title a):hover { box-shadow: 0 0 0 1px var(--s2-card-edge), var(--s2-shadow-card); }
.rcard:has(.rcard-title a):active { transform: scale(.985); }
.rcard-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-right: 76px; }
.rcard-title { font-size: var(--s2-fs-headline); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.rcard-title a { color: var(--s2-ink); text-decoration: none; }
.rcard-title a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.rcard-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.rcard-title a:focus-visible { outline: 0; }
.rcard-title a:focus-visible::after { outline: 3px solid var(--s2-tab-active); outline-offset: 2px; }
.rcard-meta { font-size: var(--s2-fs-subhead); color: var(--s2-text-muted); }
.rcard-needs { font-size: var(--s2-fs-footnote); font-weight: 650; color: var(--s2-ink); }
.rcard-needs span { color: var(--s2-text-muted); }
.rcard-dist { position: absolute; top: 15px; right: 16px; padding: 3px 10px; border-radius: var(--s2-r-pill); background: var(--s2-card); font-size: var(--s2-fs-caption); font-weight: 750; color: var(--s2-ink); white-space: nowrap; }
.rcard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 6px 12px; border-radius: var(--s2-r-pill); background: var(--s2-card); color: var(--s2-ink); font-size: var(--s2-fs-footnote); font-weight: 700; text-decoration: none; white-space: nowrap; }
.chip-link:hover { background: var(--s2-soft-lavender-bg); }
.chip-link .ms { font-size: 15px; }

/* Browse by area */
.area-filter { max-width: 420px; height: 50px; margin-bottom: 14px; }
.area-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.area-grid a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--s2-card); color: var(--s2-ink); font-weight: 650; font-size: var(--s2-fs-subhead); text-decoration: none; transition: background .15s; }
.area-grid a:hover { background: var(--s2-soft-mint-bg); }
.area-grid b { flex: none; min-width: 34px; padding: 3px 9px; border-radius: var(--s2-r-pill); background: var(--s2-white); font-size: var(--s2-fs-caption); text-align: center; }
.area-none { margin-top: 10px; }
.areas.is-folded .area-grid { max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.areas-more { margin-top: 12px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
.pager a, .pager span { min-width: 46px; min-height: 46px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--s2-r-pill); background: var(--s2-card); color: var(--s2-ink); font-weight: 750; text-decoration: none; }
.pager a:hover { background: var(--s2-soft-lavender-bg); }
.pager [aria-current] { background: var(--s2-ink); color: var(--s2-on-ink); }
.pager .pager-gap { background: none; min-width: 20px; padding: 0; color: var(--s2-text-muted); }

/* ── School page ────────────────────────────────────────────────────────── */
.save-btn[aria-pressed="true"] { background: var(--s2-soft-pink-bg); color: var(--s2-soft-pink-fg); }
.save-btn .ms { color: var(--s2-danger); }
.sd { display: flex; flex-direction: column; gap: 16px; }
.sd-main, .sd-side { display: contents; }
/* Phones: one column, with the Ofsted card straight after the key facts. */
.sd-main > *, .sd-side > * { order: 2; }
.sd-main > .facts { order: 0; }
.sd-side > :first-child { order: 1; }
.sd-side > :last-child { order: 3; }
@media (min-width: 980px) {
  .sd { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; }
  .sd-main, .sd-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .sd-side { position: sticky; top: 88px; }
}
.sd-block, .side-card { padding: 20px; border-radius: var(--s2-r-card); background: var(--s2-card); color: var(--s2-ink); }
@media (min-width: 720px) { .sd-block { padding: 24px 26px; } }
.sd-block h2, .side-card h2 { font-size: var(--s2-fs-title-3); margin-bottom: 12px; }
.sd-block > p { line-height: 1.6; color: var(--s2-text); max-width: 68ch; }
.side-card { background: var(--s2-white); box-shadow: 0 0 0 1px var(--s2-card-edge); display: flex; flex-direction: column; gap: 12px; }
.side-card h2 { margin-bottom: 0; }
.side-card p { font-size: var(--s2-fs-subhead); line-height: 1.5; }
.side-card--soft { background: var(--bg); color: var(--fg); box-shadow: none; }
.side-card--soft h2 { color: inherit; }
.side-urn { font-size: var(--s2-fs-footnote); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.fact { padding: 14px 16px; border-radius: 20px; background: var(--s2-card); }
.fact b { display: block; font-size: var(--s2-fs-title-3); font-weight: 800; color: var(--s2-ink); letter-spacing: -.01em; }
.fact span { font-size: var(--s2-fs-footnote); font-weight: 650; color: var(--s2-text-muted); }
.needs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.needs li { padding: 8px 14px; border-radius: 16px; background: var(--s2-white); font-size: var(--s2-fs-subhead); font-weight: 650; color: var(--s2-ink); }
.needs abbr { margin-left: 2px; color: var(--s2-text-muted); font-size: var(--s2-fs-caption); font-weight: 750; text-decoration: none; }
.info { margin: 0; }
.info > div { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--s2-divider); }
.info > div:first-child { border-top: 0; padding-top: 0; }
.info dt { color: var(--s2-text-muted); font-weight: 650; font-size: var(--s2-fs-subhead); }
.info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sd-note { margin-top: 12px; font-size: var(--s2-fs-subhead); }
.sd-addr { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.sd-addr .ms { color: var(--s2-text-muted); margin-top: 2px; }
.sd-dir-label { margin-top: 18px; font-weight: 750; font-size: var(--s2-fs-subhead); }
.sd-dir-label + .links { margin-top: 8px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.links .btn .ms { font-size: 17px; }

/* ── Local support ──────────────────────────────────────────────────────── */
.ls-area { color: var(--s2-text-muted); font-weight: 650; }
.ls-council { font-size: var(--s2-fs-title-1); margin: 2px 0 16px; }
.ls-card { min-height: 0; }
.ls-card .disc { margin-bottom: 4px; }
.ls-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 750; }
.ls-go .ms { font-size: 17px; }
.ls-note { margin-top: 14px; font-size: var(--s2-fs-subhead); }
.ls-more { margin-top: 18px; }
.ls-fallback { display: flex; flex-direction: column; gap: 12px; }
.ls-fallback .checks { margin-top: 0; }
.ls-fallback .checks .ms { color: var(--s2-ink); font-size: 18px; }

/* Pages built in the hub (site-v2/_lib/blocks.php): the few parts the code
   pages don't already have. */
.pd-img { margin: 0; }
.pd-img img { display: block; width: 100%; height: auto; }
.pd-img--round img { border-radius: var(--s2-r-card); }
.pd-img figcaption { margin-top: 8px; color: var(--s2-text-muted); font-size: var(--s2-fs-footnote); }
.pd-space { height: 24px; }
.pd-space--s { height: 12px; }
.pd-space--l { height: 56px; }

/* Fonts for easy reading, offered in the hub's page editor. Hosted here;
   downloaded only by pages that use them (assets/fonts/README.txt). */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/atkinson-400.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/atkinson-700.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/atkinson-400i.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: italic; font-weight: 700; font-display: swap; src: url(fonts/atkinson-700i.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/lexend.woff2) format('woff2'); }
