/* PHI⑊PIN design system v1. Built from the philpin.com repo: do not edit. Guide: https://brand.philpin.com */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* philpin.com loads these faces itself (next/font); here they come from Google Fonts */
:root { --font-inter: "Inter"; --font-space-grotesk: "Space Grotesk"; }

/*
  PHI⑊PIN design tokens.
  SOURCE OF TRUTH: this file (decided 19 Nov). The Wiki Style Guide follows the site, not the other way round.
  Older names match the previous philpin.com :root "name for name".
  This is the ONLY file allowed raw colour values (`npm run check:css` enforces it).
*/
:root {
  /* ── Colour: the core (Style Guide §3) ─────────────────────────── */
  --ink: #111111;          /* text, the logo background */
  /* GREYS ARE SLATE (19 Nov): one grey family, the brand slate. These names stay so nothing breaks,
     but they point at the slate ladder. Anything grey is slate, unless it must say nothing: then --grey. */
  --ink-mid: var(--slate-800);    /* H4, body in cards */
  --ink-soft: var(--slate-600);   /* secondary text */
  --ink-faint: var(--slate-400);  /* fine print */
  --ground: #fafafa;       /* the page behind everything */
  /* GIP's grounds (22 Nov): the living canvas its website drifts through, never plain white (src/app/spaces/[space]/website) */
  --gip-cream: #f6f1e7;
  --gip-stone: #efede8;
  --gip-grey: #eceef1;
  --white: #ffffff;        /* what you read or act on */
  --grey: #e5e5e7;         /* the out-of-brand grey: when something must be grey without saying anything */
  /* FEEDBACK (22 Nov): our tool, laid over any page, so never in any brand's colours. The same on every address.
     (2 Dec 2026, John: "make the feedback button ... purple with white text") an out-of-brand purple, white words
     (7:1). (2 Dec 2026, John: "purple is engage brand throughout entire domains") that purple IS the Engage domain's colour
     now, so feedback is Engage: these read the --engage-* tokens. (Style Guide, Buttons) */
  --feedback: var(--engage-electric);
  --feedback-ink: var(--white);
  --feedback-hover: var(--engage-core);
  --line: var(--grey);     /* hairlines: the same value as grey, not a near-twin */
  --ink-slate: #7a8f99;    /* the logo slash, controls, quiet labels */
  /* i2p (21 Nov): its own green, the Sales-Ready green. Not a PHI⑊PIN brand colour: used only on i2p.philpin.com */
  --i2p-green: #33840b;           /* on light grounds */
  --i2p-green-electric: #5cc72a;  /* on dark grounds */
  /* COMSET (28 Nov): Comset's own colours, from their style guide (comset.i2p.philpin.com/brand), for the exceptions
     listed there: their front page wears them over our Splash (src/templates/splash/splash.module.css, .skinComset) */
  --comset-navy: #10052d;
  --comset-navy-raised: #140a33;
  --comset-navy-line: #2a2145;
  /* (5 Dec 2026, John) the table's Find | Shape | Act band: a theme token per domain. PHI⑊PIN black by default; Comset
     pages take their own blue (John: black "a bit fierce ... not a good color for" Comset), set under [data-brand="comset"] */
  --table-band: var(--ink);
  --table-band-ink: var(--white);
  --table-band-soft: color-mix(in srgb, var(--white) 78%, var(--table-band));   /* labels and the count on the band */
  --table-band-line: color-mix(in srgb, var(--white) 60%, var(--table-band));   /* control outlines on the band */
  --comset-blue: #0092c7;
  --comset-coral: #ff435d;   /* (28 Nov, John) at rest only as --comset-quote-name; everywhere else, the hover */
  --comset-quote-name: var(--comset-coral);
  /* the UK map behind Ready to change (John, 28 Nov: "blue sea, grey towns, high elevation brown, lower elevation green,
     and the pulsing red"): a map's own palette, muted so it stays behind the card. Plain hex, because the map engine
     reads them directly. The clusters are coral dots at rest, an exception to coral-on-hover-only */
  --comset-map-dot: var(--comset-coral);
  --comset-map-home: var(--comset-blue);   /* where Comset's own people are: larger blue bubbles, no names (John, 4 Dec 2026) */
  --comset-ready-w: 1240px;      /* Ready to change: the card on the left, the map on the page beside and under it */
  --comset-ready-h: 760px;
  --comset-ready-foot: 160px;     /* how far the map runs on down under the footer */
  --comset-mark-h-ready: 135%;   /* the band's mark on Ready to change: bigger, cropped by the band */
  --comset-map-sea: color-mix(in srgb, var(--comset-sky) 60%, var(--white));      /* Comset sky, lifted toward white */
  --comset-map-line: color-mix(in srgb, var(--comset-blue-ink) 65%, var(--white));     /* the coast */
  --comset-map-low: color-mix(in srgb, var(--i2p-green) 25%, var(--white));      /* land near sea level */
  --comset-map-mid: color-mix(in srgb, var(--i2p-green) 35%, var(--white));
  --comset-map-high: color-mix(in srgb, color-mix(in srgb, var(--gold) 60%, var(--white)) 45%, var(--comset-soft));     /* uplands */
  --comset-map-hill: color-mix(in srgb, color-mix(in srgb, var(--gold) 70%, var(--ink)) 45%, var(--comset-soft));
  --comset-map-peak: color-mix(in srgb, color-mix(in srgb, var(--gold) 45%, var(--comset-navy)) 65%, var(--comset-soft));     /* the highest ground */
  --comset-map-town: color-mix(in srgb, var(--comset-slate) 30%, var(--white));     /* built-up areas */
  --comset-map-road: color-mix(in srgb, var(--comset-slate) 45%, var(--white));
  --comset-map-shade: var(--comset-navy);    /* hill shading, in Comset navy */
  --comset-core: var(--comset-blue);   /* Comset as a page hue: the readiness questions on bobj/ready take it (hue="comset") */   /* the names of people we quote: Drucker, Eugene M. Schwartz */
  --comset-soft: #b9b4cc;
  --comset-mid: #1b2a7a;     /* the middle of their gradient */
  --comset-ink: #272626;
  --comset-slate: #434f58;
  --comset-line: #e2e2e6;
  --comset-alt: #f4f4f4;
  /* COMSET'S BLUES (28 Nov, John: "so we don't end up with 27,000 different versions of blue"): seven, and only seven.
     Navy and mid (above) are the dark end; then these. Every Comset page, React or whole HTML, draws from this list:
     public/spaces/comset/tokens.css is written from this file at build (scripts/comset-tokens.mjs), never by hand. */
  --comset-blue-ink: #0079a6;   /* their blue, one step darker: blue words and links on white (AA contrast) */
  --comset-sky: #3fb6e3;        /* their blue, one step lighter: blue words and lines on navy */
  --comset-ice: #e5f4f9;        /* the palest blue: washes and panels */
  --comset-ice-line: #cfe6f3;   /* lines and borders on ice */
  /* THE PHOTO LOOK (28 Nov): the landing hero, the big band and the little band. Photos are tinted when they are made
     (greyscale, then navy to blue to ice, midpoint 115 of 255); the rest is laid over them here */
  --comset-wash-hero: linear-gradient(90deg, color-mix(in srgb, var(--comset-navy) 92%, transparent) 0%, color-mix(in srgb, var(--comset-navy) 70%, transparent) 35%, color-mix(in srgb, var(--comset-navy) 0%, transparent) 60%);
  --comset-wash-band: linear-gradient(90deg, color-mix(in srgb, var(--comset-navy) 90%, transparent) 0%, color-mix(in srgb, var(--comset-navy) 60%, transparent) 45%, color-mix(in srgb, var(--comset-navy) 10%, transparent) 80%);
  --comset-wash-centre: linear-gradient(180deg, color-mix(in srgb, var(--comset-navy) 55%, transparent) 0%, color-mix(in srgb, var(--comset-navy) 80%, transparent) 100%);   /* under centred words (the hub) */
  --comset-hero-h: 680px;          /* the landing page (bobj) */
  --band-narrow-h: 150px;   /* (2 Dec, from Comset: the standard) a page inside a section: its banner; the menu's head lines up with its foot */
  --band-thick-h: 420px;    /* a section's front page */
  --comset-band-big-h: var(--band-thick-h);      /* a section's front page; image files 3:1 (2400 x 800) */
  --comset-band-little-h: var(--band-narrow-h);   /* a page inside a section; image files 7.5:1 (2400 x 320) */
  --comset-mark-opacity-hero: 0.6;
  --comset-mark-opacity-band: 0.55;
  --comset-mark-w-hero: 34%;       /* right 3%, 6% from top and bottom */
  --comset-mark-h-big: 88%;        /* on bands the mark is sized by height, so it never spills out of the band */
  --comset-mark-h-little: 80%;
  --banner-line-w: 0.8;            /* (2 Dec 2026) the banner's line art (mess to order): stroke width */
  --banner-line-strength: 0.5;     /* (2 Dec 2026) and how strongly it shows, 0 to 1: pushed back behind the title */
  --comset-block-w: 620px;         /* the message block: each line fitted to this width */
  --comset-cta-w: 440px;
  --comset-glass-bg: color-mix(in srgb, var(--comset-navy) 45%, transparent);
  --comset-glass-line: color-mix(in srgb, var(--white) 35%, transparent);
  --comset-glass-field: color-mix(in srgb, var(--white) 10%, transparent);
  --comset-glass-blur: 6px;
  --comset-glass-bg-phone: color-mix(in srgb, var(--comset-navy) 60%, transparent);      /* under 700px */
  --comset-glass-line-phone: color-mix(in srgb, var(--white) 60%, transparent);
  /* BOBJ (1 Dec 2026): the landing page off whole HTML (src/app/spaces/[space]/_bobj), its last hand-written colours named */
  --comset-glass-field-phone: color-mix(in srgb, var(--white) 20%, transparent);
  --comset-on-dark-soft: color-mix(in srgb, var(--white) 85%, transparent);   /* small print on navy: the tick boxes */
  --comset-on-dark-faint: color-mix(in srgb, var(--white) 70%, transparent);   /* fainter: the privacy line, a placeholder */
  --comset-on-dark-rule: color-mix(in srgb, var(--white) 25%, transparent);   /* a rule on navy */
  --comset-on-dark-ok: color-mix(in srgb, var(--i2p-green-electric) 45%, var(--white));                     /* "you're on the list", on navy */
  --comset-on-dark-err: color-mix(in srgb, var(--comset-coral) 40%, var(--white));                    /* an error, on navy */
  --comset-shade: color-mix(in srgb, var(--comset-navy) 55%, transparent);              /* behind the sign-up panel */
  --comset-backdrop: color-mix(in srgb, var(--comset-navy) 60%, transparent);            /* behind a dialog */
  --comset-dialog-shadow: var(--comset-shadow-3);
  --comset-card-lift: var(--comset-shadow-3);   /* the five questions card */
  --comset-bobj-bars: 60px;                         /* the PHI⑊PIN bar above bobj's splash (0 in our own window) */
  --comset-corner: 0 0 16px 0;      /* their one cut corner (bottom right); small 0 0 10px 0, large 0 0 28px 0 */
  --comset-corner-small: 0 0 10px 0;
  --comset-corner-left: 0 0 0 16px;   /* the cut corner mirrored, for a button on the left (Back) */
  --comset-corner-large: 0 0 28px 0;
  /* COMSET PAGES (29 Nov 2026): the colours Brand, Marketing and Relationship were drawn in (src/styles/comset-pages),
     named once here when the pages moved off whole HTML. -dark- ones are each colour's dark-mode partner. Candidates to fold
     into the --comset-* set: --cxp-line (near --comset-line), --cxp-mute (near --comset-slate), --cxp-panel (near --comset-alt). */
  --cxp-green-pale: color-mix(in srgb, var(--i2p-green-electric) 25%, var(--white));
  --cxp-print-ink: var(--ink);
  --cxp-print-soft: color-mix(in srgb, var(--ink) 70%, var(--white));
  --cxp-print-rule: color-mix(in srgb, var(--ink) 42%, var(--white));
  --cxp-print-line: color-mix(in srgb, var(--ink) 20%, var(--white));
  --cxp-print-hair: color-mix(in srgb, var(--ink) 14%, var(--white));
  --cxp-dark-ground: color-mix(in srgb, var(--comset-navy) 75%, var(--ink));
  --cxp-dark-ink: color-mix(in srgb, var(--comset-soft) 25%, var(--white));
  --cxp-dark-pale: color-mix(in srgb, color-mix(in srgb, var(--comset-navy) 30%, var(--comset-blue)) 30%, var(--ink));
  --cxp-dark-chip: var(--comset-navy-raised);
  --cxp-dark-ground-2: color-mix(in srgb, var(--comset-navy) 60%, var(--ink));
  --cxp-dark-ink-2: color-mix(in srgb, var(--comset-soft) 30%, var(--white));
  --cxp-mute: color-mix(in srgb, var(--comset-navy) 68%, var(--white));
  --cxp-dark-mute: var(--comset-soft);
  --cxp-line: color-mix(in srgb, var(--comset-soft) 40%, var(--white));
  --cxp-dark-line: var(--comset-navy-line);
  --cxp-teal: var(--comset-blue-ink);
  --cxp-dark-teal: var(--comset-sky);
  --cxp-grey: color-mix(in srgb, var(--comset-slate) 80%, var(--white));
  --cxp-dark-grey: color-mix(in srgb, var(--comset-slate) 65%, var(--white));
  --cxp-cell: color-mix(in srgb, var(--comset-soft) 15%, var(--white));
  --cxp-dark-cell: var(--comset-navy-raised);
  --cxp-coral-ink: color-mix(in srgb, var(--comset-coral) 80%, var(--ink));
  --cxp-teal-ring: var(--comset-ice-line);
  --cxp-dark-teal-ring: color-mix(in srgb, var(--comset-blue) 25%, var(--comset-navy));
  --cxp-del: color-mix(in srgb, var(--comset-soft) 35%, var(--white));
  --cxp-dark-del: var(--comset-navy-line);
  --cxp-dark-ice: color-mix(in srgb, var(--comset-blue) 15%, var(--comset-navy));
  --cxp-dark-ice-line: color-mix(in srgb, var(--comset-blue) 30%, var(--comset-navy));
  --cxp-svg-sub: var(--comset-slate);
  --cxp-stale: color-mix(in srgb, var(--comset-coral) 8%, var(--white));
  --cxp-teal-wash: var(--comset-ice);
  --cxp-dark-teal-wash: color-mix(in srgb, var(--comset-blue) 15%, var(--comset-navy));
  --cxp-grey-wash: var(--comset-alt);
  --cxp-dark-grey-wash: color-mix(in srgb, var(--comset-navy-line) 50%, var(--ink));
  --cxp-teal-on-dark: var(--comset-ice);
  --cxp-soft: color-mix(in srgb, var(--comset-navy) 70%, var(--white));
  --cxp-line-2: var(--cxp-line);
  --cxp-panel: var(--comset-alt);
  --cxp-coral-deep: color-mix(in srgb, var(--comset-coral) 70%, var(--ink));
  --cxp-local: color-mix(in srgb, var(--gold) 10%, var(--white));
  --cxp-local-line: color-mix(in srgb, var(--gold) 35%, var(--white));
  /* COMSET'S SCALES (2 Dec 2026, John: about 465 values in use where about 65 would do). Every size, gap, corner,
     shadow, line height and width on a Comset page is one of these; scripts/check-scales.mjs fails anything else.
     Type: eight steps, plus three display sizes that grow with the screen */
  --comset-fs-1: 11px;    /* the smallest: tags, credits, fine print */
  --comset-fs-2: 12px;    /* labels, captions */
  --comset-fs-3: 14px;    /* table text, notes */
  --comset-fs-4: 15px;    /* small body */
  --comset-fs-5: 17px;    /* body */
  --comset-fs-6: 19px;    /* lead paragraphs */
  --comset-fs-7: 22px;    /* sub-headings */
  --comset-fs-8: 28px;    /* headings */
  --comset-fs-d1: clamp(24px, 2.8vw, 32px);   /* display, small: card and section titles */
  --comset-fs-d2: clamp(32px, 4.4vw, 48px);   /* display: page titles */
  --comset-fs-d3: clamp(38px, 6vw, 64px);     /* display, large: heroes */
  /* line heights: five */
  --comset-lh-1: 1;  --comset-lh-2: 1.15;  --comset-lh-3: 1.3;  --comset-lh-4: 1.45;  --comset-lh-5: 1.6;
  /* weights: Source Sans 3 at 300 (light), 400 (regular) and 600 (names and headings) */
  --comset-light: 300;  --comset-regular: 400;  --comset-bold: 600;
  /* shadows: three, all in Comset navy */
  --comset-shadow-1: 0 1px 3px color-mix(in srgb, var(--comset-navy) 25%, transparent);    /* a small lift: roundels, chips */
  --comset-shadow-2: 0 8px 24px color-mix(in srgb, var(--comset-navy) 18%, transparent);   /* floating: menus, cards on hover */
  --comset-shadow-3: 0 20px 60px color-mix(in srgb, var(--comset-navy) 35%, transparent);  /* windows and dialogs */
  /* widths: reading measure, then three frames (with PHI⑊PIN's --story and --wide) */
  --comset-measure: 68ch;     /* running text */
  --comset-narrow: 640px;     /* a narrow column: forms, the questionnaire */
  --comset-credit-size: 12px;
  --comset-credit-opacity: 0.6;
  --i2p-core: var(--i2p-green);   /* i2p as a page hue (21 Nov): its own pages on the PHI⑊PIN layout, hue="i2p" */
  --i2p-wash: #f2f9ee;
  /* RED, AMBER, GREEN (21 Nov): ratings in tables (SEP and BANT). Text colour, then its tint */
  --rag-red: #a8201a;   --rag-red-wash: #fde8e6;
  --private-wash: 30%;   /* (29 Nov, John: "the red wash needs to be deeper") how much red Show private lays over a private page or part */
  --rag-amber: #9a5b00; --rag-amber-wash: #fdf1d8;
  --rag-green: #2c6e12; --rag-green-wash: #e5f3dc;
  --rag-green-electric: #4fd36b; --rag-red-electric: #ff5b4d; --rag-amber-electric: #ffb21e;   /* amber joins them (23 Nov): SEP Revealed on black */
  /* BRIGHT (25 Nov, John on Sales Ready's results: "the colours need to be brighter"): solid red, amber and green for
     labels, bars and buttons on light grounds, unmistakable at a glance. The darker ones above stay for text.
     Orange sits between red and amber, for a scale with four steps (Critical, High, Elevated, Solid). */
  --rag-red-bright: #e0281e; --rag-orange-bright: #f26a1b; --rag-amber-bright: #f5a300; --rag-green-bright: #1fa84a;
    /* the same lights on dark grounds (the view control, 22 Nov) */            /* the banner wash on those pages */
  /* BNZBA (21 Nov): from the BNZBA Intelligence design system. Used only on bnzba.philpin.com pages */
  --bnzba-blue-050: #ecf0ff;
  --bnzba-blue-100: #d6e3ff;
  --bnzba-blue-200: #a9c7ff;
  --bnzba-blue-300: #79acff;
  --bnzba-blue-400: #5a91e6;
  --bnzba-blue-500: #3c77ca;
  --bnzba-blue-600: #1a5eaf;      /* cobalt: bars, primary buttons */
  --bnzba-blue-700: #00468b;
  --bnzba-blue-800: #003063;      /* worksheet header bar */
  --bnzba-blue-900: #001b3d;      /* navy: the stage */
  --bnzba-red-600: #c00009;       /* warm half of the stage; off; destructive */
  --bnzba-flag-red: #c8102e;      /* the mark only */
  --bnzba-flag-navy: #012169;     /* the mark only */
  --bnzba-yellow: #fec302;        /* once per page */
  --bnzba-green: #00a300;         /* on */
  --bnzba-ink: #1b1b1b;
  --flag-blue: #012169;           /* the blue of the United Kingdom's and New Zealand's flags (Kōtare's splash picture) */
  --flag-red: #c8102e;            /* and their red */
  --pinned-edge: #c8102e;         /* (3 Dec 2026, John) the red edge of a menu's pinned action (Start here), in every application */
  --bnzba-digital-red: #ee3124;   /* the red of the BNZBA Digital mark: the accent on its landing page, on black */
  --bnzba-red-stage: oklch(50% 0.22 29deg / 85%);   /* the red bleed on the stage */
  --bnzba-blue-glow: oklch(52% 0.15 260deg / 45%);  /* the blue answer, bottom right */
  --bnzba-hairline: oklch(100% 0 0deg / 28%);       /* white hairline on the stage */
  /* COMMUNITIES' SCREENS (1 Dec): the colours of the first Kōtare demo, brought over value for value when its screens were
     rebuilt as pages (src/app/spaces/[space]/app/_communities). Named by value until each is matched to a BNZBA or core token
     above; the blues and slates already are. Used only by those screens. */
  --communities-000000: #000000;
  --communities-000000-30: color-mix(in srgb, var(--communities-000000) 30%, transparent);
  --communities-000000-35: color-mix(in srgb, var(--communities-000000) 35%, transparent);
  --communities-001129: #001129;
  --communities-001129-60: color-mix(in srgb, var(--communities-001129) 60%, transparent);
  --communities-00203f: #00203f;
  --communities-003063-45: color-mix(in srgb, var(--bnzba-blue-800) 45%, transparent);
  --communities-003063-92: color-mix(in srgb, var(--bnzba-blue-800) 92%, transparent);
  --communities-00468b-70: color-mix(in srgb, var(--bnzba-blue-700) 70%, transparent);
  --communities-0c1b2e: #0c1b2e;
  --communities-0c1b2e-25: color-mix(in srgb, var(--communities-0c1b2e) 25%, transparent);
  --communities-0c1b2e-30: color-mix(in srgb, var(--communities-0c1b2e) 30%, transparent);
  --communities-0d4f5c: #0d4f5c;
  --communities-0d5a2c: #0d5a2c;
  --communities-102030: #102030;
  --communities-102030-86: color-mix(in srgb, var(--communities-102030) 86%, transparent);
  --communities-145a35: #145a35;
  --communities-163e7a: #163e7a;
  --communities-199e70: #199e70;
  --communities-199e70-14: color-mix(in srgb, var(--communities-199e70) 14%, transparent);
  --communities-1a5eaf-38: color-mix(in srgb, var(--bnzba-blue-600) 38%, transparent);
  --communities-1d3557: #1d3557;
  --communities-1f7a45: #1f7a45;
  --communities-2e1866: #2e1866;
  --communities-2e9e5b: #2e9e5b;
  --communities-2e9e5b-45: color-mix(in srgb, var(--communities-2e9e5b) 45%, transparent);
  --communities-2e9e5b-5: color-mix(in srgb, var(--communities-2e9e5b) 5%, transparent);
  --communities-2ecc71: #2ecc71;
  --communities-2ecc71-25: color-mix(in srgb, var(--communities-2ecc71) 25%, transparent);
  --communities-2f9e5b: #2f9e5b;
  --communities-303030: #303030;
  --communities-3987e5: #3987e5;
  --communities-3987e5-14: color-mix(in srgb, var(--communities-3987e5) 14%, transparent);
  --communities-4b2a8a: #4b2a8a;
  --communities-5a3300: #5a3300;
  --communities-5a6b80: #5a6b80;
  --communities-5e5e5e: #5e5e5e;
  --communities-6b3d00: #6b3d00;
  --communities-79acff-14: color-mix(in srgb, var(--bnzba-blue-300) 14%, transparent);
  --communities-7a3a00: #7a3a00;
  --communities-7a4300: #7a4300;
  --communities-7b4fc9: #7b4fc9;
  --communities-8a1d22: #8a1d22;
  --communities-8fa3b8: #8fa3b8;
  --communities-930005: #930005;
  --communities-930005-55: color-mix(in srgb, var(--communities-930005) 55%, transparent);
  --communities-9fb3c5: #9fb3c5;
  --communities-c8363d: #c8363d;
  --communities-c8363d-40: color-mix(in srgb, var(--communities-c8363d) 40%, transparent);
  --communities-c97a00: #c97a00;
  --communities-c98500: #c98500;
  --communities-c98500-10: color-mix(in srgb, var(--communities-c98500) 10%, transparent);
  --communities-c98500-12: color-mix(in srgb, var(--communities-c98500) 12%, transparent);
  --communities-c98500-16: color-mix(in srgb, var(--communities-c98500) 16%, transparent);
  --communities-c98500-8: color-mix(in srgb, var(--communities-c98500) 8%, transparent);
  --communities-cdb8ff: #cdb8ff;
  --communities-cfd9e2: #cfd9e2;
  --communities-d99a00: #d99a00;
  --communities-d99a00-45: color-mix(in srgb, var(--communities-d99a00) 45%, transparent);
  --communities-dff3e6: #dff3e6;
  --communities-e0a526: #e0a526;
  --communities-e0a526-60: color-mix(in srgb, var(--communities-e0a526) 60%, transparent);
  --communities-e3ecfb: #e3ecfb;
  --communities-e52922: #e52922;
  --communities-e5f4f7: #e5f4f7;
  --communities-e7f6ee: #e7f6ee;
  --communities-e8710a: #e8710a;
  --communities-e8710a-16: color-mix(in srgb, var(--communities-e8710a) 16%, transparent);
  --communities-e8eff5: #e8eff5;
  --communities-e8f6ee: #e8f6ee;
  --communities-efe7ff: #efe7ff;
  --communities-f3c35a: #f3c35a;
  --communities-fbe0e1: #fbe0e1;
  --communities-fde7e6: #fde7e6;
  --communities-fde9c8: #fde9c8;
  --communities-ffb35c: #ffb35c;
  --communities-ffedea: #ffedea;
  --communities-fff1dc: #fff1dc;
  --communities-fff4e5: #fff4e5;
  --communities-ffffff-10: color-mix(in srgb, var(--white) 10%, transparent);
  --communities-ffffff-14: color-mix(in srgb, var(--white) 14%, transparent);
  --communities-ffffff-28: color-mix(in srgb, var(--white) 28%, transparent);
  --communities-ffffff-4: color-mix(in srgb, var(--white) 4%, transparent);
  --communities-ffffff-55: color-mix(in srgb, var(--white) 55%, transparent);
  --communities-ffffff-6: color-mix(in srgb, var(--white) 6%, transparent);
  --communities-ffffff-7: color-mix(in srgb, var(--white) 7%, transparent);
  --communities-ffffff-8: color-mix(in srgb, var(--white) 8%, transparent);
  --communities-ffffff-92: color-mix(in srgb, var(--white) 92%, transparent);
  --communities-home-nz: var(--communities-3987e5);      /* a member from New Zealand */
  --communities-home-uk: var(--communities-a35fd0);      /* from the United Kingdom */
  --communities-home-other: var(--communities-8fa3b8);   /* from anywhere else */
  --communities-home-nz-15: color-mix(in srgb, var(--communities-home-nz) 15%, transparent);
  --communities-home-nz-18: color-mix(in srgb, var(--communities-home-nz) 18%, transparent);
  --communities-a35fd0: #a35fd0;
  --communities-999999: #999999;
  --communities-8fa1b3: #8fa1b3;
  --communities-a3232a: #a3232a;
  --communities-d9534f: #d9534f;
  --communities-f3f6f9: #f3f6f9;
  --communities-7d93a8: #7d93a8;
  --communities-e0682b: #e0682b;
  --communities-2e9e5b-75: color-mix(in srgb, var(--communities-2e9e5b) 75%, transparent);
  /* GIP (22 Nov): GIP keeps PHI⑊PIN's palette. A role changes only for a reason written here.
     The join (PHI⑊PIN: the slash) -> the red ball. Reason: the ball IS the protocol, two parties identifying each other.
     PHI⑊PIN's join is a shape (the slash is the slash in any colour, so slate works elsewhere). GIP's join is a circle,
     and circles are people, so only red makes it the ball: GIP reserves the colour. Red on the ball and the person only.
     The pop (PHI⑊PIN: gold) -> GIP's own purple, --gip-electric. Reason: red is the ball's and the person's, and the ball has to stand out; gold competes with it.
     GIP'S PURPLE (22 Nov): its own, never Balance or Reveal (an application's accent never borrows ours). Bright, a lilac
     that leaps off the page; the core is only as deep as words need (6:1 on white). Hue 308, between Balance and Reveal.
     Act: considered, kept (PHI⑊PIN's blue). Quiet detail on dark: PHI⑊PIN's slate electric, as everywhere.
     SEAM: like i2p and BNZBA, this sits in PHI⑊PIN's own tokens. The brand contract moves it into a GIP theme */
  --gip-red: #e4312b;
  --gip-electric: #c273ff;   /* the pop: bright lilac, sparingly, never text on light */
  --gip-core: #9421d7;       /* words and rules in GIP's colour */
  --gip-pastel: #ecd8ff;     /* soft fills */
  --gip-wash: #faf5ff;       /* the banner and wash bands */
  --blue: #125993;         /* the brand: H1, H2, the new world */
  --blue-tint: var(--blue-wash);  /* quiet blue backgrounds: now the blue wash */
  --rust: #7f2519;         /* the old world, and the oldest foundation (PHI: people, before any technology). Never a heading */
  --gold: #ffbf00;         /* accent rules and highlights, sparingly */

  /* ── Slate ladder (Style Guide §3, proposed) ───────────────────── */
  --slate-050: #f0f8fc;
  --slate-100: #e6eef2;    /* where words sit */
  --slate-200: #d5e2e9;    /* frames that hold things */
  /* THE SHEET (3 Dec 2026, John: "a lot of very bright white ... tone down the pages", chose Mist): the ground every
     application's page sits on, under the menu. Cards and tables stay white on it. Core: it cascades to every application. */
  --sheet: #f3f6f8;
  /* THE STATUS LADDER IN GREYS (3 Dec 2026, John: "very light shade of gray is the idea ... it gets darker and darker as you
     get to the development world"): the application's lozenge, Idea lightest to Dev darkest. Production: none. */
  --status-idea: #eceff1;
  --status-concept: #cfd5da;
  --status-demo: #8c969f;
  --status-dev: #48525b;
  --slate-300: #b5cbd6;    /* lines on slate */
  --slate-400: #93a9b3;
  --slate-500: #7a8f99;    /* the slash and controls, nothing else */
  --slate-600: #5b6f79;    /* quiet text */
  --slate-700: #42565f;
  --slate-800: #2b3e46;
  --slate-900: #172931;

  /* ── Blue ramp (26 Nov): ten steps at the slate ladder's lightnesses, in the brand blue's hue (OKLCH).
     The blue tiers sit on it: wash = 050, pastel = 200, core = 700 (the brand blue itself). */
  --blue-050: var(--blue-wash);
  --blue-100: #e0effe;
  --blue-200: var(--blue-pastel);
  --blue-300: #9accfe;
  --blue-400: #69aaea;
  --blue-500: #4f90ce;
  --blue-600: #2d6fab;
  --blue-700: var(--blue);
  --blue-800: #013c6a;
  --blue-900: #002748;

  /* ── Domain colours (locked 19 Nov): related by rule. Eight hues 40° apart round the wheel, leaving a gap
     around the brand blue; every core at the same lightness; electric at each hue's brightest.
     --neon-x is the electric (on dark), --neon-x-light the core (on light). */
  --neon-intelligence: #11e0fa;  --neon-intelligence-light: #007785;
  --neon-pulse: #a7fb02;  --neon-pulse-light: #4d7800;
  --neon-assembly: #fa7600;  --neon-assembly-light: #a54b00;
  --neon-reveal: #fb02f4;  --neon-reveal-light: #9c3b96;
  --neon-library: #fdca0e;  --neon-library-light: #816501;
  --neon-personal: #ff3571;  --neon-personal-light: #b42f52;
  --neon-balance: #9476fe;  --neon-balance-light: #6b50c2;
  --neon-engage: #6d28d9;  --neon-engage-light: #5b21b6;   /* (2 Dec 2026, John: "purple is engage brand throughout entire domains"; was mint #03f8c3) */

  /* ── COLOUR TIERS (19 Nov) ──────────────────────────────────────
     Every hue comes in four tiers, each with one job:
       electric - glows; on DARK backgrounds only
       core     - the colour itself; on light backgrounds (headings, buttons, rules, text)
       pastel   - a soft fill you can still see as the colour (labels, note cards, chips)
       wash     - barely there; big quiet areas (bands, section backgrounds)
     Pastels and washes are generated by rule from each core (OKLCH: pastel L .91, wash L .975), then tuned by eye.
     Gold is the pop: used sparingly, never text on light, so it has no darker version.
     Never invent a one-off colour: pick a hue and a tier from here. */
  --blue-electric: #0099ff;   --blue-core: var(--blue);   --blue-pastel: #cce4fe;   --blue-wash: #f1f8ff;
  --rust-electric: #ff563f;   --rust-core: var(--rust);   --rust-pastel: #ffd7cf;   --rust-wash: #fff4f2;
  --gold-electric: #ffbf00;   --gold-core: var(--gold);   --gold-pastel: #f4dfb4;   --gold-wash: #fdf6e9;
  --slate-electric: #95c6dd;  --slate-core: var(--ink-slate); --slate-pastel: #d4e4ec; --slate-wash: #f2f8fb;
  /* domains: electric = the neon, core = the readable version for light backgrounds */
  --intelligence-electric: var(--neon-intelligence); --intelligence-core: var(--neon-intelligence-light); --intelligence-pastel: #b3edf7; --intelligence-wash: #eafafe;
  --pulse-electric: var(--neon-pulse);         --pulse-core: var(--neon-pulse-light);         --pulse-pastel: #d4eac0;    --pulse-wash: #f3f9ed;
  --assembly-electric: var(--neon-assembly);   --assembly-core: var(--neon-assembly-light);   --assembly-pastel: #ffd8c3; --assembly-wash: #fef5f0;
  --reveal-electric: var(--neon-reveal);       --reveal-core: var(--neon-reveal-light);       --reveal-pastel: #f9d4f5;   --reveal-wash: #fef3fd;
  --library-electric: var(--neon-library);     --library-core: var(--neon-library-light);     --library-pastel: #f1e0b4;  --library-wash: #fbf7e9;
  --personal-electric: var(--neon-personal);   --personal-core: var(--neon-personal-light);   --personal-pastel: #fed5da; --personal-wash: #fff4f5;
  --balance-electric: var(--neon-balance);     --balance-core: var(--neon-balance-light);     --balance-pastel: #e0ddff;  --balance-wash: #f6f6ff;
  --engage-electric: var(--neon-engage);       --engage-core: var(--neon-engage-light);       --engage-pastel: #ddd6fe;   --engage-wash: #f5f3ff;

  /* ── Note cards (Style Guide §3): a background with its own ink ── */
  --nc-sage-bg: #d6e8d4;      --nc-sage-ink: #2a4828;
  --nc-sky-bg: #d0e4f4;       --nc-sky-ink: #1c3a54;
  --nc-rose-bg: #f4d8d8;      --nc-rose-ink: #4a2020;
  --nc-peach-bg: #f4e4cc;     --nc-peach-ink: #4a3010;
  --nc-lavender-bg: #e0d6f4;  --nc-lavender-ink: #2c1f5a;
  --nc-mint-bg: #c8ecec;      --nc-mint-ink: #164040;

  /* ── Type (Style Guide §2) ─────────────────────────────────────── */
  /* faces are loaded in layout.tsx and arrive as --font-inter / --font-space-grotesk */
  --face-read: var(--font-inter), system-ui, sans-serif;            /* reading and interface */
  --face-label: var(--font-space-grotesk), system-ui, sans-serif;   /* labels, menus, buttons */

  --h1-size: 2.25rem;  --h1-tracking: -0.02em;
  --h2-size: 1.75rem;  --h2-tracking: -0.02em;
  --h3-size: 1.5rem;
  --h4-size: 1.25rem;
  --h5-size: 1.0625rem;
  --h6-size: 0.9375rem;
  --body-size: 1rem;
  --small-size: 0.875rem;
  /* THE CORE'S SMALL STEPS, WEIGHTS AND LINE HEIGHTS (4 Dec 2026, John: "please fix it all", Sales Ready's run onto the core
     scales). The core had headings, body and small only; every application then typed its own labels, weights and line
     heights by hand. These are the core's, the same values Comset's scale settled on (2 Dec 2026). A new step is John's call. */
  --label-size: 0.75rem;    /* 12px: labels, captions, chips, scale words */
  --fine-size: 0.6875rem;   /* 11px: fine print, chart labels, source marks */
  --display-size: calc(var(--h1-size) * 1.4);   /* one big number: a score */
  --weight-light: 300;  --weight-regular: 400;  --weight-bold: 600;
  --lh-1: 1;  --lh-2: 1.15;  --lh-3: 1.3;  --lh-4: 1.45;   /* and --line-height (1.6) for running text */
  --shadow-lift: 0 1px 3px color-mix(in srgb, var(--ink) 18%, transparent);   /* a small lift: a slider's thumb, a chip */
  --line-height: 1.6;
  --quote-line-height: 1.8;

  /* ── Spacing (Style Guide §5) ──────────────────────────────────── */
  --space-half: 2px;      /* (2 Dec 2026) the half step: chips, tags, fine nudges */
  /* (4 Dec 2026, John: "a bit taller across the network") every application menu's rows: a card's own row, and a page under it */
  --menu-row: 40px;
  --menu-sub-row: 32px;
  --menu-type: 0.95rem;       /* (4 Dec 2026, John: "are the words themselves slightly too small") a card's own row, about 15px */
  --menu-sub-type: 0.875rem;  /* a page under it, 14px */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --max: 680px;           /* reading width: running text never goes wider (about 70 characters at body size) */
  --story: 800px;         /* STORY pages: the column. Pull quotes, images and diagrams may use all of it */
  --wide: 1200px;         /* WIDE pages: the frame for tables, grids, galleries. Text inside still stops at --max */
  /* All three are maximums, never fixed: below them a page simply fills the screen less --pad. */
  --pad: 24px;            /* page padding */
  /* (5 Dec 2026, John: "hold those widths of all the columns") table column widths, so grouping, folding or sorting never moves them */
  --col-xs: 64px; --col-s: 112px; --col-m: 160px; --col-l: 224px; --col-xl: 320px; --col-xxl: 480px;   /* xxl (5 Dec 2026, John): a 60-character task on one line */
  --col-flag: 40px;   /* (5 Dec 2026, John) the ❗ flag column, straight after the number */

  /* ── Site-specific (not in the Style Guide yet) ────────────────── */
  --line-width: 2px;
  /* CORNERS GROW WITH THE OBJECT (19 Nov): the same radius looks smaller on a bigger shape.
     Anything inside a card keeps its own size's radius; it does not inherit the card's. */
  --radius: 3px;             /* small: buttons, labels, chips, filter tags, swatches */
  --radius-card: 6px;        /* medium: cards (tables, colour charts, overview cards) */
  --radius-large: 12px;      /* large: big panels, hero images, a story page's sheet */
  --radius-button: var(--radius);
  --card-pad: var(--space-5); /* inside a card */
  --figure-space: var(--space-7); /* the air above and below every figure (image, diagram, group of blocks) */
  --swatch-height: 40px;      /* every colour chip in the style guide: one size */
  /* BUTTON WIDTHS: three standard sizes used everywhere, so rows of buttons line up across the site */
  --button-narrow: 100px;
  --button-medium: 150px;
  --button-wide: 200px;
  --button-gap: 4px;         /* buttons in a row sit tight */
  --motion-quick: 0.25s ease;
  --shadow-soft: 0 6px 24px rgba(17, 17, 17, 0.08);   /* menus that float over the page */
  --tile-label: clamp(12px, 3.2vw, 34px);
  --tile-note: clamp(8px, 1.3vw, 12px);
  --tile-gap: clamp(4px, 1.2vw, 14px);   /* home grid: space between squares, in proportion to the grid; no lines */
  --tile-padding: clamp(8px, 2.5vw, 24px);
  /* the slash from the logo, as a background */
  --slash: linear-gradient(45deg, transparent 44%, var(--ink-slate) 44%, var(--ink-slate) 56%, transparent 56%);
}

