/*
 * The single source of truth. The only file in the theme allowed to contain a raw value.
 * Components reference the semantic layer (--color-*), never the brand layer (--bsc-*).
 *
 * Every size is the 1920px mockup's own pixel value divided by 16, written in rem. The root
 * font size follows the viewport (section 1), so 1rem is 16 mockup pixels at 1920 and the
 * layout shrinks in step below that, down to 1440 where it holds. The small type rungs carry
 * a pixel floor. Trailing comments give the mockup pixel value.
 */

:root {
	/* ---------------------------------------------------------------------
	 * 1. Scaling
	 * ------------------------------------------------------------------ */

	--size-unit: 16;
	--size-container-ideal: 1920;
	--size-container-min: 1440px;
	--size-container-max: 1920px;
	--size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
	--size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));

	/* ---------------------------------------------------------------------
	 * 2. Brand colour, from the mockup's fills
	 * ------------------------------------------------------------------ */

	--bsc-ink: #1a2e31;            /* running copy, section headings, the priority tag */
	--bsc-deep: #1b4f56;           /* the hero, footer, resources band, primary buttons, page titles */
	--bsc-deep-dark: #01383e;      /* the hero's top shade, under the masthead */
	--bsc-teal: #337d83;           /* picked-out words, stat figures, dates, Read More, a thumbnail tint */
	--bsc-teal-bright: #009199;    /* the brighter picked-out words: Prevention, partnership, Safer Jersey */
	--bsc-teal-dusk: #316066;      /* the voice bubble in the framework panel */
	--bsc-paper: #f7f6f2;          /* the page */
	--bsc-card: #fcfcfb;           /* the framework detail panel */
	--bsc-white: #ffffff;          /* cards */
	--bsc-grey: #4a4a4a;           /* a resting stage label */
	--bsc-grey-light: #eeeeee;     /* the event card */
	--bsc-green: #45854e;          /* topic links, the stat icon, the first stage */
	--bsc-green-soft: #bfd8c7;     /* the type tag */
	--bsc-blue: #4265af;           /* the Partnership badge, the blue eyebrow diamond */
	--bsc-blue-soft: #678cbc;      /* the second stat figure */
	--bsc-orange: #e97725;         /* the eyebrow diamond, the third stat figure, ticks */
	--bsc-peach: #e8b997;          /* a thumbnail tint */
	--bsc-sky: #7194c0;            /* a thumbnail tint */

	/* The mark's five colours, which the stripe round the safety band and the search field reuse. */
	--bsc-logo-blue: #455ea8;
	--bsc-logo-green: #22833e;
	--bsc-logo-teal: #108e96;
	--bsc-logo-orange: #e6710f;
	--bsc-logo-red: #e52e1a;
	--bsc-logo-crimson: #be172f;   /* the red diamond's shaded facet */
	--bsc-stripe: linear-gradient(100deg, var(--bsc-logo-blue), var(--bsc-logo-red) 32%, var(--bsc-logo-orange) 64%, var(--bsc-logo-green));
	/* The strokes behind a hero photo: the five in hard bands, as drawn. A blend was tried and Harry preferred the bands (2026-10-14). */
	--bsc-strokes: linear-gradient(90deg, var(--bsc-logo-blue) 20%, var(--bsc-logo-crimson) 0 40%, var(--bsc-logo-red) 0 60%, var(--bsc-logo-orange) 0 80%, var(--bsc-logo-green) 0);
	--bsc-strokes-loop: linear-gradient(90deg, var(--bsc-logo-blue) 10%, var(--bsc-logo-crimson) 0 20%, var(--bsc-logo-red) 0 30%, var(--bsc-logo-orange) 0 40%, var(--bsc-logo-green) 0 50%, var(--bsc-logo-blue) 0 60%, var(--bsc-logo-crimson) 0 70%, var(--bsc-logo-red) 0 80%, var(--bsc-logo-orange) 0 90%, var(--bsc-logo-green) 0);   /* the bands twice over, so they can drift and wrap */
	--bsc-strokes-wheel: conic-gradient(var(--bsc-logo-blue) 72deg, var(--bsc-logo-crimson) 0 144deg, var(--bsc-logo-red) 0 216deg, var(--bsc-logo-orange) 0 288deg, var(--bsc-logo-green) 0);   /* the five as wedges, to wheel round a photo */

	/* The Safe Place scheme's own colours, from Matt's campaign deck (J0409 v03, 2026-11). Only on its grounds below. */
	--bsc-safe-sun: #ffcc32;       /* the public flyer and the I need help path */
	--bsc-safe-navy: #1c3664;      /* the business flyer and the Get involved path */
	--bsc-safe-navy-rgb: 28 54 100;
	--bsc-safe-sun-rgb: 255 204 50;

	/* The six stages: the lit tile, its resting tint and its resting dot. */
	--stage-1: #45854e;  --stage-1-tint: #e7eee7;  --stage-1-dot: #86b894;
	--stage-2: #2d7b73;  --stage-2-tint: #e5eeec;  --stage-2-dot: #86bdb4;
	--stage-3: #55639f;  --stage-3-tint: #e9ebf1;  --stage-3-dot: #a3aad4;
	--stage-4: #a8434f;  --stage-4-tint: #f4e6e5;  --stage-4-dot: #df959c;
	--stage-5: #b4533b;  --stage-5-tint: #f5e8e3;  --stage-5-dot: #e79c88;
	--stage-6: #b8682a;  --stage-6-tint: #f7ebe1;  --stage-6-dot: #eeb488;

	/* ---------------------------------------------------------------------
	 * 3. Channel lists, so a tint follows the colour it is mixed from
	 * ------------------------------------------------------------------ */

	--bsc-ink-rgb: 26 46 49;
	--bsc-deep-rgb: 27 79 86;
	--bsc-paper-rgb: 247 246 242;
	--bsc-white-rgb: 255 255 255;

	/* ---------------------------------------------------------------------
	 * 4. Type
	 *
	 * Aptos from the Adobe Fonts kit (vqq6xsv): the text face in Light,
	 * Regular, SemiBold, Bold and ExtraBold, Aptos Display in Regular and
	 * Bold. Page titles, eyebrows and card titles are the Display; everything
	 * else the text face.
	 * ------------------------------------------------------------------ */

	--font-sans: 'aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-display: 'aptos-display', 'aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

	--weight-light: 300;
	--weight-regular: 400;
	--weight-semi: 600;
	--weight-bold: 700;
	--weight-xbold: 800;       /* the voice bubble, in its italic */
	--weight-body: var(--weight-light);       /* running copy, as drawn */
	--weight-lead: var(--weight-light);
	--weight-heading: var(--weight-bold);
	--weight-title: var(--weight-regular);    /* card and panel titles: Aptos Display Regular */

	--leading: 1.5;             /* 24 on 16, body */
	--leading-lead: 1.6;        /* 28 on 18, 36 on 22 */
	--leading-snug: 1.4;        /* 21 on 15, card copy */
	--leading-title: 1.3;       /* 26 on 20, card titles */
	--leading-heading: 1.2;     /* 50 on 42 */
	--leading-display: 1.15;    /* 74 on 64 */

	--tracking-heading: -0.02em;
	--tracking-title: -0.01em;
	--tracking-body: 0;
	--tracking-caps: 0.06em;

	/* ---------------------------------------------------------------------
	 * 5. Type scale. A higher number is always bigger. Body sits at --font-4.
	 * ------------------------------------------------------------------ */

	--font-1: max(0.75rem, 11px);      /* 12  tags, the event day line */
	--font-2: max(0.875rem, 12px);     /* 14  View More, topic tags, dates */
	--font-3: max(0.9375rem, 13px);    /* 15  buttons, card copy, footer links */
	--font-4: max(1rem, 14px);         /* 16  body, masthead links, eyebrows */
	--font-5: max(1.125rem, 15px);     /* 18  lead copy, list items */
	--font-6: max(1.25rem, 16px);      /* 20  card titles, stage labels */
	--font-7: 1.375rem;                /* 22  hero lead, event and info card titles */
	--font-8: 1.5rem;                  /* 24  pull quote, side nav heading */
	--font-9: 1.75rem;                 /* 28  partnership titles, the stage title */
	--font-10: 1.875rem;               /* 30  article headings */
	--font-11: 2.125rem;               /* 34  the framework statement */
	--font-12: 2.625rem;               /* 42  section headings, stat figures */
	--font-13: 3rem;                   /* 48  the homepage statement */
	--font-14: 4rem;                   /* 64  page titles */

	/* ---------------------------------------------------------------------
	 * 6. Space scale. --space-N is N x 8 mockup px.
	 * ------------------------------------------------------------------ */

	--space-05: 0.25rem;   /* 4 */
	--space-1: 0.5rem;     /* 8 */
	--space-15: 0.75rem;   /* 12 */
	--space-2: 1rem;       /* 16 */
	--space-25: 1.25rem;   /* 20 */
	--space-3: 1.5rem;     /* 24 */
	--space-4: 2rem;       /* 32 */
	--space-5: 2.5rem;     /* 40 */
	--space-6: 3rem;       /* 48 */
	--space-7: 3.5rem;     /* 56 */
	--space-8: 4rem;       /* 64 */
	--space-10: 5rem;      /* 80 */
	--space-12: 6rem;      /* 96 */
	--space-14: 7rem;      /* 112 */
	--space-16: 8rem;      /* 128 */

	/* ---------------------------------------------------------------------
	 * 7. Layout
	 * ------------------------------------------------------------------ */

	--container: 91.625rem;               /* 1466, the content column */
	--container-wide: 112.5rem;           /* 1800, the masthead */
	--gutter: 3.75rem;                    /* 60 */

	--section-y: var(--space-12);         /* 96 */
	--section-y-tight: var(--space-8);    /* 64 */
	--heading-gap: var(--space-6);        /* 48, section heading to its content */
	--heading-copy-gap: var(--space-3);   /* 24, heading to the paragraph under it */
	--eyebrow-gap: 1.75rem;               /* 28, eyebrow to its heading: the flow margin plus 12, as it has always drawn */
	--copy-gap: var(--space-2);           /* 16, paragraph to paragraph */
	--action-gap: var(--space-4);         /* 32, copy to the buttons under it */

	--measure: 44rem;                     /* 704, running copy */
	--measure-wide: 62.5rem;              /* 1000, the lead under a page title */
	--measure-narrow: 36rem;              /* 576, panel copy */
	--measure-hero: 37.5rem;              /* 600, the copy beside a hero photo */

	/* ---------------------------------------------------------------------
	 * 8. Shape. In px so corners never scale: tags 4, buttons 6, cards 10, the big panels 16.
	 * ------------------------------------------------------------------ */

	--radius-sm: 4px;
	--radius-btn: 6px;
	--radius-card: 10px;
	--radius-panel: 16px;
	--radius-round: 50%;

	--border-hairline: 1px;
	--border-control: 1px;
	--stripe-width: 4px;

	/* ---------------------------------------------------------------------
	 * 9. Focus. Three pixels, as the public sector pattern libraries draw it.
	 * ------------------------------------------------------------------ */

	--focus-width: 3px;
	--focus-offset: 2px;

	/* ---------------------------------------------------------------------
	 * 10. Motion. The scripts read these, so CSS and GSAP cannot disagree.
	 * ------------------------------------------------------------------ */

	--duration-instant: 120ms;
	--duration-fast: 250ms;      /* colour and state changes */
	--duration: 500ms;           /* interface movement */
	--duration-slow: 900ms;      /* entrances */
	--stagger: 80ms;             /* between siblings in one reveal */

	--ease: cubic-bezier(0.16, 1, 0.3, 1);            /* "smooth": movement, entrances and hover travel; GSAP registers it under that name */
	--ease-in-out: cubic-bezier(0.625, 0.05, 0, 1);   /* Osmo's hover curve: the button sweep and the underline swipe */
	--ease-click: cubic-bezier(0.4, 0, 0.2, 1);
	--ease-focus: cubic-bezier(0.32, 0.72, 0, 1);
	--ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* the stage glyph arriving */

	/* ---------------------------------------------------------------------
	 * 11. Measurements JS or two components must agree on
	 * ------------------------------------------------------------------ */

	--tap-min: 44px;
	--btn-height: 2.875rem;       /* 46, a step up from the drawn 42 */
	--btn-height-lg: 3.375rem;    /* 54, the hero search button */
	--btn-pad: 1.375rem;          /* 22 */
	--font-btn: var(--font-4);    /* 16 */
	--font-link: var(--font-3);   /* 15, View More and Read More */
	--font-eyebrow: max(1.0625rem, 15px);   /* 17, a step up from the drawn 16 */
	--font-tag: var(--font-2);    /* 14, a step up from the drawn 12 */
	--search-h: 4rem;             /* 64, the hero search field */
	--masthead-h: 7.875rem;       /* 126, the bar the logo sits in */
	--masthead-h-tight: 6rem;     /* 96, the bar once the page has scrolled (it sticks) */
	--logo-width: 15.3125rem;     /* 245 */
	--tag-h: 1.75rem;             /* 28, a step up from the drawn 24 */
	--tag-h-lg: 2rem;             /* 32, topics and chips */
	--pill-h: 2.5rem;             /* 40, the filter pills */
	--card-w: 21.6875rem;         /* 347, a resource card */
	--card-gap: 1.625rem;         /* 26, between cards */
	--tab-h: 9.5rem;              /* 152, a stage tile */
	--tab-h-lg: 14.25rem;         /* 228, a stage tile on the homepage */
	--tab-gap: 1.375rem;          /* 22, between stage tiles */
	--date-tile: 11rem;           /* 176, the square day tile of an event card */
	--badge: 9rem;                /* 144, the Safe Place roundel */
	--strip-h: 26.125rem;         /* 418, the homepage photo strip */
	--strip-gap: 0.25rem;         /* 4, between its photos and above them */
	--hero-search-w: 48.125rem;   /* 770, the hero search field */
	--hero-photo-w: 34.75rem;     /* 556, the hero photo */
	--hero-ring: 0.625rem;        /* 10, the band-coloured ring between the hero photo and its strokes */
	--collage-w: 37.375rem;       /* 598, the Who We Work With photos */
	--glyph: 3.5rem;              /* 56, a stage icon */

	--z-masthead: 50;
	--z-modal: 100;
	--z-skip: 300;
}

/*
 * Semantic colour, the light grounds. A card inside a dark section gets these back rather than
 * inheriting the inverse set.
 */
:root,
.is-paper,
.is-card {
	--color-bg: var(--bsc-paper);
	--color-surface: var(--bsc-white);          /* a block on this ground */
	--color-surface-soft: rgb(var(--bsc-ink-rgb) / 0.05);
	--color-wash: color-mix(in srgb, var(--bsc-teal-bright) 6%, var(--bsc-paper));   /* the pale shapes under Who We Work With */

	--color-text: var(--bsc-ink);
	--color-text-soft: rgb(var(--bsc-ink-rgb) / 0.82);   /* card copy, drawn at 90% */
	--color-text-muted: rgb(var(--bsc-ink-rgb) / 0.56);  /* the PDF label */
	--color-heading: var(--bsc-ink);
	--color-title: var(--bsc-deep);             /* page titles and card titles */
	--color-eyebrow: var(--bsc-ink);
	--color-accent: var(--bsc-teal);            /* 4.6 on paper */
	--color-accent-bright: var(--bsc-teal-bright);
	--color-date: var(--bsc-teal);

	--color-link: var(--bsc-ink);
	--color-link-hover: var(--bsc-teal);
	--color-link-rule: var(--bsc-orange);       /* the line under View More */
	--color-mark: var(--bsc-orange);            /* decorative accents: the emergency note's edge */

	--color-btn-bg: var(--bsc-deep);
	--color-btn-text: var(--bsc-white);
	--color-btn-bg-hover: var(--bsc-teal);       /* what the sweep reveals */
	--color-btn-text-hover: var(--bsc-white);
	--color-btn-outline: var(--bsc-deep);
	--color-btn-paper: var(--bsc-white);
	--color-btn-paper-text: var(--bsc-ink);

	--color-border: rgb(var(--bsc-ink-rgb) / 0.12);
	--color-border-control: rgb(var(--bsc-ink-rgb) / 0.32);
	--color-edge: rgb(var(--bsc-ink-rgb) / 0.08);        /* the hairline round a card */
	--color-tile: var(--bsc-grey-light);
	--color-icon-soft: var(--bsc-teal);

	--focus-color: var(--bsc-deep);
}

.is-paper,
.is-card {
	color: var(--color-text);
}

.is-card {
	--color-bg: var(--bsc-white);
	--color-surface: var(--bsc-paper);

	background-color: var(--color-bg);
}

/* A card is white on the paper, so it also gets a hairline. Cells of a table do not. */
.is-card:not(td) {
	border: var(--border-hairline) solid var(--color-edge);
	border-radius: var(--radius-card);
}

/*
 * Mobile. The canvas becomes a 390px phone, the scale holds between 340 and 430, and the
 * display rungs come down to sizes drawn for that canvas. There is no mobile mockup, so these
 * are first proposals to tune section by section.
 */
@media (max-width: 767px) {
	:root {
		--size-container-ideal: 390;
		--size-container-min: 340px;
		--size-container-max: 430px;

		--font-1: 0.6875rem;     /* 11 */
		--font-2: 0.8125rem;     /* 13 */
		--font-3: 0.875rem;      /* 14 */
		--font-4: 0.9375rem;     /* 15 */
		--font-5: 1rem;          /* 16 */
		--font-6: 1.125rem;      /* 18 */
		--font-7: 1.1875rem;     /* 19 */
		--font-8: 1.25rem;       /* 20 */
		--font-9: 1.375rem;      /* 22 */
		--font-10: 1.5rem;       /* 24 */
		--font-11: 1.625rem;     /* 26 */
		--font-12: 1.875rem;     /* 30 */
		--font-13: 2.125rem;     /* 34 */
		--font-14: 2.5rem;       /* 40 */

		--leading-display: 1.1;

		--gutter: 1.25rem;       /* 20 */
		--section-y: 3.5rem;      /* 56 */
		--section-y-tight: var(--space-5);
		--heading-gap: var(--space-3);
		--heading-copy-gap: 1.1rem;         /* 17.6, a section heading to its first paragraph (Harry, 2026-10-16: "the perfect balance") */
		--eyebrow-gap: 0.7rem;              /* 11.2, the eyebrow tight on its heading (Harry, 2026-10-16) */
		--copy-gap: var(--space-15);        /* and paragraphs a step closer */
		--action-gap: var(--space-3);       /* and the buttons under copy closer still */

		--btn-height: 2.875rem;   /* 46, over the tap minimum */
		--btn-height-lg: 3.125rem;
		--search-h: 3.25rem;
		--masthead-h: 4.5rem;
		--masthead-h-tight: 4.5rem;
		--logo-width: 10.5rem;
		--tab-h: 6rem;
		--tab-h-lg: 7.5rem;
		--tab-gap: 0.5rem;
		--date-tile: 5rem;        /* 80, a step smaller stacked over the copy (Harry, 2026-10-16) */
		--badge: 5.5rem;
		--glyph: 2.5rem;
		--strip-h: 13rem;
		--hero-ring: 0.5rem;
	}
}

/*
 * The deep teal ground: the hero, footer, resources band, How BASC Works.
 *
 * The color declaration is not redundant: body's color was computed before the token was
 * redefined here, so descendants would otherwise inherit body's ink.
 */
.is-deep,
.is-ink {
	--color-bg: var(--bsc-deep);
	--color-surface: rgb(var(--bsc-white-rgb) / 0.08);
	--color-surface-soft: rgb(var(--bsc-white-rgb) / 0.12);
	--color-wash: rgb(var(--bsc-white-rgb) / 0.08);
	--color-text: var(--bsc-paper);
	--color-text-soft: rgb(var(--bsc-paper-rgb) / 0.86);
	--color-text-muted: rgb(var(--bsc-paper-rgb) / 0.6);
	--color-heading: var(--bsc-paper);
	--color-title: var(--bsc-paper);
	--color-eyebrow: var(--bsc-paper);
	--color-accent: var(--bsc-paper);
	--color-accent-bright: var(--bsc-teal-bright);
	--color-date: var(--bsc-paper);
	--color-link: var(--bsc-paper);
	--color-link-hover: var(--bsc-white);
	--color-link-rule: var(--bsc-paper);
	--color-btn-bg: var(--bsc-paper);
	--color-btn-text: var(--bsc-ink);
	--color-btn-bg-hover: var(--bsc-teal);
	--color-btn-text-hover: var(--bsc-white);
	--color-btn-outline: var(--bsc-paper);
	--color-btn-paper: var(--bsc-paper);
	--color-btn-paper-text: var(--bsc-ink);
	--color-border: rgb(var(--bsc-paper-rgb) / 0.16);
	--color-border-control: rgb(var(--bsc-paper-rgb) / 0.5);
	--color-edge: rgb(var(--bsc-paper-rgb) / 0.12);
	--color-tile: rgb(var(--bsc-white-rgb) / 0.08);
	--color-icon-soft: var(--bsc-paper);
	--focus-color: var(--bsc-paper);

	color: var(--color-text);
	background-color: var(--color-bg);
}

/* The ink ground: the video frame and the priority tag. */
.is-ink {
	--color-bg: var(--bsc-ink);
}

/*
 * The Safe Place grounds (the /safeplaces paths): the scheme's sunflower with navy type, and its
 * navy with paper type. The buttons stay BASC's, so the scheme sits inside the site's identity.
 */
.is-safe-sun {
	--color-bg: var(--bsc-safe-sun);
	--color-surface: rgb(var(--bsc-white-rgb) / 0.55);
	--color-text: var(--bsc-safe-navy);
	--color-text-soft: var(--bsc-safe-navy);
	--color-heading: var(--bsc-safe-navy);
	--color-title: var(--bsc-safe-navy);
	--color-eyebrow: var(--bsc-safe-navy);
	--color-accent: var(--bsc-safe-navy);
	--color-link: var(--bsc-safe-navy);
	--color-link-hover: var(--bsc-ink);
	--color-link-rule: var(--bsc-safe-navy);
	--color-border: rgb(var(--bsc-safe-navy-rgb) / 0.24);
	--color-edge: rgb(var(--bsc-safe-navy-rgb) / 0.16);
	--color-icon-soft: var(--bsc-safe-navy);
	--color-btn-bg-hover: var(--bsc-safe-navy);   /* the house teal read green against the sunflower */
	--color-btn-text-hover: var(--bsc-white);
	--focus-color: var(--bsc-safe-navy);

	color: var(--color-text);
	background-color: var(--color-bg);
}

.is-safe-navy {
	--color-bg: var(--bsc-safe-navy);
	--color-surface: rgb(var(--bsc-white-rgb) / 0.08);
	--color-text: var(--bsc-paper);
	--color-text-soft: rgb(var(--bsc-paper-rgb) / 0.88);
	--color-heading: var(--bsc-paper);
	--color-title: var(--bsc-paper);
	--color-eyebrow: var(--bsc-paper);
	--color-accent: var(--bsc-safe-sun);
	--color-link: var(--bsc-paper);
	--color-link-hover: var(--bsc-white);
	--color-link-rule: var(--bsc-safe-sun);
	--color-btn-bg: var(--bsc-paper);
	--color-btn-text: var(--bsc-ink);
	--color-btn-bg-hover: var(--bsc-teal);
	--color-btn-text-hover: var(--bsc-white);
	--color-btn-outline: var(--bsc-paper);
	--color-btn-paper: var(--bsc-paper);
	--color-btn-paper-text: var(--bsc-ink);
	--color-border: rgb(var(--bsc-paper-rgb) / 0.2);
	--color-edge: rgb(var(--bsc-paper-rgb) / 0.14);
	--color-icon-soft: var(--bsc-safe-sun);
	--color-btn-paper-hover: var(--bsc-safe-sun);   /* the scheme's own pair, not the house teal */
	--color-btn-paper-hover-text: var(--bsc-safe-navy);
	--focus-color: var(--bsc-safe-sun);

	color: var(--color-text);
	background-color: var(--color-bg);
}