/* SALES READY SHAPES (John, 28 Nov): named presets an application picks in sales_ready.applications.shape
   ({"width","spacing","height"}). Each sets --sr-* tokens that flow.module.css reads; with none set, the base look.
   Add a preset here, never a raw value in a page. Shown on /brand#tokens. */
:root { --sr-width-narrow: 560px; --sr-width-wide: 880px; }
[data-sr-width="narrow"] { --sr-width: var(--sr-width-narrow); }
[data-sr-width="wide"] { --sr-width: var(--sr-width-wide); }
[data-sr-spacing="tight"] { --sr-gap: var(--space-3); --sr-pad: var(--space-5); --sr-nav-pad: var(--space-3); --sr-nav-foot: var(--space-4); --sr-q-lines: 3; }
[data-sr-spacing="roomy"] { --sr-gap: var(--space-5); --sr-pad: var(--space-7); --sr-nav-pad: var(--space-5); --sr-nav-foot: var(--space-6); }
[data-sr-height="short"] { --sr-frame-h: clamp(26rem, 60vh, 34rem); }
[data-sr-height="tall"] { --sr-frame-h: clamp(34rem, 80vh, 48rem); }
/* (2 Dec 2026, John: "tighten the whole form a bit so that it doesn't drift off to the bottom") fit: the frame hugs what it
   holds, so the research sits under the question and the button sits under the research, with no empty run between */