/*
 * Reset, element typography, global utilities. Nothing component specific.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

/* The scale. Everything in rem follows this, which is the whole of the proportional system. */
html {
	font-size: var(--size-font);
	-webkit-text-size-adjust: 100%;
	scroll-padding-block-start: calc(var(--masthead-h-tight) + var(--space-2));   /* the bar sticks, tightened */
	background-color: var(--bsc-paper);
}

body {
	min-height: 100vh;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: var(--font-4);
	font-weight: var(--weight-body);
	line-height: var(--leading);
	letter-spacing: var(--tracking-body);
	overflow-x: clip;
	text-wrap: pretty;
}

/* macOS draws light text on a dark ground heavier than designed; grayscale smoothing thins it back. */
.is-deep,
.is-ink {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.is-paper,
.is-card {
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: auto;
}

html.is-locked {
	overflow: hidden;
}

::selection {
	background-color: var(--bsc-deep);
	color: var(--bsc-paper);
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
 * Headings
 * ----------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-heading);
	font-weight: var(--weight-heading);
	line-height: var(--leading-heading);
	letter-spacing: var(--tracking-heading);
	text-wrap: balance;
}

h1 {
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-14);
	line-height: var(--leading-display);
}

h2 {
	font-size: var(--font-12);
}

h3 {
	font-size: var(--font-10);
}

/* Large headings avoid orphans without forcing even lines; the small ones keep balance. */
h1,
h2,
h3 {
	text-wrap: pretty;
}

h4 {
	font-size: var(--font-8);
	letter-spacing: var(--tracking-title);
}

/* Card and list titles: lighter and tighter, as the mockup sets them in Aptos Display. */
h5,
.title {
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-6);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

h6 {
	font-size: var(--font-4);
	letter-spacing: var(--tracking-title);
}

strong,
b {
	font-weight: var(--weight-semi);
}

em,
i {
	font-style: italic;
}

/* --------------------------------------------------------------------------
 * Flow
 * ----------------------------------------------------------------------- */

p,
ul,
ol,
dl,
blockquote,
figure,
table {
	margin-block-end: var(--copy-gap);
}

:is(p, ul, ol, dl, blockquote, figure, table):last-child {
	margin-block-end: 0;
}

h2,
h3,
h4 {
	margin-block-start: var(--space-5);
}

:is(h1, h2, h3, h4, h5, h6):first-child {
	margin-block-start: 0;
}

ul,
ol {
	padding-inline-start: var(--space-3);
}

li + li {
	margin-block-start: var(--space-1);
}

.is-layout-list {
	padding-inline-start: 0;
	list-style: none;
}

.is-layout-list > li + li {
	margin-block-start: 0;
}

/* --------------------------------------------------------------------------
 * Links
 * ----------------------------------------------------------------------- */

a {
	color: var(--color-link);
	text-decoration-thickness: max(0.06em, var(--border-hairline));
	text-underline-offset: 0.18em;
	transition: color var(--duration-fast) var(--ease);
}

a:hover,
a:focus-visible {
	color: var(--color-link-hover);
}

/* --------------------------------------------------------------------------
 * Focus
 * ----------------------------------------------------------------------- */

:focus-visible {
	outline: var(--focus-width) solid var(--focus-color);
	outline-offset: var(--focus-offset);
}

.skip-link {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 50%;
	z-index: var(--z-skip);
	padding: var(--space-15) var(--space-3);
	background-color: var(--bsc-ink);
	color: var(--bsc-paper);
	font-size: var(--font-4);
	font-weight: var(--weight-semi);
	text-decoration: none;
	transform: translate(-50%, -120%);
}

.skip-link:focus {
	transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
 * Layout utilities
 * ----------------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--wide {
	max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

.section {
	padding-block: var(--section-y);
}

.section--tight {
	padding-block: var(--section-y-tight);
}

.section--flush-top {
	padding-block-start: 0;
}

.section--flush-bottom {
	padding-block-end: 0;
}

.center {
	margin-inline: auto;
	text-align: center;
}

.measure {
	max-width: var(--measure);
}

.measure--wide {
	max-width: var(--measure-wide);
}

.measure--narrow {
	max-width: var(--measure-narrow);
}

/* The faint dot grid behind the lighter sections. */
.has-dots {
	--dots: radial-gradient(rgb(var(--bsc-ink-rgb) / 0.14) 1.5px, transparent 2px);

	background-image: var(--dots);
	background-size: 1.5rem 1.5rem;
	background-position: 0.75rem 0.75rem;
}

/* The same ground fading in from the top edge, for a section that follows a plain one. */
.has-dots--fade {
	position: relative;
	isolation: isolate;
	background-image: none;
}

.has-dots--fade::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--dots);
	background-size: 1.5rem 1.5rem;
	background-position: 0.75rem 0.75rem;
	-webkit-mask-image: linear-gradient(to bottom, transparent, black 20rem);
	mask-image: linear-gradient(to bottom, transparent, black 20rem);
}

/* No dots on a phone (Harry, 2026-10-16: "lose the dotted texture across the board in mobile"). */
@media (max-width: 767px) {
	.has-dots {
		background-image: none;
	}

	.has-dots--fade::before {
		content: none;
	}
}

/* --------------------------------------------------------------------------
 * Text utilities
 * ----------------------------------------------------------------------- */

.lead {
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.lead--large {
	font-size: var(--font-7);
}

.small {
	color: var(--color-text-soft);
	font-size: var(--font-3);
	line-height: var(--leading-snug);
}

.muted {
	color: var(--color-text-muted);
}

/* The picked-out words in a heading. */
.accent {
	color: var(--color-accent);
}

.accent--bright {
	color: var(--color-accent-bright);
}

/* A heading in the deep teal rather than ink: page titles, Resources for Professionals. */
.is-title {
	color: var(--color-title);
}

/* The small joining words in a hero title (a, for, the, to), set in Light. The picked-out
   words with the brush behind them are .highlight, in highlight.css. */
.light {
	font-weight: var(--weight-light);
}

.caps {
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.u-nowrap {
	white-space: nowrap;
}

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

/* --------------------------------------------------------------------------
 * Motion guard, last
 * ----------------------------------------------------------------------- */

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

/*
 * The About BASC page under its hero. Measured from the mockup at 1920: Why BASC 200 below the
 * hero with the quote card 710 from the left; the framework panel 1560 wide (46 past the column
 * each side) with 56 of padding; How BASC Works on the deep teal with four cards in two columns;
 * the annual report card 1469 x 533 straddling the deep band's foot at its middle, the teal panel
 * 38% wide; the partnership copy beside a 16:9 video frame; the team four across on the dotted
 * paper, the safety band under it.
 */

/* The dots, on their own layer so they can fade in under the section above. */
.about-dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgb(var(--bsc-ink-rgb) / 0.08) 1px, transparent 1.5px);
	background-size: 1.75rem 1.75rem;
	background-position: 0.875rem 0.875rem;
	-webkit-mask-image: linear-gradient(to bottom, transparent, black var(--space-12));
	mask-image: linear-gradient(to bottom, transparent, black var(--space-12));
	pointer-events: none;
}

/* -- Why BASC ------------------------------------------------------------- */

.about-why {
	padding-block: calc(var(--space-12) + var(--space-10) + var(--space-3)) var(--space-10);
}

.about-why__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 44rem);
	gap: var(--space-8) var(--space-10);
	align-items: start;
}

.about-why__text {
	max-width: var(--measure-narrow);
	margin-block-start: var(--heading-copy-gap);
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

/* The card sits level with the label and 42 in from the column's right edge, as drawn. */
.about-why .quote-card {
	margin-inline-end: var(--space-5);
}

/* -- The framework --------------------------------------------------------- */

.about-framework {
	position: relative;
	padding-block: var(--space-4) calc(var(--space-12) + var(--space-3));
}

.about-framework > .container {
	position: relative;
}

.about-framework__panel {
	margin-inline: calc(var(--space-3) * -2);
	padding: var(--space-7);
	border: var(--border-hairline) solid var(--color-border);
	border-radius: var(--radius-panel);
	background-color: var(--color-bg);
}

.about-framework__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--space-4) var(--space-8);
	align-items: start;
	margin-block-end: var(--space-6);
}

.about-framework__statement {
	max-width: 24em;
	margin-block-start: var(--space-15);
	color: var(--color-heading);
	font-size: var(--font-11);
	line-height: var(--leading-heading);
}

.about-framework__statement strong {
	color: var(--color-accent);
	font-weight: var(--weight-bold);
}

.about-framework__actions {
	display: grid;
	gap: var(--space-15);
	justify-items: stretch;
}

.about-framework__actions .button-029 {
	--button-029-edge: var(--color-border);
}

/* -- How BASC works -------------------------------------------------------- */

.about-works {
	padding-block: calc(var(--space-16) + var(--space-6)) calc(var(--space-10) + var(--space-8) + var(--space-1));
}

.about-works__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 51rem;
	gap: var(--space-8) var(--space-8);
	align-items: start;
}

.about-works h2 {
	max-width: 11em;
	margin-block-start: var(--space-3);
	font-size: var(--font-12);
	line-height: var(--leading-heading);
}

.about-works__text {
	max-width: 27rem;
	margin-block-start: var(--space-3);
	color: var(--color-text-soft);
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.about-works__cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-25) var(--space-25);
	margin-inline-end: var(--space-6);
}

.about-works .info-card {
	padding: var(--space-4) var(--space-3);
}

/* -- The annual report ----------------------------------------------------- */

.about-report {
	padding-block: 0 var(--space-12);
}

/* The deep band reaches down behind the top half of the card, with the designer's tiles along its foot. */
.about-report__card {
	position: relative;
	display: grid;
	grid-template-columns: 38% minmax(0, 1fr);
	isolation: isolate;
}

.about-report__card::before,
.about-report__card::after {
	content: '';
	position: absolute;
	inset: 0 auto 50% 50%;
	z-index: -1;
	width: 100vw;
	translate: -50% 0;
}

.about-report__card::before {
	inset-block-start: calc(var(--space-8) * -1);
	background-color: var(--bsc-deep);
}

.about-report__card::after {
	inset-block-start: calc(var(--space-8) * -1);
	background-color: rgb(var(--bsc-white-rgb) / 0.07);
	-webkit-mask-image: url('/wp-content/themes/basc-theme/assets/svg/bg-pattern.svg'), linear-gradient(to top, black, transparent 90%);
	-webkit-mask-size: auto 12rem, 100% 100%;
	-webkit-mask-repeat: repeat-x, no-repeat;
	-webkit-mask-position: center bottom, 0 0;
	-webkit-mask-composite: source-in;
	mask-image: url('/wp-content/themes/basc-theme/assets/svg/bg-pattern.svg'), linear-gradient(to top, black, transparent 90%);
	mask-size: auto 12rem, 100% 100%;
	mask-repeat: repeat-x, no-repeat;
	mask-position: center bottom, 0 0;
	mask-composite: intersect;
}

.about-report__media {
	position: relative;
	min-height: 18rem;
	overflow: hidden;
	border-radius: var(--radius-card) 0 0 var(--radius-card);
	background-color: var(--bsc-teal);
}

.about-report__body {
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
	background-color: var(--bsc-white);
}

.about-report__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-report__body {
	padding: var(--space-7) var(--space-8) var(--space-6) var(--space-5);
	color: var(--bsc-ink);
}

.about-report__title {
	margin-block-start: var(--space-3);
	color: var(--bsc-deep);
	font-family: var(--font-display);
	font-size: var(--font-10);
	font-weight: var(--weight-title);
	letter-spacing: var(--tracking-title);
}

.about-report__text {
	max-width: 36rem;
	margin-block-start: var(--space-15);
	color: var(--color-text-soft);
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.about-report__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-6);
	margin-block-start: var(--space-4);
}

.about-report__stats .stat {
	max-width: 16rem;
}

.about-report__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-15);
	margin-block-start: var(--action-gap);
}

/* -- Partnership ----------------------------------------------------------- */

.about-partners {
	padding-block: var(--space-12) var(--space-14);
}

.about-partners__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 53rem;
	gap: var(--space-8) var(--space-8);
	align-items: center;
}

.about-partners h2 {
	max-width: 10em;
	text-wrap: wrap;
}

.about-partners .video-frame {
	aspect-ratio: 53 / 32;
}

.about-partners__text {
	max-width: 27rem;
	margin-block-start: var(--heading-copy-gap);
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.about-partners__action {
	margin-block-start: var(--action-gap);
}

.video-frame--still {
	cursor: default;
}

/* -- The team and the safety band ----------------------------------------- */

.about-team {
	position: relative;
	padding-block: var(--space-4) calc(var(--space-14) + var(--space-5));
}

.about-team > .container {
	position: relative;
}

.about-team__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 36rem);
	gap: var(--space-3) var(--space-8);
	align-items: end;
	margin-block-end: var(--space-4);
}

.about-team__text {
	margin-block-end: var(--space-1);
	color: var(--color-text-soft);
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.about-team__safety {
	margin-block-start: calc(var(--space-14) + var(--space-5));
}

/* -- Tablet and phone ------------------------------------------------------ */

@media (max-width: 1279px) {
	.about-why__inner,
	.about-works__inner,
	.about-partners__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-framework__panel {
		margin-inline: 0;
		padding: var(--space-5);
	}

	.about-framework__head {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-framework__actions {
		display: flex;
		flex-wrap: wrap;
	}
}

@media (max-width: 1023px) {
	.about-report__card {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-report__media {
		min-height: 11rem;
		border-radius: var(--radius-card) var(--radius-card) 0 0;
	}

	.about-report__body {
		padding: var(--space-5);
		border-radius: 0 0 var(--radius-card) var(--radius-card);
	}

	.about-team__head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}

@media (max-width: 767px) {
	.about-why {
		padding-block: var(--space-8) var(--space-6);
	}

	.about-framework {
		padding-block-end: var(--space-10);
	}

	.about-framework__panel {
		padding: var(--space-3);
	}

	.about-works {
		padding-block: var(--space-10) var(--space-6);
	}

	.about-works__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-partners {
		padding-block: var(--space-8) var(--space-10);
	}

	.about-team {
		padding-block-end: var(--space-10);
	}

	.about-team__safety {
		margin-block-start: var(--space-8);
	}
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next. */
@media (max-width: 767px) {
	.about-why {
		padding-block: var(--section-y);
	}

	.about-framework {
		padding-block: var(--space-3) var(--section-y);
	}

	/* No box round the explorer on a phone, and its two buttons follow it rather than sit between the heading and the tiles (Harry, 2026-10-15). */
	.about-framework__panel {
		display: flex;
		flex-direction: column;
		margin-inline: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.about-framework__head {
		display: contents;
	}

	.about-framework__head > div {
		margin-block-end: var(--space-4);
	}

	.about-framework__head > .about-framework__actions {
		order: 2;
		display: grid;
		gap: var(--space-15);
		margin-block-start: 0;   /* the hint above carries the gap, as on the home page */
		margin-block-end: 0;     /* the head's 32 is for its copy; the section's padding meets the next band's (Harry, 2026-10-16) */
	}

	.about-works {
		padding-block: var(--section-y);
	}

	.about-report {
		padding-block-end: var(--section-y);
	}

	.about-partners {
		padding-block: var(--section-y);
	}

	.about-team {
		padding-block: var(--space-4) var(--section-y);
	}

	.about-team__safety {
		margin-block-start: var(--section-y);
	}
}

/* On a phone How BASC Works' copy follows its heading at the page's gap (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.about-works__text {
		margin-block-start: var(--heading-copy-gap);
	}
}

/* Copy to the box under it is 32 on a phone, and the boxes run the column's full width (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.about-why__inner,
	.about-works__inner {
		row-gap: var(--space-4);
	}

	.about-why .quote-card {
		margin-inline-end: 0;
	}

	.about-works__cards {
		margin-inline-end: 0;
	}

	/* The same padding on every side; the desktop's taller padding reads as a gap on a narrow card. */
	.about-works .info-card {
		padding: var(--space-3);
	}

	/* The report card follows the last box at the boxes' own gap; its band starts where that box ends. */
	.about-works {
		padding-block-end: var(--space-25);
	}

	.about-report__card::before,
	.about-report__card::after {
		inset-block-start: calc(var(--space-25) * -1);
	}

	.about-report__actions {
		display: grid;
	}

	/* Adjacent sections share one 56: the report gives up its foot, the partners' foot and the team's head make 56 between them. */
	.about-report {
		padding-block-end: 0;
	}

	.about-partners {
		padding-block-end: var(--space-3);
	}

	.about-partners__inner {
		row-gap: var(--space-4);
	}
}

/* No dots on a phone (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.about-dots {
		display: none;
	}
}

/*
 * A listing's opening on the paper: the label and title at the left, a lead at the right, the
 * lead sat level with the title's first lines. Measured on the Partnerships page: eyebrow at
 * 328, title 64 on two lines, lead 22 Light in the deep teal from x 1012, cards 96 below.
 */

.archive-hero {
	padding-block: calc(var(--space-8) + var(--space-10) + var(--space-3)) var(--space-10);
}

.archive-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 40rem);
	gap: var(--space-4) var(--space-8);
	align-items: end;
}

.archive-hero__title {
	max-width: 8em;
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-14);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-heading);
}

.archive-hero__lead {
	margin-block-end: var(--space-1);
	color: var(--color-title);
	font-size: var(--font-7);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.archive-list {
	padding-block-end: calc(var(--space-12) + var(--space-10));
}

/* Two to the row, a little further apart than the resource grid, as drawn. */
.archive-list .partner-grid {
	gap: var(--space-5);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1023px) {
	.archive-hero {
		padding-block-start: var(--space-8);
	}

	.archive-hero__inner,
	.archive-list .partner-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.archive-list {
		padding-block-end: var(--space-12);
	}
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next.
   The lead follows the title at the page's heading gap and the first card sits 32 under it (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.archive-hero {
		padding-block-end: var(--space-4);
	}

	.archive-hero__inner {
		row-gap: var(--heading-copy-gap);
	}

	.archive-hero__lead {
		margin-block-end: 0;
	}

	.archive-list .partner-grid {
		gap: var(--card-gap);
	}

	.archive-list {
		padding-block-end: var(--section-y);
	}
}

/*
 * A page on the paper that opens with its trail: the breadcrumb, the tags, the title at 64 in
 * the deep teal, the lead, and the meta line with its hairlines across the whole column. Then
 * the body beside its sidebar (prose.css's article-layout). Measured off the annual report
 * page: trail 186 under the masthead, tags 52 below it, title 42 below them, meta 30 under the
 * lead, body 96 under the meta.
 */

.article {
	padding-block: calc(var(--section-y) + var(--space-4)) var(--section-y);
}

.article__head {
	margin-block-end: var(--space-10);
}

.article__tags {
	margin-block: var(--space-4) var(--space-3);
}

.article__title {
	max-width: 14em;
}

.article__lead {
	max-width: var(--measure-wide);
	margin-block-start: var(--space-2);
	font-size: var(--font-7);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.article__meta {
	margin-block-start: var(--space-4);
}

.article__body {
	min-width: 0;
}

/* A resource's or a partnership's sidebar is tall (the box and the cards), so it scrolls with the page rather than sticking (Harry, 2026-10-14). */
.article--resource .article-layout__aside,
.article--partnership .article-layout__aside {
	position: static;
}

/* Without a sidebar the body keeps to its measure. */
.article__body--single {
	max-width: 53.125rem;
}

/* The related resources under the On this page box: the heading at 28, the cards stacked. */
.article-related {
	display: grid;
	gap: var(--space-2);
}

.article-related__title {
	margin: 0;
	font-size: var(--font-8);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-title);
}

.article-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: var(--space-3);
}

.article-related__list > * {
	display: grid;
}

/* Below the sidebar's width the On this page box would trail the copy it points at, so it goes; the related resources follow the body. */
@media (max-width: 1023px) {
	.article .article-layout__aside .page-nav,
	.article .article-layout__aside:not(:has(.article-related)) {
		display: none;
	}
}

@media (max-width: 767px) {
	.article {
		padding-block-start: var(--space-6);
	}

	.article__head {
		margin-block-end: var(--space-6);
	}

	.article__tags {
		margin-block: var(--space-3) var(--space-2);
	}
}

/* The diary on its past view says so above the bar; the link to the other view closes the listing. */
.event-archive__title {
	margin-block-end: var(--space-3);
	font-size: var(--font-10);
}

.archive-foot {
	margin-block-start: var(--space-6);
}

/*
 * An event, compact: the meta on a card in a sticky left column (the day on the event card's
 * tile, then Date, Time and Venue, and the booking button); at the right the trail, the title
 * a step down from a page's, the summary and the blocks. No chips, no On this page box
 * (Harry, 2026-10-15). Under the page, More events on the event grid.
 */
.article--event {
	padding-block-start: calc(var(--section-y) - var(--space-2));
}

.event-main {
	min-width: 0;
}

.event-main__head {
	margin-block-end: var(--space-5);
}

.event-main__title {
	max-width: 16em;
	margin-block-start: var(--space-3);
	color: var(--color-title);
	font-size: var(--font-12);
	letter-spacing: var(--tracking-heading);
}

.event-main__lead {
	max-width: var(--measure-wide);
	margin-block-start: var(--space-2);
	font-size: var(--font-6);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.event-layout {
	display: grid;
	grid-template-columns: 21.6875rem minmax(0, 1fr);
	gap: var(--space-8);
	align-items: start;
}

.event-layout__aside {
	position: sticky;
	inset-block-start: calc(var(--masthead-h-tight) + var(--space-3));
}

.event-meta {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-3);
}

.event-meta .event-card__tile {
	width: 6.5rem;
}

.event-meta__list {
	display: grid;
	gap: var(--space-2);
	margin: 0;
}

.event-meta__list > div {
	display: grid;
	gap: 0.125rem;
}

.event-meta__list dt {
	color: var(--color-text-muted);
	font-size: var(--font-1);
	font-weight: var(--weight-semi);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.event-meta__list dd {
	margin: 0;
	color: var(--color-title);
	font-size: var(--font-5);
	font-weight: var(--weight-semi);
	line-height: 1.3;
}

/* Past: the tile fades and the note takes the button's place. */
.event-meta--past .event-card__tile {
	opacity: 0.45;
}

.event-meta__passed {
	margin: 0;
	padding: var(--space-1) var(--space-15);
	border-radius: var(--radius-tag);
	background-color: var(--color-surface);
	color: var(--color-text-soft);
	font-size: var(--font-2);
	font-weight: var(--weight-semi);
	justify-self: start;
}

/* The venue's still, opening directions in a new tab; the label sits on its foot. */
.event-meta__map {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-btn);
	background-color: var(--color-tile);
	color: var(--color-title);
	text-decoration: none;
}

.event-meta__map img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale var(--duration-slow) var(--ease);
}

.event-meta__map:is(:hover, :focus-visible) img {
	scale: 1.04;
}

.event-meta__map-label {
	position: absolute;
	inset-block-end: var(--space-1);
	inset-inline-start: var(--space-1);
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
	padding: 0.3rem 0.6rem;
	border-radius: var(--radius-tag);
	background-color: var(--color-surface);
	font-size: var(--font-2);
	font-weight: var(--weight-semi);
}

.event-meta__map:focus-visible {
	outline: var(--focus-width) solid var(--focus-color);
	outline-offset: var(--focus-offset);
}

.event-more {
	padding-block-end: var(--section-y);
}

.event-more .section-head {
	margin-block-end: var(--space-4);
}

/* Below the sidebar's width the trail, title and summary come first, the meta card under them
   and the blocks after it (Harry, 2026-10-16): the main column dissolves so its two halves can
   take their own slots, 32 apart. */
@media (max-width: 1023px) {
	.event-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-4);
	}

	.event-main {
		display: contents;
	}

	.event-layout__aside {
		position: static;
		order: 1;
	}

	.event-main__head {
		margin-block-end: 0;
	}

	.event-main .article__body {
		order: 2;
	}
}

/* On a phone the lead follows the title at the page's heading-to-copy gap (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.article__lead {
		margin-block-start: var(--heading-copy-gap);
	}
}

/*
 * The audience pages' sections under the hero. How we work: the label, heading and copy on the
 * left, three icon cards on the right, centred on each other under the tile band (measured:
 * the cards 1026 wide at the column's right, 149 above them and 111 below). Become a Safe
 * Place: the panel on the dotted ground, the dots fading in over the space above it and out
 * over the space below. Resources: the heading row with All Resources at the right, the
 * filter bar (which carries the 20 to the cards), the grid (measured: 34 heading to bar).
 */

.audience-work {
	padding-block: calc(var(--space-16) + var(--space-25)) var(--space-4);
}

.audience-work__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 64.125rem;
	gap: var(--space-8) var(--space-4);
	align-items: center;
}

/* The heading wraps where it runs out of room, as drawn, rather than balancing its two lines. */
.audience-work h2 {
	text-wrap: wrap;
}

.audience-work__text {
	max-width: var(--measure-narrow);
	margin-block-start: var(--heading-copy-gap);
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.audience-work__cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-safe {
	position: relative;
	padding-block: var(--space-10);
}

/* The same dots as .has-dots, on their own layer so they can fade at the section's edges. */
.audience-safe__dots {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgb(var(--bsc-ink-rgb) / 0.08) 1px, transparent 1.5px);
	background-size: 1.75rem 1.75rem;
	background-position: 0.875rem 0.875rem;
	-webkit-mask-image: linear-gradient(to bottom, transparent, black var(--space-10), black calc(100% - var(--space-10)), transparent);
	mask-image: linear-gradient(to bottom, transparent, black var(--space-10), black calc(100% - var(--space-10)), transparent);
	pointer-events: none;
}

.audience-safe > .container {
	position: relative;
}

.audience-resources {
	padding-block: var(--space-6) calc(var(--space-16) + var(--space-4));
}

.audience-resources .section-head {
	margin-block-end: var(--space-4);
}

.audience-resources__empty {
	padding-block: var(--space-6);
}

/* With script, the select applies itself; the Apply button is for everyone else. */
.has-js .filter-bar__submit {
	display: none;
}

@media (max-width: 1279px) {
	.audience-work__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.audience-work__cards {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	}
}

@media (max-width: 767px) {
	.audience-work {
		padding-block: var(--space-12) var(--space-2);
	}

	.audience-safe {
		padding-block: var(--space-8);
	}

	.audience-resources {
		padding-block: var(--space-4) var(--space-14);
	}
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next. */
@media (max-width: 767px) {
	.audience-work {
		padding-block: var(--space-8) 0;
	}

	/* Copy to the first card: 32, as the home partners take once stacked (Harry, 2026-10-16). */
	.audience-work__inner {
		row-gap: var(--space-4);
	}

	.audience-safe {
		padding-block: var(--section-y);
	}

	.audience-resources {
		padding-block: var(--space-3) var(--section-y);
	}
}

/* No dots on a phone (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.audience-safe__dots {
		display: none;
	}
}

/*
 * Content blocks: the body of an event's page (inc/blocks.php). The flow sets the copy to
 * --blocks-measure, the annual report page's 850 column; each block is one of the library's
 * pieces (the three lists, stat cards, the quote card, the video frame) in the copy's rhythm.
 */

.blocks {
	--blocks-measure: 53.125rem;

	display: flow-root;
}

.block {
	max-width: var(--blocks-measure);
	margin: 0;
}

.block + .block {
	margin-block-start: var(--space-4);
}

.block + .block--heading {
	margin-block-start: var(--space-6);
}

.block--heading + .block {
	margin-block-start: var(--space-2);
}

/* -- Heading and text --------------------------------------------------- */

.block-heading {
	margin: 0;
	font-size: var(--font-10);
	scroll-margin-block-start: var(--space-4);
}

.block-heading--small {
	font-size: var(--font-8);
	letter-spacing: var(--tracking-title);
}

.block-text {
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.block-text > :first-child {
	margin-block-start: 0;
}

.block-text > :last-child {
	margin-block-end: 0;
}

.block-text p + p {
	margin-block-start: var(--copy-gap);
}

.block-text :is(ul, ol) {
	padding-inline-start: 1.25em;
}

.block-text strong {
	font-weight: var(--weight-semi);
}

/* The lists keep their own type; only their stagger is new. */
.block-list {
	margin: 0;
}

/* -- Buttons ------------------------------------------------------------- */

.block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-15);
}

/* -- Image, gallery and video --------------------------------------------- */

.block-image {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-card);
	background-color: var(--color-tile);
}

.block-image__img {
	display: block;
	width: 100%;
	height: auto;
}

.block-caption {
	margin-block-start: var(--space-15);
	color: var(--color-text-muted);
	font-size: var(--font-2);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.block-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-2);
	margin: 0;
}

.block-gallery--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.block-gallery__item {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius-card);
	background-color: var(--color-tile);
}

.block-gallery__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The play link covers the frame; the ring stays centred by the frame's grid. */
.video-frame__link {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: inherit;
}

.video-frame__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background-color: var(--bsc-ink);
}

/* -- Callout ------------------------------------------------------------- */

.block-callout {
	padding: var(--space-4) var(--space-5) var(--space-5);
	border-radius: var(--radius-card);
}

.block-callout__eyebrow {
	margin-block-end: var(--space-15);
}

.block-callout__heading {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: var(--font-9);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.block-callout__text {
	max-width: var(--measure);
	margin-block-start: var(--space-15);
	color: var(--color-text-soft);
	font-size: var(--font-5);
	font-weight: var(--weight-light);
	line-height: var(--leading-lead);
}

.block-callout__text > :last-child {
	margin-block-end: 0;
}

.block-callout__action {
	margin-block-start: var(--space-3);
}

@media (max-width: 767px) {
	.block + .block--heading {
		margin-block-start: var(--space-5);
	}

	.block-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-1);
	}

	.block-callout {
		padding: var(--space-3);
	}
}

/*
 * The trail above a page title: Home / For Professionals / Resources / BASC Annual Report,
 * in the deep teal at 16 Bold, the current page in Light.
 */

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.5rem;
	color: var(--color-title);
	font-size: var(--font-4);
	font-weight: var(--weight-bold);
	line-height: 1.4;
}

.breadcrumb li {
	display: inline-flex;
	gap: 0.5rem;
}

.breadcrumb li + li::before {
	content: '/';
	font-weight: var(--weight-light);
}

.breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.breadcrumb a:is(:hover, :focus-visible) {
	text-decoration: underline;
}

.breadcrumb [aria-current] {
	font-weight: var(--weight-light);
}

/* The Published by / Date line under a resource's lead, with its download at the right. */
.meta-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-4);
	padding-block: var(--space-2);
	border-block: var(--border-hairline) solid var(--color-border);
	font-size: var(--font-4);
}

.meta-line__item strong {
	color: var(--color-title);
	font-weight: var(--weight-bold);
}

.meta-line__item {
	color: var(--color-title);
	font-weight: var(--weight-light);
}

.meta-line .button-029 {
	margin-inline-start: auto;
}

/* A line holding only the button (a partnership with a website and no Led by) keeps it at the left. */
.meta-line .button-029:first-child {
	margin-inline-start: 0;
}

/*
 * Buttons: Osmo Supply's Button 029. The hover layer, in the hover colours, wipes in from the
 * left with a rounded leading edge and the label goes with it. Osmo's rules are kept as
 * supplied; the first block maps its variables onto the tokens so a colour context restyles a
 * button by itself. Solid is the deep teal wiping to teal; outline wipes to its own colour;
 * paper is the light button on the dark hero; ghost has no ground and only changes colour.
 * Measured 42 tall, drawn up to 46 with a 16 SemiBold label.
 */

.button-029 {
	--button-029-color: var(--color-btn-text);
	--button-029-color-background: var(--color-btn-bg);
	--button-029-hover-color: var(--color-btn-text-hover);
	--button-029-hover-color-background: var(--color-btn-bg-hover);
	--button-029-color-focus: var(--focus-color);
	--button-029-padding: calc((var(--btn-height) - 1em) / 2) var(--btn-pad);
	--button-029-border-radius: var(--radius-btn);
	--button-029-focus-inset: -0.125em;
	--button-029-click-scale: 0.955 0.925;
	--button-029-clip-path: inset(0 100% 0 0 round 0 0.75em 0.75em 0);
	--button-029-clip-path-hover: inset(0 0 0 0 round 0);
	--button-029-ease-click: var(--ease-click);
	--button-029-ease-hover: var(--ease-focus);
	--button-029-ease-focus: var(--ease-focus);
	--button-029-edge: transparent;

	font-family: var(--font-sans);
	font-size: var(--font-btn);
	font-weight: var(--weight-semi);
	letter-spacing: var(--tracking-title);
	text-align: center;
	white-space: nowrap;
}

/* -- Osmo Supply, Button 029, as supplied ------------------------------- */

.button-029 {
	-webkit-user-select: none;
	user-select: none;
	background-color: #0000;
	outline-style: none;
	padding: 0;
	line-height: 1;
	text-decoration: none;
	display: inline-grid;
	position: relative;
	-webkit-tap-highlight-color: transparent;
	transition: scale 0.15s var(--button-029-ease-click);
}

.button-029::after {
	content: '';
	display: block;
	position: absolute;
	inset: var(--button-029-focus-inset);
	border-radius: var(--button-029-border-radius);
	transition: box-shadow 0.3s var(--button-029-ease-focus);
	pointer-events: none;
	z-index: 1;
}

.button-029:is(:focus-visible)::after {
	box-shadow: 0 0 0 0.125em var(--button-029-color-focus);
}

.button-029:active {
	scale: var(--button-029-click-scale);
}

.button-029__inner {
	grid-area: 1 / 1;
	place-items: center;
	width: 100%;
	height: 100%;
	display: grid;
}

.button-029__default {
	width: 100%;
	height: 100%;
	color: var(--button-029-color);
	grid-area: 1 / 1;
	display: grid;
}

.button-029__default-bg {
	background-color: var(--button-029-color-background);
	border-radius: var(--button-029-border-radius);
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	padding: 0;
}

.button-029__default-inner,
.button-029__hover-inner {
	grid-column-gap: .125em;
	grid-row-gap: .125em;
	width: 100%;
	height: 100%;
	padding: var(--button-029-padding);
	grid-area: 1 / 1;
	justify-content: center;
	align-items: center;
	display: flex;
}

.button-029__hover {
	color: var(--button-029-hover-color);
	grid-area: 1 / 1;
	width: calc(100% + 1px);
	height: calc(100% + 1px);
	display: grid;
	clip-path: var(--button-029-clip-path);
	transition: clip-path 0.5s var(--button-029-ease-hover);
}

.button-029__hover-bg {
	border-radius: var(--button-029-border-radius);
	background-color: var(--button-029-hover-color-background);
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	padding: 0;
}

.button-029__icon {
	flex: none;
	width: .75em;
	height: .75em;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.button-029:is(:hover, :focus-visible) .button-029__hover,
	[data-hover]:is(:hover, :focus-visible) .button-029 .button-029__hover {
		clip-path: var(--button-029-clip-path-hover);
		transition: clip-path 0.55s 0.05s var(--button-029-ease-hover);
	}
}

/* -- Ours: edge, icons, label, variants, touch ---------------------------- */

/* The edge: always declared so a variant cannot shift layout; the hover layer draws its own in its colour. */
.button-029__default-bg {
	border: var(--border-control) solid var(--button-029-edge);
}

.button-029__hover-bg {
	border: var(--border-control) solid var(--button-029-hover-color-background);
}

.button-029__default-inner,
.button-029__hover-inner {
	gap: 0.5em;
}

/* Our icons sit at the cap height, and the trailing arrow nudges on with the wipe. */
.button-029__icon {
	width: 1em;
	height: 1em;
	transition: translate var(--duration) var(--ease);
}

.button-029:is(:hover, :focus-visible) .button-029__icon:last-child,
[data-hover]:is(:hover, :focus-visible) .button-029 .button-029__icon:last-child {
	translate: 0.2em 0;
}

/* The label's box trimmed to its capitals where the browser can, so it and the icon share a centre. */
.button-029__text {
	display: block;
	padding-block-end: 0.1em;
}

@supports (text-box-trim: trim-both) {
	.button-029__text {
		padding-block-end: 0;
		text-box: trim-both cap alphabetic;
	}
}

/* base.css turns every link teal on hover; the layers carry their own colours. */
a.button-029:is(:hover, :focus-visible) {
	color: var(--button-029-color);
}

.button-029[data-theme='outline'] {
	--button-029-color: var(--color-btn-outline);
	--button-029-color-background: transparent;
	--button-029-edge: var(--color-btn-outline);
	--button-029-hover-color-background: var(--color-btn-outline);
	--button-029-hover-color: var(--color-bg);
}

.button-029[data-theme='paper'] {
	--button-029-color: var(--color-btn-paper-text);
	--button-029-color-background: var(--color-btn-paper);
	--button-029-hover-color-background: var(--color-btn-paper-hover, var(--bsc-teal));
	--button-029-hover-color: var(--color-btn-paper-hover-text, var(--bsc-white));
}

/* The bare label: no ground, the wipe only recolours the text. */
.button-029[data-theme='ghost'] {
	--button-029-color: var(--color-link);
	--button-029-color-background: transparent;
	--button-029-hover-color-background: transparent;
	--button-029-hover-color: var(--color-link-hover);
	--btn-pad: 0.5rem;
}

.button-029[data-theme='ghost'] .button-029__hover-bg {
	border-color: transparent;
}

.button-029[data-size='lg'] {
	--button-029-padding: calc((var(--btn-height-lg) - 1em) / 2) var(--space-3);
}

/* Without a fine pointer the wipe never runs, so a press shows the hover layer instead. */
@media not ((hover: hover) and (pointer: fine)) {
	.button-029:active .button-029__hover {
		clip-path: var(--button-029-clip-path-hover);
	}
}

.button-029[aria-disabled='true'],
.button-029:disabled {
	opacity: 0.45;
	pointer-events: none;
}

/* -- Text links: View More, Read More, Find Out More ---------------------- */

/*
 * The label carries a rule in the link colour's accent (orange on the light grounds). On hover
 * the rule leaves to the right and a fresh one draws in from the left, as Osmo's underline does,
 * while the icon nudges on.
 */
.link-more {
	position: relative;
	display: inline-flex;
	width: fit-content;   /* a flex column parent never stretches the rule across the card */
	max-width: 100%;
	padding-block-end: 0.3em;   /* the rule runs under the label and the icon together */
	align-items: center;
	gap: 0.4em;
	color: var(--color-link);
	font-size: var(--font-link);
	font-weight: var(--weight-semi);
	line-height: 1.2;
	letter-spacing: var(--tracking-title);
	text-decoration: none;
}

/* As a span it is decoration in a card whose title link covers the card: the click must fall through to that link (Cirsty, 2026-11-03: Find Out More did nothing). */
span.link-more {
	pointer-events: none;
}

.link-more:is(:hover, :focus-visible) {
	color: var(--color-link);
}

.link-more::before,
.link-more::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 2px;
	background-color: var(--color-link-rule);
	transition: transform 0.735s var(--ease-in-out);
}

.link-more::before {
	transform-origin: left;
	transform: scaleX(1) rotate(0.001deg);
	transition-delay: 0.3s;
}

.link-more::after {
	transform-origin: right;
	transform: scaleX(0) rotate(0.001deg);
}

/* The glyphs fill ten of their sixteen units, so the box runs large to draw them at about 11px beside 15px text. */
.link-more__icon {
	flex: none;
	width: 1.2em;
	height: 1.2em;
	transition: translate var(--duration) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
	:is(.link-more, [data-hover]):is(:hover, :focus-visible)::before {
		transform-origin: right;
		transform: scaleX(0) rotate(0.001deg);
		transition-delay: 0s;
	}

	:is(.link-more, [data-hover]):is(:hover, :focus-visible)::after {
		transform-origin: left;
		transform: scaleX(1) rotate(0.001deg);
		transition-delay: 0.3s;
	}
}

:is(.link-more, [data-hover]):is(:hover, :focus-visible, :focus-within) .link-more__icon {
	translate: 0.25em 0;
}

.link-more--plain {
	padding-block-end: 0;
}

.link-more--plain::before,
.link-more--plain::after {
	content: none;
}

.link-more--large {
	font-size: var(--font-4);
}

/*
 * A row of cards you swipe through on a phone (Harry, 2026-10-16, for the home's news and
 * events feeds): the row bleeds to the screen's edges, each card takes most of the column so the
 * next peeks in, and the scroll snaps card to card. Native scrolling only: no script, no
 * scrollbar, nothing moves by itself. Above a phone the class does nothing and the grid it sits
 * on lays the cards out.
 */

@media (max-width: 767px) {
	.carousel {
		display: flex;
		gap: var(--space-2);
		margin-block: calc(-1 * var(--space-15));   /* room for a card's lift and shadow inside the clip */
		margin-inline: calc(-1 * var(--gutter));
		padding-block: var(--space-15);
		padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.carousel::-webkit-scrollbar {
		display: none;
	}

	/* Each slot is the reveal wrapper; a grid, so the card inside takes the slot's full height. */
	.carousel > * {
		display: grid;
		flex: 0 0 var(--carousel-item, 82%);
		scroll-snap-align: start;
	}
}

/*
 * An event card: the day on a square teal tile inset at the left, then the date line, title,
 * summary, chips and Find Out More centred beside it on a light grey ground. Measured: 712 x
 * 220, the tile 176 square on a 20 inset, copy 32 from the tile.
 */

.event-card {
	position: relative;
	display: grid;
	grid-template-columns: var(--date-tile) minmax(0, 1fr);
	padding: var(--space-25);
	overflow: hidden;
	border: var(--border-hairline) solid var(--color-edge);
	border-radius: var(--radius-card);
	background-color: var(--color-tile);
	transition: box-shadow var(--duration-slow) var(--ease), translate var(--duration-slow) var(--ease);
}

.event-card:is(:hover, :focus-within) {
	box-shadow: 0 18px 36px -20px rgb(var(--bsc-ink-rgb) / 0.4);
	translate: 0 -4px;
}

.event-card__tile {
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 0.125rem;
	aspect-ratio: 1;
	padding: var(--space-2) 0.25rem;
	border-radius: var(--radius-btn);
	background-color: var(--bsc-teal);
	color: var(--bsc-paper);
}

.event-card__day {
	font-size: var(--font-12);
	font-weight: var(--weight-bold);
	line-height: 1;
	letter-spacing: var(--tracking-heading);
}

.event-card__month {
	color: rgb(var(--bsc-paper-rgb) / 0.6);
	font-size: var(--font-1);
	font-weight: var(--weight-semi);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.event-card__body {
	display: grid;
	align-content: center;
	gap: var(--space-1);
	padding: var(--space-1) var(--space-15) var(--space-1) var(--space-4);
}

.event-card__date {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	color: var(--color-text);
	font-size: var(--font-1);
	font-weight: var(--weight-semi);
}

.event-card__date-icon {
	width: 0.9rem;
	height: 0.9rem;
	color: var(--color-icon-soft);
}

.event-card__title {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: var(--font-7);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.event-card__link {
	color: inherit;
	text-decoration: none;
}

.event-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
}

.event-card__summary {
	margin: 0;
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.event-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-15);
	margin-block-start: var(--space-1);
}

/* Zero specificity, so a modifier from another file (carousel) wins whatever the glob order. */
:where(.event-grid) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 34rem), 1fr));   /* two across the column, as drawn */
	gap: var(--card-gap);
}

/* The diary lists them one under another (Harry, 2026-10-15). */
.event-grid--list {
	grid-template-columns: minmax(0, 1fr);
}

/* On a phone the day tile sits over the copy, a step smaller (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.event-card {
		grid-template-columns: minmax(0, 1fr);
		padding: var(--space-15);
	}

	.event-card__tile {
		width: var(--date-tile);
		gap: 0;
	}

	.event-card__day {
		font-size: var(--font-11);
	}

	.event-card__body {
		padding: var(--space-15) var(--space-05) var(--space-05);
	}
}

/*
 * The label above a heading with its diamond: "What We Do", "Resources". The diamond is orange
 * unless the helper is told otherwise (--mark). The boxed form is the pill the dark bands use.
 */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--color-eyebrow);
	font-family: var(--font-display);
	font-size: var(--font-eyebrow);
	font-weight: var(--weight-bold);
	line-height: 1.2;
	letter-spacing: var(--tracking-title);
}

.eyebrow__mark {
	flex: none;
	width: 0.5625rem;
	height: 0.5625rem;
	border: 2px solid var(--mark, var(--bsc-orange));
	rotate: 45deg;
}

.eyebrow--boxed {
	padding: 0.4375rem 0.875rem 0.4375rem 0.75rem;
	border-radius: var(--radius-sm);
	background-color: var(--color-surface);
}

/* "ON THIS PAGE": tracked capitals, sat back. */
.eyebrow--caps {
	color: var(--color-text-muted);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

/* A heading follows its eyebrow closely: the eyebrow gives up its flow margin and the heading takes the whole gap. */
.eyebrow:has(+ :is(h1, h2, h3, .title)) {
	margin-block-end: 0;
}

.eyebrow + :is(h1, h2, h3, .title) {
	margin-block-start: var(--eyebrow-gap);
}

/*
 * Form fields: a label over a 44 tall box with 6px corners and a hairline in the control
 * colour. Focus thickens the edge to the deep teal. Errors go orange, never red.
 */

.field {
	display: grid;
	gap: 0.375rem;
}

.field__label {
	color: var(--color-text);
	font-size: var(--font-3);
	font-weight: var(--weight-semi);
}

.field__hint {
	color: var(--color-text-muted);
	font-size: var(--font-2);
	line-height: var(--leading-snug);
}

.input,
.select,
.textarea {
	width: 100%;
	min-height: var(--tap-min);
	padding: 0.5rem 0.875rem;
	border: var(--border-control) solid var(--color-border-control);
	border-radius: var(--radius-btn);
	background-color: var(--bsc-white);
	color: var(--bsc-ink);
	font-size: var(--font-4);
	line-height: 1.4;
	transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
	color: var(--color-text-muted);
}

:is(.input, .select, .textarea):focus-visible {
	outline: none;
	border-color: var(--bsc-deep);
	box-shadow: 0 0 0 2px var(--bsc-deep);
}

.select {
	padding-inline-end: 2.25rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a2e31' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
	background-position: right 0.75rem center;
	background-repeat: no-repeat;
	background-size: 0.9rem;
}

.textarea {
	min-height: 8rem;
	resize: vertical;
}

/* An input with a leading icon: the filter bar's search. */
.input-icon {
	position: relative;
}

.input-icon__icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0.75rem;
	width: 1rem;
	height: 1rem;
	color: var(--color-text-muted);
	translate: 0 -50%;
	pointer-events: none;
}