[data-sr-height="fit"] { --sr-frame-h: auto; }
/* skin: a client's look on the same shape. Comset (John, 28 Nov: "put some design around it to make it look a little
   bit more like [Comset]"): an ice ground, a white card with a navy cap and their cut corner, Source Sans 3, navy words,
   blue-ink labels, a thicker blue progress line on ice. Listed as exceptions on comset.i2p/brand */
[data-sr-skin="comset"] {
  --sr-face: var(--font-comset, "Source Sans 3"), var(--face-read);
  --sr-ground: transparent;   /* the page itself is ice (ready.module.css), so the UK map behind can show */ --sr-frame-line: var(--comset-ice-line); --sr-cap: 4px solid var(--comset-navy);
  --sr-radius: var(--comset-corner-large); --sr-button-radius: var(--comset-corner-small);
  --sr-lift: 0 2px 6px color-mix(in srgb, var(--comset-navy) 10%, transparent), 0 28px 56px -18px color-mix(in srgb, var(--comset-navy) 40%, transparent);
  /* Research Shows as a note peeling off the card: ice, a blue edge, the corner turned up */
  --sr-research-bg: var(--comset-ice); --sr-research-line: var(--comset-ice-line); --sr-research-edge: 3px solid var(--comset-blue);
  /* (John, 28 Nov) Back and Next sit right under the scale, together on the right, so scoring is one area; the
     Research note drops to the foot of the card. The step's parts join the card's own column (display: contents) */
  --sr-content-display: contents; --sr-nav-order: 1; --sr-research-order: 2; --sr-research-foot: var(--space-5);
  --sr-nav-position: static; --sr-nav-top: 0; --sr-nav-line: 0; --sr-nav-pad: 0; --sr-nav-foot: var(--space-5); --sr-nav-justify: space-between; --sr-back-radius: var(--comset-corner-left);
  --sr-research-radius: 0; --sr-research-ink: var(--comset-navy); --sr-research-fold: var(--comset-ice-line); --sr-peel: 22px;
  --sr-research-lift: 0 6px 14px -8px color-mix(in srgb, var(--comset-navy) 35%, transparent);
  --sr-peel-shadow: -2px -2px 4px color-mix(in srgb, var(--comset-navy) 18%, transparent);
  --sr-ink: var(--comset-navy); --sr-q-weight: 400; --sr-kicker: var(--comset-blue-ink); --sr-kicker-weight: 600;
  --sr-track: var(--comset-ice); --sr-progress-h: 3px;
  /* back and forth in their bright blue (John: "something bright ... for the button to move back and forth"): Next filled,
     Back outlined, both coral on hover */
  --sr-back-line: var(--comset-blue); --sr-back-ink: var(--comset-blue-ink); --sr-back-hover: var(--comset-coral);
}