.input-icon .input {
	padding-inline-start: 2.25rem;
}

/* Checkbox and radio: the native control, drawn in the deep teal. */
.choice {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: var(--font-4);
	line-height: 1.4;
}

.choice__input {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-block-start: 0.1rem;
	accent-color: var(--bsc-deep);
}

.field.is-error :is(.input, .select, .textarea) {
	border-color: var(--bsc-orange);
	box-shadow: 0 0 0 1px var(--bsc-orange);
}

.field__error {
	color: var(--bsc-orange);
	font-size: var(--font-2);
	font-weight: var(--weight-semi);
}

.form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--space-3);
}

/*
 * The framework explorer: six stage tiles as tabs, a pointer under the lit one, and the detail
 * panel. A resting tile is its tint with a dot; the lit tile takes the stage colour, shows the
 * glyph and goes white. framework.js swaps the panels and moves the pointer; without it the
 * first panel shows and the rest stay hidden. Measured: tiles 226 x 152 on a 22 gap, panel
 * padding 56. The homepage's tiles are taller (framework--tall).
 */

.framework {
	position: relative;
}

.framework__tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));   /* Prevention, then Response */
	gap: var(--space-4) var(--tab-gap);   /* the groups part by the same gap as the tiles */
	padding-block-end: 0.875rem;   /* room for the pointer */
}

/* Each phase is a heading over its own row of tiles; both rows have three, so the tiles keep their width. */
.framework__group {
	display: flex;
	flex-direction: column;
	gap: var(--tab-gap);
}

.framework__group-tabs {
	display: grid;
	flex: 1;
	grid-template-columns: repeat(var(--group-size, 3), minmax(0, 1fr));
	gap: var(--tab-gap);
}

.framework__phase {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0 var(--space-2);
	border-radius: var(--radius-btn);
	border: var(--border-hairline) solid var(--color-edge);
	background-color: rgb(var(--bsc-white-rgb) / 0.39);   /* #ffffff63: a frosted bar on the paper */
}

.framework__phase-name {
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: var(--font-7);
	font-weight: var(--weight-title);
	letter-spacing: var(--tracking-title);
}

.framework__tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-15);
	min-height: var(--tab-h);
	padding: var(--space-3) var(--space-15) var(--space-25);
	border: var(--border-hairline) solid transparent;
	border-radius: var(--radius-btn);
	background-color: var(--stage-tint);
	color: var(--bsc-grey);
	text-align: center;
	transition: background-color 0.45s var(--ease-in-out), color 0.45s var(--ease-in-out), box-shadow 0.45s var(--ease-in-out), filter var(--duration-fast) var(--ease);
}

.framework__tab:hover {
	filter: brightness(0.97);
}

.framework__tab.is-active {
	background-color: var(--stage);
	color: var(--bsc-white);
	box-shadow: 0 14px 28px -14px var(--stage);
}

.framework__tab:focus-visible {
	outline-color: var(--bsc-ink);
}

/* The homepage's tiles are 228 tall, the glyph 59 down and the label 45 below it. */
.framework--tall {
	--tab-h: var(--tab-h-lg);
}

.framework--tall .framework__tab {
	gap: var(--space-5);
	padding-block-start: var(--space-7);
}

.framework__tab-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--glyph);
	height: var(--glyph);
}

.framework__tab-icon > * {
	grid-area: 1 / 1;
}

.framework__tab-dot {
	width: 0.875rem;
	height: 0.875rem;
	border: 2px solid var(--stage-dot);
	border-radius: var(--radius-round);
	transition: opacity var(--duration-fast) var(--ease), scale var(--duration) var(--ease);
}

.framework__tab-glyph {
	width: 100%;
	height: 100%;
	opacity: 0;
	scale: 0.6;
	transition: opacity var(--duration) var(--ease), scale var(--duration) var(--ease-bounce);
}

.framework__tab.is-active .framework__tab-dot {
	opacity: 0;
	scale: 0;
}

.framework__tab.is-active .framework__tab-glyph {
	opacity: 1;
	scale: 1;
}

/* With the script running, GSAP owns the dot, the glyph and the pointer; the stylesheet steps back. */
.framework.is-scripted .framework__tab-dot,
.framework.is-scripted .framework__tab-glyph {
	opacity: 1;
	scale: 1;
	transition: none;
}

.framework.is-scripted .framework__pointer {
	translate: none;
	transition: none;
}

.framework__tab-label {
	font-size: var(--font-6);
	font-weight: var(--weight-bold);
	line-height: 1.2;
	letter-spacing: var(--tracking-title);
	text-wrap: balance;
}

/* The small triangle under the lit tile. framework.js sets --pointer-x and grows it out of the tile; without the script it simply moves. */
.framework__pointer {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 1.5rem;
	height: calc(0.875rem + 1px);   /* a pixel up into the tile, so no hairline shows between them */
	background-color: var(--stage, var(--stage-1));
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	translate: var(--pointer-x, calc(var(--tab-w, 0px) / 2 - 0.75rem)) 0;
	transition: background-color var(--duration) var(--ease);
}

/* -- The panel ------------------------------------------------------------- */

.framework__panel {
	--panel-pad-end: var(--space-6);

	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: var(--space-6) var(--space-10);
	margin-block-start: var(--space-15);
	padding: var(--space-7) var(--space-7) var(--panel-pad-end);
	overflow: clip;
	border: var(--border-hairline) solid var(--color-edge);
	border-radius: var(--radius-card);
	background-color: var(--bsc-card);
}

.framework__panel[hidden] {
	display: none;
}

.framework__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3);
}

.framework__title {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: var(--font-9);
	font-weight: var(--weight-title);
	letter-spacing: var(--tracking-title);
}

.framework__text {
	max-width: var(--measure);
	color: var(--color-text-soft);
	font-size: var(--font-4);
	font-weight: var(--weight-light);
	line-height: var(--leading);
}

.framework__stat {
	display: flex;
	gap: var(--space-2);
	align-items: center;
	max-width: var(--measure);
	font-size: var(--font-4);
	line-height: var(--leading);
}

.framework__stat strong {
	font-weight: var(--weight-semi);
}

.framework__stat-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.625rem;
	height: 2.625rem;
	border-radius: var(--radius-round);
	background-color: var(--bsc-green);
	color: var(--bsc-white);
}

.framework__stat-icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

/*
 * The voice, as the prototype lays it out: the character stands on the panel's bottom edge,
 * a step left of the copy, and the bubble in the dusk teal runs out from behind their shoulder
 * and sits flush on the same edge with only its top corners rounded. Measured: character 163
 * tall, bubble 330 x 94, its top 68 below the top of the head, the words 16 ExtraBold Italic.
 */
.framework__main .voice {
	display: flex;
	align-items: flex-end;
	align-self: stretch;
	margin: auto 0 calc(-1 * var(--panel-pad-end)) calc(-1 * var(--space-25));   /* outranks base's last-child figure reset */
	padding-block-start: var(--space-2);
}

.voice__figure {
	position: relative;
	z-index: 1;
	flex: none;
	width: auto;
	height: 10rem;
}

.voice__bubble {
	display: flex;
	flex: 1;
	align-items: center;
	max-width: 20.625rem;
	min-height: 5.875rem;
	margin: 0 0 0 -0.75rem;
	padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
	border-radius: var(--radius-card) var(--radius-card) 0 0;
	background-color: var(--bsc-teal-dusk);
	color: var(--bsc-paper);
	font-size: var(--font-4);
	font-style: italic;
	font-weight: var(--weight-xbold);
	line-height: var(--leading-title);
}

.framework__aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr);   /* so a long run of tags wraps instead of widening the panel */
	align-content: start;
	gap: var(--space-2);
}

.framework__subheading {
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: var(--font-7);
	font-weight: var(--weight-title);
	letter-spacing: var(--tracking-title);
}

.framework__subheading + * {
	margin-block-end: var(--space-2);
}

/* The key affiliates are pills (tag.css, tag--affiliate), wrapping as a tag list. */

/* "+ 3 More" is a button that unfolds the rest of the topics in place. */
button.tag--more {
	cursor: pointer;
}

/* A line under the panel pointing at the Framework document (a resource); the file's size follows. */
.framework__document {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	text-align: center;
	gap: var(--space-05) var(--space-2);
	margin: var(--space-3) 0 0;
	font-size: var(--font-4);
}

.framework__document-text {
	color: var(--color-text-soft);
	font-weight: var(--weight-light);
}

.framework__document-meta {
	color: var(--color-text-soft);
	font-size: var(--font-3);
}

/* The outer card the About page wraps the explorer in, dotted. */
.framework-panel {
	padding: var(--space-6);
	border: var(--border-hairline) solid var(--color-edge);
	border-radius: var(--radius-panel);
}

@media (max-width: 1023px) {
	.framework__tabs {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-2) var(--tab-gap);
	}

	.framework__pointer {
		display: none;
	}

	.framework__panel {
		--panel-pad-end: var(--space-4);
        gap: var(--space-2);
		grid-template-columns: minmax(0, 1fr);
		padding: var(--space-4);
	}

	/* One column: the topics follow the voice, so the bubble floats with all four corners. */
	.framework__main .voice {
		margin: var(--space-1) 0 0;
	}

	.voice__figure {
		height: 8rem;
	}

	.voice__bubble {
		border-radius: var(--radius-card);
	}

	.framework-panel {
		padding: var(--space-3);
	}
}

@media (max-width: 767px) {
	.framework-panel {
		padding: 0;
		border: 0;
		border-radius: 0;   /* no box on a phone (Harry, 2026-10-16) */
	}

	.framework__group-tabs {
		gap: var(--space-1);
	}

	.framework__tab {
		padding-inline: var(--space-1);
	}

	.framework--tall .framework__tab {
		gap: var(--space-2);
		padding-block-start: var(--space-3);
	}

	.framework__tab-label {
		font-size: var(--font-3);
	}

}

/*
 * On a phone a stage opens in the sheet (Harry, 2026-10-15): a dialog filling the screen on the
 * paper, the stage's count and a close at the top, the panel moved in beneath, its Previous /
 * Next stuck to the foot. The inline panels stay off a phone; the tiles are the menu. Above a
 * phone none of this shows and the panel sits beside the tiles as before. Tightened at Harry's
 * ask (2026-10-16): the voice closes the sheet, the key figure loses its roundel, the steps are
 * plain names with a chevron.
 */
.framework__hint,
.framework__step,
.framework__sheet {
	display: none;
}

@media (max-width: 767px) {
	.framework__hint {
		display: block;
		margin: var(--space-2) 0 var(--space-15);   /* the calls under the explorer sit straight under it */
		color: var(--color-text-muted);
		font-size: var(--font-2);
		text-align: center;
	}

	.framework > .framework__panel {
		display: none;
	}

	.framework__sheet[open] {
		position: fixed;
		inset: 0;
		z-index: 90;
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		margin: 0;
		padding: 0;
		border: 0;
		background-color: var(--bsc-paper);
		color: var(--color-text);
	}

	.framework__sheet::backdrop {
		background: transparent;
	}

	.has-sheet {
		overflow: hidden;
	}

	.framework__sheet-bar {
		flex: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-2);
		min-height: 3rem;
		padding: var(--space-05) var(--space-05) var(--space-05) var(--gutter);
		border-block-end: var(--border-hairline) solid var(--color-border);
	}

	.framework__sheet-count {
		color: var(--color-text-muted);
		font-size: var(--font-2);
		font-weight: var(--weight-semi);
		letter-spacing: var(--tracking-caps);
		text-transform: uppercase;
	}

	.framework__sheet-close {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: var(--radius-round);
		background: none;
		color: var(--color-title);
		cursor: pointer;
	}

	.framework__sheet-close:focus-visible {
		outline: var(--focus-width) solid var(--focus-color);
		outline-offset: var(--focus-offset);
	}

	.framework__sheet-close-icon {
		width: 1.25rem;
		height: 1.25rem;
	}

	/* The body scrolls by itself; its data-lenis-prevent keeps the stopped page scroll from swallowing the touch. */
	.framework__sheet-body {
		flex: 1;
		min-height: 0;
		padding: var(--space-2) var(--gutter) 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	/*
	 * The panel in the sheet: no card round it, the sheet is the card. One column, its two halves
	 * dissolved into it so the voice can take the last slot and the steps follow.
	 */
	.framework__sheet .framework__panel:not([hidden]) {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-15);
		min-height: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.framework__sheet .framework__main,
	.framework__sheet .framework__aside {
		display: contents;
	}

	.framework__sheet .framework__text {
		line-height: var(--leading-snug);
		margin-block-end: 0;
	}

	/* The key figure: no roundel, a rule in the stage colour. */
	.framework__sheet .framework__stat {
		display: block;
		padding-inline-start: var(--space-15);
		border-inline-start: 3px solid var(--stage);
		font-size: var(--font-3);
		line-height: var(--leading-snug);
		margin-bottom: 0;
	}

	.framework__sheet .framework__stat-icon {
		display: none;
	}

	.framework__sheet .framework__subheading {
		margin-block-start: var(--space-1);
		font-size: var(--font-5);
	}

	.framework__sheet .framework__subheading + * {
		margin-block-end: var(--space-1);
	}

	/*
	 * The voice closes the sheet as a band from one edge of the screen to the other (Harry,
	 * 2026-10-16): the bubble is squared off and reaches the left edge through its ::before, the
	 * character standing in front of it at the gutter, the whole flush on the step bar.
	 */
	.framework__sheet .framework__main .voice {
		order: 1;
		margin: auto calc(-1 * var(--gutter)) 0;
		padding: var(--space-3) 0 0 var(--gutter);
	}

	.framework__sheet .voice__figure {
		height: 6.5rem;
	}

	.framework__sheet .voice__bubble {
		position: relative;
		max-width: none;
		min-height: 0;
		padding: var(--space-15) var(--gutter) var(--space-15) var(--space-15);
		border-radius: 0;
		font-size: var(--font-3);
	}

	.framework__sheet .voice__bubble::before {
		content: '';
		position: absolute;
		inset-block: 0;
		inset-inline-end: 100%;
		width: 100vw;
		background-color: inherit;
	}

	/* The steps: the neighbouring stages' names, a chevron each, stuck to the foot. The negative top margin eats the column gap so the bubble sits on the bar. */
	.framework__sheet .framework__step {
		order: 2;
		position: sticky;
		inset-block-end: 0;
		z-index: 2;   /* over the character, which is positioned to stand in front of the bubble */
		display: flex;
		justify-content: space-between;
		gap: var(--space-2);
		margin: calc(-1 * var(--space-15)) calc(var(--gutter) * -1) 0;
		padding: 0 var(--gutter) env(safe-area-inset-bottom);
		border-block-start: var(--border-hairline) solid var(--color-border);
		background-color: var(--bsc-paper);
	}

	/* A step: the chevron beside the name, with Previous / Next in small caps under the name. */
	.framework__step-link {
		display: grid;
		grid-template-areas: 'icon name' 'icon label';
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: var(--space-1);
		align-items: center;
		min-height: 44px;
		padding: var(--space-15) 0;
		border: 0;
		background: none;
		color: var(--color-title);
		font: inherit;
		text-align: start;
		cursor: pointer;
	}

	.framework__step-link--next {
		grid-template-areas: 'name icon' 'label icon';
		grid-template-columns: minmax(0, 1fr) auto;
		margin-inline-start: auto;
		text-align: end;
	}

	.framework__step-link:focus-visible {
		outline: var(--focus-width) solid var(--focus-color);
		outline-offset: var(--focus-offset);
	}

	.framework__step-name {
		grid-area: name;
		font-size: var(--font-4);
		font-weight: var(--weight-semi);
		line-height: var(--leading-title);
		text-wrap: balance;
	}

	.framework__step-label {
		grid-area: label;
		margin-block-start: 0.125rem;
		color: var(--color-text-muted);
		font-size: var(--font-1);
		font-weight: var(--weight-semi);
		line-height: 1.2;
		letter-spacing: var(--tracking-caps);
		text-transform: uppercase;
	}

	/* The chevron is drawn pointing down; turned to point the way. */
	.framework__step-icon {
		grid-area: icon;
		width: 1.25rem;
		height: 1.25rem;
		color: var(--color-text-muted);
		rotate: 90deg;
	}

	.framework__step-link--next .framework__step-icon {
		rotate: -90deg;
	}
}

/*
 * A page hero on the deep teal, shaded darker at the top under the masthead: the eyebrow in its
 * pill, the title at 64 Display Bold with the brush on its picked-out words, the lead at 22
 * Light, and whatever the page adds (a button, a search, the page tabs). The masthead sits
 * over it, so the hero pads down past the bar. With a photo the copy sits left and the photo
 * right, centred on each other in the band. Measured: band 926 tall, eyebrow at 324, title at
 * 386, lead at 552, photo 556 x 471 at 290 with its right edge 42 in from the column's.
 */

.page-hero {
	position: relative;
	padding-block: calc(var(--masthead-h) + var(--space-10)) var(--space-8);
	overflow: clip;
}

.page-hero.is-deep {
	background-image: linear-gradient(180deg, var(--bsc-deep-dark), var(--bsc-deep) 14rem);
}

.page-hero--light {
	--color-bg: var(--bsc-paper);
}

.page-hero--photo {
	padding-block: calc(var(--masthead-h) + var(--space-10) * 2) calc(var(--space-10) * 2);
}

.page-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: var(--space-6) var(--space-10);
	align-items: center;
}

.page-hero__inner--single {
	grid-template-columns: minmax(0, 1fr);
}

/* The photo column holds the photo and the 8% the strokes reach past its right edge to the column's. */
.page-hero__inner--photo {
	grid-template-columns: minmax(0, 1fr) calc(var(--hero-photo-w) * 1.08);
}

.page-hero__inner--photo .hero-photo {
	width: var(--hero-photo-w);
}

.page-hero__title {
	max-width: 12em;
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-14);
	font-weight: var(--weight-bold);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-heading);
}

/* Beside the photo the title wraps as drawn: two lines on a 10em measure. */
.page-hero__inner--photo .page-hero__title {
	max-width: 10em;
}

.page-hero__lead {
	max-width: var(--measure-wide);
	margin-block-start: var(--space-3);
	color: var(--color-text);
	font-size: var(--font-7);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.page-hero__inner--photo .page-hero__lead {
	max-width: var(--measure-hero);
}

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-15);
	margin-block-start: var(--action-gap);
}

.page-hero__tabs {
	margin-block-start: calc(var(--space-10) + var(--space-7));
}

/* With the On this page row along its foot the band closes close under it, as drawn. */
.page-hero--photo:has(.page-hero__tabs) {
	padding-block-end: var(--space-5);
}

/* The row as its own bar under the hero: the hero keeps the room the row's top margin gave. */
.page-hero--photo.page-hero--tabs-below {
	padding-block-end: calc(var(--space-10) + var(--space-7));
}

/* The homepage's centred form. */
.page-hero--centered {
	text-align: center;
}

.page-hero--centered .page-hero__title,
.page-hero--centered .page-hero__lead {
	margin-inline: auto;
}

.page-hero--centered .page-hero__title {
	max-width: 16em;
	font-weight: var(--weight-light);
}

.page-hero--centered .page-hero__title strong {
	font-weight: var(--weight-bold);
}

.page-hero__search {
	max-width: 48rem;
	margin: var(--space-5) auto 0;
}

/* -- The photo and its strokes --------------------------------------------- */

/*
 * The photo on a panel with a sweeping top-left corner, ringed in the band's colour, and
 * behind it the same panel a little larger, turned six degrees and filled with the mark's
 * colours in bands: what shows past the photo's edges reads as four brush strokes. Every
 * measure, the corners included, is a fraction of the photo, so the composition holds at any
 * width. Drawn: 556 x 471, corners 135 top left, 64 bottom right, 20 elsewhere; the panel
 * behind 595 x 518 with 128 corners.
 */
.hero-photo {
	position: relative;
	aspect-ratio: 556 / 471;
}

.hero-photo__strokes {
	position: absolute;
	inset: -5% -3.5%;
	overflow: hidden;
	border-radius: 21.5% 3.4% / 24.7% 3.9%;
	background: var(--bsc-strokes);
	rotate: -6deg;
	pointer-events: none;
}

.hero-photo__frame {
	position: relative;
	height: 100%;
	overflow: hidden;
	border-radius: 24.3% 3.6% 11.5% 3.6% / 28.7% 4.2% 13.6% 4.2%;
	outline: var(--hero-ring) solid var(--color-bg);
	background-color: var(--color-tile);
}

.hero-photo__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -- Motion experiments, 2026-10-14: one stays, the rest go ------------------ */

/*
 * Every variant opens with the turn: the panel starts square and tucked behind the photo,
 * then grows and turns out as the photo settles. The loops run on a pseudo-element the panel
 * clips, moved with translate or rotate so nothing repaints.
 */
.hero-photo[data-strokes] .hero-photo__strokes {
	animation: hero-strokes-turn calc(var(--duration-slow) * 1.5) var(--ease) 0.35s both;
}

@keyframes hero-strokes-turn {
	from {
		rotate: 0deg;
		scale: 0.9;
	}
}

/* Drift: the bands creep along the panel at a walking pace, each colour passing every stroke. */
.hero-photo[data-strokes='drift'] .hero-photo__strokes,
.hero-photo[data-strokes='sweep'] .hero-photo__strokes {
	background: none;
}

.hero-photo[data-strokes='drift'] .hero-photo__strokes::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 200%;
	background: var(--bsc-strokes-loop);
	animation: hero-strokes-drift 30s linear infinite;
}

/* One panel width, the bands' full period, so the wrap is invisible. */
@keyframes hero-strokes-drift {
	to {
		translate: -50% 0;
	}
}

/* Sweep: the colours wheel round the photo, so each stroke changes in turn. */
.hero-photo[data-strokes='sweep'] .hero-photo__strokes::before {
	content: '';
	position: absolute;
	inset: -30%;   /* wide enough to cover the panel's corners at any angle */
	background: var(--bsc-strokes-wheel);
	animation: hero-strokes-sweep 40s linear infinite;
}

@keyframes hero-strokes-sweep {
	to {
		rotate: 360deg;
	}
}

/* Ring: the turn, plus a thin stripe round the photo itself, wheeling slowly, as on the search field. */
@property --ring-angle {
	syntax: '<angle>';
	inherits: false;
	initial-value: 0deg;
}