/* (5 Dec 2026, John) Comset's pages: the table band in Comset blue, not black */
[data-brand="comset"] {
  --table-band: var(--comset-blue-ink);
  --table-band-soft: color-mix(in srgb, var(--white) 82%, var(--table-band));
  --table-band-line: color-mix(in srgb, var(--white) 65%, var(--table-band));
}

@import "../styles/themes/gip.css";   /* a space's theme: its changes to PHI⑊PIN's components (22 Nov) */

/* Base text styles from the Style Guide (§2). Pages inherit these; templates rarely override. */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* stop phone browsers enlarging small text on their own */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face-read);
  font-size: var(--body-size);
  line-height: var(--line-height);
  min-height: 100svh;
}

/* THE HEADING LADDER (19 Nov): H1 to H3 in brand blue, H4 to H6 in slate. Rust is never a heading.
   Headings never skip a level: a page's main parts are H2, parts within those H3. A card's title is a heading in
   that outline (usually H2), sized down for the card with a class, never by picking a smaller heading. */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }
h1 { color: var(--blue);     font-size: var(--h1-size); letter-spacing: var(--h1-tracking); font-weight: 700; }
h2 { color: var(--blue);     font-size: var(--h2-size); letter-spacing: var(--h2-tracking); font-weight: 700; }
h3 { color: var(--blue);     font-size: var(--h3-size); font-weight: 600; }
h4 { color: var(--ink-mid);  font-size: var(--h4-size); font-weight: 600; }
h5 { color: var(--slate-700); font-size: var(--h5-size); font-weight: 600; }
h6 { color: var(--slate-600); font-size: var(--h6-size); font-weight: 600; }
/* H1 to H6 are pure hierarchy. Jobs that aren't levels (a label, an aside, a caption) are TEXT STYLES below,
   never a heading tag, so the page's outline stays true for screen readers, search and contents lists. */

/* FIGURES (19 Nov): anything visual dropped into a page (an image, a diagram, a group of blocks) is a figure.
   1. Air: 48px above and below, so it never crowds the text around it. Nothing butts against a figure.
   2. Its caption and credit sit tight underneath (8px): they belong to the figure, not to the text.
   3. Full width of its column, never wider (on a story page, a Breakout may use the 800).
   4. Text never wraps around a figure: it stops above and starts again below.
   5. Several images together are one figure, in a row with a 12px gap, sharing one caption.
   6. At the top or bottom of a card, the card's padding is the air: no extra margin. */
figure, .figure { margin: var(--figure-space) 0; }
.card > :is(figure, .figure):first-child { margin-top: 0; }
.card > :is(figure, .figure):last-child { margin-bottom: 0; }
figure img, .figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-3); }

/* TEXT STYLES: one job each */
.label {        /* above something, saying what it is (the kicker above a title) */
  display: block;
  font-size: 0.875rem; font-weight: 600; font-variant: small-caps; letter-spacing: 0.04em;
  color: var(--slate-500);
}
.aside {        /* a quiet comment beside the main line */
  font-size: var(--small-size); font-style: italic; color: var(--slate-600);
}
.caption {      /* what you are looking at: under a figure, aligned to its left edge */
  font-size: var(--small-size); line-height: 1.5; color: var(--slate-800);
}
.caption strong { font-weight: 600; }
.credit {       /* who made it, or who said it: a tag, never a sentence */
  font-family: var(--face-label); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--slate-400);
}
.fine {         /* small print: footnotes, dates */
  font-size: 0.8125rem; color: var(--slate-600);
}
/* JOHNISM: John's own line, not a quote. Its own text style: the label face, larger, centred, no quote marks.
   Line breaks are balanced (two even lines, never a lonely last word) and never hyphenated.
   Its credit, "A Johnism", never takes the speech balloon: it is John's own line, not a quote. */