.hero-photo[data-strokes='ring']::after {
	content: '';
	position: absolute;
	inset: calc(var(--stripe-width) * -1);
	padding: var(--stripe-width);
	border-radius: 24.3% 3.6% 11.5% 3.6% / 28.7% 4.2% 13.6% 4.2%;
	background: conic-gradient(from var(--ring-angle), var(--bsc-logo-blue), var(--bsc-logo-red), var(--bsc-logo-orange), var(--bsc-logo-green), var(--bsc-logo-teal), var(--bsc-logo-blue));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: hero-ring-wheel 16s linear infinite;
	pointer-events: none;
}

@keyframes hero-ring-wheel {
	to {
		--ring-angle: 360deg;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-photo[data-strokes] .hero-photo__strokes {
		animation: none;
	}
}

@media (max-width: 1023px) {
	.page-hero__inner,
	.page-hero__inner--photo {
		grid-template-columns: minmax(0, 1fr);
	}

	.page-hero {
		padding-block-start: calc(var(--masthead-h) + var(--space-6));
	}

	.page-hero--photo {
		padding-block: calc(var(--masthead-h) + var(--space-8)) var(--space-10);
	}

	.page-hero__inner--photo .hero-photo {
		width: 100%;
		max-width: var(--measure);
	}
}

/* On a phone the photo sits in from the gutters, so the turned panel's corners stay inside the screen. */
@media (max-width: 767px) {
	.page-hero__inner--photo .hero-photo {
		width: 92%;
		margin-inline: auto;
	}
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next. */
@media (max-width: 767px) {
	.page-hero,
	.page-hero--photo {
		padding-block-end: var(--section-y);
	}

	/* With the tabs row under it, the photo needs only a step before the row. */
	.page-hero--photo.page-hero--tabs-below {
		padding-block-end: var(--space-5);
	}
}

/* -- Markup in the photo's place (the Safe Places sign) --------------------- */

.page-hero__media {
	--logo-w: 26rem;

	display: grid;
	place-items: center;
}

.page-hero__logo {
	position: relative;
	grid-area: 1 / 1;
	width: var(--logo-w);
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 1.25rem 2.5rem rgb(0 0 0 / 0.28));
}

@media (max-width: 1023px) {
	.page-hero__media {
		--logo-w: 16rem;

		justify-items: start;
	}
}

@media (max-width: 767px) {
	.page-hero__media {
		--logo-w: 10rem;
	}
}

/*
 * The designer's marker stroke behind the picked-out words in a hero title: "Safe Place",
 * "connected". A pseudo-element stretched to the phrase, which stays on one line so the brush
 * has one box to fill. bsc_hero_title_html() prints the span.
 */

.highlight {
	position: relative;
	display: inline-block;
	isolation: isolate;
	padding-inline: 0.12em;
}

.highlight::before {
	content: '';
	position: absolute;
	inset: -0.2em -0.1em -0.3em -0.1em;
	z-index: -1;
	background: url('/wp-content/themes/basc-theme/assets/svg/txt-bg.svg') center / 100% 100% no-repeat;
}

/*
 * Events & Key Dates: a hairline panel with the big corners, a step wider than the column, on
 * the dotted ground that runs from under the news cards to the footer. The heading row and
 * two-up event cards sit inside. Measured: panel 1562 wide, 48 padding, 112 above it.
 */

.home-events {
	padding-block: var(--space-14) calc(var(--section-y) + var(--space-4));
}

.home-events__panel {
	margin-inline: calc(-1 * var(--space-6));
	padding: var(--space-6);
	border: var(--border-hairline) solid var(--color-edge);
	border-radius: var(--radius-panel);
	background-color: var(--color-bg);
}

/* As the diary page: the usual space under the masthead, a second panel for past events. */
.home-events__panel + .home-events__panel {
	margin-block-start: var(--space-6);
}

@media (max-width: 1023px) {
	.home-events {
		padding-block: var(--space-8) var(--section-y);
	}

	.home-events__panel {
		margin-inline: 0;
		padding: var(--space-3);
	}
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next. */
@media (max-width: 767px) {
	.home-events {
		padding-block: var(--section-y);
	}

	/* No box on a phone: the cards sit straight on the dotted ground (Harry, 2026-10-16). */
	.home-events__panel {
		margin-inline: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
	}
}

/*
 * What We Do: the designer's tile band fading down from the top edge, the label and statement
 * centred with a short rule beneath, then the explorer on its taller homepage tiles.
 * Measured: statement 48 on 60, the line 242 x 5 and 53 above the tiles, the band's lines
 * four points darker than the paper.
 */

.home-framework {
	position: relative;
	padding-block-start: calc(var(--section-y) + var(--space-4));
	overflow: clip;
}

/* The band at its drawn size, lifted so its first row is cut by the top edge, a 4% ink wash through its own alpha, gone by 85% down. */
.home-framework__pattern {
	position: absolute;
	inset: -8rem 0 auto;
	height: 30rem;
	background-color: rgb(var(--bsc-ink-rgb) / 0.3);
	-webkit-mask-image: url('/wp-content/themes/basc-theme/assets/svg/bg-pattern.svg'), linear-gradient(to bottom, black, transparent 85%);
	-webkit-mask-size: auto 100%, 100% 100%;
	-webkit-mask-repeat: repeat-x, no-repeat;
	-webkit-mask-position: center top, 0 0;
	-webkit-mask-composite: source-in;
	mask-image: url('/wp-content/themes/basc-theme/assets/svg/bg-pattern.svg'), linear-gradient(to bottom, black, transparent 85%);
	mask-size: auto 100%, 100% 100%;
	mask-repeat: repeat-x, no-repeat;
	mask-position: center top, 0 0;
	mask-composite: intersect;
	pointer-events: none;
}

.home-framework__head {
	position: relative;
	display: grid;
	justify-items: center;
	margin-block-end: var(--space-7);
	text-align: center;
}

.home-framework__statement {
	margin-block-start: var(--space-2);
}

/* The designer's hand-drawn line, at its drawn 242 x 5. */
.home-framework__rule {
	display: block;
	width: 15.125rem;
	height: auto;
	margin-block-start: var(--space-5);
}

/* The two calls under the explorer, centred: the Framework document, then every resource. */
.home-framework__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
	margin-block-start: var(--space-5);
}

@media (max-width: 767px) {
	.home-framework {
		padding-block-start: calc(var(--section-y) + var(--space-2));
	}

	.home-framework__pattern {
		inset-block-start: -4rem;
		height: 18rem;
	}

	.home-framework__head {
		margin-block-end: var(--space-4);
	}

	.home-framework__rule {
		width: 9rem;
		margin-block-start: var(--space-3);
	}

	/* The two calls stack at the column's width, straight under the explorer's hint (Harry, 2026-10-16). */
	.home-framework__actions {
		display: grid;
		justify-content: stretch;   /* the desktop's centring would shrink the track to the widest button */
		gap: var(--space-15);
		margin-block-start: 0;
	}
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next. */
@media (max-width: 767px) {
	.home-framework {
		padding-block: var(--section-y);
	}
}

/*
 * The homepage hero. The band is the deep teal, shaded darker at the top under the masthead,
 * the designer's tile pattern fading up from its foot and their squiggle multiplied into the
 * top left and right edges. The title's picked-out words carry the brush (highlight.css).
 * Measured: band 798 tall, title cap top at 235, search 770 wide, 64 tall, pattern 392 tall.
 */

.home-hero {
	position: relative;
	padding-block: calc(var(--masthead-h) + var(--space-12)) calc(var(--space-12) + var(--space-8));
	overflow: clip;
	background-image: linear-gradient(180deg, var(--bsc-deep-dark), var(--bsc-deep) 14rem);
	text-align: center;
}

/* The tile pattern along the foot, its own 14% teal, fading up into the band. */
.home-hero__pattern {
	position: absolute;
	inset: auto 0 0;
	height: 20rem;
	background: url('/wp-content/themes/basc-theme/assets/svg/bg-pattern.svg') center bottom / auto 122.5% repeat-x;   /* the tiles at their drawn 392 on a 320 band */
	-webkit-mask-image: linear-gradient(to top, black, rgb(0 0 0 / 0.5) 45%, transparent 90%);
	mask-image: linear-gradient(to top, black, rgb(0 0 0 / 0.5) 45%, transparent 90%);
	pointer-events: none;
}

/*
 * The squiggle, cut from a dark wash with its edges softened, in both top corners as the mockup
 * places it (Harry marked them up), at twice its drawn size: 1280 wide, its first zig cut by
 * the top edge. The left one is flipped and runs down behind the logo and the menu to the
 * left edge; the right one runs down off the right edge.
 */
.home-hero__squiggle {
	position: absolute;
	width: 80rem;
	aspect-ratio: 624.5 / 402.8;
	background-color: rgb(0 0 0 / 0.6);   /* the mockup's squiggle sits about 4 luminance points under the band; this matches it */
	/* The shape intersected with a downward fade, so the foot dissolves into the band. */
	-webkit-mask: url('/wp-content/themes/basc-theme/assets/svg/squiggle.svg') center / contain no-repeat, linear-gradient(to bottom, black 35%, transparent 95%);
	-webkit-mask-composite: source-in;
	mask: url('/wp-content/themes/basc-theme/assets/svg/squiggle.svg') center / contain no-repeat, linear-gradient(to bottom, black 35%, transparent 95%);
	mask-composite: intersect;
	filter: blur(3px);
	pointer-events: none;
}

.home-hero__squiggle--left {
	inset-block-start: -10rem;
	inset-inline-start: -24rem;
	scale: -1 1;
}

.home-hero__squiggle--right {
	inset-block-start: -10rem;
	inset-inline-end: -22rem;
}

.home-hero__inner {
	position: relative;
	z-index: 1;
}

.home-hero__title {
	max-width: 13em;
	margin-inline: auto;
	color: var(--bsc-paper);
	font-family: var(--font-display);
	font-size: var(--font-14);
	font-weight: var(--weight-bold);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-heading);
}

.home-hero__lead {
	max-width: 58rem;
	margin: var(--space-3) auto 0;
	color: var(--color-text);
	font-size: var(--font-7);
	font-weight: var(--weight-light);
	line-height: var(--leading-lead);
	text-wrap: balance;
}

.home-hero__search {
	max-width: var(--hero-search-w);
	margin: var(--space-6) auto 0;
	text-align: start;
}

.home-hero__quick {
	justify-content: center;
	margin-block-start: var(--space-25);
}

@media (max-width: 1023px) {
	.home-hero__squiggle {
		width: 40rem;
	}

	.home-hero__squiggle--left {
		inset-block-start: -5rem;
		inset-inline-start: -12rem;
	}

	.home-hero__squiggle--right {
		inset-block-start: -5rem;
		inset-inline-end: -11rem;
	}

	.home-hero__pattern {
		height: 14rem;
	}
}

/* Tidied for the phone (Harry, 2026-10-16): no squiggles, the tiles at half their size, the title, lead and search a step closer. */
@media (max-width: 767px) {
	.home-hero {
		padding-block: calc(var(--masthead-h) + var(--space-8)) var(--space-10);
	}

	.home-hero__squiggle {
		display: none;
	}

	.home-hero__pattern {
		height: 9rem;
		background-size: auto 100%;
	}

	.home-hero__title {
		font-size: var(--font-13);
	}

	.home-hero__lead {
		margin-block-start: var(--heading-copy-gap);
		font-size: var(--font-5);
	}

	.home-hero__search {
		margin-block-start: var(--space-4);
	}

	.home-hero__quick {
		justify-content: flex-start;
		margin-block-start: var(--space-15);
		text-align: start;   /* the label on its own line would otherwise take the hero's centring */
	}
}

/*
 * Latest News: the heading row and three news cards on the paper, the designer's squiggle
 * brushed faintly into the top right corner. The feed will fill the grid; until then the
 * mockup's cards stand in. Measured: 128 above the label, nothing below (the dotted ground of
 * the events section starts right under the cards).
 */

.home-news {
	position: relative;
	padding-block: calc(var(--section-y) + var(--space-4)) 0;
	overflow: clip;
}

.home-news__squiggle {
	position: absolute;
	inset-block-start: -3rem;
	inset-inline-end: -18rem;
	width: 46rem;
	aspect-ratio: 624.5 / 402.8;
	background-color: rgb(var(--bsc-ink-rgb) / 0.05);
	-webkit-mask: url('/wp-content/themes/basc-theme/assets/svg/squiggle.svg') center / contain no-repeat;
	mask: url('/wp-content/themes/basc-theme/assets/svg/squiggle.svg') center / contain no-repeat;
	pointer-events: none;
}

/* As the news listing's opening section, it closes with the usual space before the safety band. */
.home-news--page {
	padding-block-end: var(--section-y);
}

@media (max-width: 767px) {
	.home-news {
		padding-block-start: calc(var(--section-y) + var(--space-2));
	}

	.home-news__squiggle {
		inset-block-start: -2rem;
		inset-inline-end: -10rem;
		width: 24rem;
	}
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next. */
@media (max-width: 767px) {
	.home-news {
		padding-block: var(--section-y) 0;
	}
}

/* The listing keeps its foot on a phone, or View All Events sits on the safety band (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.home-news--page {
		padding-block-end: var(--section-y);
	}
}

/*
 * Who We Work With: the copy on the left with five pale shapes along its foot, the photo
 * collage on the right. Measured: collage 598 wide, copy on a 656 measure at 18 on 28,
 * shapes 52 wide on a 92 pitch.
 */

.home-partners {
	padding-block: 0 var(--section-y);
}

.home-partners__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--collage-w);
	gap: var(--space-8) var(--space-12);
	align-items: stretch;
}

/* The copy starts a little below the collage's top edge; the shapes sit along the column's foot. */
.home-partners__copy {
	position: relative;
	display: grid;
	align-content: start;
	padding-block-start: var(--space-7);
}

.home-partners__body {
	max-width: 41rem;
}

.home-partners__text {
	margin-block-start: var(--space-25);
	font-size: var(--font-5);
	font-weight: var(--weight-light);
	line-height: var(--leading-lead);
}

.home-partners__text p + p {
	margin-block-start: var(--space-25);
}

.home-partners__text strong {
	font-weight: var(--weight-semi);
}

.home-partners__action {
	margin-block-start: var(--space-5);
}

.home-partners__shapes {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	display: flex;
	gap: var(--space-5);
}

.home-partners__shape {
	width: 3.25rem;
	height: 3.25rem;
	border-radius: var(--radius-round);
	background-color: var(--color-wash);
}

.home-partners__shape:nth-child(2) {
	border-radius: 35%;
}

.home-partners__shape:nth-child(4) {
	border-radius: 50% 50% 50% 12%;
}

.home-partners__shape:nth-child(5) {
	border-radius: 12% 50% 50% 50%;
}

.home-partners__collage {
	width: 100%;
	max-width: var(--collage-w);
}

/* Stacked, the copy no longer has a collage beside it to line up with, so its offset goes (Harry, 2026-10-16). */
@media (max-width: 1023px) {
	.home-partners__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-3) var(--space-12);
	}

	.home-partners__copy {
		padding-block-start: 0;
	}

	.home-partners__shapes {
		display: none;
	}
}

/* On a phone the lead copy keeps the page's paragraph rhythm rather than its own wider one, and the button follows at the page's gap. */
@media (max-width: 767px) {
	.home-partners__text p + p {
		margin-block-start: var(--copy-gap);
	}

	.home-partners__action {
		margin-block-start: var(--action-gap);
	}

	.home-partners__text {
		margin-block-start: var(--heading-copy-gap);
	}
}

/*
 * The Resources band: on the deep teal, the section heading row with its three links, then the
 * four cards. Measured: 128 above the label, heading to cards 55, the outline links' edge a
 * faint paper line.
 */

.home-resources {
	padding-block: calc(var(--section-y) + var(--space-4));
}

.home-resources .section-head__links .button-029[data-theme='outline'] {
	--button-029-edge: var(--color-border-control);
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next. */
@media (max-width: 767px) {
	.home-resources {
		padding-block: var(--section-y);
	}
}

/*
 * An icon card: white with a hairline and 10px corners, the icon in its colour at the top, the
 * title, copy and link gathered at the foot. Measured: 328 x 360, 40 above and below, 30 at the
 * sides, icon 44, title 22 Display in the deep teal, copy 15 Light, link 15 SemiBold.
 */

.icon-card {
	display: grid;
	align-content: space-between;
	gap: var(--space-6);
	min-height: 22.5rem;
	padding: var(--space-5) var(--space-4);
}

.icon-card__icon {
	width: 2.75rem;
	height: 2.75rem;
	color: var(--icon, var(--bsc-teal-bright));
}

.icon-card__icon svg {
	width: 100%;
	height: 100%;
}

.icon-card__title {
	margin: 0 0 var(--space-15);
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-7);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.icon-card__text {
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.icon-card__text + .link-more {
	margin-block-start: var(--space-2);
}

.icon-card--teal {
	--icon: var(--bsc-teal-bright);
}

.icon-card--orange {
	--icon: var(--bsc-orange);
}

.icon-card--blue {
	--icon: var(--bsc-blue);
}

.icon-card--green {
	--icon: var(--bsc-green);
}

.icon-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--card-gap);
}

/* A card fills its cell (through the reveal wrapper), so a row's feet line up. */
.icon-card-grid > * {
	display: grid;
}

@media (max-width: 767px) {
	.icon-card {
		min-height: 0;
		gap: var(--space-4);
	}
}

/*
 * A translucent card on the deep teal: Ministerial oversight, Shared data. Title at 22, copy
 * at 15 Light.
 */

.info-card {
	padding: var(--space-4) var(--space-4) var(--space-4);
	border-radius: var(--radius-card);
	background-color: var(--color-surface);
}

.info-card__title {
	margin: 0 0 var(--space-15);
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: var(--font-7);
	font-weight: var(--weight-title);
	letter-spacing: var(--tracking-title);
}

.info-card__text {
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.info-card__text + .link-more {
	margin-block-start: var(--space-2);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--space-25);
}

/* On the paper the same card is white with a hairline and the title in the deep teal. */
.is-paper .info-card,
:root .info-card.is-card {
	--color-heading: var(--bsc-deep);
}

/*
 * Lists in copy: the orange ticks of what a Safe Place can do, the teal dots of the Big 5,
 * and numbered progress.
 */

.list-check,
.list-dot {
	padding: 0;
	list-style: none;
}

.list-check li,
.list-dot li {
	position: relative;
	padding-inline-start: 1.5rem;
	font-size: var(--font-5);
	font-weight: var(--weight-semi);
	line-height: 1.4;
}

.list-check li + li,
.list-dot li + li {
	margin-block-start: 0.5rem;
}

.list-check li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.35em;
	width: 0.8em;
	height: 0.8em;
	background-color: var(--bsc-orange);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.75 8.5 3.25 3.25 7.25-7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.75 8.5 3.25 3.25 7.25-7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.list-dot li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0.1em;
	inset-block-start: 0.5em;
	width: 0.5em;
	height: 0.5em;
	border-radius: var(--radius-round);
	background-color: var(--bsc-teal);
}

/* Two columns in the 850 body, as the annual report page draws them; one on a phone. */
.list-dot--columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	gap: 0.5rem var(--space-4);
}

.list-dot--columns li + li {
	margin-block-start: 0;
}

.list-number {
	padding-inline-start: 1.25rem;
	font-size: var(--font-5);
	font-weight: var(--weight-light);
	line-height: var(--leading-lead);
}

.list-number li + li {
	margin-block-start: 0.5rem;
}

.list-number li::marker {
	font-weight: var(--weight-semi);
}

/*
 * The Safe Places locator: a panel on the paper with the 16px corners, the list at the left
 * (30rem, scrolling inside the panel) and the map filling the rest. With no map, or no script,
 * the list takes the whole width. On a phone the map comes first and the list flows below it.
 */

.locator {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	height: min(52rem, 82svh);
	overflow: hidden;
	border: var(--border-hairline) solid var(--color-edge);
	border-radius: var(--radius-panel);
	background-color: var(--color-surface);
}

.locator.has-map {
	grid-template-columns: 30rem minmax(0, 1fr);
}

.locator__side {
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	background-color: var(--color-surface);
}

.locator__header {
	padding: var(--space-3) var(--space-3) var(--space-2);
	border-block-end: var(--border-hairline) solid var(--color-edge);
}

.locator__heading {
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-8);
	letter-spacing: var(--tracking-title);
}

.locator__controls {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-15) var(--space-3);
	align-items: end;
	margin-block-start: var(--space-2);
}

.locator__controls[hidden] {
	display: none;
}

.locator__field {
	flex: 1 1 14rem;
}

.locator__label {
	display: block;
	margin-block-end: var(--space-05);
	color: var(--color-text-soft);   /* muted read 3.5:1 on white; this is a form label */
	font-size: var(--font-2);
}

.locator__input {
	width: 100%;
	min-height: 44px;
	padding: 0 var(--space-15);
	border: var(--border-hairline) solid var(--color-border-control);
	border-radius: var(--radius-btn);
	background-color: var(--color-bg);
	color: var(--color-text);
	font: inherit;
	font-size: var(--font-4);
}

.locator__check {
	display: inline-flex;
	gap: var(--space-1);
	align-items: center;
	min-height: 44px;
	font-size: var(--font-4);
	cursor: pointer;
}

.locator__check input {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--color-btn-bg);
}

.locator__input:focus-visible,
.locator__check input:focus-visible,
.locator__select:focus-visible,
.locator__marker:focus-visible {
	outline: var(--focus-width) solid var(--focus-color);
	outline-offset: var(--focus-offset);
}

.locator__list {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: var(--space-2);
	overflow-y: auto;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--space-15);
	overscroll-behavior: contain;
}

.locator__item {
	padding: var(--space-25) var(--space-3);
	border: var(--border-hairline) solid var(--color-edge);
	border-radius: var(--radius-card);
	background-color: var(--color-bg);
	cursor: pointer;
	transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}

.locator__item[hidden] {
	display: none;
}

.locator__item:hover {
	border-color: var(--color-border-control);
}

.locator__item[data-active="true"] {
	border-color: var(--color-accent-bright);
	box-shadow: 0 0 0 1px var(--color-accent-bright);
}

.locator__name {
	font-family: var(--font-sans);
	font-size: var(--font-6);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--tracking-title);
}

.locator__select {
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-title);
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.locator__state {
	display: inline-flex;
	gap: var(--space-1);
	align-items: center;
	margin-block-start: var(--space-1);
	font-size: var(--font-2);
	font-weight: 600;
}

.locator__state[hidden] {
	display: none;
}

/* A dot and the words, so the state never rests on colour alone. */
.locator__state::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	border-radius: var(--radius-round);
	background-color: var(--color-text-muted);
}

.locator__state[data-open="true"] {
	color: var(--color-title);   /* teal is 4.4:1 on the paper at 13px; the deep teal passes */
}

.locator__state[data-open="true"]::before {
	background-color: var(--color-accent);
}

.locator__address {
	display: flex;
	gap: var(--space-1);
	margin-block-start: var(--space-15);
	color: var(--color-text-soft);
	font-size: var(--font-4);
	line-height: 1.35;
}

.locator__icon {
	flex: none;
	width: 1.1em;
	height: 1.1em;
	margin-block-start: 0.15em;
	color: var(--color-accent);
}

.locator__phone,
.locator__notes {
	margin-block-start: var(--space-1);
	font-size: var(--font-4);
}

.locator__notes {
	color: var(--color-text-soft);
	line-height: 1.4;
}