.johnism {
  margin: var(--space-7) auto;
  max-width: 26ch;
  text-align: center;
}
.johnism p {
  font-family: var(--face-label);
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  hyphens: none;
}
.johnism .credit { display: block; margin-top: var(--space-3); }

/* a figure: the image, then caption on the left and credit on the right */
.figure-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-top: var(--space-2); }
.figure-meta .credit { flex: 0 0 auto; }

p + p { margin-top: var(--space-4); }

/* HEADING RHYTHM, everywhere (not just in .prose): a heading that follows something gets room above it,
   bigger for bigger headings, and sits close to what it introduces. Low specificity (:where), so a
   component can still set its own spacing. */
:where(* + h2) { margin-top: var(--space-7); }
:where(* + h3) { margin-top: var(--space-6); }
:where(* + :is(h4, h5, h6)) { margin-top: var(--space-5); }
:where(:is(h2, h3, h4, h5, h6) + *) { margin-top: var(--space-3); }
strong { font-weight: 700; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; }

/* links take the colour of the text around them (web rule, §2) */
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

a:focus-visible, button:focus-visible {
  outline: var(--line-width) solid var(--ink-slate);
  outline-offset: 2px;
}

/* CARD: anything people scan (a table, a colour chart, a grid) sits on a card. One card for the whole site:
   white, a hairline edge, 3px corners, spanning its column. On the page's off-white ground the card gives the edge,
   so nothing inside needs its own frame. */