.locator__hours {
	margin-block-start: var(--space-15);
	font-size: var(--font-3);
}

.locator__hours summary {
	min-height: 44px;
	display: flex;
	align-items: center;
	color: var(--color-title);
	font-weight: 600;
	cursor: pointer;
}

.locator__hours table {
	border-collapse: collapse;
}

.locator__hours th,
.locator__hours td {
	padding: 0.15rem var(--space-3) 0.15rem 0;
	text-align: start;
	font-weight: 400;
}

.locator__hours th {
	color: var(--color-text-muted);
}

.locator__actions {
	margin-block-start: var(--space-1);
}

.locator__empty {
	padding: var(--space-3);
	color: var(--color-text-soft);
}

.locator__empty[hidden] {
	display: none;
}

.locator__main {
	position: relative;
	display: none;
	min-height: 0;
	background-color: var(--color-tile);
}

.locator.has-map .locator__main,
.locator__main:has(.mapboxgl-canvas) {
	display: block;
}

.locator__map {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--duration) var(--ease);
}

.locator.map-ready .locator__map {
	opacity: 1;
}

/* The still holds the place until the live map has drawn, then fades away under it. */
.locator__still {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	transition: opacity var(--duration) var(--ease);
}

.locator.map-ready .locator__still {
	opacity: 0;
}

/* The pin: a deep teal disc with the glyph, the picked one in the teal with a ring and larger. */
.locator__marker {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 2px solid var(--color-btn-text);
	border-radius: var(--radius-round);
	background-color: var(--color-btn-bg);
	color: var(--color-btn-text);
	cursor: pointer;
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}

.locator__marker[hidden] {
	display: none;
}

.locator__marker-icon {
	width: 1.35rem;
	height: 1.35rem;
}

.locator__marker[data-active="true"] {
	z-index: 2;
	width: 3rem;
	height: 3rem;
	background-color: var(--color-btn-bg-hover);
	outline: 3px solid var(--color-btn-bg);
	outline-offset: 2px;
}

.locator__popup {
	display: grid;
	gap: 0.25rem;
	padding-inline-end: 0.5rem;
	color: #1a2e31;  /* Mapbox's popup is always white, outside our colour contexts */
	font-size: 0.9375rem;
	line-height: 1.35;
}

.locator__popup a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-self: start;
	text-decoration: underline;
}

@media (max-width: 1023px) {
	.locator,
	.locator.has-map {
		display: flex;
		flex-direction: column;
		height: auto;
	}

	.locator__main {
		order: -1;
		height: min(26rem, 62svw);
	}

	.locator__list {
		max-height: none;
		overflow: visible;
	}

	/* Five places, then Show all (locator.js); a search or Open now shows every match. */
	.locator.is-collapsible:not(.is-expanded, .is-filtered) .locator__item:nth-child(n + 6) {
		display: none;
	}

	.locator__more:not([hidden]) {
		display: block;
		width: calc(100% - var(--space-4));
		min-height: var(--tap-min);
		margin: 0 var(--space-2) var(--space-2);
		border: var(--border-hairline) solid var(--color-border-control);
		border-radius: var(--radius-btn);
		background-color: var(--color-surface);
		color: var(--color-title);
		font: inherit;
		font-size: var(--font-4);
		font-weight: var(--weight-semi);
		cursor: pointer;
	}
}

/* The button only belongs to the phone's flowing list. */
@media (min-width: 1024px) {
	.locator__more {
		display: none;
	}
}

/*
 * The masthead: the wordmark at the left, the five links centred, the two action links and
 * the search at the right. Over a dark hero (.masthead--over) it sits on the hero's colour,
 * the wordmark goes paper and the actions become pills. On a phone the Menu toggle opens a
 * sheet under the bar (the search, the links, the actions at its foot). Measured: 126 tall,
 * logo 245 wide. It sticks: once the
 * page has scrolled it fades in the paper, tightens to 96 and, over a hero, turns to the paper
 * colours (Harry, 2026-10-14).
 */

.masthead {
	position: sticky;
	inset-block-start: 0;
	z-index: var(--z-masthead);
	transition: background-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.masthead--over {
	position: fixed;
	inset: 0 0 auto;
	background-color: transparent;   /* the hero paints the ground */
}

.masthead.is-scrolled {
	--masthead-h: var(--masthead-h-tight);
	--logo-width: 12.25rem;
	background-color: var(--color-bg);
	box-shadow: 0 1px 0 var(--color-edge), 0 16px 32px -28px rgb(var(--bsc-ink-rgb) / 0.3);
}

.masthead__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;   /* the links centre on the page, not between the logo and the actions */
	align-items: center;
	gap: var(--space-4);
	min-height: var(--masthead-h);
	transition: min-height var(--duration) var(--ease);
}

.masthead__logo {
	flex: none;
	display: block;
	width: var(--logo-width);
	color: var(--color-title);
	transition: width var(--duration) var(--ease), color var(--duration) var(--ease);
}

.masthead__mark {
	width: 100%;
	height: auto;
}

.masthead__panel {
	display: contents;   /* its two children take the grid's middle and last columns */
}

.masthead__nav {
	display: flex;
	justify-content: center;
	min-width: 0;
}

.masthead__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1) 2.5rem;
}

.masthead__link {
	display: inline-block;
	padding-block: 0.25rem;
	color: var(--color-link);
	font-size: var(--font-5);
	font-weight: var(--weight-semi);
	letter-spacing: var(--tracking-title);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--duration) var(--ease);
}

.masthead__link:is(:hover, :focus-visible) {
	color: var(--color-link);
}

/* A link with a panel: the panel positions against the masthead, so the item itself stays unpositioned. */
.masthead__item {
	position: static;
	display: flex;
	align-items: center;
	gap: 0.125rem;
}

/* The disclose button beside it: a chevron that turns when the panel is open. */
.masthead__disclose {
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: var(--radius-round);
	color: var(--color-link);
	transition: background-color var(--duration-fast) var(--ease);
}

.masthead__disclose:is(:hover, :focus-visible) {
	background-color: var(--color-surface-soft);
}

.masthead__chevron {
	width: 0.875rem;
	height: 0.875rem;
	transition: rotate var(--duration) var(--ease);
}

.masthead__disclose[aria-expanded='true'] .masthead__chevron {
	rotate: 180deg;
}

/* The actions and the search form share one cell: opening the search fades the first out and the second in. */
.masthead__tools {
	display: grid;
	align-items: center;
	justify-items: end;
	justify-self: stretch;
}

.masthead__tools > * {
	grid-area: 1 / 1;
}

.masthead__actions {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	margin: 0;   /* the list's own bottom margin would sit the buttons above the links' centre line */
	transition: opacity var(--duration-fast) var(--ease-in-out), visibility 0s linear;
	transition-delay: var(--duration-fast), 0s;   /* coming back waits for the field to go */
}

.masthead__actions > li {
	display: flex;
	align-items: center;
}

.masthead.is-searching .masthead__actions {
	opacity: 0;
	visibility: hidden;
	transition-delay: 0s, var(--duration-fast);   /* hidden once the fade has run */
}

.masthead__search-form {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--duration-fast) var(--ease-in-out), visibility 0s linear;
	transition-delay: 0s, var(--duration-fast);
}

.masthead.is-searching .masthead__search-form {
	opacity: 1;
	visibility: visible;
	transition-delay: var(--duration-fast), 0s;   /* waits for the actions to be gone */
}

.masthead__search-form-icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0.875rem;
	translate: 0 -50%;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--bsc-deep);
	pointer-events: none;
}

.masthead__search-field {
	position: relative;
	display: block;
	flex: 1 1 0;
	min-width: 0;
	max-width: 41.25rem;   /* 660 */
}

.masthead__search-input {
	display: block;
	width: 100%;
	min-width: 0;
	height: var(--btn-height);
	padding: 0 0.875rem 0 2.625rem;
	border: var(--border-control) solid var(--color-border-control);
	border-radius: var(--radius-btn);
	background-color: var(--bsc-white);
	color: var(--bsc-ink);
	font-size: var(--font-4);
}

/* The field is white on every ground, so its placeholder is always the ink, never the context's muted paper. */
.masthead__search-input::placeholder {
	color: rgb(var(--bsc-ink-rgb) / 0.56);
}

.masthead__search-input:focus-visible {
	outline: none;
	border-color: var(--bsc-deep);
	box-shadow: 0 0 0 var(--focus-width) rgb(var(--bsc-deep-rgb) / 0.35);
}

.masthead__search-form {
	position: relative;
}

.masthead__search-close {
	display: grid;
	flex: none;
	place-items: center;
	width: var(--btn-height);
	height: var(--btn-height);
	border-radius: var(--radius-round);
	color: var(--color-link);
	transition: background-color var(--duration-fast) var(--ease);
}

.masthead__search-close:is(:hover, :focus-visible) {
	background-color: var(--color-surface-soft);
}

.masthead__search {
	display: grid;
	place-items: center;
	width: var(--btn-height);
	height: var(--btn-height);
	border-radius: var(--radius-round);
	color: var(--color-link);
	transition: background-color var(--duration-fast) var(--ease);
}

.masthead__search:is(:hover, :focus-visible) {
	background-color: var(--color-surface-soft);
	color: var(--color-link);
}

.masthead__search-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* -- The toggle, and the panel it opens on a phone ------------------------- */

.masthead__toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--tap-min);
	margin-inline-start: auto;
	padding: 0 0.5rem;
	color: var(--color-link);
	font-size: var(--font-3);
	font-weight: var(--weight-semi);
}

.masthead__toggle-icon {
	display: grid;
	gap: 5px;
	width: 1.25rem;
}

.masthead__toggle-icon span {
	display: block;
	height: 2px;
	background-color: currentColor;
	transition: translate var(--duration) var(--ease), rotate var(--duration) var(--ease);
}

.masthead__toggle[aria-expanded='true'] .masthead__toggle-icon span:first-child {
	translate: 0 3.5px;
	rotate: 45deg;
}

.masthead__toggle[aria-expanded='true'] .masthead__toggle-icon span:last-child {
	translate: 0 -3.5px;
	rotate: -45deg;
}

@media (prefers-reduced-motion: reduce) {
	.masthead,
	.masthead__inner,
	.masthead__logo,
	.masthead__link,
	.masthead__actions,
	.masthead__nav,
	.masthead__search-form {
		transition: none;
	}
}

/* On a desktop the open search spans the header from the logo to the edge; the links fade with the actions. */
@media (min-width: 1024px) {
	.masthead__inner {
		position: relative;
	}

	.masthead__tools {
		position: static;
	}

	.masthead__search-form {
		position: absolute;
		inset-block-start: 50%;
		inset-inline: auto var(--gutter);   /* inside the container's padding, level with the actions */
		translate: 0 -50%;
		width: 100%;
		justify-content: flex-end;
		max-width: calc(100% - var(--gutter) * 2 - var(--logo-width) - var(--space-4));
	}

	.masthead__nav {
		transition: opacity var(--duration-fast) var(--ease-in-out), visibility 0s linear;
		transition-delay: var(--duration-fast), 0s;
	}

	.masthead.is-searching .masthead__nav {
		opacity: 0;
		visibility: hidden;
		transition-delay: 0s, var(--duration-fast);
	}
}

@media (max-width: 1023px) {
	.masthead__inner {
		display: flex;
		flex-wrap: wrap;
		row-gap: 0;
	}

	/* The logo and the toggle are each the bar's full height, so the bar's line keeps it when the sheet opens under it. */
	.masthead__logo {
		display: flex;
		align-items: center;
		height: var(--masthead-h);
	}

	.masthead__toggle {
		display: inline-flex;
		height: var(--masthead-h);
	}

	/* The bar paints its own ground while the sheet is open, over a hero as on a light page. */
	.masthead.is-open {
		background-color: var(--color-bg);
	}

	/* Without script the panel simply follows the bar in the flow. */
	.masthead__panel {
		display: flex;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: var(--space-3);
		padding-block: var(--space-2) var(--space-4);
	}

	/*
	 * With it, the sheet (Harry, 2026-10-15): from under the bar to the foot of the screen, on the
	 * bar's ground (deep over a hero, paper once scrolled or on a light page), scrolling inside
	 * itself with the page locked behind it. It fades and drops in, the links a beat apart (--i).
	 */
	.has-js .masthead__panel {
		position: absolute;
		inset-block-start: 100%;
		inset-inline: 0;
		height: calc(100vh - var(--masthead-h));
		height: calc(100dvh - var(--masthead-h));
		padding: var(--space-2) var(--gutter) 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-block-start: var(--border-hairline) solid var(--color-edge);
		background-color: var(--color-bg);
		opacity: 0;
		translate: 0 -0.5rem;
		transition: opacity var(--duration) var(--ease), translate var(--duration) var(--ease), display var(--duration) allow-discrete;
	}

	.has-js .masthead__panel:not(.is-open) {
		display: none;
	}

	.has-js .masthead__panel.is-open {
		opacity: 1;
		translate: 0 0;
	}

	.has-js .masthead__links > li {
		transition: opacity var(--duration) var(--ease), translate var(--duration) var(--ease);
		transition-delay: calc(40ms + var(--i, 0) * 40ms);
	}

	@starting-style {
		.has-js .masthead__panel.is-open {
			opacity: 0;
			translate: 0 -0.5rem;
		}

		.has-js .masthead__panel.is-open .masthead__links > li {
			opacity: 0;
			translate: 0 0.5rem;
		}
	}

	/* Signed in, the admin bar has the top of the screen. */
	.has-js .admin-bar .masthead__panel {
		height: calc(100dvh - var(--masthead-h) - 32px);
	}

	@media (max-width: 782px) {
		.has-js .admin-bar .masthead__panel {
			height: calc(100dvh - var(--masthead-h) - 46px);
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.has-js .masthead__panel,
		.has-js .masthead__links > li {
			transition: none;
		}
	}

	/* The search field, first and always there; the magnifier that swaps it in on a desktop is not needed. */
	.masthead .masthead__search-form {
		position: static;
		width: 100%;
		opacity: 1;
		visibility: visible;
		transition: none;
	}

	.masthead__search-field {
		max-width: none;
	}

	.masthead__search-close,
	.masthead__actions > li:has(> .masthead__search) {
		display: none;
	}

	.masthead__nav {
		display: block;
	}

	.masthead__links {
		flex-direction: column;
		gap: 0;
	}

	.masthead__links > li + li {
		border-block-start: var(--border-hairline) solid var(--color-edge);
	}

	.masthead__link {
		display: block;
		flex: 1;
		min-width: 0;
		padding-block: 0.875rem;
		font-size: var(--font-10);
		white-space: normal;
	}

	/* The links only: the disclose button and its panel are the desktop's (Harry, 2026-10-15). */
	.masthead__disclose {
		display: none;
	}

	/* The two actions keep the foot of the sheet, side by side where they fit (justify-items reset: the desktop's end would shrink the list to the right, block layout aligns too now). */
	.masthead__tools {
		position: sticky;
		inset-block-end: 0;
		display: block;
		justify-items: normal;
		margin-block-start: auto;
		padding-block: var(--space-2) calc(var(--space-3) + env(safe-area-inset-bottom));
		border-block-start: var(--border-hairline) solid var(--color-edge);
		background-color: var(--color-bg);
	}

	.masthead .masthead__actions {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
		gap: var(--space-15);
		opacity: 1;
		visibility: visible;
		transition: none;
	}

	.masthead__actions > li {
		display: grid;
	}

	/* Each fills its cell, so its padding is the cell's to give. */
	.masthead__actions .masthead__action {
		--btn-pad: 1rem;
	}

	/* On the phone the ghost links become outlined buttons so they read as actions. */
	.masthead__action[data-theme='ghost'] {
		--button-029-edge: var(--color-btn-outline);
	}
}

/* The Search button matches the field's height exactly. */
.masthead__search-form .masthead__search-submit {
	flex: none;
	height: var(--btn-height);
}

/*
 * The video frame: a 16:9 on the ink with the play ring, waiting for its embed.
 */

.video-frame {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius-card);
	cursor: pointer;
}

.video-frame__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-frame__play {
	position: relative;
	width: 5.5rem;
	height: 5.5rem;
	color: rgb(var(--bsc-paper-rgb) / 0.55);
	transition: color var(--duration-fast) var(--ease), scale var(--duration) var(--ease);
}

.video-frame:is(:hover, :focus-visible) .video-frame__play {
	color: var(--bsc-paper);
	scale: 1.05;
}

/* A plain photo with the panel's corners. */
.photo {
	overflow: hidden;
	border-radius: var(--radius-card);
}

.photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * The masthead's panels, one per link that has items under it in the menu. On a desktop the
 * panel drops out of the masthead across the page, paper under a hairline with a soft shadow:
 * the section's words and a link to its page at the left, the tiles into its areas at the
 * right, settling in one after another. On a phone the sheet lists the links only and the
 * panel is not drawn.
 */

.mega {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	z-index: 1;
	padding-block: var(--space-5) var(--space-6);
	border-block-start: var(--border-hairline) solid var(--color-edge);
	background-color: var(--color-bg);
	box-shadow: 0 28px 40px -28px rgb(var(--bsc-ink-rgb) / 0.35);
	opacity: 0;
	translate: 0 -0.5rem;
	transition: opacity var(--duration) var(--ease), translate var(--duration) var(--ease);
}

.mega[hidden] {
	display: none;
}

.mega.is-open {
	opacity: 1;
	translate: 0 0;
}

.mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
	gap: var(--space-6) var(--space-8);
	align-items: start;
}

.mega__heading {
	margin: 0 0 var(--space-15);
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-9);
	font-weight: var(--weight-bold);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.mega__text {
	margin: 0 0 var(--space-2);
	color: var(--color-text-soft);
	font-size: var(--font-4);
	font-weight: var(--weight-light);
	line-height: var(--leading-lead);
}

/* The link to the section's page, a step up from a card's View More (Harry, 2026-10-14). */
.mega__intro .link-more {
	font-size: var(--font-5);
}

.mega__tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--card-gap);
}

.mega__tiles > li {
	display: grid;
}

.mega-tile {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	opacity: 0;
	translate: 0 0.5rem;
	transition: box-shadow var(--duration-slow) var(--ease), translate var(--duration-slow) var(--ease), opacity var(--duration) var(--ease);
}

/* Each tile a beat after the one before; a hover answers at once. */
.mega.is-open .mega-tile {
	opacity: 1;
	translate: 0 0;
	transition-delay: calc(60ms + var(--i, 0) * 60ms);
}

.mega.is-open .mega-tile:is(:hover, :focus-visible) {
	translate: 0 -4px;
	box-shadow: 0 18px 36px -20px rgb(var(--bsc-ink-rgb) / 0.4);
	transition-delay: 0s;
}

.mega-tile__media {
	position: relative;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background-color: var(--bsc-deep);
}

.mega-tile__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mega-tile__media > * {
	transition: scale var(--duration-slow) var(--ease);
}

.mega-tile:is(:hover, :focus-visible) .mega-tile__media > * {
	scale: 1.04;
}

.mega-tile__body {
	display: grid;
	align-content: start;
	gap: 0.375rem;
	padding: var(--space-2) var(--space-25) var(--space-25);
}

.mega-tile__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-1);
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-6);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.mega-tile__arrow {
	flex: none;
	width: 1.2em;
	height: 1.2em;
	color: var(--color-accent);
	transition: translate var(--duration) var(--ease);
}

.mega-tile:is(:hover, :focus-visible) .mega-tile__arrow {
	translate: 0.25em 0;
}

.mega-tile__text {
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

/* -- Rows: a small image, the name and an arrow, two to the row (every partnership) -------- */

.mega__rows {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-15) var(--card-gap);
}

.mega-row {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-15) var(--space-2) var(--space-15) var(--space-15);
	color: inherit;
	text-decoration: none;
	opacity: 0;
	translate: 0 0.5rem;
	transition: box-shadow var(--duration-slow) var(--ease), translate var(--duration-slow) var(--ease), opacity var(--duration) var(--ease);
}

.mega.is-open .mega-row {
	opacity: 1;
	translate: 0 0;
	transition-delay: calc(60ms + var(--i, 0) * 40ms);
}

.mega.is-open .mega-row:is(:hover, :focus-visible) {
	translate: 0 -2px;
	box-shadow: 0 14px 28px -18px rgb(var(--bsc-ink-rgb) / 0.4);
	transition-delay: 0s;
}

.mega-row__media {
	position: relative;
	flex: none;
	width: 3.5rem;
	height: 3.5rem;
	overflow: hidden;
	border-radius: var(--radius-btn);
	background-color: var(--bsc-deep);
}

.mega-row__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* A logo sits whole on a soft ground rather than cropped. */
.mega-row__media--logo {
	padding: 0.375rem;
	background-color: var(--color-surface-soft);
}

.mega-row__media--logo .mega-row__image {
	object-fit: contain;
}

.mega-row__title {
	min-width: 0;
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-6);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.mega-row__arrow {
	flex: none;
	width: 1.2em;
	height: 1.2em;
	margin-inline-start: auto;
	color: var(--color-accent);
	transition: translate var(--duration) var(--ease);
}

.mega-row:is(:hover, :focus-visible) .mega-row__arrow {
	translate: 0.25em 0;
}

/* The style guide shows a panel in the flow. */
.mega--static {
	position: static;
	padding-inline: var(--space-5);
	border: var(--border-hairline) solid var(--color-edge);
	border-radius: var(--radius-panel);
	box-shadow: none;
	opacity: 1;
	translate: none;
}

@media (prefers-reduced-motion: reduce) {
	.mega,
	.mega-tile,
	.mega-row,
	.mega.is-open .mega-tile,
	.mega.is-open .mega-row {
		transition: none;
		opacity: 1;
		translate: none;
	}
}

/* In the phone panel: a paper box under the link listing the tiles' names, no intro, no photos. */
@media (max-width: 1023px) {
	/* The sheet lists the five links only (Harry, 2026-10-15: the sub-items made it messy); the panels are the desktop's. */
	.mega {
		display: none;
	}
}

/*
 * A news card: the photo inset on a white card, the excerpt, then the date in teal beside
 * Read More. Measured: 496 wide, photo 3:2 inset 10.
 */

.news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0.625rem;
	transition: box-shadow var(--duration-slow) var(--ease), translate var(--duration-slow) var(--ease);
}

.news-card:is(:hover, :focus-within) {
	box-shadow: 0 18px 36px -20px rgb(var(--bsc-ink-rgb) / 0.4);
	translate: 0 -4px;
}

.news-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: calc(var(--radius-card) - 4px);
	background-color: var(--bsc-teal);
}

.news-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale var(--duration-slow) var(--ease);
}

.news-card__pattern {
	transition: scale var(--duration-slow) var(--ease);
}

.news-card:is(:hover, :focus-within) :is(.news-card__image, .news-card__pattern) {
	scale: 1.04;
}

.news-card__body {
	display: grid;
	flex: 1;
	align-content: start;
	gap: var(--space-15);
	padding: var(--space-2) 0.375rem 0.625rem;
}

.news-card__title {
	margin: 0;
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-6);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.news-card__link {
	color: inherit;
	text-decoration: none;
}

.news-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--radius-card);
}

.news-card__excerpt {
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.news-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-15);
	align-items: baseline;
	color: var(--color-date);
	font-size: var(--font-2);
}

.news-card__date {
	font-weight: var(--weight-light);
}