.card {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--card-pad);
  color: var(--ink-mid);   /* body on white reads a tad lighter (slate-800) than on the page, so it doesn't feel heavy */
}

/* A BLOCK AFTER TEXT starts like a new paragraph: when a card follows a paragraph, list or heading,
   it gets the same gap a new paragraph would, so it never sits tight under the words that introduce it. */
:is(p, ul, ol, h2, h3, h4, h5, h6) + :is(.card, :has(> .card)) { margin-top: var(--space-4); }   /* (22 Nov) a row or grid of cards too */

/* SHEET: one white sheet for a piece that is one continuous idea (an essay). The large corner, because it is the
   biggest surface on the page. Its side padding makes the text inside land exactly on the 680 line.
   SHEET OR CARDS is decided on the fly, by what the words actually say: cards separate ideas, not paragraphs. */
.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: var(--space-7) max(var(--space-5), calc((100% - var(--max)) / 2));
  color: var(--ink-mid);
}

/* LINKED CARD: a card that takes you somewhere is a big button. It follows the button rules:
   colour change on hover, never movement. A plain card (a table, a chart) is a surface: no hover. */
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color var(--motion-quick); }
.card-link:hover { border-color: var(--slate-500); }

/* WASH BLOCK: the definition of a wash. Not a square, not a circle: a fade.
   Darkest at the centre, fading to nothing, with no edge, no border and no corners.
   It spills past what it sits behind on purpose, to break the boundaries a little, so it never sits in a grid.
   Set the hue with --wash-centre and --wash-edge (a hue's pastel and wash), or use <Wash hue="pulse">. */
.wash {
  position: relative;
  isolation: isolate;
  --wash-centre: color-mix(in oklab, var(--blue-pastel) 55%, var(--blue-wash));
  --wash-edge: var(--blue-wash);
}
.wash::before {
  content: "";
  position: absolute;
  inset: calc(var(--space-7) * -1) calc(var(--space-8) * -1);
  background: radial-gradient(closest-side, var(--wash-centre), var(--wash-edge) 55%, transparent);
  z-index: -1;
  pointer-events: none;
}
.wash { padding: var(--space-6) 0; margin: var(--space-7) 0; }
.johnism.wash { margin: var(--space-7) auto; }   /* a Johnism on its wash stays centred */

/* BLOCK QUOTE: its own panel, not a wash. A flat fill in the blue wash colour (a touch stronger, so it stands
   out on white and on the page), soft card corners, used for block quotes and nothing else. */
blockquote {
  max-width: var(--max);
  background: color-mix(in oklab, var(--blue-pastel) 35%, var(--blue-wash));
  border-radius: var(--radius-card);
  line-height: var(--quote-line-height);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-7) 0;
}

/* Buttons (§4): flat, say what will happen. 3px corners on every button, everywhere.
   COLOUR RULE: blue = do something (press it). Slate = go somewhere (navigation): laid back but clearly a button.
   Gold is not a button colour; it stays for accent rules and highlights. */
.button {
  border-radius: var(--radius-button);
  display: inline-block;
  font-family: var(--face-label);
  font-size: var(--small-size);
  font-weight: 500;
  padding: var(--space-3) var(--space-5);
  border: var(--line-width) solid var(--blue);
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--motion-quick), color var(--motion-quick);
}
.button:hover { background: color-mix(in oklab, var(--blue) 80%, var(--ink)); border-color: color-mix(in oklab, var(--blue) 80%, var(--ink)); }  /* the blue, pressed darker: no extra blue */
.button-quiet { background: transparent; color: var(--blue); }
/* the three standard widths, shared with the sub-menu buttons */
.button-narrow, .button-medium, .button-wide { text-align: center; padding-left: var(--space-2); padding-right: var(--space-2); }
.button-narrow { width: var(--button-narrow); }
.button-medium { width: var(--button-medium); }
.button-wide   { width: var(--button-wide); }
.button-quiet:hover { background: var(--blue-tint); border-color: var(--blue); }
/* IN THE TOP BAR (24 Nov): Feedback and Tour sit beside the view lights and keep to their height: small and quiet,
   the page below is what matters. Same widths as each other, so they read as a pair. */
.button-bar { padding: 3px var(--space-2); font-size: 0.75rem; line-height: 1.3; min-width: 76px; text-align: center; }

/* navigation buttons: go somewhere. Same shape and sizes as action buttons, in slate. */
.button-nav {
  border-width: 1px;
  border-color: var(--slate-300);
  background: var(--slate-200);
  color: var(--ink-mid);
  transition: background var(--motion-quick), color var(--motion-quick), border-color var(--motion-quick);
}
/* NAVIGATION BUTTONS: rest tinted slate, hover lights up to white, current goes dark slate. Colour only, never movement. */
.button-nav:hover { background: var(--white); border-color: var(--slate-500); color: var(--ink); }   /* hover lights up; current goes dark */
.button-nav.is-current, .button-nav.is-current:hover { background: var(--slate-800); border-color: var(--slate-800); color: var(--white); }

/* PROSE: the rhythm for running text (articles, story pages). Wrap a block of writing in .prose.
   Everything below uses tokens only; the Specimen page in the style guide shows all of it. */
.prose > * + * { margin-top: var(--space-4); }
.prose :is(h1, h2) { margin-top: var(--space-7); }
.prose :is(h3, h4) { margin-top: var(--space-6); }
.prose :is(h5, h6) { margin-top: var(--space-5); }
.prose :is(h1, h2, h3, h4, h5, h6) + * { margin-top: var(--space-3); }
.prose > :first-child { margin-top: 0; }
.prose :is(ul, ol) { padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-2); }
.prose li > :is(ul, ol) { margin-top: var(--space-2); }
.prose ul { list-style: disc; }
.prose ul ul { list-style: circle; }
.prose li::marker { color: var(--ink-slate); }
.prose blockquote { margin: var(--space-6) 0; }   /* a panel, so normal spacing */
/* REVERSED QUOTE: the second block quote style, white knocked out of the brand blue. Both styles are kept for
   variation, to break up a long piece. Light panel is the default; reversed is the one that lands harder.
   Never two reversed quotes in a row, and no more than about one quote in three reversed. */
blockquote.reverse { background: var(--blue); color: var(--white); }
.prose blockquote.reverse footer, .prose blockquote.reverse footer cite { color: var(--blue-pastel); }
.prose blockquote p + p { margin-top: var(--space-3); }
.prose blockquote footer { text-align: right; margin-top: var(--space-3); font-family: var(--face-label); font-size: var(--body-size); letter-spacing: 0.02em; color: var(--slate-400); }   /* the source of a quote is a credit */
.prose cite { font-style: italic; }
.prose blockquote footer cite { font-style: italic; color: var(--slate-600); }
/* every quote's attribution starts with the speech balloon: added automatically, never typed */
.prose blockquote footer::before { content: "💬\00a0"; }
.prose em { font-style: italic; }
.prose mark { background: var(--blue-tint); color: inherit; padding: 0 2px; border-radius: var(--radius); }
.prose small { font-size: 0.8125rem; color: var(--slate-600); }   /* small print: same as .fine */
.prose abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.prose kbd {
  font-family: ui-monospace, Menlo, monospace; font-size: 0.8em;
  padding: 1px var(--space-1); border: 1px solid var(--slate-300); border-bottom-width: 2px;
  border-radius: var(--radius); background: var(--white);
}
.prose code { background: var(--slate-100); padding: 1px var(--space-1); border-radius: var(--radius); }
.prose pre {
  background: var(--slate-900); color: var(--slate-100);
  padding: var(--space-4); border-radius: var(--radius); overflow-x: auto;
  font-size: var(--small-size); line-height: 1.5;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: var(--space-7) 0; }