.news-card__more {
	font-size: var(--font-3);
	font-weight: var(--weight-semi);
}

/* Zero specificity, so a modifier from another file (carousel) wins whatever the glob order. */
:where(.news-grid) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: var(--card-gap);
}

/*
 * Two ways through a long page. The side box lists the sections with a short bar before each,
 * orange on the current one. The hero row runs the same links along the foot of a dark hero
 * under ON THIS PAGE, the current one underlined in orange.
 */

.page-nav {
	padding: var(--space-3) var(--space-3) var(--space-4);
}

.page-nav__title {
	margin: 0 0 var(--space-15);
	font-size: var(--font-8);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-title);
}

.page-nav__link {
	display: flex;
	gap: 0.625rem;
	align-items: center;
	padding-block: 0.3rem;
	color: var(--color-text);
	font-size: var(--font-5);
	font-weight: var(--weight-light);
	text-decoration: none;
}

.page-nav__link::before {
	content: '';
	flex: none;
	width: 3px;
	height: 1em;
	border-radius: 2px;
	background-color: rgb(var(--bsc-ink-rgb) / 0.18);
	transition: background-color var(--duration-fast) var(--ease);
}

.page-nav__link:is(:hover, :focus-visible) {
	color: var(--color-text);
}

.page-nav__link:is(:hover, :focus-visible)::before,
.page-nav__link.is-current::before {
	background-color: var(--bsc-orange);
}

.page-nav__link.is-current {
	font-weight: var(--weight-bold);
}

/* -- The hero row ---------------------------------------------------------- */

.page-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-2) var(--space-5);
	padding-block-start: var(--space-3);
	border-block-start: var(--border-hairline) solid var(--color-border);
}

.page-tabs__label {
	color: var(--color-text-muted);
	font-size: var(--font-4);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
}

.page-tabs__link {
	position: relative;
	padding-block-end: 0.375rem;
	color: var(--color-text-muted);
	font-family: var(--font-display);
	font-size: var(--font-7);
	font-weight: var(--weight-title);
	letter-spacing: var(--tracking-title);
	text-decoration: none;
	transition: color var(--duration-fast) var(--ease);
}

.page-tabs__link::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 2px;
	background-color: var(--bsc-orange);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--duration) var(--ease);
}

.page-tabs__link:is(:hover, :focus-visible),
.page-tabs__link.is-current {
	color: var(--color-text);
}

.page-tabs__link.is-current::after {
	transform: scaleX(1);
}

/* -- The hero row as a sticky bar ------------------------------------------ */

/*
 * The row as its own bar after the hero, in the same deep teal so it reads as the hero's foot
 * until the window reaches it; then it sticks to the top with a hairline under it. The links
 * stay on one line and scroll sideways on a phone, so the bar never grows tall.
 */
.page-tabs-bar {
	position: sticky;
	inset-block-start: var(--masthead-h-tight);   /* under the masthead, which sticks tightened */
	z-index: calc(var(--z-masthead) - 1);
	padding-block-end: var(--space-3);
	background-color: var(--color-bg);
	transition: box-shadow var(--duration-fast) var(--ease);
}

/* Anchor jumps clear both bars. */
html:has(.page-tabs-bar) {
	scroll-padding-block-start: calc(var(--masthead-h-tight) + 5.5rem);
}

.page-tabs-bar.is-stuck {
	box-shadow: 0 1px 0 var(--color-border), 0 12px 24px -16px rgb(var(--bsc-ink-rgb) / 0.5);
}

.page-tabs-bar .page-tabs {
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-block-end: 0;
	scrollbar-width: none;
}

.page-tabs-bar .page-tabs::-webkit-scrollbar {
	display: none;
}

.page-tabs-bar .page-tabs__link,
.page-tabs-bar .page-tabs__label {
	flex: none;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.page-tabs-bar .page-tabs__label {
		display: none;
	}
}

/* On a phone the tabs are the only way along the page, so each is a 44 target (2026-10-15). */
@media (max-width: 767px) {
	.page-tabs__link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding-block-end: 0;
	}

	.page-tabs__link::after {
		inset-block-end: 0.375rem;
	}
}

/*
 * Page numbers under a listing: WordPress's own markup, each number a 44 square.
 */

.pagination {
	margin-block-start: var(--space-6);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--tap-min);
	min-height: var(--tap-min);
	padding-inline: var(--space-15);
	border: var(--border-hairline) solid var(--color-border);
	border-radius: var(--radius-btn);
	color: var(--color-text);
	font-size: var(--font-3);
	font-weight: var(--weight-semi);
	text-decoration: none;
	transition: border-color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}

.pagination .page-numbers.current {
	border-color: transparent;
	background-color: var(--color-btn-bg);
	color: var(--color-btn-text);
}

.pagination .page-numbers.dots {
	border: 0;
}

.pagination a.page-numbers:is(:hover, :focus-visible) {
	border-color: var(--color-btn-outline);
}

/*
 * A partnership card: 713 wide, the tiled thumbnail on a 2:1, the Partnership badge beside
 * its priority, the title at 28 and Find Out More.
 */

.partner-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow var(--duration-slow) var(--ease), translate var(--duration-slow) var(--ease);
}

.partner-card:is(:hover, :focus-within) {
	box-shadow: 0 18px 36px -20px rgb(var(--bsc-ink-rgb) / 0.4);
	translate: 0 -4px;
}

.partner-card__media {
	position: relative;
	aspect-ratio: 2 / 1;
	overflow: hidden;
	background-color: var(--bsc-deep);
}

.partner-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.partner-card__body {
	display: grid;
	flex: 1;
	align-content: start;
	gap: var(--space-2);
	padding: var(--space-5) var(--space-5) var(--space-5) var(--space-5);
}

.partner-card__title {
	margin: 0;
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-9);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.partner-card__link {
	color: inherit;
	text-decoration: none;
}

.partner-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
}

.partner-card__summary {
	max-width: var(--measure);
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.partner-card__body .link-more {
	margin-block-start: var(--space-1);
}

.partner-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
	gap: var(--card-gap);
}

.partner-card__media > * {
	transition: scale var(--duration-slow) var(--ease);
}

.partner-card:is(:hover, :focus-within) .partner-card__media > * {
	scale: 1.04;
}

/* Tighter on a phone (Harry, 2026-10-16): 24 round the copy and 12 between its lines. */
@media (max-width: 767px) {
	.partner-card__body {
		gap: var(--space-15);
		padding: var(--space-3);
	}
}

/*
 * The tiled block a resource or partnership card shows instead of a photo: rounded squares in
 * a lighter wash on one of the tints. bsc_pattern() prints the SVG; the tint class sets the ground.
 */

.pattern {
	display: block;
	position: absolute;
	inset: 0;
	overflow: hidden;
	background-color: var(--pattern-bg, var(--bsc-teal));
	color: rgb(var(--bsc-white-rgb) / 0.09);
}

.pattern__svg {
	width: 100%;
	height: 100%;
}

.pattern--teal {
	--pattern-bg: var(--bsc-teal);
}

.pattern--peach {
	--pattern-bg: var(--bsc-peach);
}

.pattern--sky {
	--pattern-bg: var(--bsc-sky);
}

.pattern--deep {
	--pattern-bg: var(--bsc-deep);
}

.pattern--bright {
	--pattern-bg: var(--bsc-teal-bright);
}

/*
 * Four photos and two teal leaves laid out as drawn on a 598 x 640 field: a tall one top
 * centre, a taller one at the right, a square one bottom left, a wide one bottom right.
 * Every position is a fraction of the field, so the whole thing scales with its column.
 */

.photo-collage {
	position: relative;
	aspect-ratio: 598 / 640;
}

.photo-collage__photo {
	position: absolute;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-card);
	background-color: var(--color-tile);
}

.photo-collage__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo-collage__photo--1 {
	inset-inline-start: 22.74%;
	inset-block-start: 0;
	width: 26.92%;
	height: 36.41%;
}

.photo-collage__photo--2 {
	inset-inline-start: 51.51%;
	inset-block-start: 18.59%;
	width: 38.63%;
	height: 50.47%;
}

.photo-collage__photo--3 {
	inset-inline-start: 0;
	inset-block-start: 51.88%;
	width: 49.67%;
	height: 48.13%;
}

.photo-collage__photo--4 {
	inset-inline-start: 66.05%;
	inset-block-start: 70.94%;
	width: 33.95%;
	height: 23.44%;
}

.photo-collage__shape {
	position: absolute;
	width: 10.03%;
	aspect-ratio: 60 / 56;
}

.photo-collage__shape--a {
	inset-inline-start: 39.63%;
	inset-block-start: 41.09%;
	border-radius: 100% 6% 6% 6%;
	background-color: var(--color-accent-bright);
}

.photo-collage__shape--b {
	inset-inline-start: 51.51%;
	inset-block-start: 70.78%;
	border-radius: 6% 6% 100% 6%;
	background-color: var(--color-accent);
}

/*
 * The photo strip under the hero, its own section: 418 tall on a 4px gap, running past both
 * edges, the same 4px of paper between it and the hero. The panes take the mockup's rhythm of
 * widths (near square, portrait, portrait, near square, narrow) and each photo covers its pane.
 * Two copies of the set drift left end to end at a walking pace; the pointer pauses it and
 * reduced motion stops it.
 */

.photo-strip {
	position: relative;
	padding-block-start: var(--strip-gap);
	overflow: clip;
	background-color: var(--color-bg);
}

.photo-strip__track {
	display: flex;
	gap: var(--strip-gap);
	width: max-content;
	animation: bsc-strip calc(var(--count, 7) * 32s) linear infinite;
	will-change: transform;
}

.photo-strip:hover .photo-strip__track {
	animation-play-state: paused;
}

.photo-strip__set {
	display: flex;
	flex: none;
	gap: var(--strip-gap);
	margin-block-end: 0;
}

.photo-strip__item {
	flex: none;
	width: calc(var(--strip-h) * var(--pane, 0.92));
	height: var(--strip-h);
	overflow: hidden;
}

.photo-strip__item:nth-child(5n + 2),
.photo-strip__item:nth-child(5n + 3) {
	--pane: 0.69;
}

.photo-strip__item:nth-child(5n + 5) {
	--pane: 0.46;
}

.photo-strip__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes bsc-strip {
	to {
		translate: calc(-50% - var(--strip-gap) / 2) 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.photo-strip__track {
		animation: none;
	}
}

/*
 * Long-form copy: a resource's body, the policies. Headings step down from the display sizes.
 */

.prose__title {
	margin-block-end: var(--space-3);
}

.prose__lead {
	max-width: var(--measure-wide);
	margin-block-end: var(--space-4);
}

.prose__body {
	max-width: var(--measure);
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.prose__body h2 {
	margin-block: var(--space-5) var(--space-2);
	font-size: var(--font-10);
}

.prose__body h3 {
	margin-block: var(--space-4) var(--space-2);
	font-size: var(--font-8);
}

.prose__body :is(h4, h5, h6) {
	font-size: var(--font-6);
	font-weight: var(--weight-semi);
}

.prose__body p + p {
	margin-block-start: var(--copy-gap);
}

/* A body column beside a sidebar. */
.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 21.6875rem;
	gap: var(--space-8);
	align-items: start;
}

.article-layout__aside {
	position: sticky;
	inset-block-start: calc(var(--masthead-h-tight) + var(--space-3));   /* under the sticky masthead */
	display: grid;
	gap: var(--space-4);
}

@media (max-width: 1023px) {
	.article-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.article-layout__aside {
		position: static;
	}
}

/*
 * A pull quote on a white card: the teal quote mark, the words in SemiBold Italic at 24, and
 * a step below them the speaker: a round portrait at 72 when there is one, the name on one
 * line and the role on the next (Harry, 2026-10-15: taller, more room, a bigger face).
 */

.quote-card {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-6) var(--space-6) var(--space-5);
}

.quote-card__mark {
	width: 1.75rem;
	height: auto;
	color: var(--bsc-teal);
}

.quote-card__text {
	max-width: var(--measure);
	margin: 0;
	color: var(--color-heading);
	font-size: var(--font-8);
	font-style: italic;
	font-weight: var(--weight-semi);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-title);
}

.quote-card__cite {
	display: flex;
	gap: var(--space-2);
	align-items: center;
	margin-block-start: var(--space-3);
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-style: normal;
	font-weight: var(--weight-light);
}

.quote-card__avatar {
	flex: none;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: var(--radius-round);
	object-fit: cover;
}

.quote-card__who {
	display: grid;
	gap: 0.125rem;
}

.quote-card__name {
	color: var(--color-title);
	font-size: var(--font-4);
	font-weight: var(--weight-semi);
}

@media (max-width: 767px) {
	.quote-card {
		padding: var(--space-4) var(--space-3);
	}

	.quote-card__avatar {
		width: 3.5rem;
		height: 3.5rem;
	}
}

/*
 * A resource card: 347 wide, the tiled thumbnail on a 16:9, tags, the title in the deep teal,
 * the summary, and a footer line with View More and the format. The title is the link and
 * covers the whole card.
 */

.resource-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow var(--duration-slow) var(--ease), translate var(--duration-slow) var(--ease);
}

.resource-card:is(:hover, :focus-within) {
	box-shadow: 0 18px 36px -20px rgb(var(--bsc-ink-rgb) / 0.4);
	translate: 0 -4px;
}

.resource-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: var(--bsc-teal);
}

.resource-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.resource-card__body {
	display: grid;
	flex: 1;
	align-content: start;
	gap: var(--space-15);
	padding: var(--space-25) var(--space-25) var(--space-3);
}

.resource-card__title {
	margin: 0;
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-6);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.resource-card__link {
	color: inherit;
	text-decoration: none;
}

.resource-card__link::after {
	content: '';
	position: absolute;
	inset: 0;
}

.resource-card__summary {
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.resource-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	padding: var(--space-15) var(--space-25);
	border-block-start: var(--border-hairline) solid var(--color-border);
}

.resource-card__format {
	color: var(--color-text-muted);
	font-size: var(--font-2);
	font-weight: var(--weight-light);
}

/* On the deep teal band the card is the paper rather than white, as drawn. */
.is-deep .resource-card {
	--color-bg: var(--bsc-paper);
}

/* The grid the cards sit in: four across, two on a tablet, one on a phone. */
.resource-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: var(--card-gap);
}

/* A card fills its cell (through the reveal wrapper), so a row's feet line up as drawn. */
.resource-grid > * {
	display: grid;
}

@media (min-width: 1024px) {
	.resource-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.resource-card__media > * {
	transition: scale var(--duration-slow) var(--ease);
}

.resource-card:is(:hover, :focus-within) .resource-card__media > * {
	scale: 1.04;
}

/*
 * Scroll reveals. Parts are hidden only where reveal.js can show them, and the zero-length
 * animation is the safety net: if the script never arrives, everything shows itself after
 * four seconds.
 */

.has-js [data-reveal] {
	visibility: hidden;
	animation: bsc-reveal-failsafe 0s linear 4s forwards;
}

@keyframes bsc-reveal-failsafe {
	to {
		visibility: visible;
	}
}

@media (prefers-reduced-motion: reduce) {
	.has-js [data-reveal] {
		visibility: visible;
		animation: none;
	}
}

/*
 * The Safe Places landing's hero, on the campaign slide's lockup: navy with the scheme's pattern,
 * the sign, title, lead and buttons centred, then the white band naming BASC and a strip of the
 * navy under it. The masthead, where there is one, sits over the top.
 */

.safe-hero {
	background-image: url('/wp-content/themes/basc-theme/assets/svg/safe-pattern.svg');
	background-position: center;
	background-size: cover;
	padding-block-end: var(--space-6);
}

.safe-hero__stage {
	padding-block: calc(var(--masthead-h) + var(--space-10)) var(--space-10);
}

.safe-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.safe-hero__sign {
	width: 13rem;
	height: auto;
	margin-block-end: var(--space-5);
}

.safe-hero__title {
	max-width: 14em;
	color: var(--color-title);
	font-family: var(--font-display);
	font-size: var(--font-14);
	font-weight: var(--weight-bold);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-heading);
}

.safe-hero__accent {
	display: block;
	color: var(--color-accent);
}

.safe-hero__lead {
	max-width: var(--measure-hero);
	margin-block-start: var(--heading-copy-gap);
	color: var(--color-text);
	font-size: var(--font-7);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.safe-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-15);
	margin-block-start: var(--action-gap);
}

.safe-hero__band {
	padding-block: var(--space-4);
	color: var(--color-text);
	background: var(--color-surface);
}

.safe-hero__by {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-2) var(--space-6);
	margin: 0;
	padding-inline: var(--gutter);
	font-size: var(--font-8);
	font-weight: var(--weight-semi);
	letter-spacing: var(--tracking-heading);
}

.safe-hero__basc {
	width: var(--logo-width);
	height: auto;
}

@media (max-width: 767px) {
	.safe-hero__stage {
		padding-block: calc(var(--masthead-h) + var(--space-6)) var(--space-8);
	}

	.safe-hero__sign {
		width: 9rem;
		margin-block-end: var(--space-3);
	}

	.safe-hero__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.safe-hero__by {
		flex-direction: column;
	}
}

/*
 * A way in on the Safe Places landing: I need help on the scheme's sunflower (.is-safe-sun),
 * Get involved on its navy (.is-safe-navy), as the two flyers are. A big panel with the
 * heading, the intro, a subheading over ticks, and the buttons at the foot.
 */

.safe-path {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--space-6);
	border-radius: var(--radius-panel);
	background-color: var(--color-bg);
	color: var(--color-text);
}

.safe-path__title {
	color: var(--color-title);
	font-size: var(--font-12);
	letter-spacing: var(--tracking-heading);
}

.safe-path__lead {
	max-width: var(--measure-narrow);
	margin-block: var(--heading-copy-gap) 0;
	font-size: var(--font-7);
	font-weight: var(--weight-semi);
	line-height: var(--leading-snug);
}

.safe-path__text {
	max-width: var(--measure-narrow);
	margin-block: var(--copy-gap) 0;
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.safe-path__subtitle {
	margin-block: var(--space-5) 0;
	color: var(--color-heading);
	font-size: var(--font-6);
	letter-spacing: var(--tracking-title);
}

/* The sign to look for, in the room the help card has beside the business one. */
.safe-path__sign {
	display: flex;
	gap: var(--space-3);
	align-items: center;
	margin: var(--space-5) 0 0;
}

.safe-path__sign img {
	flex: none;
	width: 9rem;
	height: auto;
	filter: drop-shadow(0 0.5rem 1rem rgb(var(--bsc-safe-navy-rgb) / 0.2));
}

.safe-path__sign figcaption {
	max-width: 14rem;
	font-family: var(--font-display);
	font-size: var(--font-8);
	font-weight: var(--weight-bold);
	line-height: var(--leading-title);
}

.safe-path__points {
	margin: var(--space-25) 0 0;
	max-width: var(--measure-narrow);
}

.safe-path__points li {
	font-weight: var(--weight-regular);
}

/* The ticks take the ground's accent: orange is lost on the navy. */
.safe-path__points li::before {
	background-color: var(--color-icon-soft);
}

.safe-path__note {
	margin-block: var(--space-25) 0;
	color: var(--color-accent);
	font-size: var(--font-5);
	font-weight: var(--weight-bold);
}

.safe-path__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-15) var(--space-3);
	align-items: center;
	margin-block-start: auto;
	padding-block-start: var(--action-gap);
}

/* Last on the card, after the buttons: never mistaken for one of the steps. */
.safe-path__emergency {
	display: flex;
	gap: var(--space-15);
	align-items: center;
	width: 100%;
	margin-block: var(--space-4) 0;
	padding: var(--space-2) var(--space-25);
	border-radius: var(--radius-card);
	background-color: var(--color-surface);
	font-size: var(--font-5);
	font-weight: var(--weight-semi);
	line-height: var(--leading-snug);
}

.safe-path__emergency-icon {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
}

.safe-path__emergency a {
	color: inherit;
	font-weight: var(--weight-bold);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.safe-path {
		padding: var(--space-5) var(--space-3);
	}

	.safe-path__subtitle {
		margin-block-start: var(--space-4);
	}

	.safe-path__sign img {
		width: 6rem;
	}

	/* Stacked at their own widths on the left (Harry, 2026-11-13). */
	.safe-path__actions {
		flex-direction: column;
		align-items: flex-start;
		align-self: stretch;
	}

	.safe-path__emergency {
		align-items: flex-start;
	}
}

/*
 * Become a Safe Place: a panel on the paper with a hairline and 16px corners, the label,
 * heading, copy, the orange ticks and two buttons on the left, the photo on the right with the
 * roundel set into its corner. Measured: panel 1468 x 663, 80 of padding (96 at the left),
 * photo 520 x 488 with 10px corners, roundel 144 set 14 in from the corner.
 */

.safe-places {
	padding: var(--space-10) var(--space-10) var(--space-10) var(--space-12);
	border: var(--border-hairline) solid var(--color-border);
	border-radius: var(--radius-panel);
	background-color: var(--color-bg);
}

.safe-places__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32.5rem;
	gap: var(--space-6) var(--space-8);
	align-items: center;
}

.safe-places__lead,
.safe-places__text {
	max-width: var(--measure);
	font-size: var(--font-5);
	font-weight: var(--weight-lead);
	line-height: var(--leading-lead);
}

.safe-places__lead {
	margin-block-start: var(--heading-copy-gap);
}

.safe-places .list-check {
	margin-block: var(--space-3);
}

.safe-places__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-block-start: var(--action-gap);
}

.safe-places__media {
	position: relative;
	aspect-ratio: 520 / 488;
	overflow: hidden;
	border-radius: var(--radius-card);
	background-color: var(--color-tile);
}

.safe-places__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The roundel, on its own alpha, 144 on the drawn 520 and 14 in from the photo's corner. */
.safe-places__badge {
	position: absolute;
	inset-inline-end: 2.7%;
	inset-block-end: 2.9%;
	width: 27.7%;
	height: auto;
}

@media (max-width: 1023px) {
	.safe-places {
		padding: var(--space-6);
	}

	.safe-places__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.safe-places__media {
		max-width: 32.5rem;
	}
}

@media (max-width: 767px) {
	/* No box on a phone (Harry, 2026-10-16). */
	.safe-places {
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
	}

	/* The photo moves above the buttons (Harry, 2026-10-16): the copy's children become grid items
	   and the actions take the last slot. The flow margins carry the rhythm, so no row gap. */
	.safe-places__inner {
		row-gap: 0;
	}

	.safe-places__copy {
		display: contents;
	}

	.safe-places__lead,
	.safe-places__text {
		margin-block-end: 0;
	}

	.safe-places__media {
		margin-block-start: var(--space-4);
	}

	/* Stacked, one width (Harry, 2026-10-16). */
	.safe-places__actions {
		order: 1;
		display: grid;
		gap: var(--space-15);
	}
}

/*
 * The safety band: a white card with the mark's colours running round its edge, the question,
 * the 999 note and the I Feel Unsafe button; beside it the Register as a Safe Place card on the
 * deep teal with the roundel breaking out of its corner. Measured: card 1000 x 120 beside a 443
 * card, roundel 144 overhanging the right edge by 25.
 */

.safety-band {
	display: grid;
	grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
	gap: var(--space-3);
	align-items: stretch;
}

.safety-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-4);
	padding: var(--space-4) var(--space-5);
	border: var(--stripe-width) solid transparent;
	border-radius: var(--radius-card);
	background:
		linear-gradient(var(--bsc-white), var(--bsc-white)) padding-box,
		var(--bsc-stripe) border-box;
	color: var(--bsc-ink);
}

.safety-card__title {
	margin: 0;
	color: var(--bsc-ink);
	font-size: var(--font-7);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-title);
}

.safety-card__note {
	margin-inline-start: auto;
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-style: italic;
	font-weight: var(--weight-light);
	margin-block-end: 0;
	
}

.register-card {
	position: relative;
	display: grid;
	align-content: center;
	gap: var(--space-1);
	padding: var(--space-3) calc(var(--badge) + var(--space-2)) var(--space-3) var(--space-4);
	border-radius: var(--radius-card);
	overflow: visible;
	text-decoration: none;
}

/* The arrow keeps the orange, as drawn; the underline swipe answers a hover anywhere on the card. */
.register-card .link-more__icon {
	color: var(--color-link-rule);
}

.register-card__title {
	margin: 0;
	font-size: var(--font-7);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-title);
}

/* The designer's roundel, on its own alpha, laid over the card and past its right edge. */
.register-card__badge {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: calc(-1 * var(--badge) / 6);
	width: var(--badge);
	height: auto;
	translate: 0 -50%;
}

/* On the homepage the band sits a step below Who We Work With. */
.home-safety {
	padding-block-start: var(--space-4);
}

@media (max-width: 1023px) {
	.home-partners {
		padding-bottom: 0;
	}
	.safety-band {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-safety {
    padding-block-start: var(--space-3);
	padding-block-end: var(--space-4);
}

	.safety-card__note {
		margin-inline-start: 0;
		flex-basis: 100%;
	}

	.register-card__badge {
		inset-inline-end: var(--space-2);
	}
}

/*
 * The hero search: a 64 tall white field with the mark's colours round its edge and the Search
 * Resources button inside its right end; the quick searches beneath as translucent chips.
 * The filter bar is the white strip above a resource grid: pill toggles, a priority select
 * and a search field.
 */

.search-bar {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	min-height: var(--search-h);
	padding: 0.375rem 0.375rem 0.375rem var(--space-25);
	border: 2px solid transparent;
	border-radius: var(--radius-card);
	background:
		linear-gradient(var(--bsc-white), var(--bsc-white)) padding-box,
		var(--bsc-stripe) border-box;
	color: var(--bsc-ink);
}

.search-bar__icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--bsc-deep);
}

.search-bar__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 0.5rem;
	border: 0;
	background: none;
	color: var(--bsc-ink);
	font-size: var(--font-4);
}

.search-bar__input::placeholder {
	color: rgb(var(--bsc-deep-rgb) / 0.5);
}

.search-bar__input:focus-visible {
	outline: none;
}

.search-bar:focus-within {
	box-shadow: 0 0 0 var(--focus-width) rgb(var(--bsc-deep-rgb) / 0.35);
}

/* The button inside the field is always the deep teal, whatever ground the field sits on. */
.search-bar .button-029 {
	--button-029-color-background: var(--bsc-deep);
	--button-029-color: var(--bsc-white);
	--button-029-hover-color-background: var(--bsc-teal);
	--button-029-hover-color: var(--bsc-white);
	--button-029-padding: calc((var(--search-h) - 0.75rem - 4px - 1em) / 2) var(--btn-pad);

	flex: none;
}

.quick-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-15);
	margin-block-start: var(--space-2);
	font-size: var(--font-3);
}

.quick-search__label {
	font-weight: var(--weight-semi);
}

.quick-search__chip {
	display: inline-flex;
	align-items: center;
	min-height: var(--tag-h-lg);
	padding: 0 0.875rem;
	border-radius: var(--radius-sm);
	background-color: var(--color-surface-soft);
	color: var(--color-text);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	text-decoration: none;
	transition: background-color 0.35s var(--ease-in-out);
}

.quick-search__chip:is(:hover, :focus-visible) {
	background-color: rgb(var(--bsc-white-rgb) / 0.24);
	color: var(--color-text);
}

/* -- The filter bar ------------------------------------------------------- */

/* On the ground itself, no box round it (Harry, 2026-10-15): the chips and fields carry their own edges. */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-15);
	margin-block-end: var(--space-3);
}

/* Above the phone the options are no box: the pills and the select sit in the bar as they always did. */
.filter-bar__options {
	display: contents;
}

.filter-bar__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pill {
	display: inline-flex;
	align-items: center;
	min-height: var(--pill-h);
	padding: 0 1rem;
	border: var(--border-hairline) solid var(--color-border);
	border-radius: var(--radius-btn);
	background-color: var(--bsc-white);
	color: var(--bsc-deep);
	font-size: var(--font-4);
	font-weight: var(--weight-bold);
	text-decoration: none;
	transition: background-color 0.35s var(--ease-in-out), border-color 0.35s var(--ease-in-out);
}

.pill:is(:hover, :focus-visible) {
	border-color: var(--bsc-deep);
	color: var(--bsc-deep);
}

.pill.is-active,
.pill[aria-pressed='true'],
.pill[aria-expanded='true'] {
	border-color: var(--bsc-green-soft);
	background-color: var(--bsc-green-soft);
}

.filter-bar__field,
.filter-bar__search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-15);
}

.filter-bar__label {
	color: var(--color-text-muted);
	font-size: var(--font-1);
}

.filter-bar .input,
.filter-bar .select {
	width: auto;
	min-height: var(--pill-h);
	font-size: var(--font-4);
	font-weight: var(--weight-bold);
	color: var(--bsc-deep);
}

.filter-bar .select {
	min-width: 13rem;
}

.filter-bar .input-icon .input {
	width: 12rem;
}

/* The Filters button is the phone's (below); the count sits after the word when any filter is on. */
.filter-bar__toggle {
	display: none;
	gap: 0.5rem;
}

.filter-bar__toggle-icon {
	width: 1rem;
	height: 1rem;
}

.filter-bar__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding-inline: 0.3rem;
	border-radius: var(--radius-round);
	background-color: var(--bsc-deep);
	color: var(--bsc-paper);
	font-size: var(--font-1);
	line-height: 1;
}

/* The select and the search sit at the right; the search alone when there is no select. */
@media (min-width: 768px) {
	.filter-bar__field,
	.filter-bar:not(:has(.filter-bar__field)) .filter-bar__search {
		margin-inline-start: auto;
	}
}

@media (max-width: 767px) {
	/* The icon and the field share the first row, the button takes the second (Harry, 2026-10-16). */
	.search-bar {
		flex-wrap: wrap;
		gap: 0.375rem var(--space-1);
		padding-inline: 0.75rem 0.375rem;
	}

	.search-bar__input {
		flex: 1 1 0;
		min-height: 2.75rem;
	}

	.search-bar .button-029 {
		flex: 1 1 100%;
		--button-029-padding: calc((var(--btn-height) - 1em) / 2) var(--btn-pad);
	}

	/* The quick searches: the label on its own line, the chips on one even gap. */
	.quick-search {
		gap: var(--space-1);
	}

	.quick-search__label {
		flex-basis: 100%;
	}

	/* The options behind the Filters button, the search beside it filling the row (Harry, 2026-10-16). */
	.has-js .filter-bar__toggle {
		display: inline-flex;
	}

	.filter-bar__search {
		flex: 1 1 0;
	}

	.filter-bar__search .input-icon {
		flex: 1 1 0;
	}

	.filter-bar .input-icon .input {
		width: 100%;
	}

	.filter-bar__options {
		display: grid;
		gap: var(--space-15);
		flex-basis: 100%;
		order: 1;
	}

	.has-js .filter-bar__options:not(.is-open) {
		display: none;
	}

	.filter-bar__options.is-open {
		transition: opacity var(--duration) var(--ease), translate var(--duration) var(--ease);

		@starting-style {
			opacity: 0;
			translate: 0 -0.25rem;
		}
	}

	.filter-bar__field {
		display: grid;
		gap: 0.375rem;
	}

	.filter-bar .select {
		width: 100%;
		min-width: 0;
	}
}

/* -- The results page ----------------------------------------------------- */

.search-results {
	padding-block: var(--space-4) var(--space-8);
}

.search-results__form {
	max-width: 56rem;
}

.search-results__scopes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: var(--space-3);
}

.search-results__grid {
	margin-block-start: var(--space-3);
}

.search-results__empty {
	margin-block-start: var(--space-4);
}

/* Mobile rhythm (Harry, 2026-10-15): sections sit 56 above and below unless they run into the next. */
@media (max-width: 767px) {
	.search-results {
		padding-block: var(--space-4) var(--section-y);
	}
}

/*
 * The row that opens a section: the eyebrow and heading at the left, the section's links sat
 * on the heading's baseline at the right; stacked on a phone. 48 to whatever follows.
 */

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--space-3) var(--space-6);
	align-items: end;
	margin-block-end: var(--heading-gap);
}

.section-head__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-15);
	margin-block-end: 0.125rem;
}

/* On a listing page the row's heading is the page's title, set like the homepage's section heading. */
.section-head__title {
	color: var(--color-heading);
	font-family: var(--font-sans);
	font-size: var(--font-12);
	line-height: var(--leading-heading);
}

/* On the paper the link is a white button with a hairline edge, as drawn. */
.section-head__links .button-029[data-theme='paper'] {
	--button-029-edge: var(--color-border);
}

/*
 * Stacked, a link above the cards it points at reads as a heading for nothing (Harry,
 * 2026-10-15), so the row dissolves into its section's column and the links take the last
 * slot, under the cards and the pagination.
 */
@media (max-width: 767px) {
	:where(:has(> .section-head)) {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.section-head {
		display: contents;
	}

	.section-head > :first-child {
		margin-block-end: var(--heading-gap);
	}

	/* The links stack at one width, the widest's, centred (Harry, 2026-10-16). */
	.section-head__links {
		order: 99;
		display: grid;
		grid-template-columns: minmax(0, max-content);
		justify-content: center;
		margin-block: var(--space-4) 0;
	}
}

/*
 * A section whose View All is a text link at the left on a phone and the button otherwise (Harry,
 * 2026-10-16: the home's news and events). Both are in the markup; one shows at a time.
 */
.section-head__link-plain {
	display: none;
}

@media (max-width: 767px) {
	.section-head__links--plain {
		justify-content: start;
	}

	.section-head__links--plain .button-029 {
		display: none;
	}

	.section-head__links--plain .section-head__link-plain {
		display: inline-flex;
	}
}

/*
 * The footer on the deep teal: the wordmark at the left, four columns of links, and the
 * St Helier skyline along the foot. Measured: columns from 642, 299 apart.
 */

.site-footer {
	position: relative;
	padding-block-start: var(--space-12);
	overflow: clip;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
	gap: var(--space-6);
	align-items: start;
}

.site-footer__logo {
	display: block;
	width: var(--logo-width);
	color: var(--bsc-paper);
}

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-4);
}

.site-footer__heading {
	margin-block-end: var(--space-15);
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: var(--font-4);
	font-weight: var(--weight-bold);
	letter-spacing: var(--tracking-title);
}

.site-footer__link {
	display: inline-block;
	padding-block: 0.3em;
	color: var(--color-text-muted);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: 1.4;
	text-decoration: none;
}

.site-footer__link:is(:hover, :focus-visible) {
	color: var(--color-text);
}

.site-footer__social {
	display: flex;
	gap: 0.5rem;
	margin-block-start: var(--space-2);
}

.site-footer__profile {
	display: block;
	width: 1.75rem;
	color: var(--bsc-paper);
	transition: opacity var(--duration-fast) var(--ease);
}

.site-footer__profile:is(:hover, :focus-visible) {
	opacity: 0.8;
}

.site-footer__skyline {
	margin-block-start: var(--space-10);
}

.site-footer__skyline-image {
	width: 100%;
	height: auto;
}

@media (max-width: 1023px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-4) var(--space-3);
	}
}

/* Mobile rhythm: the footer starts 56 under the last section, as the sections sit (Harry, 2026-10-16). */
@media (max-width: 767px) {
	.site-footer {
		padding-block-start: var(--section-y);
	}
}

/*
 * A figure with its caption: 25% in teal, 40 in blue, 4 in orange, each over two lines of
 * 15 Light. On a white card with a hairline when it stands alone (the annual report page).
 */

.stat {
	display: grid;
	align-content: start;
	gap: 0.375rem;
}

.stat__figure {
	color: var(--stat, var(--bsc-teal));
	font-size: var(--font-12);
	font-weight: var(--weight-bold);
	line-height: 1;
	letter-spacing: var(--tracking-heading);
}

.stat__label {
	max-width: 16rem;
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.stat--card {
	padding: var(--space-3) var(--space-3) var(--space-4);
}

.stat-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
	gap: var(--space-3);
}

/*
 * The one-sentence statement above the framework explorer: 48 Light in the deep teal with the
 * picked-out words in Bold, centred on the 21em measure drawn.
 */

.statement {
	max-width: 21em;
	margin: 0 auto;
	color: var(--color-title);
	font-family: var(--font-sans);
	font-size: var(--font-13);
	font-weight: var(--weight-light);
	line-height: 1.25;
	letter-spacing: var(--tracking-heading);
	text-align: center;
	text-wrap: pretty;
}

.statement strong {
	font-weight: var(--weight-bold);
}

/* On a phone it comes down a rung so it balances over six lines rather than seven. */
@media (max-width: 767px) {
	.statement {
		font-size: var(--font-11);
	}
}

/*
 * Tags: the type and priority on a resource card, the Partnership badge, the topics in the
 * framework panel, the chips on an event card. 28 tall at 14 Bold with 4px corners, a step up
 * from the drawn 24 and 12. The label is centred on its capitals, not on the font's box: Aptos
 * carries a deep descender space that would otherwise sit the word low in the pill. An affiliate
 * in the framework is a white pill at 32 with the organisation's small icon before its name.
 */

.tag {
	display: inline-flex;
	align-items: center;
	min-height: var(--tag-h);
	padding: 0 0.75rem;
	border-radius: var(--radius-sm);
	background-color: var(--bsc-green-soft);
	color: var(--bsc-deep);
	font-size: var(--font-tag);
	font-weight: var(--weight-bold);
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.35s var(--ease-in-out), color 0.35s var(--ease-in-out);
}

/* The label's box trimmed to its capitals where the browser can; a nudge where it cannot. */
.tag__label {
	display: block;
	padding-block-end: 0.12em;
}

@supports (text-box-trim: trim-both) {
	.tag__label {
		padding-block-end: 0;
		text-box: trim-both cap alphabetic;
	}
}

.tag--priority {
	background-color: var(--bsc-ink);
	color: var(--bsc-paper);
}

.tag--partner {
	background-color: color-mix(in srgb, var(--bsc-blue) 12%, var(--bsc-white));
	color: var(--bsc-blue);
}

.tag--outline {
	border: var(--border-hairline) solid var(--color-border);
	background-color: var(--bsc-white);
	color: var(--bsc-ink);
}

/* A topic in the framework panel: a soft green link, 32 tall, SemiBold. */
.tag--topic {
	min-height: var(--tag-h-lg);
	padding-inline: 0.875rem;
	background-color: color-mix(in srgb, var(--bsc-green) 12%, var(--bsc-white));
	color: var(--bsc-green);
	font-size: var(--font-3);
	font-weight: var(--weight-semi);
}

a.tag--topic:is(:hover, :focus-visible) {
	background-color: var(--bsc-green);
	color: var(--bsc-white);
}

/* "+ 12 More": plain text at the end of the topics. */
.tag--more {
	min-height: var(--tag-h-lg);
	padding-inline: 0.25rem;
	background-color: transparent;
	color: var(--color-text);
	font-size: var(--font-3);
	font-weight: var(--weight-semi);
}

a.tag--more:is(:hover, :focus-visible) {
	color: var(--color-link-hover);
}

/* The grey chips on an event card: Education, Young people. */
.tag--chip {
	min-height: var(--tag-h-lg);
	padding-inline: 0.875rem;
	background-color: var(--color-surface-soft);
	color: var(--color-text);
	font-size: var(--font-3);
	font-weight: var(--weight-body);
}

/* An affiliate in the framework: its icon at 20 and its name, opening its site. */
.tag--affiliate {
	gap: 0.5rem;
	max-width: 100%;
	min-height: var(--tag-h-lg);
	padding-inline: 0.5rem 0.875rem;
	white-space: normal;   /* a long name wraps rather than widening a phone's panel */
	line-height: 1.2;
	padding-block: 0.25rem;
	border: var(--border-hairline) solid var(--color-border);
	background-color: var(--bsc-white);
	color: var(--color-title);
	font-size: var(--font-3);
	font-weight: var(--weight-semi);
	transition: border-color 0.35s var(--ease-in-out), background-color 0.35s var(--ease-in-out), color 0.35s var(--ease-in-out);
}

a.tag--affiliate:is(:hover, :focus-visible) {
	border-color: var(--bsc-deep);
	background-color: var(--bsc-deep);
	color: var(--bsc-paper);
}

.tag__icon {
	display: block;
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	overflow: hidden;
	border-radius: 3px;
}

.tag__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/*
 * A team card, 347 wide as measured, two or more to the row. Without a photo it is a profile
 * panel: the name in Display, the role beneath, the contact email at the foot behind a
 * hairline, at a steady height so a row's feet line up. With a photo (Cirsty, 2026-11-03,
 * asked for photos; Harry, 2026-11-10: "left aligned images with content on the right") the
 * photo stands at the left, a 160 square inset 20, and the same copy runs beside it.
 */

.team-card {
	display: flex;
	flex-direction: column;
	min-height: 11.25rem;
	padding: var(--space-4) var(--space-3) var(--space-3);
}

.team-card--photo {
	display: grid;
	grid-template-columns: 10rem 1fr;
	grid-template-rows: auto auto 1fr;
	column-gap: var(--space-3);
	padding: var(--space-25);
}

.team-card__media {
	grid-row: 1 / -1;
	align-self: start;   /* a square whatever the copy's height */
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: calc(var(--radius-card) - 4px);
	background-color: var(--color-tile);
}

.team-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card__name {
	margin-block: 0 0.125rem;
	color: var(--color-heading);
	font-family: var(--font-display);
	font-size: var(--font-7);
	font-weight: var(--weight-title);
	line-height: var(--leading-title);
}

/* Beside a photo the name's cap height meets the photo's top edge. */
.team-card--photo .team-card__name {
	padding-block-start: 0.25rem;
}

.team-card__role {
	margin-block-end: var(--space-3);
	color: var(--color-text-soft);
	font-size: var(--font-3);
	font-weight: var(--weight-light);
	line-height: var(--leading-snug);
}

.team-card__email {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-block-start: auto;   /* to the foot: the flex column's end, or the grid's last row */
	padding-block-start: var(--space-2);
	border-block-start: var(--border-hairline) solid var(--color-border);
	color: var(--color-title);
	font-size: var(--font-3);
	font-weight: var(--weight-semi);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.team-card__email:is(:hover, :focus-visible) {
	color: var(--color-title);
}

.team-card__email-icon {
	flex: none;
	width: 1rem;
	height: 1rem;
	color: var(--bsc-teal);
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: var(--card-gap);
}

/*
 * The 18rem floor sits between a fifth and a quarter of the column, so the row holds at most
 * four: two people take half each, three a third, four a quarter, and a fifth starts a new row
 * at a quarter wide. Fewer, wider cards come from auto-fit collapsing the empty tracks. Once
 * any card carries a photo the floor rises to 26rem, three to the row at most, so the copy
 * beside a photo never drops under about 250.
 */
.team-grid:has(.team-card--photo) {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}

/* Compact on a phone (Harry, 2026-10-16): the 44 tap height of the email carries the room under the hairline. */
@media (max-width: 767px) {
	.team-card {
		min-height: 0;
		padding: var(--space-25) var(--space-25) var(--space-15);
	}

	.team-card--photo {
		grid-template-columns: 6rem 1fr;
		column-gap: var(--space-2);
		padding: var(--space-15);
	}

	.team-card__role {
		margin-block-end: var(--space-15);
	}

	.team-card__email {
		min-height: 44px;
		padding-block-start: 0;
	}
}

/*
 * The designer's tile band along the top of a section (bg-pattern.svg): a 4% ink wash through
 * the tiles' own alpha, lifted so the first row is cut by the top edge and gone by 85% down.
 * The section carries .tile-band and prints the span before its container.
 */

.tile-band {
	position: relative;
	overflow: clip;
}

.tile-band__pattern {
	position: absolute;
	inset: -8rem 0 auto;
	height: 30rem;
	background-color: rgb(var(--bsc-ink-rgb) / 0.3);
	-webkit-mask-image: url('/wp-content/themes/basc-theme/assets/svg/bg-pattern.svg'), linear-gradient(to bottom, black, transparent 85%);
	-webkit-mask-size: auto 100%, 100% 100%;
	-webkit-mask-repeat: repeat-x, no-repeat;
	-webkit-mask-position: center top, 0 0;
	-webkit-mask-composite: source-in;
	mask-image: url('/wp-content/themes/basc-theme/assets/svg/bg-pattern.svg'), linear-gradient(to bottom, black, transparent 85%);
	mask-size: auto 100%, 100% 100%;
	mask-repeat: repeat-x, no-repeat;
	mask-position: center top, 0 0;
	mask-composite: intersect;
	pointer-events: none;
}

.tile-band > .container {
	position: relative;
}

@media (max-width: 767px) {
	.tile-band__pattern {
		inset-block-start: -4rem;
		height: 18rem;
	}
}

/*
 * Osmo Supply's Underline Link Animation, as supplied. The line draws in from the left on hover
 * and leaves to the right. [data-underline-link] on a link, or on a span inside a link that
 * carries [data-hover]. The "alt" form keeps the line at rest and swaps it on hover: inline copy
 * links use that, so they are still underlined when nobody is hovering.
 */

[data-underline-link] {
  text-decoration: none;
  position: relative;
}

[data-underline-link]::before,
[data-underline-link="alt"]::before,
[data-underline-link="alt"]::after{
  content: "";
  position: absolute;
  bottom: -0.0625em;
  left: 0;
  width: 100%;
  height: 0.0625em;
  background-color: currentColor;
  transition: transform 0.735s cubic-bezier(0.625, 0.05, 0, 1);
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
}

[data-underline-link="alt"]::before {
  transform-origin: left;
  transform: scaleX(1) rotate(0.001deg);
  transition-delay: 0.3s;
}

[data-underline-link="alt"]::after {
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
  transition-delay: 0s;
}

@media (hover: hover) and (pointer: fine) {
  [data-hover]:hover [data-underline-link]::before,
  [data-underline-link]:hover::before {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
  }  
  
  [data-hover]:hover [data-underline-link="alt"]::before,
  [data-underline-link="alt"]:hover::before {
    transform-origin: right;
    transform: scaleX(0) rotate(0.001deg);
    transition-delay: 0s;
  }
  
  [data-hover]:hover [data-underline-link="alt"]::after,
  [data-underline-link="alt"]:hover::after {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
    transition-delay: 0.3s;
  }
}

/* -- Ours: keyboard focus draws the line too ----------------------------- */

[data-hover]:focus-visible [data-underline-link]::before,
[data-underline-link]:focus-visible::before {
  transform-origin: left;
  transform: scaleX(1) rotate(0.001deg);
}