.prose dl dt { font-weight: 600; color: var(--ink-mid); }
.prose dl dd { margin-left: var(--space-5); color: var(--ink-mid); }
.prose dl dd + dt { margin-top: var(--space-3); }
.prose sub, .prose sup { font-size: 0.75em; line-height: 0; }

/* STROKE (named 19 Nov): an optional mark above an H2 or H3 in a long piece, for a new part
   that shouldn't become a card. One graduated stroke across the text line: the heading's blue at the
   start, blending into slate and fading out, tapering from 3px to a hairline. Opt-in only; never on H1, never below H3, never on a
   heading that opens a card, and not on every section.
   How to ask for it: in Markdown, a --- line directly above an H2 or H3; in code, class="stroked"
   on the heading or <Section heading="…" stroke>. A --- on its own stays a plain break. */
.stroked::before,
.prose hr:has(+ :is(h2, h3)) {
  content: "";
  display: block;
  height: 3px;
  border: none;
  /* graduated: one stroke that starts as the heading's blue, blends into the brand grey and fades out,
     tapering from 3px at the heading to a hairline at the far end */
  background: linear-gradient(to right, var(--accent, var(--blue)), var(--slate-300) 35%, var(--slate-200) 75%, transparent);
  clip-path: polygon(0 0, 100% 66%, 100% 100%, 0 100%);
}
.stroked::before { margin-bottom: var(--space-3); }
.stroked { margin-top: var(--space-7); }
.prose hr:has(+ :is(h2, h3)) { margin: var(--space-7) 0 var(--space-3); }
.prose hr + :is(h2, h3) { margin-top: 0; }

/* OPENER and CLOSER: a line that turns a page, and the line that ends it. Same look: centred, bigger,
   in the label face, no box. Used from time to time, never more than one of each on a page.
   On a page with a hue (a domain) they take its colour; otherwise blue. */
.opener, .closer {
  font-family: var(--face-label); font-weight: 500;
  font-size: clamp(1.25rem, 3.2vw, 1.75rem); line-height: 1.3;
  text-align: center; text-wrap: balance;
  color: var(--accent, var(--blue));
  max-width: var(--max); margin: var(--space-8) auto;
}
.closer { margin-bottom: var(--space-6); }

/* THE GOLD WASH (home page, 19 Nov): pointing at one of the three ways in washes its part of the page in gold.
   The page sets <html data-wash="grid|menu|reveal">; each part says which it is with data-wash-target. */
[data-wash-target] { position: relative; }
[data-wash-target]::after {
  /* a wash is always a fade: darkest at the centre, fading out, no edge (Style Guide) */
  content: ""; position: absolute; inset: calc(-1 * var(--space-6));
  background: radial-gradient(closest-side, color-mix(in oklab, var(--gold) 34%, transparent), color-mix(in oklab, var(--gold) 14%, transparent) 60%, transparent);
  opacity: 0; transition: opacity var(--motion-quick); pointer-events: none; z-index: 30;
}
html[data-wash="grid"] [data-wash-target="grid"]::after,
html[data-wash="menu"] [data-wash-target="menu"]::after,
html[data-wash="reveal"] [data-wash-target="reveal"]::after { opacity: 1; }

/* THE NAME (20 Nov): PHI⑊PIN in running text is bold, in the label face, so it reads as a name. Never blue. */
.name { font-family: var(--face-label); font-weight: 700; }

/* PUBLIC OR PRIVATE (22 Nov): anything not public carries data-private. The view control (src/blocks/view) sets
   data-view on <html>: "private" puts every private thing on a red wash; "public" takes it away, as a visitor sees.
   A preview only: private things never reach a visitor's browser in the first place (the database decides). */
[data-view="private"] [data-private] { background-color: color-mix(in oklab, var(--rag-red) var(--private-wash), var(--white)); box-shadow: inset 4px 0 0 var(--rag-red); }
[data-view="public"] [data-private] { display: none; }
/* A WHOLE PAGE THAT IS PRIVATE (22 Nov): InnerPage privatePage. Show private: the page itself on the red wash, a red rule
   down its left edge, and a note under the menus. Public view: the page goes, and the note says what a visitor meets. */
.private-page-note { display: none; }
[data-view="private"] [data-private-page] .private-page-note,
[data-view="public"] [data-private-page] .private-page-note { display: block; padding: var(--space-3) var(--space-5); text-align: center; }
[data-view="private"] [data-private-page] .private-page-note { background-color: color-mix(in oklab, var(--rag-red) calc(var(--private-wash) + 14%), var(--white)); color: var(--ink); }
[data-view="public"] [data-private-page] .private-page-note { background-color: var(--slate-100); color: var(--ink); padding: var(--space-8) var(--space-5); }
.private-page-note p { margin: 0; }
.private-page-note-private, .private-page-note-public { display: none; }
[data-view="private"] .private-page-note-private, [data-view="public"] .private-page-note-public { display: block; }
[data-view="private"] [data-private-page] [data-page-body] { background-color: color-mix(in oklab, var(--rag-red) var(--private-wash), var(--white)); box-shadow: inset 4px 0 0 var(--rag-red); }
[data-view="public"] [data-private-page] [data-page-body] { display: none; }

/* LIVE (22 Nov): a page opened with ?live (src/blocks/live/LiveMode) is the public website alone: our bars go, and so does
   anything private, whoever is looking */
html.live [data-chrome], html.live [data-private], html.live .private-page-note { display: none; }

/* THE TOUR'S POINTER (24 Nov): whatever the open tour card is about wears a soft, breathing blue ring (src/blocks/tour) */
/* (24 Nov) a ring drawn with box-shadow, not outline, so it follows rounded corners and pulses the same in Safari; html body
   so a button's own styles can't override it. It pulses in place, bright blue to pale and back, so it shows even where things sit close together. */
html body [data-tour-point] { border-radius: var(--radius-button); box-shadow: 0 0 0 2px var(--blue-electric); animation: tour-point 1.6s ease-in-out infinite; }
@keyframes tour-point { 0%, 100% { box-shadow: 0 0 0 3px var(--blue-electric); } 50% { box-shadow: 0 0 0 3px var(--blue-pastel); } }
@media (prefers-reduced-motion: reduce) { html body [data-tour-point] { animation: none; box-shadow: 0 0 0 3px var(--blue-electric); } }
/* and what a live word in a tour card points at, while the mouse is on the word (24 Nov, John): bright gold, the style
   guide's highlight colour, so it stands out from the blue-grey of the bar and the tour, and isn't red (private) or green
   (the space). Solid gold, crisp edge, ink words on it: no blends, so it's clean, and the same in Safari as in Chrome.
   (html body: strong enough to win over a button's own background) */
html body [data-tour-hover] { position: relative; z-index: 31; background: var(--gold-electric); color: var(--ink); outline: 3px solid var(--gold-electric); outline-offset: 3px; border-color: var(--gold-electric); border-radius: var(--radius-button); box-shadow: 0 0 0 9px var(--gold-pastel); transform: scale(1.06); animation: none; }
/* (24 Nov) a little bigger, a pale gold ring around the gold, and lifted above its neighbours: easy to spot even on a small button in the dark bar (Engage) */

/* A GLOSSARY TERM (26 Nov, John: "a very subtle little way of showing how a glossary term works"). Any link to
   /glossary/<slug> opens the entry in a drawer (src/blocks/glossary/GlossaryDrawer.tsx). It takes the abbreviation's
   fine dotted line, in brand blue: there is a definition here. Nothing moves; a hover only firms the line. */
a[href^="/glossary/"]:not([data-page]) { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 4px; cursor: help; }
a[href^="/glossary/"]:not([data-page]):hover { text-decoration-style: solid; }
