/*
 * THE KIT'S TOKENS — one grid every part of the kit stands on (Mark, 2026-10-19: "make sure when we build we can
 * control things like radius and text size etc make sure it's all tokenized and available to ai as a starting point
 * but can be easily modified and changed individually if it needs to go off grid"). The values are the filter kit
 * brief's (~/Downloads/filter-kit-brief.md): "polish and consistency … every control should look like it came from the
 * same hand".
 *
 * THREE LEVELS, each a step further off the grid:
 *   1. the grid       --gcb-kit-*, here, at the page's root and weighing nothing (:where). A site, a theme or the AI
 *                     sets one on any box — `[--gcb-kit-accent:#1a1dfd] [--gcb-kit-radius-field:4px]` — and every part
 *                     inside follows.
 *   2. one part       each part reads its own token first and the grid after — a chip's radius is
 *                     var(--gcb-chip-radius, var(--gcb-kit-radius-full)) — so `[--gcb-chip-radius:6px]` changes the
 *                     chips and nothing else. A part's tokens are only ever read, never set here, so they can be set
 *                     at any level.
 *   3. one element    classes written on a part make it the design's, whole (stamped data-gcb-own on the server; the parts' looks are for the rest).
 *
 * The colours follow the site where its theme names them (accent, contrast, base), the brief's otherwise; the tint,
 * the on-tint text and the hover accent are mixed from the accent, so any brand colour holds together. The type is
 * the site's own; the brief's demo face was Instrument Sans.
 */

:where(:root) {
	/* COLOUR */
	/* ONE COLOUR WITH THE SITE'S BUTTONS (2026-10-21): the theme's accent, else the site's primary button fill (gcb-pro
	   SiteButtons, --gcb-btn-primary-bg — set from Site settings, never from this, so no cycle), else the theme's primary.
	   A primary button with no fill set takes this accent in turn */
	--gcb-kit-accent: var(--wp--preset--color--accent, var(--gcb-btn-primary-bg, var(--wp--preset--color--primary, #5b3df5)));
	--gcb-kit-accent-hover: color-mix(in srgb, var(--gcb-kit-accent) 86%, #000);
	--gcb-kit-ink: var(--wp--preset--color--contrast, #17171c);
	--gcb-kit-muted: color-mix(in srgb, var(--gcb-kit-ink) 68%, var(--gcb-kit-surface));
	/* THE NEUTRALS FOLLOW THE SITE (2026-10-26): mixed from the ink and the surface like --gcb-kit-muted, so a dark theme gets
	   dark lines and grounds; on the kit's light pair they come to #a1a1aa-ish, #d4d4d8, #e4e4e7, #f6f6f4, #f1f1ef */
	--gcb-kit-subtle: color-mix(in srgb, var(--gcb-kit-ink) 39%, var(--gcb-kit-surface));
	--gcb-kit-line: color-mix(in srgb, var(--gcb-kit-ink) 18%, var(--gcb-kit-surface));
	--gcb-kit-line-soft: color-mix(in srgb, var(--gcb-kit-ink) 12%, var(--gcb-kit-surface));
	/* ON ANY GROUND (2026-11-15): a component that sits on a section's own colour cannot use the lines above, which are
	   mixed from the site's ink and surface. This one is made of the colour of the words where it is used. */
	--gcb-kit-rule: var(--wp--custom--kit--rule, color-mix(in srgb, currentColor 18%, transparent));
	--gcb-kit-rule-strong: var(--wp--custom--kit--rule-strong, color-mix(in srgb, currentColor 40%, transparent));
	--gcb-kit-wash: var(--wp--custom--kit--wash, color-mix(in srgb, currentColor 6%, transparent));
	--gcb-kit-quiet: var(--wp--custom--kit--quiet, color-mix(in srgb, currentColor 68%, transparent));
	--gcb-kit-ground: color-mix(in srgb, var(--gcb-kit-ink) 4%, var(--gcb-kit-surface));
	--gcb-kit-track: color-mix(in srgb, var(--gcb-kit-ink) 6%, var(--gcb-kit-surface));
	--gcb-kit-surface: var(--wp--preset--color--base, #fff);
	--gcb-kit-tint: color-mix(in srgb, var(--gcb-kit-accent) 10%, var(--gcb-kit-surface));
	--gcb-kit-tint-line: color-mix(in srgb, var(--gcb-kit-accent) 22%, var(--gcb-kit-surface));
	--gcb-kit-on-tint: color-mix(in srgb, var(--gcb-kit-accent) 82%, #000);
	--gcb-kit-on-accent: var(--wp--preset--color--on-accent, #fff);
	--gcb-kit-rating: var(--wp--custom--kit--rating, #e8a317);
	--gcb-kit-rating-half: var(--wp--custom--kit--rating-half, #f2cf85);
	--gcb-kit-switch-off: var(--wp--custom--kit--switch-off, #c4c4ca);
	--gcb-kit-scrim: color-mix(in srgb, var(--gcb-kit-ink) 40%, transparent);
	--gcb-kit-focus-ring: 0 0 0 3px color-mix(in srgb, var(--gcb-kit-accent) 16%, transparent);
	/* THE KEYBOARD'S MARK, TWO KINDS (2026-10-21, "make sure it's consistent"): a box to type in takes the accent's line and
	   the soft ring above (--gcb-kit-focus-ring); a thing to press — a button, a day, a segment, a star, a chip's × —
	   takes this outline, off its edge. Each part reads these, never its own */
	--gcb-kit-focus-outline: 2px solid var(--gcb-kit-accent);
	--gcb-kit-focus-offset: var(--wp--custom--kit--focus-offset, 2px);
	/* OFF, one look for every control and button: faded, a not-allowed pointer */
	--gcb-kit-disabled: var(--wp--custom--kit--disabled, 0.5);
	/* WHAT WENT WRONG (2026-10-21, one control layer for forms, filters and built sections): a field's error, its ring */
	--gcb-kit-error: var(--wp--preset--color--error, #c62828);
	--gcb-kit-error-ring: 0 0 0 3px color-mix(in srgb, var(--gcb-kit-error) 16%, transparent);
	/* WHAT WENT RIGHT, A WARNING, SOMETHING TO KNOW (2026-11-15: notices, badges and toasts each asked for these): the
	   theme's own where it names them. Their words-on colours beside them; a tint of one is mixed where it is used. */
	--gcb-kit-success: var(--wp--preset--color--success, #1f7a45);
	--gcb-kit-warning: var(--wp--preset--color--warning, #b45f06);
	--gcb-kit-info: var(--wp--preset--color--info, var(--gcb-kit-accent));
	--gcb-kit-on-success: var(--wp--custom--kit--on-success, #fff);
	--gcb-kit-on-warning: var(--wp--custom--kit--on-warning, #fff);
	--gcb-kit-on-info: var(--wp--custom--kit--on-info, var(--gcb-kit-on-accent));
	--gcb-kit-on-error: var(--wp--custom--kit--on-error, #fff);
	--gcb-kit-on-scrim: var(--wp--custom--kit--on-scrim, #fff);
	/* THE RARE COLOUR AND THE GRADIENT (Mark, 2026-11-16: "they'll use a rarely used colour from their palette for an
	   underline and they'll have nice text styles sometimes like gradient text"). Accents with a job, not decoration:
	   the highlight marks the one thing a section is about (a phrase, a price, "New"), and works because it is rare; the
	   gradient is for a page's peak moment, on its biggest words only. The emphasis part uses both. */
	--gcb-kit-highlight: var(--wp--preset--color--highlight, var(--wp--custom--kit--highlight, var(--gcb-kit-accent)));
	--gcb-kit-gradient: var(--wp--preset--gradient--highlight, var(--wp--custom--kit--gradient, linear-gradient(90deg, var(--gcb-kit-accent), var(--gcb-kit-highlight))));
	/* THE TICK, drawn once (a tick box, a chosen option, a swatch): a mask, coloured by whatever paints it */
	--gcb-kit-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");

	/* TYPE — one size per role: never let one control drift */
	--gcb-kit-font: var(--wp--custom--kit--font, inherit);
	--gcb-kit-text-caption: var(--wp--custom--kit--text-caption, 12px); /* field labels, captions */
	--gcb-kit-text-meta: var(--wp--custom--kit--text-meta, 13px); /* counts, meta */
	--gcb-kit-text-control: var(--wp--custom--kit--text-control, 14px); /* chips, segmented, menu items, buttons, presets */
	--gcb-kit-text-body: var(--wp--custom--kit--text-body, 15px); /* body, options */
	--gcb-kit-text-section: var(--wp--custom--kit--text-section, 17px); /* a modal's section titles */
	--gcb-kit-text-title: var(--wp--custom--kit--text-title, 20px); /* a panel's title */
	--gcb-kit-weight-body: var(--wp--custom--kit--weight-body, 400);
	--gcb-kit-weight-control: var(--wp--custom--kit--weight-control, 600);
	--gcb-kit-weight-title: var(--wp--custom--kit--weight-title, 700);
	--gcb-kit-leading: var(--wp--custom--kit--leading, 1.4); /* a part's own line height: rows, chips and days stay their height whatever the block's text is */
	--gcb-kit-tracking: var(--wp--custom--kit--tracking, normal); /* its own letter spacing — a block in spaced capitals leaves the kit's words alone */
	--gcb-kit-case: var(--wp--custom--kit--case, none); /* its own case */

	/* READING TYPE (2026-11-15: the heading, text, card and figure parts each asked for these, and a site's look is
	   carried more by them than by anything else): the page's headings and running words, as a site sets them. */
	--gcb-kit-font-heading: var(--wp--preset--font-family--heading, var(--wp--custom--kit--font-heading, inherit));
	--gcb-kit-text-display: var(--wp--custom--kit--text-display, clamp(2.5rem, 1.54rem + 3.95vw, 4.5rem));
	--gcb-kit-text-headline: var(--wp--custom--kit--text-headline, clamp(1.875rem, 1.33rem + 2.22vw, 3rem));
	--gcb-kit-text-heading: var(--wp--custom--kit--text-heading, clamp(1.375rem, 1.19rem + 0.74vw, 1.75rem));
	--gcb-kit-text-lead: var(--wp--custom--kit--text-lead, 1.25rem);
	--gcb-kit-text-reading: var(--wp--custom--kit--text-reading, inherit);
	--gcb-kit-text-small: var(--wp--custom--kit--text-small, 0.875rem);
	--gcb-kit-weight-heading: var(--wp--custom--kit--weight-heading, 700);
	--gcb-kit-leading-heading: var(--wp--custom--kit--leading-heading, 1.1);
	--gcb-kit-tracking-heading: var(--wp--custom--kit--tracking-heading, -0.015em);
	--gcb-kit-leading-reading: var(--wp--custom--kit--leading-reading, 1.6);
	/* A HEADING THAT IS A LINK IS NOT UNDERLINED UNDER THE POINTER (Mark, 2026-11-15: "unless it's an actual design choice
	   - and when it IS it's done carefully - links in headings never have the underline on hover"). A style that wants
	   it sets this to underline: a card's title, a person's name, an accordion's row, a heading in running text. */
	--gcb-kit-hover-heading: var(--wp--custom--kit--hover-heading, none);

	/* SIZE — every interactive control is one height */
	--gcb-kit-line-w: var(--wp--custom--kit--line-w, 1px); /* how thick a border is */
	--gcb-kit-control-h: var(--wp--custom--kit--control-h, 44px);
	--gcb-kit-field-h: var(--wp--custom--kit--field-h, 56px); /* a field with its label above its value */
	--gcb-kit-cta-h: var(--wp--custom--kit--cta-h, 48px); /* the panel's primary button */
	--gcb-kit-pill-h: var(--wp--custom--kit--pill-h, 32px); /* applied-filter pills: compact tags, the one exception */
	--gcb-kit-day: var(--wp--custom--kit--day, 40px); /* a calendar's day */
	--gcb-kit-check: var(--wp--custom--kit--check, 20px); /* a tick box, a radio */
	--gcb-kit-thumb: var(--wp--custom--kit--thumb, 24px); /* a slider's handle */
	--gcb-kit-switch-w: var(--wp--custom--kit--switch-w, 44px); /* a switch */
	--gcb-kit-switch-h: var(--wp--custom--kit--switch-h, 26px);
	--gcb-kit-drawer-w: var(--wp--custom--kit--drawer-w, 440px);
	--gcb-kit-modal-w: var(--wp--custom--kit--modal-w, 960px);

	/* RADIUS */
	--gcb-kit-radius-check: var(--wp--custom--kit--radius-check, 6px);
	--gcb-kit-radius-field: var(--wp--custom--radius--field, 10px);
	--gcb-kit-radius-card: var(--wp--custom--radius--card, 14px); /* cards, menus, the calendar */
	--gcb-kit-radius-panel: var(--wp--custom--radius--panel, 20px); /* panels, the modal */
	--gcb-kit-radius-full: var(--wp--custom--kit--radius-full, 999px); /* chips, pills, buttons, switches, segmented */

	/* SPACE */
	--gcb-kit-pad-panel: var(--wp--custom--kit--pad-panel, 24px);
	--gcb-kit-pad-control: var(--wp--custom--kit--pad-control, 16px);
	--gcb-kit-gap: var(--wp--custom--kit--gap, 12px);
	--gcb-kit-gap-s: var(--wp--custom--kit--gap-s, 8px);

	/* SHADOW */
	--gcb-kit-shadow-menu: var(--wp--custom--kit--shadow-menu, 0 12px 32px rgb(23 23 28 / 0.14), 0 2px 6px rgb(23 23 28 / 0.06));
	--gcb-kit-shadow-thumb: var(--wp--custom--kit--shadow-thumb, 0 1px 4px rgb(23 23 28 / 0.2));
	--gcb-kit-shadow-lift: var(--wp--custom--kit--shadow-lift, 0 1px 3px rgb(23 23 28 / 0.14), 0 1px 1px rgb(23 23 28 / 0.06));
	--gcb-kit-shadow-panel: var(--wp--custom--kit--shadow-panel, 0 24px 64px rgb(23 23 28 / 0.22));

	/* MOTION — feedback, spring, expand, menus, panels, results */
	--gcb-kit-dur-feedback: var(--wp--custom--kit--dur-feedback, 150ms);
	--gcb-kit-dur-spring: var(--wp--custom--kit--dur-spring, 280ms);
	--gcb-kit-dur-expand: var(--wp--custom--kit--dur-expand, 360ms);
	--gcb-kit-dur-menu: var(--wp--custom--kit--dur-menu, 180ms);
	--gcb-kit-dur-panel: var(--wp--custom--kit--dur-panel, 480ms);
	--gcb-kit-ease-spring: var(--wp--custom--kit--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1));
	--gcb-kit-ease-expand: var(--wp--custom--kit--ease-expand, cubic-bezier(0.2, 0.8, 0.2, 1));
	--gcb-kit-ease-panel: var(--wp--custom--kit--ease-panel, cubic-bezier(0.32, 0.72, 0, 1));
	/* NAMED EASES (Mark, 2026-11-10 — "some nice easings there for us"): osmo, a held start then a fast settle (deliberate,
	   the layered slider's); punch, off the mark at once then a long glide (snappy, confident) */
	--gcb-kit-ease-osmo: var(--wp--custom--kit--ease-osmo, cubic-bezier(0.625, 0.05, 0, 1));
	--gcb-kit-ease-punch: var(--wp--custom--kit--ease-punch, cubic-bezier(0.19, 1, 0.22, 1));
	--gcb-kit-press: var(--wp--custom--kit--press, 0.97);
}

@media (prefers-reduced-motion: reduce) {
	:where(:root) {
		--gcb-kit-dur-feedback: 0ms;
		--gcb-kit-dur-spring: 0ms;
		--gcb-kit-dur-expand: 0ms;
		--gcb-kit-dur-menu: 0ms;
		--gcb-kit-dur-panel: 0ms;
		--gcb-kit-press: 1;
	}
}

/* AN EASE BY NAME (2026-11-10, harness/docs/bone-ease.md 5): data-ease="punch" on a part sets --gcb-ease to that curve,
   for a part's CSS motion to read as var(--gcb-ease, <its own curve>). Zero weight, so any style wins; unset, nothing
   changes. A part's script reads data-ease itself (gcb-pro kit/_bones/ease.js), which also takes a cubic-bezier or a
   GSAP name; in CSS only these five names work (else style="--gcb-ease: cubic-bezier(…)"). */
:where([data-ease="osmo"]) { --gcb-ease: var(--gcb-kit-ease-osmo); }
:where([data-ease="punch"]) { --gcb-ease: var(--gcb-kit-ease-punch); }
:where([data-ease="spring"]) { --gcb-ease: var(--gcb-kit-ease-spring); }
:where([data-ease="expand"]) { --gcb-ease: var(--gcb-kit-ease-expand); }
:where([data-ease="panel"]) { --gcb-ease: var(--gcb-kit-ease-panel); }

/* accordion */
/* ACCORDION: rows that open. Every value is a token: the part's own first, the list's after (tokens/README.md).
   A look weighs nothing (:where), so a class the design writes on any of these elements wins. The exceptions are the
   elements a theme styles BY THEIR TAG (README rule 2): the trigger is a <button>, it may sit in a heading, and a body
   starts and ends with a p or a ul. Those rules weigh one attribute, so a theme's `button { … }` or `h3 { … }` does
   not undo the part, and they stand aside for an element the design marked data-gcb-own.
   Its own elements are reached by child steps (root > item > trigger, or root > item > heading > trigger), so a part
   inside a body is never touched.
   With no script every row is open. Its script closes them and sets data-gcb-kit-ready. */
:where([data-gcb-kit="accordion"]) { border-top: var(--gcb-accordion-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }
:where([data-gcb-kit="accordion"] > [data-gcb-kit-item]) { border-bottom: var(--gcb-accordion-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }

/* A HEADING ROUND THE TRIGGER (optional: <h3 data-gcb-kit-heading>): it is only there to be read out as a heading, so
   it brings no size, weight or room of its own */
[data-gcb-kit-heading]:where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > *):where(:not([data-gcb-own])) {
	margin: 0; padding: 0; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}

/* THE TRIGGER: the whole row is pressed, never shorter than anything pressed */
[data-gcb-kit-trigger]:where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > *, [data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-heading] > *):where(:not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between;
	width: 100%; min-width: 0; max-width: none; height: auto; min-height: var(--gcb-kit-control-h);
	gap: var(--gcb-accordion-gap, var(--gcb-kit-gap));
	padding: var(--gcb-accordion-pad, var(--gcb-kit-pad-control)) var(--gcb-accordion-pad-x, 0);
	margin: 0; border: 0; border-radius: 0; box-shadow: none; text-shadow: none;
	background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
	font-family: var(--gcb-kit-font); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	white-space: normal; overflow-wrap: break-word; text-decoration: none; text-decoration-thickness: var(--gcb-kit-line-w);
}
/* hovered: a row's heading is not underlined unless the site chose it (--gcb-kit-hover-heading); its mark is what says
   it opens. A theme's own `button:hover` fill is kept off */
[data-gcb-kit-trigger]:where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > *, [data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-heading] > *):where(:not([data-gcb-own])):hover { background: transparent; color: inherit; text-decoration-line: var(--gcb-kit-hover-heading); }
/* focused: the site's outline, in the colour of the words, so it shows on a section's own colour too */
[data-gcb-kit-trigger]:where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > *, [data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-heading] > *):where(:not([data-gcb-own])):focus-visible { background: transparent; color: inherit; outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
/* a row that cannot be opened */
[data-gcb-kit-trigger]:where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > *, [data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-heading] > *):where(:not([data-gcb-own])):disabled { background: transparent; color: inherit; opacity: var(--gcb-kit-disabled); cursor: not-allowed; text-decoration-line: none; }
/* with no script every row is open and there is nothing to press */
[data-gcb-kit-trigger]:where([data-gcb-kit="accordion"]:not([data-gcb-kit-ready]) > [data-gcb-kit-item] > *, [data-gcb-kit="accordion"]:not([data-gcb-kit-ready]) > [data-gcb-kit-item] > [data-gcb-kit-heading] > *):where(:not([data-gcb-own])) { cursor: default; text-decoration-line: none; }

/* THE MARK: an empty [data-gcb-kit-icon] is drawn as a plus that becomes a minus; one with a drawing in it is left
   alone. With no script nothing opens, so the drawn mark is not shown. */
:where([data-gcb-kit="accordion"] [data-gcb-kit-trigger] [data-gcb-kit-icon]) { flex: none; }
:where([data-gcb-kit="accordion"] [data-gcb-kit-trigger] [data-gcb-kit-icon]:empty) { position: relative; width: var(--gcb-accordion-mark, 0.75em); height: var(--gcb-accordion-mark, 0.75em); }
:where([data-gcb-kit="accordion"]:not([data-gcb-kit-ready]) [data-gcb-kit-trigger] [data-gcb-kit-icon]:empty) { display: none; }
:where([data-gcb-kit="accordion"] [data-gcb-kit-trigger] [data-gcb-kit-icon]:empty)::before,
:where([data-gcb-kit="accordion"] [data-gcb-kit-trigger] [data-gcb-kit-icon]:empty)::after {
	content: ""; position: absolute; inset: 0; margin: auto; background: currentColor;
	transition: rotate var(--gcb-kit-dur-spring) var(--gcb-kit-ease-expand);
}
:where([data-gcb-kit="accordion"] [data-gcb-kit-trigger] [data-gcb-kit-icon]:empty)::before { width: 100%; height: calc(var(--gcb-kit-line-w) * 2); }
:where([data-gcb-kit="accordion"] [data-gcb-kit-trigger] [data-gcb-kit-icon]:empty)::after { width: calc(var(--gcb-kit-line-w) * 2); height: 100%; }
:where([data-gcb-kit="accordion"] [data-gcb-kit-trigger][aria-expanded="true"] [data-gcb-kit-icon]:empty)::before { rotate: 180deg; }
:where([data-gcb-kit="accordion"] [data-gcb-kit-trigger][aria-expanded="true"] [data-gcb-kit-icon]:empty)::after { rotate: 90deg; }

/* THE BODY: its words sit in one inner box (the script makes it if the design did not), which carries the room under
   them, so a shut body is nothing at all. With no script the body carries that room itself. The room is the part's,
   so the first and last things in a body bring none of their own: by tag for the ones a theme gives margins to, a
   classed one too (a CMS puts classes on its paragraphs and lists), unless it is marked data-gcb-own. */
:where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > [data-gcb-kit-panel-inner], [data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel]:not(:has(> [data-gcb-kit-panel-inner]))) {
	padding: 0 var(--gcb-accordion-pad-x, 0) var(--gcb-accordion-pad, var(--gcb-kit-pad-control));
}
:where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > :first-child, [data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > [data-gcb-kit-panel-inner] > :first-child) { margin-top: 0; }
:where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > :last-child, [data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > [data-gcb-kit-panel-inner] > :last-child) { margin-bottom: 0; }
[data-gcb-kit-panel] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > :first-child):where(:not([data-gcb-own])) { margin-top: 0; }
[data-gcb-kit-panel] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > :last-child):where(:not([data-gcb-own])) { margin-bottom: 0; }
[data-gcb-kit-panel-inner] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > [data-gcb-kit-panel-inner] > :first-child):where(:not([data-gcb-own])) { margin-top: 0; }
[data-gcb-kit-panel-inner] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="accordion"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > [data-gcb-kit-panel-inner] > :last-child):where(:not([data-gcb-own])) { margin-bottom: 0; }

/* data-look="boxed": one box round the rows, each row with room at its sides; the focus mark sits inside the box */
:where([data-gcb-kit="accordion"][data-look="boxed"]) {
	border: var(--gcb-accordion-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	border-radius: var(--gcb-accordion-radius, var(--gcb-kit-radius-card));
}
:where([data-gcb-kit="accordion"][data-look="boxed"] > [data-gcb-kit-item]:last-child) { border-bottom: 0; }
[data-gcb-kit-trigger]:where([data-gcb-kit="accordion"][data-look="boxed"] > [data-gcb-kit-item] > *, [data-gcb-kit="accordion"][data-look="boxed"] > [data-gcb-kit-item] > [data-gcb-kit-heading] > *):where(:not([data-gcb-own])) {
	padding-inline: var(--gcb-accordion-pad-x, var(--gcb-kit-pad-control));
	border-radius: var(--gcb-accordion-radius, var(--gcb-kit-radius-card));
}
[data-gcb-kit-trigger]:where([data-gcb-kit="accordion"][data-look="boxed"] > [data-gcb-kit-item] > *, [data-gcb-kit="accordion"][data-look="boxed"] > [data-gcb-kit-item] > [data-gcb-kit-heading] > *):where(:not([data-gcb-own])):focus-visible { outline-offset: calc(var(--gcb-kit-focus-offset) * -2); }
:where([data-gcb-kit="accordion"][data-look="boxed"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > [data-gcb-kit-panel-inner], [data-gcb-kit="accordion"][data-look="boxed"] > [data-gcb-kit-item] > [data-gcb-kit-panel]:not(:has(> [data-gcb-kit-panel-inner]))) {
	padding-inline: var(--gcb-accordion-pad-x, var(--gcb-kit-pad-control));
}

[data-gcb-kit="accordion"][data-gcb-kit-ready] > [data-gcb-kit-item] > [data-gcb-kit-panel] { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--gcb-kit-dur-expand) var(--gcb-kit-ease-expand); } /* mechanic: how it opens */
[data-gcb-kit="accordion"][data-gcb-kit-ready] > [data-gcb-kit-item] > [data-gcb-kit-panel] > [data-gcb-kit-panel-inner] { min-height: 0; overflow: hidden; transition: padding-bottom var(--gcb-kit-dur-expand) var(--gcb-kit-ease-expand); } /* mechanic: so the row can be nothing, its room going with it */
@media not print {
	[data-gcb-kit="accordion"][data-gcb-kit-ready] > [data-gcb-kit-item] > [data-gcb-kit-panel][inert] { grid-template-rows: 0fr; } /* mechanic: shut (on paper every row is open) */
	[data-gcb-kit="accordion"][data-gcb-kit-ready] > [data-gcb-kit-item] > [data-gcb-kit-panel][inert] > [data-gcb-kit-panel-inner] { padding-bottom: 0; } /* mechanic: shut */
}

/* alert */
/* ALERT: a notice that stays where it is written. Every value is a token: the part's own first, the list's after
   (tokens/README.md).
   WEIGHT (README rule 2): its boxes (the root, the mark, the words) weigh nothing (:where), so a class the design
   writes on them wins. Its title, its action, its close and what is written in its words are elements a theme styles
   BY THEIR TAG (h3, a, button, p, ul, hr), so each look on those weighs ONE attribute and no more, and stands aside
   for an element the design made its own (data-gcb-own).
   Its wash and its edge are a share of ONE colour over whatever is behind it, and its words keep the colour of the
   words round it, so it sits on a section's own colour with nothing set. That colour is the words' own when no tone
   is written, and the site's info, success, warning or error colour for a tone.
   With no script it is whole and stays; its script only makes the close button work, and sets data-gcb-kit-ready. */
:where([data-gcb-kit="alert"]) {
	box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: flex-start;
	gap: var(--gcb-alert-gap, var(--gcb-kit-gap));
	/* an action that dropped under the words keeps the same space above it as there is between the others */
	row-gap: calc(var(--gcb-alert-gap, var(--gcb-kit-gap)) + (var(--gcb-alert-close, var(--gcb-kit-pill-h)) - 1lh) / 2);
	padding: var(--gcb-alert-pad, var(--gcb-kit-pad-control));
	border: var(--gcb-kit-line-w) solid color-mix(in srgb, var(--gcb-alert-tone, currentColor) var(--gcb-alert-edge, 25%), transparent);
	border-radius: var(--gcb-alert-radius, var(--gcb-kit-radius-card));
	background: color-mix(in srgb, var(--gcb-alert-tone, currentColor) var(--gcb-alert-wash, 8%), transparent);
	color: inherit;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-body);
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
	text-align: start;
}

/* THE TONES: data-tone="info | success | warning | error"; left out, it is made of the words' own colour */
:where([data-gcb-kit="alert"][data-tone="info"]) {
	border-color: color-mix(in srgb, var(--gcb-alert-tone, var(--gcb-kit-info)) var(--gcb-alert-edge, 25%), transparent);
	background: color-mix(in srgb, var(--gcb-alert-tone, var(--gcb-kit-info)) var(--gcb-alert-wash, 8%), transparent);
}
:where([data-gcb-kit="alert"][data-tone="success"]) {
	border-color: color-mix(in srgb, var(--gcb-alert-tone, var(--gcb-kit-success)) var(--gcb-alert-edge, 25%), transparent);
	background: color-mix(in srgb, var(--gcb-alert-tone, var(--gcb-kit-success)) var(--gcb-alert-wash, 8%), transparent);
}
:where([data-gcb-kit="alert"][data-tone="warning"]) {
	border-color: color-mix(in srgb, var(--gcb-alert-tone, var(--gcb-kit-warning)) var(--gcb-alert-edge, 25%), transparent);
	background: color-mix(in srgb, var(--gcb-alert-tone, var(--gcb-kit-warning)) var(--gcb-alert-wash, 8%), transparent);
}
:where([data-gcb-kit="alert"][data-tone="error"]) {
	border-color: color-mix(in srgb, var(--gcb-alert-tone, var(--gcb-kit-error)) var(--gcb-alert-edge, 25%), transparent);
	background: color-mix(in srgb, var(--gcb-alert-tone, var(--gcb-kit-error)) var(--gcb-alert-wash, 8%), transparent);
}

/* THE MARK: it hangs in the alert's own room, level with the first line, so the words and an action that dropped
   under them share one left edge. An empty [data-gcb-kit-icon] is drawn here: a ringed i with no tone; on a disc of
   the tone's colour an i for information, a tick for success, ! for a warning or an error. Its lines are a share of
   its own size, so a site with thick borders does not thicken them. One with a drawing in it is left alone, and takes
   the alert's colour. */
:where([data-gcb-kit="alert"]:has(> [data-gcb-kit-icon])) { padding-inline-start: calc(var(--gcb-alert-pad, var(--gcb-kit-pad-control)) + var(--gcb-alert-mark, 1.25rem) + var(--gcb-alert-gap, var(--gcb-kit-gap))); }
:where([data-gcb-kit="alert"] > [data-gcb-kit-icon]) {
	display: grid; place-items: center;
	inset-block-start: var(--gcb-alert-pad, var(--gcb-kit-pad-control)); inset-inline-start: var(--gcb-alert-pad, var(--gcb-kit-pad-control));
	width: var(--gcb-alert-mark, 1.25rem); height: 1lh;
	color: var(--gcb-alert-tone, currentColor);
}
[data-gcb-kit="alert"] > [data-gcb-kit-icon] { position: absolute; } /* mechanic: hung beside the words, so what wraps under them lines up with them */
:where([data-gcb-kit="alert"] > [data-gcb-kit-icon] > *) { display: block; max-width: 100%; max-height: 100%; }
:where([data-gcb-kit="alert"][data-tone="info"] > [data-gcb-kit-icon]) { color: var(--gcb-alert-tone, var(--gcb-kit-info)); }
:where([data-gcb-kit="alert"][data-tone="success"] > [data-gcb-kit-icon]) { color: var(--gcb-alert-tone, var(--gcb-kit-success)); }
:where([data-gcb-kit="alert"][data-tone="warning"] > [data-gcb-kit-icon]) { color: var(--gcb-alert-tone, var(--gcb-kit-warning)); }
:where([data-gcb-kit="alert"][data-tone="error"] > [data-gcb-kit-icon]) { color: var(--gcb-alert-tone, var(--gcb-kit-error)); }
:where([data-gcb-kit="alert"] > [data-gcb-kit-icon]:empty)::before,
:where([data-gcb-kit="alert"] > [data-gcb-kit-icon]:empty)::after {
	content: ""; grid-area: 1 / 1; box-sizing: border-box;
	width: var(--gcb-alert-mark, 1.25rem); height: var(--gcb-alert-mark, 1.25rem);
	border-radius: var(--gcb-kit-radius-full);
}
:where([data-gcb-kit="alert"] > [data-gcb-kit-icon]:empty)::before { border: calc(var(--gcb-alert-mark, 1.25rem) * 0.075) solid currentColor; }
:where([data-gcb-kit="alert"][data-tone] > [data-gcb-kit-icon]:empty)::before { background: currentColor; }
:where([data-gcb-kit="alert"] > [data-gcb-kit-icon]:empty)::after {
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 6v.01M10 9.5v5'/%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 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 6v.01M10 9.5v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
:where([data-gcb-kit="alert"]:is([data-tone="warning"], [data-tone="error"]) > [data-gcb-kit-icon]:empty)::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 5.5v5M10 14v.01'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 5.5v5M10 14v.01'/%3E%3C/svg%3E");
}
:where([data-gcb-kit="alert"][data-tone="success"] > [data-gcb-kit-icon]:empty)::after {
	scale: 0.64;
	-webkit-mask-image: var(--gcb-kit-tick);
	mask-image: var(--gcb-kit-tick);
}
:where([data-gcb-kit="alert"][data-tone="info"] > [data-gcb-kit-icon]:empty)::after { background: var(--gcb-alert-on-tone, var(--gcb-kit-on-info)); }
:where([data-gcb-kit="alert"][data-tone="success"] > [data-gcb-kit-icon]:empty)::after { background: var(--gcb-alert-on-tone, var(--gcb-kit-on-success)); }
:where([data-gcb-kit="alert"][data-tone="warning"] > [data-gcb-kit-icon]:empty)::after { background: var(--gcb-alert-on-tone, var(--gcb-kit-on-warning)); }
:where([data-gcb-kit="alert"][data-tone="error"] > [data-gcb-kit-icon]:empty)::after { background: var(--gcb-alert-on-tone, var(--gcb-kit-on-error)); }

/* ITS ACTION: one quiet button, made of the words' colour: at the end of the row, or under the words when it is
   written inside them. A button or a link, so it weighs one attribute. */
[data-gcb-kit-action]:where([data-gcb-kit="alert"] :not([data-gcb-own])) {
	appearance: none; flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
	width: auto; max-width: 100%; min-width: 0;
	min-height: var(--gcb-alert-close, var(--gcb-kit-pill-h));
	margin: 0; padding: 0 var(--gcb-kit-gap);
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong);
	border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
	letter-spacing: inherit; text-transform: inherit; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* at the end of the row it is level with the first line and adds no height to a one-line alert */
[data-gcb-kit-action]:where([data-gcb-kit="alert"] > :not([data-gcb-own])) { margin-block: calc((1lh - var(--gcb-alert-close, var(--gcb-kit-pill-h))) / 2); }

/* ITS CLOSE: a quiet cross in the top corner, level with the first line, drawn here when the button is empty; one
   with a drawing in it is left alone. It sits a little into the alert's own room so its cross, not its edge, lines
   up with the words; the alert keeps that corner clear, so the action can drop under the words without it moving.
   Its corners are the action's, so the two read as a pair. A button, so it weighs one attribute. */
/* only once the script is up: with no script the cross is not shown, so its corner is not kept either */
:where([data-gcb-kit="alert"][data-gcb-kit-ready]:has(> [data-gcb-kit-close])) { padding-inline-end: calc(var(--gcb-alert-pad, var(--gcb-kit-pad-control)) + (1lh - var(--gcb-alert-close, var(--gcb-kit-pill-h))) / 2 + var(--gcb-alert-close, var(--gcb-kit-pill-h)) + var(--gcb-alert-gap, var(--gcb-kit-gap))); }
[data-gcb-kit-close]:where([data-gcb-kit="alert"] :not([data-gcb-own])) {
	appearance: none; display: grid; place-items: center; box-sizing: border-box;
	inset-block-start: calc(var(--gcb-alert-pad, var(--gcb-kit-pad-control)) + (1lh - var(--gcb-alert-close, var(--gcb-kit-pill-h))) / 2);
	inset-inline-end: calc(var(--gcb-alert-pad, var(--gcb-kit-pad-control)) + (1lh - var(--gcb-alert-close, var(--gcb-kit-pill-h))) / 2);
	width: var(--gcb-alert-close, var(--gcb-kit-pill-h)); height: var(--gcb-alert-close, var(--gcb-kit-pill-h));
	min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
	border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none; color: inherit; font: inherit; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
[data-gcb-kit="alert"] { position: relative; } /* mechanic: its mark and its close button are placed against it */
[data-gcb-kit="alert"] > [data-gcb-kit-close] { position: absolute; } /* mechanic: held in the top corner while the row wraps */
/* the cross: quieter than the words until it is pointed at or focused; its lines are a share of the button's size */
:where([data-gcb-kit="alert"] [data-gcb-kit-close]:not([data-gcb-own]):empty)::before,
:where([data-gcb-kit="alert"] [data-gcb-kit-close]:not([data-gcb-own]):empty)::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 40%; height: calc(var(--gcb-alert-close, var(--gcb-kit-pill-h)) * 0.05);
	border-radius: var(--gcb-kit-radius-full); background: var(--gcb-kit-quiet); rotate: 45deg;
	transition: background-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="alert"] [data-gcb-kit-close]:not([data-gcb-own]):empty)::after { rotate: -45deg; }
:where([data-gcb-kit="alert"] [data-gcb-kit-close]:not([data-gcb-own]):empty:is(:hover, :focus-visible))::before,
:where([data-gcb-kit="alert"] [data-gcb-kit-close]:not([data-gcb-own]):empty:is(:hover, :focus-visible))::after { background: currentColor; }

/* pointed at, pressed, focused: the same for the action and the close */
[data-gcb-kit-action]:where([data-gcb-kit="alert"] :not([data-gcb-own]):hover),
[data-gcb-kit-close]:where([data-gcb-kit="alert"] :not([data-gcb-own]):hover) { background: var(--gcb-kit-rule); }
[data-gcb-kit-action]:where([data-gcb-kit="alert"] :not([data-gcb-own]):active),
[data-gcb-kit-close]:where([data-gcb-kit="alert"] :not([data-gcb-own]):active) { scale: var(--gcb-kit-press); }
[data-gcb-kit-action]:where([data-gcb-kit="alert"] :not([data-gcb-own]):focus-visible),
[data-gcb-kit-close]:where([data-gcb-kit="alert"] :not([data-gcb-own]):focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* ITS WORDS: an optional title, then anything: a line, paragraphs, a list, a link, a rule. They take the row; when
   they would be narrower than --gcb-alert-words the action drops to a row of its own instead of squeezing them. A
   word too long for the row (an address, a reference) is broken rather than pushing the alert wider than its place. */
:where([data-gcb-kit="alert"] [data-gcb-kit-words]) { flex: 1 1 var(--gcb-alert-words, 10rem); min-width: 0; overflow-wrap: anywhere; }
/* what is written in them is paragraphs, lists and headings, which a theme spaces by their tags: one attribute */
[data-gcb-kit-words]:where([data-gcb-kit="alert"] *) > :where(:not([data-gcb-own])) { margin: 0; }
[data-gcb-kit-words]:where([data-gcb-kit="alert"] *) > :where(:not([data-gcb-own]) + :not([data-gcb-own])) { margin-block-start: var(--gcb-kit-gap-s); }
[data-gcb-kit-words]:where([data-gcb-kit="alert"] *) > :where([data-gcb-kit-title]:not([data-gcb-own]) + :not([data-gcb-own])) { margin-block-start: calc(var(--gcb-kit-gap-s) / 4); }
[data-gcb-kit-words]:where([data-gcb-kit="alert"] *) > :where([data-gcb-kit-action]:not([data-gcb-own])) { margin-block-start: var(--gcb-kit-gap); }
[data-gcb-kit-words]:where([data-gcb-kit="alert"] *) > :where(:is(ul, ol):not([data-gcb-own])) { padding-inline: var(--gcb-alert-indent, 1.25em) 0; }
[data-gcb-kit-title]:where([data-gcb-kit="alert"] :not([data-gcb-own])) {
	padding: 0; border: 0; color: inherit;
	font-family: inherit; font-size: inherit; font-style: inherit; line-height: inherit; letter-spacing: inherit; text-transform: inherit;
	font-weight: var(--gcb-kit-weight-control);
}
[data-gcb-kit="alert"] :where([data-gcb-kit-words] a:not([data-gcb-kit-action], [data-gcb-own])) { color: inherit; font-weight: var(--gcb-kit-weight-control); text-decoration: underline; }
[data-gcb-kit="alert"] :where([data-gcb-kit-words] a:not([data-gcb-kit-action], [data-gcb-own]):focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit="alert"] :where([data-gcb-kit-words] hr:not([data-gcb-own])) { height: 0; border: 0; border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-rule); background: none; }

/* ITS GOING: it fades and folds shut in the site's own time (none for someone who asked for less motion), so what
   is under it rises rather than jumps; then it is gone */
:where([data-gcb-kit="alert"][data-gcb-kit-ready]) {
	transition: opacity var(--gcb-kit-dur-menu), height var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), padding-top var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), padding-bottom var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), border-top-width var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), border-bottom-width var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand);
}
:where([data-gcb-kit="alert"][data-state="closed"]) { opacity: 0; }
[data-gcb-kit="alert"][data-state="closed"] { padding-block: 0; border-block-width: 0; overflow: hidden; } /* mechanic: folded shut (the script takes its height to nothing) */
[data-gcb-kit="alert"]:not([data-gcb-kit-ready]) [data-gcb-kit-close] { display: none; } /* mechanic: with no script nothing shuts it, so no cross is shown */
[data-gcb-kit="alert"][hidden] { display: none; } /* mechanic: closed */

@media (forced-colors: active) {
	/* mechanic: a high-contrast mode throws away fills, and the mark's glyph and the cross are fills */
	:where([data-gcb-kit="alert"] > [data-gcb-kit-icon]:empty)::before { background: none; } /* mechanic: a ring in high contrast */
	:where([data-gcb-kit="alert"] > [data-gcb-kit-icon]:empty)::after { background: CanvasText; forced-color-adjust: none; } /* mechanic: seen in high contrast */
	:where([data-gcb-kit="alert"] [data-gcb-kit-close]:not([data-gcb-own]):empty)::before, :where([data-gcb-kit="alert"] [data-gcb-kit-close]:not([data-gcb-own]):empty)::after { background: ButtonText; forced-color-adjust: none; } /* mechanic: seen in high contrast */
}

/* badge */
/* BADGE: a small label. Every look below weighs nothing (:where), so a class the design writes on it wins, and every
   value is a token: the part's own first, the list's after (tokens/README.md). The two elements a theme styles by
   their tag, a badge that is a link and the cross's button, weigh ONE attribute (README rule 2), so a theme that is
   not reset cannot undo them, and stand aside for an element the design marked data-gcb-own.
   Every fill and line is a share of a colour over whatever is behind it, and coloured words are mixed with the words
   round them, so a badge sits on a section's own colour with nothing set. Its colour is the site's accent, or a
   status colour by data-tone, read where the badge is: set --gcb-kit-accent on a box and every look inside follows.
   With no script it is whole; the script only makes a removable one removable. */
:where([data-gcb-kit="badge"]) {
	display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; vertical-align: middle;
	gap: var(--gcb-badge-gap, 0.4em);
	padding: var(--gcb-badge-pad-y, 0.25em) var(--gcb-badge-pad-x, 0.7em);
	border: var(--gcb-kit-line-w) solid transparent;
	border-radius: var(--gcb-badge-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-kit-wash);
	color: inherit; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-badge-text, var(--gcb-kit-text-caption));
	font-weight: var(--gcb-kit-weight-control);
	font-style: normal;
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
}
:where([data-gcb-kit="badge"]) { min-width: calc(1lh + 2 * var(--gcb-badge-pad-y, 0.25em) + 2 * var(--gcb-kit-line-w)); } /* mechanic: never narrower than it is tall, so a count of one figure is a circle */
:where([data-gcb-kit="badge"][data-shape="field"]) { border-radius: var(--gcb-badge-radius, var(--gcb-kit-radius-field)); }

/* ITS COLOUR: data-tone="success | warning | info | error" names a status colour of the site's and the words that go
   on it. Left out (or data-tone="accent") it is the site's accent. --gcb-badge-tone set on a box is any other colour. */
:where([data-gcb-kit="badge"][data-tone="success"]) { --gcb-badge-tone: var(--gcb-kit-success); --gcb-badge-on-tone: var(--gcb-kit-on-success); }
:where([data-gcb-kit="badge"][data-tone="warning"]) { --gcb-badge-tone: var(--gcb-kit-warning); --gcb-badge-on-tone: var(--gcb-kit-on-warning); }
:where([data-gcb-kit="badge"][data-tone="info"]) { --gcb-badge-tone: var(--gcb-kit-info); --gcb-badge-on-tone: var(--gcb-kit-on-info); }
:where([data-gcb-kit="badge"][data-tone="error"]) { --gcb-badge-tone: var(--gcb-kit-error); --gcb-badge-on-tone: var(--gcb-kit-on-error); }

/* THE LOOKS: data-look="tint | outline | solid"; plain when left out. Coloured words (a tone, or the tint look) are
   the colour mixed with the words round the badge: darker on a light page, lighter on a dark section. */
:where([data-gcb-kit="badge"]:is([data-tone], [data-look="tint"])) { color: color-mix(in srgb, var(--gcb-badge-tone, var(--gcb-kit-accent)) 70%, currentColor); }
:where([data-gcb-kit="badge"][data-look="tint"]) {
	background: color-mix(in srgb, var(--gcb-badge-tone, var(--gcb-kit-accent)) var(--gcb-badge-wash, 10%), transparent);
	border-color: color-mix(in srgb, var(--gcb-badge-tone, var(--gcb-kit-accent)) var(--gcb-badge-edge, 22%), transparent);
}
:where([data-gcb-kit="badge"][data-look="outline"]) { background: transparent; border-color: var(--gcb-kit-rule-strong); }
:where([data-gcb-kit="badge"][data-look="solid"]) { background: var(--gcb-badge-tone, var(--gcb-kit-accent)); color: var(--gcb-badge-on-tone, var(--gcb-kit-on-accent)); }

/* A DOT: an empty [data-gcb-kit-icon] before the words, or the badge itself when it has no words at all (half as big
   again, as it stands alone). A dot on its own is the words' colour when plain or outlined, else its colour. */
:where([data-gcb-kit="badge"] [data-gcb-kit-icon]:empty) { flex: none; width: var(--gcb-badge-dot, 0.6em); height: var(--gcb-badge-dot, 0.6em); border-radius: var(--gcb-kit-radius-full); background: currentColor; }
:where([data-gcb-kit="badge"]:empty) { min-width: 0; width: calc(var(--gcb-badge-dot, 0.6em) * 1.5); height: calc(var(--gcb-badge-dot, 0.6em) * 1.5); padding: 0; border: 0; border-radius: var(--gcb-kit-radius-full); background: currentColor; }
:where([data-gcb-kit="badge"]:is([data-tone], [data-look="tint"], [data-look="solid"]):empty) { background: var(--gcb-badge-tone, var(--gcb-kit-accent)); }

/* A LINK: the badge itself (<a data-gcb-kit="badge">). A theme's own `a` would colour and underline it, so these
   weigh one attribute, and say the words' colour again for each look. */
[data-gcb-kit="badge"]:where(a:not([data-gcb-own])),
[data-gcb-kit="badge"]:where(a:not([data-gcb-own])):hover,
[data-gcb-kit="badge"]:where(a:not([data-gcb-own])):focus { color: inherit; text-decoration: none; }
[data-gcb-kit="badge"]:where(a:not([data-gcb-own]):is([data-tone], [data-look="tint"])),
[data-gcb-kit="badge"]:where(a:not([data-gcb-own]):is([data-tone], [data-look="tint"])):hover,
[data-gcb-kit="badge"]:where(a:not([data-gcb-own]):is([data-tone], [data-look="tint"])):focus { color: color-mix(in srgb, var(--gcb-badge-tone, var(--gcb-kit-accent)) 70%, currentColor); }
[data-gcb-kit="badge"]:where(a:not([data-gcb-own])[data-look="solid"]),
[data-gcb-kit="badge"]:where(a:not([data-gcb-own])[data-look="solid"]):hover,
[data-gcb-kit="badge"]:where(a:not([data-gcb-own])[data-look="solid"]):focus { color: var(--gcb-badge-on-tone, var(--gcb-kit-on-accent)); }
:where(a[data-gcb-kit="badge"]) { cursor: pointer; transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback); }
/* under the pointer: a wash of its words over what it is; a filled one goes a step towards the site's ink, whatever its colour */
:where(a[data-gcb-kit="badge"]:hover) { background-image: linear-gradient(var(--gcb-kit-wash), var(--gcb-kit-wash)); }
:where(a[data-gcb-kit="badge"][data-look="solid"]:hover) { background-image: none; background-color: color-mix(in srgb, var(--gcb-badge-tone, var(--gcb-kit-accent)) 86%, var(--gcb-kit-ink)); }
:where(a[data-gcb-kit="badge"]:active) { scale: var(--gcb-kit-press); }
[data-gcb-kit="badge"]:where(a:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* A LINK INSIDE a removable badge: round the words, so the link and the cross are two things to press */
[data-gcb-kit="badge"] :where(a:not([data-gcb-own], [data-gcb-kit-remove])) { color: inherit; text-decoration: none; border-radius: var(--gcb-kit-radius-check); }
[data-gcb-kit="badge"] :where(a:not([data-gcb-own], [data-gcb-kit-remove])):hover { color: inherit; text-decoration: underline; }
[data-gcb-kit="badge"] :where(a:not([data-gcb-own], [data-gcb-kit-remove])):focus-visible { color: inherit; outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* REMOVABLE: a [data-gcb-kit-remove] button after the words. The badge takes the site's pill height so the cross is
   big enough to press; the cross is drawn here, or put a drawing of your own in the button and it is left alone.
   The button is a theme's `button` too: one attribute's weight, every side of it said. */
:where([data-gcb-kit="badge"]:has([data-gcb-kit-remove])) { min-height: var(--gcb-kit-pill-h); padding-block: 0; }
:where([data-gcb-kit="badge"][data-gcb-kit-ready]:has([data-gcb-kit-remove])) { padding-inline-end: calc((var(--gcb-kit-pill-h) - 2 * var(--gcb-kit-line-w) - var(--gcb-badge-remove, 24px)) / 2); }
:where([data-gcb-kit="badge"]) [data-gcb-kit-remove]:where(:not([data-gcb-own])) {
	appearance: none; flex: none; position: relative; display: inline-grid; place-items: center; box-sizing: border-box;
	width: var(--gcb-badge-remove, 24px); height: var(--gcb-badge-remove, 24px); min-width: 0; min-height: 0;
	margin: 0; padding: 0; border: 0; border-radius: var(--gcb-kit-radius-full); box-shadow: none;
	background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="badge"]) [data-gcb-kit-remove]:where(:not([data-gcb-own])):hover { background: var(--gcb-kit-rule); color: inherit; }
:where([data-gcb-kit="badge"]) [data-gcb-kit-remove]:where(:not([data-gcb-own])):active { background: var(--gcb-kit-rule); color: inherit; scale: var(--gcb-kit-press); }
:where([data-gcb-kit="badge"]) [data-gcb-kit-remove]:where(:not([data-gcb-own])):focus-visible { background: transparent; color: inherit; outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
/* inside a filled badge the accent's outline would not show: it takes the words' colour */
[data-gcb-kit="badge"] :where(a:not([data-gcb-own], [data-gcb-kit-remove])):where([data-look="solid"] *):focus-visible,
:where([data-gcb-kit="badge"][data-look="solid"]) [data-gcb-kit-remove]:where(:not([data-gcb-own])):focus-visible { outline-color: currentColor; }
/* the cross: two bars as thick as one and a half of the site's lines, and never so thick that they stop being a cross */
:where([data-gcb-kit="badge"] [data-gcb-kit-remove]:empty)::before,
:where([data-gcb-kit="badge"] [data-gcb-kit-remove]:empty)::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 46%; height: min(calc(var(--gcb-kit-line-w) * 1.5), 8%);
	border-radius: var(--gcb-kit-radius-full); background: currentColor; rotate: 45deg;
}
:where([data-gcb-kit="badge"] [data-gcb-kit-remove]:empty)::after { rotate: -45deg; }
[data-gcb-kit="badge"]:not([data-gcb-kit-ready]) [data-gcb-kit-remove] { display: none; } /* mechanic: with no script nothing can be removed, so no cross is shown */
[data-gcb-kit="badge"][hidden] { display: none; } /* mechanic: removed */

/* ON A CORNER: data-place="corner" sits it half on the top end corner of the nearest box with position: relative,
   data-place="corner-bottom" on the bottom end corner. Of no weight, so a class that places it elsewhere wins.
   --gcb-badge-ring, set to the colour behind that box, draws a ring that parts the badge from what it sits on. */
:where([data-gcb-kit="badge"]:is([data-place="corner"], [data-place="corner-bottom"])) {
	position: absolute; inset-block-start: 0; inset-inline-end: 0; translate: 50% -50%;
	box-shadow: 0 0 0 calc(var(--gcb-kit-line-w) * 2) var(--gcb-badge-ring, transparent);
}
:where([data-gcb-kit="badge"][data-place="corner-bottom"]) { inset-block-start: auto; inset-block-end: 0; translate: 50% 50%; }
:where([data-gcb-kit="badge"][data-place="corner"]:dir(rtl)) { translate: -50% -50%; }
:where([data-gcb-kit="badge"][data-place="corner-bottom"]:dir(rtl)) { translate: -50% 50%; }

/* breadcrumbs */
/* BREADCRUMBS: the trail to the page (nav > ol > li > a, the page last with aria-current="page"). Every value is a
   token: the part's own first, the list's after (tokens/README.md). It sets no colour of its own: the links, the mark
   and the page are all made of the colour of the words where it sits, so it is right on any background.
   The nav, the mark and the page weigh nothing (:where). The list, a step, a link and the "…" button are elements a
   theme styles BY THEIR TAG (README rule 2), so their rules weigh ONE attribute: a theme's `ol { padding-left: 40px }`
   or `a { color: blue }` does not undo the trail, and they stand aside for an element the design marked data-gcb-own.
   With no script the whole trail shows, wrapping. Its script folds a trail that does not fit on one row. */
:where([data-gcb-kit="breadcrumbs"]) {
	min-width: 0; max-width: 100%;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-breadcrumbs-text, var(--gcb-kit-text-control));
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
}

/* THE TRAIL: one row that wraps */
[data-gcb-kit="breadcrumbs"] > :where(ol, ul):where(:not([data-gcb-own])) { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; }
[data-gcb-kit="breadcrumbs"] > :where(ol, ul) > :where(li):where(:not([data-gcb-own])) { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; margin: 0; padding: 0; white-space: var(--gcb-breadcrumbs-white-space, nowrap); }
/* a step's words too long for the row are cut with an ellipsis, whichever step it is */
:where([data-gcb-kit="breadcrumbs"] > :is(ol, ul) > li > :not([data-gcb-kit-crumb-sep])) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* a step that is not a link (the page) is as tall as one, so wrapped rows sit evenly */
:where([data-gcb-kit="breadcrumbs"] > :is(ol, ul) > li > :not(a, button, [data-gcb-kit-crumb-sep])) { padding-block: var(--gcb-breadcrumbs-link-pad, calc(var(--gcb-kit-gap-s) / 2)); }
/* a page written as bare words (no span, no link) is cut the same way */
[data-gcb-kit="breadcrumbs"] > :where(ol, ul) > :where(li:last-child:not(:has(> *))):where(:not([data-gcb-own])) { display: block; overflow: hidden; text-overflow: ellipsis; padding-block: var(--gcb-breadcrumbs-link-pad, calc(var(--gcb-kit-gap-s) / 2)); }
[data-gcb-kit="breadcrumbs"]:where(.wp-block-breadcrumbs) li::after { content: none !important; } /* mechanic: on WordPress's own block (core/breadcrumbs) its "/" is drawn here; this part draws the only mark */

/* THE MARK between steps: a chevron, a mask, so any colour paints it. Nothing is written in the markup. */
:where([data-gcb-kit="breadcrumbs"] li + li)::before {
	content: ""; flex: none; display: inline-block; vertical-align: middle;
	width: var(--gcb-breadcrumbs-sep-size, 1em); height: var(--gcb-breadcrumbs-sep-size, 1em);
	margin-inline: var(--gcb-breadcrumbs-gap, calc(var(--gcb-kit-gap-s) * 0.75));
	background: var(--gcb-breadcrumbs-sep-color, var(--gcb-kit-rule-strong));
	-webkit-mask: var(--gcb-breadcrumbs-sep, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6l-6 6'/%3E%3C/svg%3E")) center / contain no-repeat;
	mask: var(--gcb-breadcrumbs-sep, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6l-6 6'/%3E%3C/svg%3E")) center / contain no-repeat;
}
:where([data-gcb-kit="breadcrumbs"]:dir(rtl) li + li)::before { scale: -1 1; }
/* before a page written as bare words (a block, so its words can be cut) the drawn mark is as tall as the line and
   draws in its middle, as it does beside a link */
:where([data-gcb-kit="breadcrumbs"] li:last-child:not(:first-child, :has(> *)))::before { float: inline-start; height: 1lh; } /* mechanic: one line tall, so the mask centres on the words */
/* another mark: words (a slash, a dot, the design's own), or none; a mark the design drew itself is the only one */
:where([data-gcb-kit="breadcrumbs"]:is([data-sep="slash"], [data-sep="dot"], [data-sep="text"]) li + li)::before {
	content: var(--gcb-breadcrumbs-sep-text, "/"); width: auto; height: auto; background: none; vertical-align: baseline;
	color: var(--gcb-breadcrumbs-sep-color, var(--gcb-kit-rule-strong));
	-webkit-mask: none; mask: none; scale: none;
}
:where([data-gcb-kit="breadcrumbs"][data-sep="dot"] li + li)::before { content: var(--gcb-breadcrumbs-sep-text, "·"); }
/* where a browser can, the worded mark is not read out; where it cannot, the lines above still draw it */
@supports (content: "x" / "") {
	:where([data-gcb-kit="breadcrumbs"]:is([data-sep="slash"], [data-sep="dot"], [data-sep="text"]) li + li)::before { content: var(--gcb-breadcrumbs-sep-text, "/") / ""; }
	:where([data-gcb-kit="breadcrumbs"][data-sep="dot"] li + li)::before { content: var(--gcb-breadcrumbs-sep-text, "·") / ""; }
}
:where([data-gcb-kit="breadcrumbs"]:is([data-sep="none"], :has([data-gcb-kit-crumb-sep])) li + li)::before { content: none; }
:where([data-gcb-kit="breadcrumbs"] [data-gcb-kit-crumb-sep]) {
	flex: none;
	margin-inline: var(--gcb-breadcrumbs-gap, calc(var(--gcb-kit-gap-s) * 0.75));
	color: var(--gcb-breadcrumbs-sep-color, var(--gcb-kit-rule-strong));
}

/* A LINK: quieter than the words round it; under the pointer the words' own colour and an underline. The hover weighs
   no more than the link at rest, so a colour the design gives its links from a class is kept under the pointer. */
[data-gcb-kit="breadcrumbs"] :where(li > a):where(:not([data-gcb-own])) {
	color: var(--gcb-breadcrumbs-ink, var(--gcb-kit-quiet));
	text-decoration: none;
	text-decoration-thickness: var(--gcb-kit-line-w);
	text-underline-offset: var(--gcb-breadcrumbs-underline-offset, 0.2em);
	padding-block: var(--gcb-breadcrumbs-link-pad, calc(var(--gcb-kit-gap-s) / 2));
	border-radius: var(--gcb-breadcrumbs-link-radius, min(var(--gcb-kit-radius-check), var(--gcb-kit-radius-field)));
	transition: color var(--gcb-kit-dur-feedback);
}
[data-gcb-kit="breadcrumbs"] :where(li > a:not([class]):hover):where(:not([data-gcb-own])) { color: var(--gcb-breadcrumbs-hover, inherit); text-decoration-line: underline; }
/* focused: the site's outline, in the colour of the words, so it shows on a section's own colour too */
[data-gcb-kit="breadcrumbs"] :where(li > a):where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* THE PAGE: the words' full colour, and not a link to press */
:where([data-gcb-kit="breadcrumbs"] :is([aria-current="page"], li:last-child > :not(a, [data-gcb-kit-crumb-sep]), li:last-child:not(:has(> *)))) { color: var(--gcb-breadcrumbs-current, inherit); }
[data-gcb-kit="breadcrumbs"] :where(li > a[aria-current="page"]):where(:not([data-gcb-own])) { color: var(--gcb-breadcrumbs-current, inherit); text-decoration-line: none; pointer-events: none; cursor: default; }

/* THE "…" (made by the script where steps are folded away): a button that brings them back. As tall as a link and
   never narrower than a finger needs, yet it sits in the row as closely as its three dots. */
[data-gcb-kit-trigger]:where([data-gcb-kit="breadcrumbs"] [data-gcb-kit-crumb-more] > *):where(:not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; display: inline-grid; place-items: center;
	width: auto; height: auto; min-height: 0;
	min-width: var(--gcb-breadcrumbs-more-size, 1.75em);
	margin: 0 calc(var(--gcb-breadcrumbs-more-size, 1.75em) / -4);
	padding: var(--gcb-breadcrumbs-link-pad, calc(var(--gcb-kit-gap-s) / 2)) 0;
	border: 0; box-shadow: none; text-shadow: none;
	border-radius: var(--gcb-breadcrumbs-link-radius, min(var(--gcb-kit-radius-check), var(--gcb-kit-radius-field)));
	background: transparent;
	color: var(--gcb-breadcrumbs-ink, var(--gcb-kit-quiet));
	font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer;
	transition: color var(--gcb-kit-dur-feedback), background-color var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-trigger]:where([data-gcb-kit="breadcrumbs"] [data-gcb-kit-crumb-more] > *):where(:not([data-gcb-own])):hover { background: var(--gcb-kit-wash); color: var(--gcb-breadcrumbs-hover, inherit); }
[data-gcb-kit-trigger]:where([data-gcb-kit="breadcrumbs"] [data-gcb-kit-crumb-more] > *):where(:not([data-gcb-own])):focus-visible { background: transparent; outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* a step that opens a wrapped row (marked by the script) has no mark before it, so no row starts with a chevron */
:where([data-gcb-kit="breadcrumbs"] li[data-gcb-kit-crumb-row])::before { content: none; }
:where([data-gcb-kit="breadcrumbs"] li[data-gcb-kit-crumb-row] > [data-gcb-kit-crumb-sep]) { display: none; }

[data-gcb-kit="breadcrumbs"] li[hidden] { display: none; } /* mechanic: a step folded away */
[data-gcb-kit="breadcrumbs"][data-gcb-kit-cut] > :is(ol, ul) { flex-wrap: nowrap; } /* mechanic: folded as far as it goes and still too long: one row, its words cut */
[data-gcb-kit="breadcrumbs"][data-gcb-kit-cut] > :is(ol, ul) > li { flex: none; max-width: 30%; } /* mechanic: a link gives up words before it takes the page's room (the script gives the step before the page its fair share) */
[data-gcb-kit="breadcrumbs"][data-gcb-kit-cut] > :is(ol, ul) > li[data-gcb-kit-crumb-more] { max-width: none; } /* mechanic: the … is never cut */
[data-gcb-kit="breadcrumbs"][data-gcb-kit-cut] > :is(ol, ul) > li:last-child { flex: 0 1 auto; max-width: 100%; } /* mechanic: the page takes what is left */

/* button */
/* BUTTON: the site's button, four styles set once. Its mark is the class .gcb-btn (sites and WordPress's own button
   already depend on it), its tokens --gcb-btn-*: each one a site has not set falls back to a site token
   (tokens/README.md).
   A button and a link are elements a theme styles by their tag, so every rule here weighs ONE class and no more
   (README rule 2), its layout and its icon too: it beats a theme's `button { display: block; padding … }`,
   `a { display: inline; color … }` and `svg { width … }`, loses to any class written after it, and stands aside whole
   for an element marked data-gcb-own. No script: it is a real <button> or a real link, and its states are attributes. */
.gcb-btn:where(:not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; vertical-align: middle; margin: 0;
	display: inline-flex; align-items: center; justify-content: center;
	gap: var(--gcb-btn-gap, var(--gcb-kit-gap-s));
	padding: var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) var(--gcb-btn-px, calc(var(--gcb-kit-pad-control) * 1.5));
	border: var(--gcb-kit-line-w) solid transparent;
	border-radius: var(--gcb-btn-radius, var(--gcb-kit-radius-field));
	background: transparent; color: inherit; box-shadow: none; text-shadow: none; text-decoration: none;
	font-family: var(--gcb-btn-font, var(--gcb-kit-font));
	font-size: var(--gcb-btn-size, var(--gcb-kit-text-control));
	font-weight: var(--gcb-btn-weight, var(--gcb-kit-weight-control));
	font-style: normal; line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-btn-tracking, var(--gcb-kit-tracking));
	text-transform: var(--gcb-btn-case, var(--gcb-kit-case));
	white-space: nowrap; text-align: center; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback), opacity var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
.gcb-btn:where([hidden]:not([data-gcb-own])) { display: none; } /* mechanic: hidden is hidden, though the look says inline-flex */
/* its keyboard mark is the site's outline, off its edge, with the site's surface filling the gap between: the two
   together show on any background, a section in the accent colour too. On a button the design made its own as well. */
.gcb-btn:where(:focus-visible) {
	outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset);
	box-shadow: 0 0 0 var(--gcb-kit-focus-offset) var(--gcb-kit-surface);
}
/* an icon is the size of the words; alone in an icon-only button it is drawn larger, to fill its square */
.gcb-btn:where(:not([data-gcb-own])) :where(svg) { flex: none; width: var(--gcb-btn-icon, 1em); height: var(--gcb-btn-icon, 1em); }

/* THE FOUR STYLES. A hover nobody set: the primary's fill takes a step toward the site's words; the others lay the
   site's wash over their fill, so they show on any background. Keyboard focus shows the hover too. Nothing hovers that
   cannot be pressed now. */
.gcb-btn:where(.gcb-btn--primary:not([data-gcb-own])) {
	background: var(--gcb-btn-primary-bg, var(--gcb-kit-accent));
	color: var(--gcb-btn-primary-text, var(--gcb-kit-on-accent));
	border-color: var(--gcb-btn-primary-border, transparent);
}
.gcb-btn:where(.gcb-btn--primary:not([data-gcb-own]):is(:hover, :focus-visible):not(:disabled, [aria-disabled="true"], [aria-busy="true"], [data-loading])) {
	background: var(--gcb-btn-primary-hover-bg, color-mix(in srgb, var(--gcb-btn-primary-bg, var(--gcb-kit-accent)) 86%, var(--gcb-kit-ink)));
	color: var(--gcb-btn-primary-hover-text, var(--gcb-btn-primary-text, var(--gcb-kit-on-accent)));
}
.gcb-btn:where(.gcb-btn--secondary:not([data-gcb-own])) {
	background: var(--gcb-btn-secondary-bg, var(--gcb-kit-wash));
	color: var(--gcb-btn-secondary-text, inherit);
	border-color: var(--gcb-btn-secondary-border, transparent);
}
.gcb-btn:where(.gcb-btn--secondary:not([data-gcb-own]):is(:hover, :focus-visible):not(:disabled, [aria-disabled="true"], [aria-busy="true"], [data-loading])) {
	background: var(--gcb-btn-secondary-hover-bg, linear-gradient(var(--gcb-kit-wash), var(--gcb-kit-wash)) var(--gcb-btn-secondary-bg, var(--gcb-kit-wash)));
	color: var(--gcb-btn-secondary-hover-text, var(--gcb-btn-secondary-text, inherit));
}
.gcb-btn:where(.gcb-btn--outline:not([data-gcb-own])) {
	background: var(--gcb-btn-outline-bg, transparent);
	color: var(--gcb-btn-outline-text, inherit);
	border-color: var(--gcb-btn-outline-border, currentColor);
}
.gcb-btn:where(.gcb-btn--outline:not([data-gcb-own]):is(:hover, :focus-visible):not(:disabled, [aria-disabled="true"], [aria-busy="true"], [data-loading])) {
	background: var(--gcb-btn-outline-hover-bg, linear-gradient(var(--gcb-kit-wash), var(--gcb-kit-wash)) var(--gcb-btn-outline-bg, transparent));
	color: var(--gcb-btn-outline-hover-text, var(--gcb-btn-outline-text, inherit));
}
/* a text link: a little room at its sides for its hover and focus, given back outside it, so its words sit on the
   edge it is aligned to */
.gcb-btn:where(.gcb-btn--text:not([data-gcb-own])) {
	padding-block: calc(var(--gcb-kit-gap-s) / 2); padding-inline: calc(var(--gcb-kit-gap-s) / 2);
	margin-inline: calc((var(--gcb-kit-gap-s) / 2 + var(--gcb-kit-line-w)) * -1);
	background: var(--gcb-btn-text-bg, transparent);
	color: var(--gcb-btn-text-text, inherit);
	border-color: var(--gcb-btn-text-border, transparent);
}
.gcb-btn:where(.gcb-btn--text:not([data-gcb-own]):is(:hover, :focus-visible):not(:disabled, [aria-disabled="true"], [aria-busy="true"], [data-loading])) {
	background: var(--gcb-btn-text-hover-bg, var(--gcb-btn-text-bg, transparent));
	color: var(--gcb-btn-text-hover-text, var(--gcb-btn-text-text, inherit));
	text-decoration: underline; text-underline-offset: calc(var(--gcb-kit-gap-s) / 2);
}

/* DANGER: any of the four in the site's error colour, for an action that cannot be taken back (Delete, Cancel my
   plan). It sets the style's own tokens on this one button, so a site's brand colours for its buttons do not reach it. */
.gcb-btn:where(.gcb-btn--danger:not([data-gcb-own])) {
	--gcb-btn-primary-bg: var(--gcb-kit-error); --gcb-btn-primary-text: var(--gcb-kit-on-error); --gcb-btn-primary-border: transparent;
	--gcb-btn-primary-hover-bg: color-mix(in srgb, var(--gcb-kit-error) 86%, var(--gcb-kit-ink)); --gcb-btn-primary-hover-text: var(--gcb-kit-on-error);
	--gcb-btn-secondary-bg: color-mix(in srgb, var(--gcb-kit-error) 10%, transparent); --gcb-btn-secondary-text: var(--gcb-kit-error); --gcb-btn-secondary-border: transparent;
	--gcb-btn-secondary-hover-bg: color-mix(in srgb, var(--gcb-kit-error) 18%, transparent); --gcb-btn-secondary-hover-text: var(--gcb-kit-error);
	--gcb-btn-outline-bg: transparent; --gcb-btn-outline-text: var(--gcb-kit-error); --gcb-btn-outline-border: currentColor;
	--gcb-btn-outline-hover-bg: color-mix(in srgb, var(--gcb-kit-error) 10%, transparent); --gcb-btn-outline-hover-text: var(--gcb-kit-error);
	--gcb-btn-text-bg: transparent; --gcb-btn-text-text: var(--gcb-kit-error); --gcb-btn-text-border: transparent;
	--gcb-btn-text-hover-bg: transparent; --gcb-btn-text-hover-text: var(--gcb-kit-error);
}

/* THE SIZES: medium is as written; small and large follow from its numbers */
.gcb-btn:where(.gcb-btn--sm:not([data-gcb-own])) { font-size: calc(var(--gcb-btn-size, var(--gcb-kit-text-control)) * 0.875); }
.gcb-btn:where(.gcb-btn--sm:not([data-gcb-own], .gcb-btn--text)) { padding: calc(var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) * 0.7) calc(var(--gcb-btn-px, calc(var(--gcb-kit-pad-control) * 1.5)) * 0.7); }
.gcb-btn:where(.gcb-btn--lg:not([data-gcb-own])) { font-size: calc(var(--gcb-btn-size, var(--gcb-kit-text-control)) * 1.125); }
.gcb-btn:where(.gcb-btn--lg:not([data-gcb-own], .gcb-btn--text)) { padding: calc(var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) * 1.3) calc(var(--gcb-btn-px, calc(var(--gcb-kit-pad-control) * 1.5)) * 1.3); }

/* ICON-ONLY: a square as tall as a worded button of its size, its icon drawn larger than the words to fill it; round
   is a circle. Its name is its aria-label: it has no words to say it. */
.gcb-btn:where(.gcb-btn--icon:not([data-gcb-own])) {
	padding: 0;
	width: calc(1lh + 2 * var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) + 2 * var(--gcb-kit-line-w));
	height: calc(1lh + 2 * var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) + 2 * var(--gcb-kit-line-w));
}
.gcb-btn:where(.gcb-btn--icon.gcb-btn--sm:not([data-gcb-own])) {
	width: calc(1lh + 1.4 * var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) + 2 * var(--gcb-kit-line-w));
	height: calc(1lh + 1.4 * var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) + 2 * var(--gcb-kit-line-w));
}
.gcb-btn:where(.gcb-btn--icon.gcb-btn--lg:not([data-gcb-own])) {
	width: calc(1lh + 2.6 * var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) + 2 * var(--gcb-kit-line-w));
	height: calc(1lh + 2.6 * var(--gcb-btn-py, calc((var(--gcb-kit-control-h) - 1lh) / 2 - var(--gcb-kit-line-w))) + 2 * var(--gcb-kit-line-w));
}
.gcb-btn:where(.gcb-btn--icon:not([data-gcb-own])) :where(svg) {
	width: var(--gcb-btn-icon-only, calc(var(--gcb-btn-icon, 1em) * 10 / 7));
	height: var(--gcb-btn-icon-only, calc(var(--gcb-btn-icon, 1em) * 10 / 7));
}
.gcb-btn:where(.gcb-btn--round:not([data-gcb-own])) { border-radius: var(--gcb-kit-radius-full); }

/* an arrow after the words leans the way it points on hover */
.gcb-btn:where(.gcb-btn--icon-end:not([data-gcb-own])) > :where(svg:last-child) { transition: translate var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand); }
.gcb-btn:where(.gcb-btn--icon-end:not([data-gcb-own]):hover:not(:disabled, [aria-disabled="true"], [aria-busy="true"], [data-loading])) > :where(svg:last-child) { translate: calc(var(--gcb-kit-gap-s) / 2) 0; }
.gcb-btn:where(.gcb-btn--icon-end:not([data-gcb-own]):dir(rtl):hover:not(:disabled, [aria-disabled="true"], [aria-busy="true"], [data-loading])) > :where(svg:last-child) { translate: calc(var(--gcb-kit-gap-s) / -2) 0; }

/* one button in the other case from the rest of the site's */
.gcb-btn:where(.gcb-btn--caps:not([data-gcb-own])) { text-transform: uppercase; letter-spacing: var(--gcb-btn-caps-tracking, 0.08em); }
.gcb-btn:where(.gcb-btn--plain:not([data-gcb-own])) { text-transform: none; letter-spacing: normal; }

/* the full width: always, or on a phone only */
.gcb-btn:where(.gcb-btn--full:not([data-gcb-own])) { display: flex; width: 100%; }
@media (max-width: 781px) {
	.gcb-btn:where(.gcb-btn--wide:not([data-gcb-own])) { display: flex; width: 100%; }
}
.gcb-btn:where([hidden]:is(.gcb-btn--full, .gcb-btn--wide):not([data-gcb-own])) { display: none; } /* mechanic: hidden is hidden at full width too */

/* PRESSED IN: a toggle that is on (aria-pressed="true") takes the primary's fill, whatever its style */
.gcb-btn:where([aria-pressed="true"]:not([data-gcb-own])) {
	background: var(--gcb-btn-primary-bg, var(--gcb-kit-accent));
	color: var(--gcb-btn-primary-text, var(--gcb-kit-on-accent));
	border-color: var(--gcb-btn-primary-bg, var(--gcb-kit-accent));
}

/* A GROUP (.gcb-btn-group: Day / Week / Month as links or actions): edge to edge, one border between two, the inner
   corners square; the current one (aria-current, aria-pressed) takes the primary's fill */
:where(.gcb-btn-group) { display: inline-flex; align-items: stretch; }
:where(.gcb-btn-group) > .gcb-btn:where(:not([data-gcb-own])) { margin-block: 0; }
:where(.gcb-btn-group) > .gcb-btn:where(:not([data-gcb-own], :first-child)) { margin-inline-start: calc(var(--gcb-kit-line-w) * -1); border-start-start-radius: 0; border-end-start-radius: 0; }
:where(.gcb-btn-group) > .gcb-btn:where(:not([data-gcb-own], :last-child)) { border-start-end-radius: 0; border-end-end-radius: 0; }
:where(.gcb-btn-group > .gcb-btn:is(:hover, :focus-visible, [aria-pressed="true"], [aria-current]:not([aria-current="false"]))) { position: relative; z-index: 1; } /* mechanic: its whole border shows over its neighbours' */
:where(.gcb-btn-group) > .gcb-btn:where([aria-current]:not([aria-current="false"], [data-gcb-own])) {
	background: var(--gcb-btn-primary-bg, var(--gcb-kit-accent));
	color: var(--gcb-btn-primary-text, var(--gcb-kit-on-accent));
	border-color: var(--gcb-btn-primary-bg, var(--gcb-kit-accent));
}

/* PRESSED: it shrinks as far as the site says, unless it cannot be pressed now */
.gcb-btn:where(:active:not([data-gcb-own], :disabled, [aria-disabled="true"], [aria-busy="true"], [data-loading])) { scale: var(--gcb-kit-press); }

/* OFF: faded as every control is, never the pointer, no hover */
.gcb-btn:where(:is(:disabled, [aria-disabled="true"]):not([data-gcb-own])) { opacity: var(--gcb-kit-disabled); cursor: not-allowed; }
.gcb-btn:where(a[aria-disabled="true"]) { pointer-events: none; } /* mechanic: a link that is off cannot be followed with the mouse (leave its href out so the keyboard cannot either) */

/* ON ITS WAY (aria-busy="true" or data-loading: a form's Send while it sends): a turning ring in the colour of the
   words over the words, which keep their room so the button does not change width. A busy <button> is disabled too,
   so the keyboard cannot press it twice; it is busy, not off, so it is not faded. The ring's line is its own (a share
   of its size), not the site's border, so a site with heavy borders still gets a ring. */
.gcb-btn:where(:is([aria-busy="true"], [data-loading]):not([data-gcb-own])) { position: relative; opacity: 1; cursor: progress; text-decoration: none; -webkit-text-fill-color: transparent; }
.gcb-btn:where([aria-busy="true"], [data-loading]) { pointer-events: none; } /* mechanic: not pressable with the mouse while it works */
.gcb-btn:where([aria-busy="true"], [data-loading]) > * { visibility: hidden; } /* mechanic: its icon is hidden with its words, and keeps its room */
.gcb-btn:where(:is([aria-busy="true"], [data-loading]):not([data-gcb-own]))::after {
	content: ""; position: absolute; inset: 0; margin: auto; box-sizing: border-box;
	width: var(--gcb-btn-icon, 1em); height: var(--gcb-btn-icon, 1em);
	border: var(--gcb-btn-spinner-line, calc(var(--gcb-btn-icon, 1em) / 7)) solid var(--gcb-kit-rule-strong);
	border-top-color: currentColor;
	border-radius: var(--gcb-kit-radius-full);
	animation: gcb-btn-spin calc(var(--gcb-kit-dur-panel) * 1.5) linear infinite;
}
@keyframes gcb-btn-spin { to { rotate: 1turn; } }

/* for someone who asked for less motion the site's durations are nothing, so nothing fades, shrinks or spins (a busy
   ring stands still: see the guide); the arrow does not lean either */
@media (prefers-reduced-motion: reduce) {
	.gcb-btn:where(:not([data-gcb-own])) > :where(svg:last-child) { translate: none; }
}

/* card */
/* CARD: a picture, a body (title, meta, a few words) and a foot. A block that shows cards lays them out; it does not
   style them. Every value is a token: the card's own first, the list's after (tokens/README.md). No script.
   A look weighs nothing (:where), so a class the design writes on any of these elements wins. The exceptions are the
   elements a theme styles BY THEIR TAG (README rule 2): the title is a heading, the card's link and the foot's links
   are <a>, the picture is an <img> (its box may be a <figure>), the meta and the words are usually <p>, whose
   margins every theme sets. Those rules weigh ONE class and no more (a hover or a focus adds only its state, as a
   theme's `a:hover` does), so a theme's `h3 { font-size: 2em }`, `a { color: … }` or `img { height: auto }` does
   not undo the card, and they stand aside for an element the design marked data-gcb-own.
   Looks (data-look): as written it is lifted: the site's surface, its card corners, its lift shadow. "outline" is a line
   and no ground; "plain" is no ground, no line, no room at the sides. The last two take the colour of where they are put.
   Layouts (data-layout): as written the picture is on top; "side" puts it beside the words; "over" lays the words on it.
   data-media="end" puts the picture after the words: underneath, or on the far side. */
:where([data-gcb-kit="card"]) {
	position: relative; /* mechanic: what the whole-card link stretches to */
	display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; overflow: clip; text-align: start;
	background: var(--gcb-card-ground, var(--gcb-kit-surface));
	color: var(--gcb-card-ink, var(--gcb-kit-ink));
	border: var(--gcb-card-line, none);
	border-radius: var(--gcb-card-radius, var(--gcb-kit-radius-card));
	box-shadow: var(--gcb-card-shadow, var(--gcb-kit-shadow-lift));
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
}
/* CARDS IN A ROW ARE ONE HEIGHT (Mark, 2026-11-15: "the cards would always be uniform height. card headers / footers
   always uniform"). A card fills the slot its grid or carousel gives it, so cards side by side end together and the
   foot (margin-top: auto) sits on one line. Its script lines up the headers: the titles of cards side by side take
   the height of the tallest, so the words under them start on one line too. */
[data-gcb-kit="card"] { height: 100%; } /* mechanic: fills the row's height, which its slot is stretched to */
:where([data-gcb-kit="card"][data-media="end"]) { flex-direction: column-reverse; }
[data-gcb-kit="card"][data-gcb-kit-ready] .gcb-card__title { min-height: var(--gcb-card-row-title, auto); } /* mechanic: the row's tallest title, measured */
[data-gcb-kit="card"][data-gcb-kit-ready] .gcb-card__meta { min-height: var(--gcb-card-row-meta, auto); } /* mechanic: the same for the meta line */
:where([data-gcb-kit="card"][data-look="outline"], [data-gcb-kit="card"][data-look="plain"]) {
	background: var(--gcb-card-ground, transparent);
	color: var(--gcb-card-ink, inherit);
	box-shadow: var(--gcb-card-shadow, none);
}
:where([data-gcb-kit="card"][data-look="outline"]) { border: var(--gcb-card-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }
/* plain: its words start and end where a lifted card's do, so looks mixed in one row line up */
:where([data-gcb-kit="card"][data-look="plain"]) { column-gap: var(--gcb-card-pad, var(--gcb-kit-pad-control)); overflow: visible; }

/* THE PICTURE: a box of one shape that its picture fills. Empty, it is a faint fill made of the words' colour. */
:where(.gcb-card__media) {
	position: relative; /* mechanic: what a pin is placed against */
	display: block; flex: none; min-width: 0; margin: 0; overflow: hidden;
	aspect-ratio: var(--gcb-card-ratio, 4 / 3);
	border-radius: var(--gcb-card-media-radius, initial);
	background: var(--gcb-kit-wash);
}
:where([data-gcb-kit="card"][data-look="plain"] .gcb-card__media) { border-radius: var(--gcb-card-media-radius, var(--gcb-kit-radius-card)); }
/* the box may be a <figure>, which a theme gives margins by its tag: one class takes them off */
.gcb-card__media:where(figure:not([data-gcb-own])) { margin: 0; }
.gcb-card__media > :where(img, video, svg):where(:not([data-gcb-own])), .gcb-card__media > :where(picture) > :where(img:not([data-gcb-own])) {
	display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; object-fit: cover;
}
:where(.gcb-card__media > picture) { display: block; height: 100%; }
/* A PIN: something small held on the picture's corner (a badge: Sale, New). It is not pressed: the card's link is. */
:where(.gcb-card__pin) {
	position: absolute; inset-block-start: var(--gcb-kit-gap); inset-inline-start: var(--gcb-kit-gap); max-width: calc(100% - var(--gcb-kit-gap) * 2);
	display: flex; flex-wrap: wrap; gap: var(--gcb-kit-gap-s);
}

/* THE BODY: the title, the meta, the words and the foot, one under the other; the foot sits at the bottom, so cards
   in a row of one height line their actions up */
:where(.gcb-card__body) {
	display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; box-sizing: border-box;
	gap: var(--gcb-card-gap, var(--gcb-kit-gap-s));
	padding: var(--gcb-card-pad, var(--gcb-kit-pad-control));
}
:where([data-gcb-kit="card"][data-look="plain"] .gcb-card__body) { padding-inline: 0; }
/* AN ICON FOR A CARD WITH NO PICTURE (Mark, 2026-11-16: Apple "would do more with nice icons in things where there's
   just card text with no supporting image"). .gcb-card__icon holds an <svg>: a mark the eye finds before it reads,
   so a row of like cards (features, steps, ways to get in touch) can be told apart at a glance. It takes the accent
   unless told otherwise; a line drawing takes the words' weight of line. */
:where(.gcb-card__icon) { display: block; width: var(--gcb-card-icon, 2.5rem); height: var(--gcb-card-icon, 2.5rem); margin-block-end: var(--gcb-card-icon-gap, var(--gcb-kit-gap)); color: var(--gcb-card-icon-color, var(--gcb-kit-accent)); }
:where(.gcb-card__icon > svg) { display: block; width: 100%; height: 100%; }

/* the title is a heading (or a p): one class, so a theme's heading size, weight and margins do not come through */
.gcb-card__title:where(:not([data-gcb-own])) {
	margin: 0; padding: 0; color: inherit; text-wrap: balance;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-card-title-size, var(--gcb-kit-text-section)); font-weight: var(--gcb-kit-weight-title); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
}
.gcb-card__meta:where(:not([data-gcb-own])), .gcb-card__text:where(:not([data-gcb-own])) { margin: 0; padding: 0; }
:where(.gcb-card__meta) { font-size: var(--gcb-kit-text-meta); color: var(--gcb-card-meta, var(--gcb-kit-quiet)); }
:where(.gcb-card__text) {
	overflow: hidden;
	display: -webkit-box; -webkit-box-orient: vertical; /* mechanic: what lets the words be cut at a number of lines */
	-webkit-line-clamp: var(--gcb-card-lines, none);
}
:where(.gcb-card__foot) {
	display: flex; flex-wrap: wrap; align-items: center; margin-top: auto;
	gap: var(--gcb-kit-gap-s) var(--gcb-kit-gap);
	padding-top: var(--gcb-card-gap, var(--gcb-kit-gap-s));
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
}
/* a plain link in the foot (one with no class: a button of the site's is left alone): the accent on a lifted card;
   the words' colour, underlined, where the card takes the colour of its section or lies on a picture */
.gcb-card__foot > :where(a:not([class], [data-gcb-own])) { color: var(--gcb-card-link, var(--gcb-kit-accent)); text-decoration: none; text-decoration-thickness: var(--gcb-kit-line-w); }
.gcb-card__foot > :where(a:not([class], [data-gcb-own])):where([data-look="outline"] *, [data-look="plain"] *, [data-layout="over"] *) { color: var(--gcb-card-link, currentColor); text-decoration: underline; }
.gcb-card__foot > :where(a:not([class], [data-gcb-own])):hover { color: var(--gcb-card-link, var(--gcb-kit-accent-hover)); text-decoration: underline; }
.gcb-card__foot > :where(a:not([class], [data-gcb-own])):where([data-look="outline"] *, [data-look="plain"] *, [data-layout="over"] *):hover { color: var(--gcb-card-link, currentColor); text-decoration: none; }
/* focused: the site's outline. Where the card takes its section's colour, or lies on a picture, the outline is the
   colour of the words, so it shows on any background. */
:where([data-gcb-kit="card"] :is(a, button):not(.gcb-card__link):focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
.gcb-card__foot > :where(a:not([class], [data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
.gcb-card__foot > :where(a:not([class], [data-gcb-own])):where([data-look="outline"] *, [data-look="plain"] *, [data-layout="over"] *):focus-visible { outline-color: currentColor; }

/* THE WHOLE CARD AS ONE LINK: the link (.gcb-card__link, in the title) is stretched over the card, so the card is one
   press and one stop for the keyboard, read out as its title. Anything else that can be pressed sits above it. */
.gcb-card__link:where(:not([data-gcb-own])) { color: inherit; text-decoration: none; text-decoration-thickness: var(--gcb-kit-line-w); }
.gcb-card__link:where(:not([data-gcb-own])):hover { color: inherit; text-decoration: none; }
:where(.gcb-card__link)::after { content: ""; position: absolute; inset: 0; } /* mechanic: the link, stretched over the card */
:where([data-gcb-kit="card"]) :where(a, button, input, select, textarea, label, summary):where(:not(.gcb-card__link)) { position: relative; z-index: 1; } /* mechanic: above the stretched link, so it can be pressed */
/* hovered: a title is a heading, and a heading is not underlined under the pointer unless the site chose it
   (--gcb-kit-hover-heading: underline), wherever on the card the pointer is */
.gcb-card__link:where(.gcb-card__title > *):where(:not([data-gcb-own])):hover, .gcb-card__title:where(.gcb-card__link:hover *):where(:not([data-gcb-own])) { text-decoration-line: var(--gcb-kit-hover-heading); }
/* the keyboard's mark goes round the card, not round the words of its title. On a lifted card it is the site's outline
   with a ring of the card's own ground inside it, so it shows on a section's colour; on a card that takes its
   section's colour it is the colour of the words. */
:where([data-gcb-kit="card"]:has(.gcb-card__link:focus-visible)) {
	outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset);
	box-shadow: 0 0 0 var(--gcb-kit-focus-offset) var(--gcb-card-ground, var(--gcb-kit-surface)), var(--gcb-card-shadow, var(--gcb-kit-shadow-lift));
}
:where([data-gcb-kit="card"][data-look="outline"]:has(.gcb-card__link:focus-visible), [data-gcb-kit="card"][data-look="plain"]:has(.gcb-card__link:focus-visible)) { outline-color: currentColor; box-shadow: var(--gcb-card-shadow, none); }
.gcb-card__link:where([data-gcb-kit="card"]:has(.gcb-card__link:focus-visible) *):focus-visible { outline: none; }
/* the first version's shape, a link wrapped round the picture and the body, still lays out as the card does */
:where([data-gcb-kit="card"] > .gcb-card__link) { display: flex; flex-direction: inherit; flex-wrap: inherit; gap: inherit; flex: 1 1 auto; min-width: 0; }

/* BESIDE: the picture at the side, as wide as --gcb-card-side, the words taking the rest. A card too narrow for both
   (under twice that) stacks, the picture on top, with no breakpoint. */
:where([data-gcb-kit="card"][data-layout="side"]) { flex-direction: row; flex-wrap: wrap; }
:where([data-gcb-kit="card"][data-layout="side"][data-media="end"]) { flex-direction: row-reverse; }
:where([data-gcb-kit="card"][data-layout="side"] .gcb-card__media) { flex: 1 1 var(--gcb-card-side, 12rem); }
:where([data-gcb-kit="card"][data-layout="side"] .gcb-card__body) { flex: 999 1 var(--gcb-card-side, 12rem); }

/* OVER: the picture fills the card, however much is written, and the words lie on it at its foot. Behind them is a
   veil of the site's ink that fades out above the title, strong enough for light words on a white picture; the words
   are the site's words-on-a-veil colour, whatever the card's ink. */
:where([data-gcb-kit="card"][data-layout="over"], [data-gcb-kit="card"][data-layout="over"] > .gcb-card__link) { display: grid; grid-template-columns: minmax(0, 1fr); }
:where([data-gcb-kit="card"][data-layout="over"] > *, [data-gcb-kit="card"][data-layout="over"] > .gcb-card__link > *) { grid-area: 1 / 1; }
:where([data-gcb-kit="card"][data-layout="over"]) { isolation: isolate; } /* mechanic: so the picture can lie under the words and stay above the card's ground */
:where([data-gcb-kit="card"][data-layout="over"] .gcb-card__media) { z-index: -1; width: 100%; min-height: 100%; }
:where([data-gcb-kit="card"][data-layout="over"] .gcb-card__body) {
	align-self: end; flex: none;
	padding-top: calc(var(--gcb-card-pad, var(--gcb-kit-pad-control)) * 4);
	background: var(--gcb-card-veil, linear-gradient(to top, color-mix(in srgb, var(--gcb-kit-ink) 88%, transparent), color-mix(in srgb, var(--gcb-kit-ink) 78%, transparent) calc(100% - var(--gcb-card-pad, var(--gcb-kit-pad-control)) * 4), color-mix(in srgb, var(--gcb-kit-ink) 44%, transparent) calc(100% - var(--gcb-card-pad, var(--gcb-kit-pad-control)) * 2), transparent));
	color: var(--gcb-kit-on-scrim);
}
:where([data-gcb-kit="card"][data-layout="over"] .gcb-card__foot) { margin-top: 0; }

/* carousel */
/* CAROUSEL: slides in a row, one or a few in view, the row scrolling sideways and stopping on a slide. Every value is a
   token: the part's own first, the list's after (tokens/README.md). A look weighs nothing (:where), so a class the
   design writes on any of these elements wins. The exceptions are the elements a theme styles BY THEIR TAG (README
   rule 2): the arrows, the pause button and the dots are <button>s, the row may be a <ul> and a slide a <figure>, a
   <blockquote> or an <li>. Those rules weigh ONE attribute, so a theme's `button { … }` or `figure { … }` does not undo
   the part, and they stand aside for an element the design marked data-gcb-own.
   With no script it is a row a person swipes or scrolls. Its script makes the arrows, the dots and the pause button,
   hides the scrollbar and sets data-gcb-kit-ready. */
:where([data-gcb-kit="carousel"]) { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }

/* THE ROW */
:where([data-gcb-kit="carousel"] > [data-gcb-kit-track]) {
	grid-area: 1 / 1; display: flex; margin: 0; padding: 0; list-style: none;
	gap: var(--gcb-carousel-gap, var(--gcb-kit-gap));
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
/* the row written as a list, and a slide that is a figure, a quote or a list item: a theme gives those room by their tag */
[data-gcb-kit-track]:where([data-gcb-kit="carousel"] > :is(ul, ol)):where(:not([data-gcb-own])) { margin: 0; padding: 0; list-style: none; }
[data-gcb-kit-track] > :where(figure, blockquote, li):where([data-gcb-kit="carousel"] > [data-gcb-kit-track] > *):where(:not([data-gcb-own])) { margin: 0; }
:where([data-gcb-kit="carousel"] > [data-gcb-kit-track] > *) {
	flex: 0 0 calc((100% - (var(--gcb-carousel-per, 1) - 1) * var(--gcb-carousel-gap, var(--gcb-kit-gap))) / var(--gcb-carousel-per, 1));
	box-sizing: border-box; min-width: 0; scroll-snap-align: start;
}
@media (max-width: 781px) {
	:where([data-gcb-kit="carousel"] > [data-gcb-kit-track] > *) {
		flex-basis: calc((100% - (var(--gcb-carousel-per-sm, 1) - 1) * var(--gcb-carousel-gap, var(--gcb-kit-gap))) / var(--gcb-carousel-per-sm, 1));
	}
}
/* THE ROW RUNS INTO THE GUTTER (Mark, 2026-11-15: "carousels like that, especially when they have a 'peek', never have
   that thin of a content area, they're always wider - the peek is the gutter"). With data-bleed the row runs past its
   box to the edge of the screen: the slides are sized to the box, the first lines up with the box's edge, and the next
   one peeks into the room beside it. "end" runs to the far side only; "both" lets slides leave by the near side too.
   The script measures the room on each side (--gcb-carousel-bleed-start / -end); with no script the row stays in its box. */
[data-gcb-kit="carousel"][data-bleed][data-gcb-kit-ready] > [data-gcb-kit-track] { margin-inline: calc(var(--gcb-carousel-bleed-start, 0px) * -1) calc(var(--gcb-carousel-bleed-end, 0px) * -1); padding-inline: var(--gcb-carousel-bleed-start, 0px) var(--gcb-carousel-bleed-end, 0px); scroll-padding-inline: var(--gcb-carousel-bleed-start, 0px) var(--gcb-carousel-bleed-end, 0px); } /* mechanic: the row is as wide as the screen, its slides as wide as the box */
[data-gcb-kit="carousel"][data-gcb-kit-ready] > [data-gcb-kit-track] { scrollbar-width: none; } /* mechanic: the arrows and dots are there now */
[data-gcb-kit="carousel"][data-gcb-kit-ready] > [data-gcb-kit-track]::-webkit-scrollbar { display: none; } /* mechanic: the same, for Safari */

/* THE KEYBOARD ON THE ROW: its mark is drawn over the row, inside its edge, so slides that fill the row do not cover it
   and a carousel with rounded, clipped corners does not cut it off. The site's outline between two lines of the
   site's surface, so it shows on a picture and on a section's own colour alike. */
:where([data-gcb-kit="carousel"] > [data-gcb-kit-track]:focus-visible) { outline: none; }
:where([data-gcb-kit="carousel"]:has(> [data-gcb-kit-track]:focus-visible))::after {
	content: ""; grid-area: 1 / 1; z-index: 2; box-sizing: border-box; pointer-events: none;
	border: calc(var(--gcb-kit-focus-offset) * 3) solid var(--gcb-kit-surface); border-radius: inherit;
	outline: var(--gcb-kit-focus-outline); outline-offset: calc(var(--gcb-kit-focus-offset) * -2);
}

/* THE SETTINGS, read with no script: how many in view, on a wide screen and on a phone, and the space between */
:where([data-gcb-kit="carousel"][data-per-view="1"]) { --gcb-carousel-per: 1; }
:where([data-gcb-kit="carousel"][data-per-view="1.2"]) { --gcb-carousel-per: 1.2; }
:where([data-gcb-kit="carousel"][data-per-view="1.5"]) { --gcb-carousel-per: 1.5; }
:where([data-gcb-kit="carousel"][data-per-view="2"]) { --gcb-carousel-per: 2; }
:where([data-gcb-kit="carousel"][data-per-view="2.5"]) { --gcb-carousel-per: 2.5; }
:where([data-gcb-kit="carousel"][data-per-view="3"]) { --gcb-carousel-per: 3; }
:where([data-gcb-kit="carousel"][data-per-view="3.3"]) { --gcb-carousel-per: 3.3; }
:where([data-gcb-kit="carousel"][data-per-view="3.5"]) { --gcb-carousel-per: 3.5; }
:where([data-gcb-kit="carousel"][data-per-view="4"]) { --gcb-carousel-per: 4; }
:where([data-gcb-kit="carousel"][data-per-view="4.5"]) { --gcb-carousel-per: 4.5; }
:where([data-gcb-kit="carousel"][data-per-view="5"]) { --gcb-carousel-per: 5; }
:where([data-gcb-kit="carousel"][data-per-view="6"]) { --gcb-carousel-per: 6; }
:where([data-gcb-kit="carousel"][data-per-view-sm="1"]) { --gcb-carousel-per-sm: 1; }
:where([data-gcb-kit="carousel"][data-per-view-sm="1.2"]) { --gcb-carousel-per-sm: 1.2; }
:where([data-gcb-kit="carousel"][data-per-view-sm="1.5"]) { --gcb-carousel-per-sm: 1.5; }
:where([data-gcb-kit="carousel"][data-per-view-sm="2"]) { --gcb-carousel-per-sm: 2; }
:where([data-gcb-kit="carousel"][data-per-view-sm="3"]) { --gcb-carousel-per-sm: 3; }
:where([data-gcb-kit="carousel"][data-gap="0"]) { --gcb-carousel-gap: 0px; }
:where([data-gcb-kit="carousel"][data-gap="8"]) { --gcb-carousel-gap: 8px; }
:where([data-gcb-kit="carousel"][data-gap="12"]) { --gcb-carousel-gap: 12px; }
:where([data-gcb-kit="carousel"][data-gap="16"]) { --gcb-carousel-gap: 16px; }
:where([data-gcb-kit="carousel"][data-gap="20"]) { --gcb-carousel-gap: 20px; }
:where([data-gcb-kit="carousel"][data-gap="24"]) { --gcb-carousel-gap: 24px; }
:where([data-gcb-kit="carousel"][data-gap="32"]) { --gcb-carousel-gap: 32px; }
:where([data-gcb-kit="carousel"][data-gap="40"]) { --gcb-carousel-gap: 40px; }

/* THE BAR the script makes under the row: the dots (and the pause button) in the middle, the arrows at its end */
:where([data-gcb-kit="carousel"] > [data-gcb-kit-controls]) {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	gap: var(--gcb-kit-gap);
	margin-top: var(--gcb-carousel-controls-gap, var(--gcb-kit-pad-panel));
}
:where([data-gcb-kit="carousel"] [data-gcb-kit-group]) { display: flex; align-items: center; min-width: 0; gap: var(--gcb-kit-gap-s); }
:where([data-gcb-kit="carousel"] [data-gcb-kit-group="main"]) { grid-column: 2; }
:where([data-gcb-kit="carousel"] [data-gcb-kit-group="end"]) { grid-column: 3; justify-self: end; }
/* on a phone there is no room to hold the dots in the middle with the arrows beside them: dots at the start, arrows at
   the end, the first dot drawn level with the edge of the slides */
@media (max-width: 781px) {
	:where([data-gcb-kit="carousel"] > [data-gcb-kit-controls="split"]) { grid-template-columns: minmax(0, 1fr) auto; }
	:where([data-gcb-kit="carousel"] > [data-gcb-kit-controls="split"] > [data-gcb-kit-group="main"]) { grid-column: 1; justify-self: start; margin-inline-start: calc(var(--gcb-carousel-dot-pad, var(--gcb-kit-gap-s)) * -1); }
	:where([data-gcb-kit="carousel"] > [data-gcb-kit-controls="split"] > [data-gcb-kit-group="end"]) { grid-column: 2; }
}
[data-gcb-kit="carousel"] > [data-gcb-kit-controls][hidden], [data-gcb-kit="carousel"] > [data-gcb-kit-made][hidden], [data-gcb-kit="carousel"] [data-gcb-kit-toggle][hidden] { display: none; } /* mechanic: nothing to step through when every slide is in view */

/* A BUTTON THE SCRIPT MADE (an arrow, the pause button). What a design drew itself is never dressed. */
[data-gcb-kit-made]:where([data-gcb-kit="carousel"] *):where(:not([data-gcb-own])) {
	appearance: none; flex: none; box-sizing: border-box; display: inline-grid; place-items: center;
	width: var(--gcb-carousel-arrow-size, var(--gcb-kit-control-h));
	height: var(--gcb-carousel-arrow-size, var(--gcb-kit-control-h));
	min-width: 0; min-height: 0; margin: 0; padding: 0; box-shadow: none; text-shadow: none;
	background: var(--gcb-carousel-arrow-fill, transparent); color: var(--gcb-carousel-arrow-color, inherit);
	font: inherit; line-height: 1; letter-spacing: inherit; text-transform: none; text-decoration: none; cursor: pointer;
	border: var(--gcb-carousel-arrow-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-carousel-arrow-radius, var(--gcb-kit-radius-full));
	transition: border-color var(--gcb-kit-dur-feedback), opacity var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="carousel"] [data-gcb-kit-made] > svg) { display: block; width: var(--gcb-carousel-arrow-mark, 1.25em); height: var(--gcb-carousel-arrow-mark, 1.25em); }
/* pointed at: a faint wash of its own words' colour over whatever it is filled with, and in the bar its ring comes up
   to full; a theme's own `button:hover` fill is kept off */
[data-gcb-kit-made]:where([data-gcb-kit="carousel"] :not([data-gcb-own])):hover { background: var(--gcb-carousel-arrow-fill, transparent) linear-gradient(var(--gcb-kit-wash), var(--gcb-kit-wash)); color: var(--gcb-carousel-arrow-color, inherit); }
[data-gcb-kit-made]:where([data-gcb-kit="carousel"] [data-gcb-kit-controls] :not([data-gcb-own], [data-gcb-kit-toggle])):hover { border-color: currentColor; }
[data-gcb-kit-made]:where([data-gcb-kit="carousel"] :not([data-gcb-own])):active { scale: var(--gcb-kit-press); }
[data-gcb-kit-made]:where([data-gcb-kit="carousel"] :not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
/* an arrow at its end: faint, and nothing answers the pointer */
[data-gcb-kit-made]:where([data-gcb-kit="carousel"] :not([data-gcb-own]))[aria-disabled="true"] { opacity: var(--gcb-kit-disabled); background: var(--gcb-carousel-arrow-fill, transparent); border: var(--gcb-carousel-arrow-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong)); scale: none; cursor: not-allowed; }
/* one drawing for both arrows: turned round for "previous", and both the other way where the words run right to left */
:where([data-gcb-kit="carousel"] [data-gcb-kit-made][data-gcb-kit-prev] > svg) { rotate: 180deg; }
:where([data-gcb-kit="carousel"] [data-gcb-kit-made][data-gcb-kit-prev]:dir(rtl) > svg) { rotate: none; }
:where([data-gcb-kit="carousel"] [data-gcb-kit-made][data-gcb-kit-next]:dir(rtl) > svg) { rotate: 180deg; }

/* THE PAUSE BUTTON: smaller and bare, beside the dots. It shows what pressing it does. */
[data-gcb-kit-made]:where([data-gcb-kit="carousel"] [data-gcb-kit-toggle]:not([data-gcb-own])) {
	width: var(--gcb-carousel-toggle-size, var(--gcb-kit-pill-h));
	height: var(--gcb-carousel-toggle-size, var(--gcb-kit-pill-h));
	border-color: transparent;
}
[data-gcb-kit="carousel"] [data-gcb-kit-toggle] > [data-gcb-kit-icon="play"] { display: none; } /* mechanic: one drawing at a time */
[data-gcb-kit="carousel"]:not([data-gcb-kit-playing]) [data-gcb-kit-toggle] > [data-gcb-kit-icon="play"] { display: block; } /* mechanic: stopped, so it offers play */
[data-gcb-kit="carousel"]:not([data-gcb-kit-playing]) [data-gcb-kit-toggle] > [data-gcb-kit-icon="pause"] { display: none; } /* mechanic: the same */

/* THE DOTS: each is a button big enough to press, with the dot drawn inside it out of the words' colour */
:where([data-gcb-kit="carousel"] [data-gcb-kit-pager]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; min-width: 0; }
[data-gcb-kit-dot]:where([data-gcb-kit="carousel"] *):where(:not([data-gcb-own])) {
	appearance: none; flex: none; display: block; box-sizing: content-box; width: auto; height: auto; min-width: 0; min-height: 0;
	margin: 0; border: 0; box-shadow: none; background: transparent; color: inherit; font: inherit; line-height: 1; cursor: pointer;
	padding: var(--gcb-carousel-dot-pad, var(--gcb-kit-gap-s));
	border-radius: var(--gcb-kit-radius-full);
}
:where([data-gcb-kit="carousel"] [data-gcb-kit-dot])::before {
	content: ""; display: block;
	width: var(--gcb-carousel-dot, 8px); height: var(--gcb-carousel-dot, 8px);
	border-radius: var(--gcb-carousel-dot-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-carousel-dot-color, var(--gcb-kit-rule-strong));
	transition: background-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="carousel"] [data-gcb-kit-dot]:hover)::before { background: var(--gcb-kit-quiet); }
:where([data-gcb-kit="carousel"] [data-gcb-kit-dot][aria-current="true"])::before { background: var(--gcb-carousel-dot-current, currentColor); }
[data-gcb-kit-dot]:where([data-gcb-kit="carousel"] :not([data-gcb-own])):hover { background: transparent; color: inherit; }
[data-gcb-kit-dot]:where([data-gcb-kit="carousel"] :not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: calc(var(--gcb-kit-focus-offset) * -1); }

/* THE COUNT ("3 / 14"): what the dots become when there are too many for one line, and what data-pager="count" asks for */
:where([data-gcb-kit="carousel"] [data-gcb-kit-count]) {
	padding-inline: var(--gcb-carousel-dot-pad, var(--gcb-kit-gap-s));
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading); font-variant-numeric: tabular-nums; white-space: nowrap;
}
[data-gcb-kit="carousel"] [data-gcb-kit-pager]:not([data-gcb-kit-crowded]) > [data-gcb-kit-count] { display: none; } /* mechanic: the dots fit, so they are what is shown */
[data-gcb-kit="carousel"] [data-gcb-kit-pager][data-gcb-kit-crowded] > [data-gcb-kit-dot] { display: none; } /* mechanic: too many to fit, so the count stands in */

/* ARROWS AT THE SIDES: over the row, half way up it, on the site's surface so they read on any picture */
[data-gcb-kit-made]:where([data-gcb-kit="carousel"][data-arrows="sides"] > :not([data-gcb-own])) {
	grid-area: 1 / 1; align-self: center; z-index: 1;
	margin-inline: var(--gcb-carousel-arrow-inset, var(--gcb-kit-gap));
	background: var(--gcb-carousel-arrow-fill, var(--gcb-kit-surface)); color: var(--gcb-carousel-arrow-color, var(--gcb-kit-ink));
	border-color: transparent; box-shadow: var(--gcb-kit-shadow-lift);
}
[data-gcb-kit-made]:where([data-gcb-kit="carousel"][data-arrows="sides"] > :not([data-gcb-own])):hover { background: var(--gcb-carousel-arrow-fill, var(--gcb-kit-surface)) linear-gradient(var(--gcb-kit-wash), var(--gcb-kit-wash)); color: var(--gcb-carousel-arrow-color, var(--gcb-kit-ink)); }
[data-gcb-kit-made]:where([data-gcb-kit="carousel"][data-arrows="sides"] > :not([data-gcb-own])):focus-visible { outline-offset: calc(var(--gcb-kit-focus-offset) * -2); }
[data-gcb-kit-made]:where([data-gcb-kit="carousel"][data-arrows="sides"] > :not([data-gcb-own]))[aria-disabled="true"] { background: var(--gcb-carousel-arrow-fill, var(--gcb-kit-surface)); border-color: transparent; }
:where([data-gcb-kit="carousel"][data-arrows="sides"] > [data-gcb-kit-made][data-gcb-kit-prev]) { justify-self: start; }
:where([data-gcb-kit="carousel"][data-arrows="sides"] > [data-gcb-kit-made][data-gcb-kit-next]) { justify-self: end; }

/* A CAPTION ([data-gcb-kit-caption] in a slide): words over the foot of a picture, in the site's words-on-a-veil
   colour, on a fade dark enough to read them on */
:where([data-gcb-kit="carousel"] > [data-gcb-kit-track] > :has(> [data-gcb-kit-caption])) { position: relative; }
:where([data-gcb-kit="carousel"] > [data-gcb-kit-track] > * > [data-gcb-kit-caption]) {
	position: absolute; inset: auto 0 0 0; box-sizing: border-box; margin: 0;
	padding: calc(var(--gcb-carousel-caption-pad, var(--gcb-kit-pad-panel)) * 3) var(--gcb-carousel-caption-pad, var(--gcb-kit-pad-panel)) var(--gcb-carousel-caption-pad, var(--gcb-kit-pad-panel));
	color: var(--gcb-kit-on-scrim); text-align: start;
	background: var(--gcb-carousel-fade, linear-gradient(transparent, var(--gcb-kit-scrim)));
}

/* THE BAR OVER THE SLIDES (data-controls="over"): along their foot, for a row of pictures, in the same words-on-a-veil
   colour. With no caption to stand on it brings the fade itself; with one, the caption leaves it room. */
:where([data-gcb-kit="carousel"][data-controls="over"] > [data-gcb-kit-controls]) {
	grid-area: 1 / 1; align-self: end; z-index: 1; margin: 0; pointer-events: none;
	padding: var(--gcb-carousel-controls-gap, var(--gcb-kit-pad-control));
	color: var(--gcb-kit-on-scrim); border-radius: inherit;
}
:where([data-gcb-kit="carousel"][data-controls="over"]:not(:has([data-gcb-kit-caption])) > [data-gcb-kit-controls]) {
	padding-top: calc(var(--gcb-carousel-controls-gap, var(--gcb-kit-pad-control)) * 3);
	background: var(--gcb-carousel-fade, linear-gradient(transparent, var(--gcb-kit-scrim)));
}
:where([data-gcb-kit="carousel"][data-controls="over"] > [data-gcb-kit-controls] > *) { pointer-events: auto; }
:where([data-gcb-kit="carousel"][data-controls="over"] > [data-gcb-kit-track] > * > [data-gcb-kit-caption]) {
	padding-bottom: calc(var(--gcb-carousel-controls-gap, var(--gcb-kit-pad-control)) * 2 + var(--gcb-kit-control-h));
}
:where([data-gcb-kit="carousel"][data-controls="over"]:is([data-arrows="sides"], [data-arrows="none"]) > [data-gcb-kit-track] > * > [data-gcb-kit-caption]) {
	padding-bottom: calc(var(--gcb-carousel-controls-gap, var(--gcb-kit-pad-control)) * 2 + var(--gcb-kit-pill-h));
}

/* check */
/* CHECK: a tick box and a radio, each with its label. The box is the REAL <input>, drawn from the tokens, so it keeps
   the browser's own keyboard, form value and name for a screen reader. An <input> is styled by its tag by any theme
   that is not reset, so each look on it weighs ONE attribute and no more (README rule 2) and stands aside for an input
   the design made its own (data-gcb-own); a <fieldset> and a <legend> the same. Labels and the words under a group
   weigh nothing. Every value is a token: the part's own first, the list's after (tokens/README.md). The unticked box,
   its hover and the quiet words are made of the colour of the words, so it sits on any background with nothing set.
   With no script it is whole; its script adds the mixed state, the box that ticks all, and the handle. */

/* ---- the box: a tick box or a radio, inside the part or the part itself */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own])) {
	appearance: none; flex: none; display: inline-grid; place-items: center; box-sizing: border-box; vertical-align: middle;
	width: var(--gcb-check-size, var(--gcb-kit-check)); height: var(--gcb-check-size, var(--gcb-kit-check));
	min-width: 0; min-height: 0; max-width: none; margin: 0; padding: 0;
	/* the line follows the site's line weight, but never so heavy that the tick has no room: a tenth of the box at most */
	border: var(--gcb-check-border-w, clamp(1px, calc(var(--gcb-kit-line-w) * 1.5), calc(var(--gcb-check-size, var(--gcb-kit-check)) / 10))) solid var(--gcb-check-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-check-radius, var(--gcb-kit-radius-check));
	background: transparent; box-shadow: none; color: inherit; font: inherit; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback);
}
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input[type="radio"]:not([role="switch"], [data-gcb-own])) { border-radius: var(--gcb-kit-radius-full); }
/* beside its words (inside its label, or just before a label of its own) it sits on their first line, however many lines they run to */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own])):where(label > *, :has(+ label)) {
	margin-block-start: max(0%, calc((1lh - var(--gcb-check-size, var(--gcb-kit-check))) / 2));
}

/* THE TICK (the site's one drawing) and THE DOT, in the colour of words on the accent; they spring in */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own]))::after {
	content: ""; scale: 0; background: var(--gcb-kit-on-accent);
	transition: scale var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-spring);
}
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input[type="checkbox"]:not([role="switch"], [data-gcb-own]))::after {
	width: var(--gcb-check-tick, 75%); height: var(--gcb-check-tick, 75%);
	mask: var(--gcb-kit-tick) center / contain no-repeat;
}
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input[type="radio"]:not([role="switch"], [data-gcb-own]))::after {
	width: var(--gcb-check-dot, 40%); height: var(--gcb-check-dot, 40%); border-radius: var(--gcb-kit-radius-full);
}

/* ---- its states, in the order they win */
/* pointed at (the box or its words; a <label for> passes its hover to its box by itself): a firmer line */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own], :checked, :indeterminate, :disabled)):where(:hover, label:hover > *) {
	border-color: var(--gcb-kit-quiet);
}
/* ticked, chosen, or mixed (some of its list ticked): the accent */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own])):where(:checked, [type="checkbox"]:indeterminate) {
	border-color: var(--gcb-check-checked, var(--gcb-kit-accent));
	background: var(--gcb-check-checked, var(--gcb-kit-accent));
}
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own])):where(:checked, [type="checkbox"]:indeterminate)::after { scale: 1; }
/* mixed: a bar where the tick would be, always much wider than it is tall, so it never reads as a radio's dot */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input[type="checkbox"]:not([role="switch"], [data-gcb-own]):indeterminate)::after {
	mask: none; width: 60%; height: min(calc(var(--gcb-kit-line-w) * 2), 14%); border-radius: var(--gcb-kit-radius-full);
}
/* wrong (aria-invalid="true" from the server or the page, or the browser's own check after a try): the error's line */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own])):where([aria-invalid="true"], :user-invalid) {
	border-color: var(--gcb-kit-error);
}
/* the keyboard's mark: the site's outline, off its edge, in the colour of the words so it shows on a section's own colour too */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own]):focus-visible) {
	outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset);
}
/* off: no pointer; faint with its words (below), or by itself when it has none */
:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own]):disabled) { cursor: not-allowed; }
[data-gcb-kit="check"]:where(input:disabled:not([data-gcb-own])) { opacity: var(--gcb-kit-disabled); }

/* ---- a box with its words: one row, the words in the page's own colour. Two shapes of markup:
   a <label> holding its input and its words; or a box (a <div>, Bootstrap's .form-check, Gravity Forms' .gchoice)
   holding an <input id> and then its <label for>. Every label in the part is pressable. */
:where(
	label[data-gcb-kit="check"],
	[data-gcb-kit="check"] label:has(> input:is([type="checkbox"], [type="radio"])),
	[data-gcb-kit="check"]:not(fieldset, label, input):has(> input:is([type="checkbox"], [type="radio"]) + label),
	[data-gcb-kit="check"] :not(fieldset, label):has(> input:is([type="checkbox"], [type="radio"]) + label)
):where(:not([data-gcb-own])) {
	display: flex; align-items: flex-start; box-sizing: border-box;
	gap: var(--gcb-check-gap, var(--gcb-kit-gap));
	padding-block: max(0%, calc((var(--gcb-check-row, var(--gcb-kit-control-h)) - max(1lh, var(--gcb-check-size, var(--gcb-kit-check)))) / 2));
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
}
:where(label[data-gcb-kit="check"], [data-gcb-kit="check"] label):where(:not([data-gcb-own])) { cursor: pointer; }
:where(label[data-gcb-kit="check"]:not([data-gcb-own])) { display: inline-flex; }
/* the label of a box beside it: no margin or weight of its own, so it lines up as the wrapped words do */
:where([data-gcb-kit="check"] input:is([type="checkbox"], [type="radio"]) + label:not([data-gcb-own])) { margin-inline: 0; margin-block-end: 0; font: inherit; }
/* a box made taller than a line of words: the words' first line is centred on it */
:where(label[data-gcb-kit="check"], [data-gcb-kit="check"] label, [data-gcb-kit="check"]:has(> input + label), [data-gcb-kit="check"] :has(> input + label)):where(:not([data-gcb-own])) > :where(:not(input)) { margin-block-start: max(0%, calc((var(--gcb-check-size, var(--gcb-kit-check)) - 1lh) / 2)); }
/* off: the box and its words faint together, once */
:where(label[data-gcb-kit="check"], [data-gcb-kit="check"] label, [data-gcb-kit="check"]:not(fieldset), [data-gcb-kit="check"] :not(fieldset)):where(:not([data-gcb-own]):has(> input:disabled)) { opacity: var(--gcb-kit-disabled); cursor: not-allowed; }
:where([data-gcb-kit="check"] input:disabled + label) { cursor: not-allowed; }
/* data-side="end": the box after its words, at the far edge: a list of settings */
:where(
	label[data-gcb-kit="check"][data-side="end"],
	[data-gcb-kit="check"][data-side="end"] label:has(> input),
	[data-gcb-kit="check"][data-side="end"]:not(fieldset, label, input):has(> input + label),
	[data-gcb-kit="check"][data-side="end"] :not(fieldset, label):has(> input + label)
):where(:not([data-gcb-own])) { flex-direction: row-reverse; justify-content: space-between; }
:where(label[data-gcb-kit="check"][data-side="end"]:not([data-gcb-own])) { display: flex; }

/* ---- a group: a <fieldset> with its <legend> (or a box with role="group"), stacked; data-layout="row" side by side */
[data-gcb-kit="check"]:where(:not(label, input, [data-gcb-own], :not(fieldset):has(> input:is([type="checkbox"], [type="radio"]) + label))) {
	display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; margin: 0; padding: 0; border: 0;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-body); line-height: var(--gcb-kit-leading);
}
[data-gcb-kit="check"]:where([data-layout="row"]:not(label, input, [data-gcb-own])) {
	flex-direction: row; flex-wrap: wrap; column-gap: var(--gcb-check-between, calc(var(--gcb-kit-gap) * 2));
}
[data-gcb-kit="check"] > :where(legend:not([data-gcb-own])) {
	float: none; width: auto; margin: 0; padding: 0; border: 0; color: inherit;
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
}
/* the words under a group: a hint, quieter; what is wrong, in the error's colour */
:where([data-gcb-kit="check"] :is([data-gcb-kit-hint], [data-gcb-kit-error]):not([data-gcb-own])) { flex-basis: 100%; margin: 0; font-size: var(--gcb-kit-text-meta); line-height: var(--gcb-kit-leading); }
:where([data-gcb-kit="check"] [data-gcb-kit-hint]:not([data-gcb-own])) { color: var(--gcb-kit-quiet); }
:where([data-gcb-kit="check"] [data-gcb-kit-error]:not([data-gcb-own])) { color: var(--gcb-kit-error); font-weight: var(--gcb-kit-weight-control); }
/* right (data-valid on the root, once the server or the page has checked it): the words under it in the success colour */
:where([data-gcb-kit="check"][data-valid] [data-gcb-kit-hint]:not([data-gcb-own])) { color: var(--gcb-kit-success); }

@media (forced-colors: active) {
	/* mechanic: a high-contrast mode throws away fills, and the tick is a fill: the browser's own box comes back */
	:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own])) { appearance: auto; } /* mechanic: seen in high contrast */
	:is([data-gcb-kit="check"], [data-gcb-kit="check"] *):where(input:is([type="checkbox"], [type="radio"]):not([role="switch"], [data-gcb-own]))::after { content: none; } /* mechanic: the browser draws its own tick */
}

/* close-button */
/* CLOSE BUTTON: a cross to press. It is a <button>, which a theme styles by its tag, so each look below weighs ONE
   attribute (README rule 2), and stands aside for a button the design made its own (data-gcb-own). Its states (hover,
   focus, press, off) keep their pseudo-class outside :where, as the accordion's trigger does, so a theme's own
   `button:hover`, `button:focus` or `button:disabled` does not repaint it. Every value is a token: the part's own first,
   the list's after (tokens/README.md). The cross, its hover and its focus mark are made of the colour of the words, so
   it sits on any background with nothing set. With no script it is a whole button; its script names it and, when it
   says what it closes (data-closes), closes that. */
[data-gcb-kit="close-button"]:where(:not([data-gcb-own])) {
	appearance: none; position: relative; display: inline-grid; place-items: center; flex: none; box-sizing: border-box; vertical-align: middle;
	width: var(--gcb-close-button-size, var(--gcb-kit-control-h)); height: var(--gcb-close-button-size, var(--gcb-kit-control-h));
	min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
	border-radius: var(--gcb-close-button-radius, var(--gcb-kit-radius-full));
	background: transparent; box-shadow: none; color: inherit; font: inherit; line-height: 1; text-decoration: none; text-shadow: none; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* SMALL: data-size="small" is the site's pill height: for a toast, a badge, a tight row */
[data-gcb-kit="close-button"]:where([data-size="small"]:not([data-gcb-own])) { width: var(--gcb-close-button-size, var(--gcb-kit-pill-h)); height: var(--gcb-close-button-size, var(--gcb-kit-pill-h)); }

/* THE LOOKS: plain when left out (no fill until pointed at); data-look="wash" a faint fill made of the words' colour;
   data-look="solid" the site's surface with its words' colour and a little lift, for over a picture */
[data-gcb-kit="close-button"]:where([data-look="wash"]:not([data-gcb-own])) { background: var(--gcb-kit-wash); }
[data-gcb-kit="close-button"]:where([data-look="solid"]:not([data-gcb-own])) { background: var(--gcb-kit-surface); color: var(--gcb-kit-ink); box-shadow: var(--gcb-kit-shadow-lift); }

/* A THEME'S OWN STATES KEPT OFF: whatever `button:hover`, `button:focus`, `button:active` or `button:disabled` brings,
   each look stays itself in every state */
[data-gcb-kit="close-button"]:where(:not([data-gcb-own])):is(:hover, :focus, :active, :disabled, [aria-disabled="true"]) {
	padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: inherit; text-decoration: none; text-shadow: none;
}
[data-gcb-kit="close-button"]:where([data-look="wash"]:not([data-gcb-own])):is(:hover, :focus, :active, :disabled, [aria-disabled="true"]) { background: var(--gcb-kit-wash); }
[data-gcb-kit="close-button"]:where([data-look="solid"]:not([data-gcb-own])):is(:hover, :focus, :active, :disabled, [aria-disabled="true"]) { background: var(--gcb-kit-surface); color: var(--gcb-kit-ink); box-shadow: var(--gcb-kit-shadow-lift); }

/* POINTED AT: plain and washed take a fill made of the words' colour; solid darkens a step toward its words, staying
   whole over a picture. Pressed, it gives a little. Nothing happens that cannot be pressed. */
[data-gcb-kit="close-button"]:where(:not([data-gcb-own], :disabled, [aria-disabled="true"])):hover { background: var(--gcb-kit-rule); }
[data-gcb-kit="close-button"]:where([data-look="solid"]:not([data-gcb-own], :disabled, [aria-disabled="true"])):hover { background: color-mix(in srgb, currentColor 8%, var(--gcb-kit-surface)); }
[data-gcb-kit="close-button"]:where(:not([data-gcb-own], :disabled, [aria-disabled="true"])):active { scale: var(--gcb-kit-press); }

/* FOCUSED: the site's outline in the colour of the words, so it shows on a section's own colour, the accent's too;
   solid draws it inside its own surface, which is the one ground it is sure of */
[data-gcb-kit="close-button"]:where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit="close-button"]:where([data-look="solid"]:not([data-gcb-own])):focus-visible { outline-offset: calc(var(--gcb-kit-focus-offset) * -2); }

/* OFF: disabled, or aria-disabled="true": faint, and it does nothing */
[data-gcb-kit="close-button"]:where(:not([data-gcb-own])):is(:disabled, [aria-disabled="true"]) { opacity: var(--gcb-kit-disabled); cursor: not-allowed; scale: none; }

/* THE CROSS: a button with no element in it is drawn as a cross: empty, only spaces, words (which are then its name
   and not shown), or a screen-reader-only span. A button with a drawing of its own is left alone. Its lines are twice
   the site's line, but never more than 7% of the button, so a heavy line makes a firm cross and not a blot. Quieter
   than the words until pointed at or focused. (A browser with no :has draws the cross only when it is empty.) */
[data-gcb-kit="close-button"]:where(:not([data-gcb-own]):not(:empty):not(:has(> :not(.screen-reader-text, .sr-only, .visually-hidden)))) { font-size: 0; } /* mechanic: its words are its name, read out and not shown */
:where([data-gcb-kit="close-button"]:not([data-gcb-own]):is(:empty, :not(:has(> :not(.screen-reader-text, .sr-only, .visually-hidden)))))::before,
:where([data-gcb-kit="close-button"]:not([data-gcb-own]):is(:empty, :not(:has(> :not(.screen-reader-text, .sr-only, .visually-hidden)))))::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: var(--gcb-close-button-cross, 36%); height: var(--gcb-close-button-stroke, min(calc(var(--gcb-kit-line-w) * 2), 7%));
	border-radius: var(--gcb-kit-radius-full); background: var(--gcb-kit-quiet); rotate: 45deg;
	transition: background-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="close-button"]:not([data-gcb-own]):is(:empty, :not(:has(> :not(.screen-reader-text, .sr-only, .visually-hidden)))))::after { rotate: -45deg; }
:where([data-gcb-kit="close-button"]:not([data-gcb-own], :disabled, [aria-disabled="true"]):is(:empty, :not(:has(> :not(.screen-reader-text, .sr-only, .visually-hidden)))):is(:hover, :focus-visible))::before,
:where([data-gcb-kit="close-button"]:not([data-gcb-own], :disabled, [aria-disabled="true"]):is(:empty, :not(:has(> :not(.screen-reader-text, .sr-only, .visually-hidden)))):is(:hover, :focus-visible))::after { background: currentColor; }

/* ON A CORNER: data-place="corner" sits it in the top end corner of the nearest box with position: relative */
[data-gcb-kit="close-button"]:where([data-place="corner"]) { inset-block-start: var(--gcb-close-button-inset, var(--gcb-kit-gap-s)); inset-inline-end: var(--gcb-close-button-inset, var(--gcb-kit-gap-s)); }
[data-gcb-kit="close-button"][data-place="corner"] { position: absolute; z-index: 1; } /* mechanic: held in the corner of its box */

[data-gcb-kit="close-button"][data-closes]:not([data-gcb-kit-ready]) { display: none; } /* mechanic: with no script it could close nothing, so it is not shown */

/* WHAT IT CLOSES, when that is a plain element: it fades (the site's menu timing; none for someone who asked for less
   motion), then is hidden. Its own display cannot keep it showing, and taking `hidden` off shows it again. */
[data-gcb-kit-closing] { opacity: 0; transition: opacity var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }
[data-gcb-kit-closed][hidden] { display: none !important; } /* mechanic: hidden, whatever display it has of its own (even an id's or one written on it) */

@media (forced-colors: active) {
	/* mechanic: a high-contrast mode throws away fills, and the cross is two fills: it takes the system's button words */
	:where([data-gcb-kit="close-button"]:not([data-gcb-own]))::before, :where([data-gcb-kit="close-button"]:not([data-gcb-own]))::after { background: ButtonText; } /* mechanic: seen in high contrast */
	[data-gcb-kit="close-button"]:where(:not([data-gcb-own])) { border: var(--gcb-kit-line-w) solid ButtonText; } /* mechanic: its edge, as its fill is gone */
}

/* collapsible */
/* COLLAPSIBLE: one block cut short with a control under it, or one section a button opens and closes. Every value is a
   token: the part's own first, the list's after (tokens/README.md). The content is the design's and is left alone; the
   control is a <button>, which a theme styles by its tag, so its look weighs one attribute (README rule 2) and stands
   aside for a control marked data-gcb-own.
   With no script all of the content shows; a "read more" control after it is out of sight, a heading control before
   it stays as its title, with no arrow. Its script cuts it and sets data-gcb-kit-ready. */

/* THE CONTROL: words like a link, in the colour of the words round it, underlined, as tall as anything pressed */
[data-gcb-kit-collapsible-trigger]:where([data-gcb-kit="collapsible"] *):where(:not([data-gcb-own])) {
	appearance: none; display: inline-flex; align-items: center; width: auto;
	gap: var(--gcb-collapsible-trigger-gap, 0.5em);
	min-height: var(--gcb-collapsible-trigger-h, var(--gcb-kit-control-h));
	margin: 0; padding: 0; border: 0; border-radius: var(--gcb-kit-radius-check); box-shadow: none;
	background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-decoration: underline; text-decoration-thickness: var(--gcb-kit-line-w);
	text-underline-offset: var(--gcb-collapsible-underline-offset, 0.25em);
}
/* hovered, pressed or focused: a theme's own `button:hover`, `button:focus` or `button:active` fill is kept off */
[data-gcb-kit-collapsible-trigger]:where([data-gcb-kit="collapsible"] *):where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; color: inherit; box-shadow: none; border: 0; }
[data-gcb-kit-collapsible-trigger]:where([data-gcb-kit="collapsible"] *):where(:not([data-gcb-own])):hover { text-decoration-thickness: calc(var(--gcb-kit-line-w) * 2); }
/* focused: the site's outline, in the colour of the words, so it shows on a section's own colour too */
[data-gcb-kit-collapsible-trigger]:where([data-gcb-kit="collapsible"] *):where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
/* the room between the content and the control, whichever comes first */
[data-gcb-kit-collapsible-trigger]:where([data-gcb-kit="collapsible"] > [data-gcb-kit-collapsible-content] ~ *):where(:not([data-gcb-own])) { margin-top: var(--gcb-collapsible-gap, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit="collapsible"] > [data-gcb-kit-collapsible-trigger] ~ [data-gcb-kit-collapsible-content]) { margin-top: var(--gcb-collapsible-gap, var(--gcb-kit-gap-s)); }

/* THE ARROW: an empty [data-gcb-kit-icon] in a control is drawn as an arrow pointing down; one with a drawing in it is
   left alone. Either turns when open. */
:where([data-gcb-kit-collapsible-trigger] [data-gcb-kit-icon]) { display: inline-block; flex: none; transition: rotate var(--gcb-kit-dur-spring) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit-collapsible-trigger] [data-gcb-kit-icon]:empty) { position: relative; width: var(--gcb-collapsible-mark, 0.5em); height: var(--gcb-collapsible-mark, 0.5em); }
:where([data-gcb-kit-collapsible-trigger] [data-gcb-kit-icon]:empty)::before {
	content: ""; position: absolute; inset: 0; box-sizing: border-box;
	/* twice the site's line, but never so thick for its size that the arrow fills in */
	border-right: min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-collapsible-mark, 0.5em) / 3)) solid currentColor;
	border-bottom: min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-collapsible-mark, 0.5em) / 3)) solid currentColor;
	transform: translateY(-25%) rotate(45deg);
}
:where([data-gcb-kit-collapsible-trigger][aria-expanded="true"] [data-gcb-kit-icon]) { rotate: var(--gcb-collapsible-turn, 180deg); }
:where([data-gcb-kit="collapsible"][data-turn="90"]) { --gcb-collapsible-turn: 90deg; }
:where([data-gcb-kit="collapsible"][data-turn="45"]) { --gcb-collapsible-turn: 45deg; }

/* THE CONTENT: the room is the part's, so the first and last things in it bring none of their own: by tag for the
   ones a theme gives margins to (weighing one attribute, README rule 2), unless marked data-gcb-own */
:where([data-gcb-kit="collapsible"] > [data-gcb-kit-collapsible-content] > :first-child) { margin-top: 0; }
:where([data-gcb-kit="collapsible"] > [data-gcb-kit-collapsible-content] > :last-child) { margin-bottom: 0; }
[data-gcb-kit-collapsible-content] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="collapsible"] > * > :first-child):where(:not([data-gcb-own])) { margin-top: 0; }
[data-gcb-kit-collapsible-content] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="collapsible"] > * > :last-child):where(:not([data-gcb-own])) { margin-bottom: 0; }

/* THE CUT: lines and a height end on a soft fade, made by fading the content itself out, so it works on any
   background. Items end clean. data-fade="none" cuts with no fade. */
:where([data-gcb-kit="collapsible"][data-state="closed"]:not([data-cut="items"], [data-cut="all"], [data-fade="none"], [data-fits]) > [data-gcb-kit-collapsible-content]) {
	-webkit-mask-image: linear-gradient(to bottom, black calc(100% - var(--gcb-collapsible-fade, 2rem)), transparent);
	mask-image: linear-gradient(to bottom, black calc(100% - var(--gcb-collapsible-fade, 2rem)), transparent);
}

[data-gcb-kit="collapsible"]:not([data-gcb-kit-ready]) > :not([data-gcb-kit-collapsible-trigger]) ~ [data-gcb-kit-collapsible-trigger] { display: none; } /* mechanic: with no script nothing is cut, so a "read more" after the content has nothing to do; a heading before it stays, as its title */
:where([data-gcb-kit="collapsible"]:not([data-gcb-kit-ready]) [data-gcb-kit-collapsible-trigger] [data-gcb-kit-icon]:empty) { display: none; }
[data-gcb-kit-collapsible-trigger]:where([data-gcb-kit="collapsible"]:not([data-gcb-kit-ready]) *):where(:not([data-gcb-own])) { cursor: default; text-decoration-line: none; }
[data-gcb-kit="collapsible"] [data-gcb-kit-collapsible-trigger][hidden] { display: none; } /* mechanic: content that fits needs no control */
[data-gcb-kit="collapsible"][data-gcb-kit-ready] > [data-gcb-kit-collapsible-content][hidden] { display: none; } /* mechanic: shut, whatever display a design's class gives it */
[data-gcb-kit="collapsible"][data-gcb-kit-ready] > [data-gcb-kit-collapsible-content] { box-sizing: border-box; } /* mechanic: the height the script sets is the whole box */
[data-gcb-kit="collapsible"][data-gcb-kit-ready]:is([data-state="closed"]:not([data-fits]), [data-moving]) > [data-gcb-kit-collapsible-content] { overflow: hidden; } /* mechanic: the cut */
[data-gcb-kit="collapsible"][data-moved] > [data-gcb-kit-collapsible-content] { transition: height var(--gcb-kit-dur-expand) var(--gcb-kit-ease-expand); } /* mechanic: how it opens, only after a press, never on the page's first paint */

/* combobox */
/* COMBOBOX: a text box that suggests matches from a list as you type. The root is data-gcb-kit="combobox"; in it a real
   <input data-gcb-kit-control>, its options (a <datalist>, or a <select> where only a listed choice may be sent) and
   the list they are drawn in: <ul data-gcb-kit-combobox-list> holding one <li data-gcb-kit-combobox-option>, the
   pattern every suggestion is drawn from.
   The input, the list and its rows are elements a theme styles by their tag (input, ul, li), so their looks weigh ONE
   attribute and stand aside for an element marked data-gcb-own; everything else weighs nothing (:where). Every value
   is a token: the part's own first, the site's after (tokens/README.md). The box's border, its placeholder and its
   icon are made of the colour of the words, so it sits on any background with nothing set; the list is what a menu is
   made of (the site's surface and words).
   With no script it is the browser's own: an input with a datalist suggests by itself, a select shows itself, dressed
   as the box (that rule weighs one attribute and the select's tag, as a theme's select rule is its tag). Its
   script draws the list in a box in the top layer ([data-gcb-kit-combobox-positioner], a popover no section can clip),
   places it, adds the keyboard and the reader's words, and sets data-gcb-kit-ready. */

[data-gcb-kit="combobox"] { position: relative; } /* mechanic: what its hidden select and its reader's words are placed against */
:where([data-gcb-kit="combobox"]) {
	display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%;
	gap: calc(var(--gcb-kit-gap-s) * 0.75);
	font-family: var(--gcb-kit-font); line-height: var(--gcb-kit-leading); text-align: start;
}

/* THE LABEL, above the box */
:where([data-gcb-kit="combobox"] [data-gcb-kit-label]) {
	display: block; margin: 0; padding: 0; color: inherit;
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
}

/* THE BOX TYPED IN (and, with no script, the select that stands in for it): an outline made of the words' colour,
   nothing behind it */
[data-gcb-kit-control]:where([data-gcb-kit="combobox"] input:not([data-gcb-own])),
:where([data-gcb-kit="combobox"]:not([data-gcb-kit-ready])) select:not([data-gcb-own]) {
	appearance: none; box-sizing: border-box; display: block; width: 100%; min-width: 0; margin: 0;
	height: var(--gcb-combobox-h, var(--gcb-kit-control-h));
	padding: 0 var(--gcb-combobox-pad, var(--gcb-kit-pad-control));
	border: var(--gcb-kit-line-w) solid var(--gcb-combobox-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-combobox-radius, var(--gcb-kit-radius-field));
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
	letter-spacing: inherit; text-transform: none;
	transition: border-color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-control]:where([data-gcb-kit="combobox"] input:not([data-gcb-own]))::placeholder { color: var(--gcb-kit-quiet); opacity: 1; }
[data-gcb-kit-control]:where([data-gcb-kit="combobox"] input:not([data-gcb-own]):hover:not(:disabled, :focus)),
:where([data-gcb-kit="combobox"]:not([data-gcb-kit-ready])) select:not([data-gcb-own]):where(:hover:not(:disabled, :focus)) { border-color: var(--gcb-kit-quiet); }
:where([data-gcb-kit="combobox"]:not([data-gcb-kit-ready])) select:not([data-gcb-own]) { cursor: pointer; text-overflow: ellipsis; }
/* the select's own list (no script) is the browser's: given the site's surface and words, so a dark section never
   opens white words on white */
:where([data-gcb-kit="combobox"] select :is(option, optgroup)) { background-color: var(--gcb-kit-surface); color: var(--gcb-kit-ink); }
/* being typed in: the field's focus mark (the accent on its line and the soft ring); the see-through outline is what a
   forced-colours screen draws instead */
[data-gcb-kit-control]:where([data-gcb-kit="combobox"] input:not([data-gcb-own]):focus),
:where([data-gcb-kit="combobox"]:not([data-gcb-kit-ready])) select:not([data-gcb-own]):where(:focus) {
	outline: var(--gcb-kit-line-w) solid transparent; outline-offset: 0;
	border-color: var(--gcb-kit-accent);
	box-shadow: var(--gcb-kit-focus-ring);
}
[data-gcb-kit-control]:where([data-gcb-kit="combobox"] input:disabled:not([data-gcb-own])) { cursor: not-allowed; }
:where([data-gcb-kit="combobox"]:has(input[data-gcb-kit-control]:disabled, select:disabled)) { opacity: var(--gcb-kit-disabled); }

/* A BOX ROUND AN ICON AND THE INPUT ([data-gcb-kit-combobox-control]): the box wears the outline and the focus mark,
   the input in it is bare, and the list opens under the whole box */
:where([data-gcb-kit-combobox-control]) {
	display: flex; align-items: center; box-sizing: border-box; min-width: 0;
	gap: var(--gcb-kit-gap-s);
	height: var(--gcb-combobox-h, var(--gcb-kit-control-h));
	padding: 0 var(--gcb-combobox-pad, var(--gcb-kit-pad-control));
	border: var(--gcb-kit-line-w) solid var(--gcb-combobox-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-combobox-radius, var(--gcb-kit-radius-field));
	transition: border-color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit-combobox-control]:hover:not(:focus-within)) { border-color: var(--gcb-kit-quiet); }
:where([data-gcb-kit-combobox-control]:focus-within) { border-color: var(--gcb-kit-accent); box-shadow: var(--gcb-kit-focus-ring); }
:where([data-gcb-kit-combobox-control] > svg) { flex: none; width: var(--gcb-combobox-icon, 20px); height: var(--gcb-combobox-icon, 20px); color: var(--gcb-kit-quiet); }
[data-gcb-kit-control]:where([data-gcb-kit-combobox-control] > input:not([data-gcb-own])) {
	flex: 1; align-self: stretch; width: auto; height: auto; padding: 0; border: 0; border-radius: 0;
}
[data-gcb-kit-control]:where([data-gcb-kit-combobox-control] > input:not([data-gcb-own]):focus) { outline: 0; box-shadow: none; }
:where([data-gcb-kit-combobox-control]:focus-within) { outline: var(--gcb-kit-line-w) solid transparent; }

/* TWO MORE SIZES (data-size="sm|lg"): the box's height and its words; as written is medium */
[data-gcb-kit-control]:where([data-gcb-kit="combobox"][data-size="sm"] input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *)),
:where([data-gcb-kit="combobox"][data-size="sm"]:not([data-gcb-kit-ready])) select:not([data-gcb-own]),
:where([data-gcb-kit="combobox"][data-size="sm"] [data-gcb-kit-combobox-control]) {
	height: calc(var(--gcb-combobox-h, var(--gcb-kit-control-h)) * 0.8); font-size: var(--gcb-kit-text-meta);
}
[data-gcb-kit-control]:where([data-gcb-kit="combobox"][data-size="lg"] input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *)),
:where([data-gcb-kit="combobox"][data-size="lg"]:not([data-gcb-kit-ready])) select:not([data-gcb-own]),
:where([data-gcb-kit="combobox"][data-size="lg"] [data-gcb-kit-combobox-control]) {
	height: calc(var(--gcb-combobox-h, var(--gcb-kit-control-h)) * 1.2); font-size: var(--gcb-kit-text-section);
}
[data-gcb-kit-control]:where([data-gcb-kit="combobox"][data-size] [data-gcb-kit-combobox-control] > input:not([data-gcb-own])) { font-size: inherit; }
:where([data-gcb-kit="combobox"][data-size="sm"] [data-gcb-kit-label]) { font-size: var(--gcb-kit-text-meta); }
:where([data-gcb-kit="combobox"][data-size="lg"] [data-gcb-kit-label]) { font-size: var(--gcb-kit-text-body); }

/* THE CHEVRON, where a click opens the list (a select's, or data-chevron): two strokes of the words' colour at the
   box's end, turned over while the list is open */
[data-gcb-kit-control]:where([data-gcb-kit="combobox"]:is(:has(select), [data-chevron]):not([data-chevron="none"]) input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *)),
:where([data-gcb-kit="combobox"]:not([data-gcb-kit-ready], [data-chevron="none"])) select:not([data-gcb-own]),
:where([data-gcb-kit="combobox"]:is(:has(select), [data-chevron]):not([data-chevron="none"]) [data-gcb-kit-combobox-control]) {
	padding-inline-end: calc(var(--gcb-combobox-pad, var(--gcb-kit-pad-control)) * 1.5 + var(--gcb-combobox-chevron, 0.4em) * 2);
	background-image:
		linear-gradient(45deg, transparent calc(50% - var(--gcb-kit-line-w)), currentColor calc(50% - var(--gcb-kit-line-w)) calc(50% + var(--gcb-kit-line-w)), transparent calc(50% + var(--gcb-kit-line-w))),
		linear-gradient(135deg, transparent calc(50% - var(--gcb-kit-line-w)), currentColor calc(50% - var(--gcb-kit-line-w)) calc(50% + var(--gcb-kit-line-w)), transparent calc(50% + var(--gcb-kit-line-w)));
	background-size: var(--gcb-combobox-chevron, 0.4em) var(--gcb-combobox-chevron, 0.4em);
	background-position:
		right calc(var(--gcb-combobox-pad, var(--gcb-kit-pad-control)) + var(--gcb-combobox-chevron, 0.4em)) center,
		right var(--gcb-combobox-pad, var(--gcb-kit-pad-control)) center;
	background-repeat: no-repeat;
}
[data-gcb-kit-control]:where([data-gcb-kit="combobox"][data-state="open"]:is(:has(select), [data-chevron]):not([data-chevron="none"]) input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *)),
:where([data-gcb-kit="combobox"][data-state="open"]:is(:has(select), [data-chevron]):not([data-chevron="none"]) [data-gcb-kit-combobox-control]) {
	background-image:
		linear-gradient(135deg, transparent calc(50% - var(--gcb-kit-line-w)), currentColor calc(50% - var(--gcb-kit-line-w)) calc(50% + var(--gcb-kit-line-w)), transparent calc(50% + var(--gcb-kit-line-w))),
		linear-gradient(45deg, transparent calc(50% - var(--gcb-kit-line-w)), currentColor calc(50% - var(--gcb-kit-line-w)) calc(50% + var(--gcb-kit-line-w)), transparent calc(50% + var(--gcb-kit-line-w)));
}
[data-gcb-kit-control]:where([data-gcb-kit="combobox"]:is(:has(select), [data-chevron]):not([data-chevron="none"]) input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *):dir(rtl)),
:where([data-gcb-kit="combobox"]:not([data-gcb-kit-ready], [data-chevron="none"])) select:not([data-gcb-own]):where(:dir(rtl)),
:where([data-gcb-kit="combobox"]:is(:has(select), [data-chevron]):not([data-chevron="none"]) [data-gcb-kit-combobox-control]:dir(rtl)) {
	background-position:
		left var(--gcb-combobox-pad, var(--gcb-kit-pad-control)) center,
		left calc(var(--gcb-combobox-pad, var(--gcb-kit-pad-control)) + var(--gcb-combobox-chevron, 0.4em)) center;
}

/* WRONG: aria-invalid on the input or the select (the form's or the page's say), or the browser's own check failed
   after the visitor's turn: the error's line, and its ring while focused */
[data-gcb-kit-control]:where([data-gcb-kit="combobox"] input:is([aria-invalid="true"], :user-invalid):not([data-gcb-own], [data-gcb-kit-combobox-control] > *), [data-gcb-kit="combobox"]:has(select:is([aria-invalid="true"], :user-invalid)) input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *)),
:where([data-gcb-kit="combobox"]:not([data-gcb-kit-ready])) select:not([data-gcb-own]):where([aria-invalid="true"], :user-invalid),
:where([data-gcb-kit="combobox"]:has(select:is([aria-invalid="true"], :user-invalid)) [data-gcb-kit-combobox-control], [data-gcb-kit-combobox-control]:has(input:is([aria-invalid="true"], :user-invalid))) {
	border-color: var(--gcb-kit-error);
}
[data-gcb-kit-control]:where([data-gcb-kit="combobox"] input:is([aria-invalid="true"], :user-invalid):not([data-gcb-own], [data-gcb-kit-combobox-control] > *):focus, [data-gcb-kit="combobox"]:has(select:is([aria-invalid="true"], :user-invalid)) input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *):focus),
:where([data-gcb-kit="combobox"]:not([data-gcb-kit-ready])) select:not([data-gcb-own]):where([aria-invalid="true"], :user-invalid):where(:focus),
:where([data-gcb-kit="combobox"]:has(select:is([aria-invalid="true"], :user-invalid)) [data-gcb-kit-combobox-control]:focus-within, [data-gcb-kit-combobox-control]:has(input:is([aria-invalid="true"], :user-invalid)):focus-within) {
	box-shadow: var(--gcb-kit-error-ring);
}

/* ON A DARK SECTION (data-scheme="dark", set by the script from the colour of the words) the accent and the error are
   often too dark to see: each is lifted toward the words, and focus draws a second line of it outside the border, as
   the soft ring does not show */
[data-gcb-kit-control]:where([data-gcb-kit="combobox"][data-scheme="dark"] input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *):focus),
:where([data-gcb-kit="combobox"][data-scheme="dark"] [data-gcb-kit-combobox-control]:focus-within) {
	border-color: color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor);
	outline-color: color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor);
}
[data-gcb-kit-control]:where([data-gcb-kit="combobox"][data-scheme="dark"] input:is([aria-invalid="true"], :user-invalid):not([data-gcb-own], [data-gcb-kit-combobox-control] > *), [data-gcb-kit="combobox"][data-scheme="dark"]:has(select:is([aria-invalid="true"], :user-invalid)) input:not([data-gcb-own], [data-gcb-kit-combobox-control] > *)),
:where([data-gcb-kit="combobox"][data-scheme="dark"]:has(select:is([aria-invalid="true"], :user-invalid)) [data-gcb-kit-combobox-control], [data-gcb-kit="combobox"][data-scheme="dark"] [data-gcb-kit-combobox-control]:has(input:is([aria-invalid="true"], :user-invalid))) {
	border-color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor);
	outline-color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor);
}

/* WITH NO SCRIPT: the browser's own. The list we would draw is not shown, and where a select holds the options the
   select is what is used. WITH ITS SCRIPT: the select stays in the form and out of sight. */
[data-gcb-kit="combobox"]:not([data-gcb-kit-ready]) [data-gcb-kit-combobox-list] { display: none; } /* mechanic: nothing to draw in it until the script is up */
[data-gcb-kit="combobox"]:not([data-gcb-kit-ready]):has(select) :is(input:not([type="hidden"]), [data-gcb-kit-combobox-control]) { display: none; } /* mechanic: the select is the control until the script is up */
[data-gcb-kit="combobox"][data-gcb-kit-ready] select, [data-gcb-kit-combobox-status] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: out of sight, still in the form and still read out */

/* THE BOX THE LIST SITS IN: placed by the script (left, top), carrying the gutter on the side that faces the input */
[data-gcb-kit-combobox-positioner] { position: fixed; inset: auto; z-index: 1000; margin: 0; overflow: visible; width: max-content; } /* mechanic: a box in the top layer, placed by the script */
[data-gcb-kit-combobox-positioner]:not([data-open]) { display: none; } /* mechanic: shut */
[data-gcb-kit-combobox-list] [hidden] { display: none; } /* mechanic: a row or a second line with nothing to say */
:where([data-gcb-kit-combobox-positioner]) { padding: 0; border: 0; background: transparent; color: inherit; }
:where([data-gcb-kit-combobox-positioner][data-side="bottom"]) { padding-top: var(--gcb-combobox-gutter, 6px); }
:where([data-gcb-kit-combobox-positioner][data-side="top"]) { padding-bottom: var(--gcb-combobox-gutter, 6px); }

/* THE LIST: what a menu is made of, never narrower than its box, as wide as its longest option up to its most */
[data-gcb-kit-combobox-list]:where(:not([data-gcb-own])) {
	display: block; box-sizing: border-box; width: max-content; min-width: 100%;
	max-width: var(--gcb-combobox-menu-max, 360px);
	max-width: min(var(--gcb-combobox-menu-max, 360px), calc(100vw - 2 * var(--gcb-kit-pad-control))); /* mechanic: and never wider than the screen */
	max-height: var(--gcb-combobox-menu-h, calc(var(--gcb-combobox-option-h, var(--gcb-kit-control-h)) * 7.5 + var(--gcb-combobox-menu-pad, 6px) * 2 + var(--gcb-kit-line-w) * 2)); /* seven rows and half of the next, so a longer list shows there is more */
	margin: 0;
	padding: var(--gcb-combobox-menu-pad, 6px);
	overflow-y: auto; overscroll-behavior: contain; list-style: none; outline: 0;
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-line-soft);
	border-radius: var(--gcb-combobox-menu-radius, var(--gcb-kit-radius-card));
	background: var(--gcb-kit-surface); color: var(--gcb-kit-ink);
	box-shadow: var(--gcb-kit-shadow-menu);
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-body); font-style: normal;
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-align: start; white-space: normal;
}
/* it grows in from the edge that faces its box, with the menus' motion (no time at all for someone who asked for less) */
@keyframes gcb-combobox-in { from { opacity: 0; scale: var(--gcb-kit-press); } }
:where([data-gcb-kit-combobox-positioner][data-open] > [data-gcb-kit-combobox-list]) { transform-origin: top; animation: gcb-combobox-in var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit-combobox-positioner][data-open][data-side="top"] > [data-gcb-kit-combobox-list]) { transform-origin: bottom; }

/* AN OPTION: a row the height of anything pressed; its icon, its words, its quieter line, the tick at its end */
[data-gcb-kit-combobox-option]:where(:not([data-gcb-own])) {
	position: relative; display: flex; align-items: center; box-sizing: border-box;
	gap: var(--gcb-combobox-gap, var(--gcb-kit-gap-s));
	min-height: var(--gcb-combobox-option-h, var(--gcb-kit-control-h));
	margin: 0;
	/* its words start where the box's words do: the box's room, less the list's own room round its options */
	padding: var(--gcb-kit-gap-s) max(var(--gcb-kit-gap-s), calc(var(--gcb-combobox-pad, var(--gcb-kit-pad-control)) - var(--gcb-combobox-menu-pad, 6px)));
	border: 0;
	border-radius: var(--gcb-combobox-option-radius, var(--gcb-kit-radius-field));
	background: transparent; color: inherit; list-style: none; cursor: pointer;
}
/* the one the keyboard or the pointer is on: a faint fill of its own words' colour */
[data-gcb-kit-combobox-option]:where([data-highlighted]:not([data-gcb-own])) { background: var(--gcb-kit-wash); }
/* the chosen one: the accent, with a tick */
[data-gcb-kit-combobox-option]:where([data-state="checked"]:not([data-gcb-own])) { color: var(--gcb-kit-accent); }
:where([data-gcb-kit="combobox"]:not([data-check="none"]) [data-gcb-kit-combobox-option][data-state="checked"]:not([data-gcb-own], :has([data-gcb-kit-combobox-check])))::after {
	content: var(--gcb-combobox-check, ""); flex: none; box-sizing: border-box;
	width: calc(var(--gcb-combobox-mark, 0.5em) * 0.7); height: calc(var(--gcb-combobox-mark, 0.5em) * 1.4);
	margin-inline: auto calc(var(--gcb-kit-gap-s) / 2);
	border: solid currentColor; border-width: 0 calc(var(--gcb-kit-line-w) * 2) calc(var(--gcb-kit-line-w) * 2) 0;
	rotate: 45deg; translate: 0 -15%;
}
:where([data-gcb-kit-combobox-option][data-state="checked"]:has([data-gcb-kit-combobox-hint]:not([hidden])))::after { margin-inline-start: 0; }
/* one that cannot be chosen: shown, passed over */
[data-gcb-kit-combobox-option]:where([aria-disabled="true"]:not([data-gcb-own])) { opacity: var(--gcb-kit-disabled); background: transparent; cursor: default; }
:where([data-gcb-kit-combobox-option] > svg) { flex: none; width: var(--gcb-combobox-icon, 20px); height: var(--gcb-combobox-icon, 20px); }
:where([data-gcb-kit-combobox-label]) { min-width: 0; overflow-wrap: anywhere; }
/* the typed part of an option's words: the control's weight, the rest the body's */
[data-gcb-kit-combobox-match]:where(:not([data-gcb-own])) {
	background: var(--gcb-combobox-match-bg, transparent);
	color: var(--gcb-combobox-match, inherit);
	font-weight: var(--gcb-combobox-match-weight, var(--gcb-kit-weight-control));
}
:where([data-gcb-kit-combobox-hint]) {
	margin-inline-start: auto; padding-inline-start: var(--gcb-kit-gap);
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); white-space: nowrap;
}

/* NOTHING FITS: the list's words, quiet, never an option. A row the design drew (an icon, a link) is kept as drawn. */
[data-gcb-kit-combobox-empty]:where(:not([data-gcb-own])) {
	display: flex; align-items: center; box-sizing: border-box;
	min-height: var(--gcb-combobox-option-h, var(--gcb-kit-control-h));
	margin: 0;
	padding: var(--gcb-kit-gap-s) max(var(--gcb-kit-gap-s), calc(var(--gcb-combobox-pad, var(--gcb-kit-pad-control)) - var(--gcb-combobox-menu-pad, 6px)));
	color: var(--gcb-kit-quiet); list-style: none; cursor: default;
}

/* A SELECT'S GROUPS: each under its label, quiet and small, a faint line between one group and the next */
[data-gcb-kit-combobox-group]:where(:not([data-gcb-own])),
[data-gcb-kit-combobox-group-list]:where(:not([data-gcb-own])) { display: block; margin: 0; padding: 0; border: 0; list-style: none; }
[data-gcb-kit-combobox-group]:where(:not(:first-child, [data-gcb-own])) {
	margin-top: var(--gcb-combobox-menu-pad, 6px); padding-top: var(--gcb-combobox-menu-pad, 6px);
	border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-line-soft);
}
:where([data-gcb-kit-combobox-group-label]) {
	display: block;
	padding: var(--gcb-kit-gap-s) max(var(--gcb-kit-gap-s), calc(var(--gcb-combobox-pad, var(--gcb-kit-pad-control)) - var(--gcb-combobox-menu-pad, 6px))) calc(var(--gcb-kit-gap-s) / 2);
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-control);
	letter-spacing: var(--gcb-kit-tracking); cursor: default;
}

/* compare */
/* COMPARE: before and after. Two pictures (or two boxes) of one thing, the second laid on the first and cut at a line
   a person drags. The cut, the line and the labels are all laid out here, so with no script it is a whole split
   picture, cut at the middle; its script adds the handle, the drag and the keys.
   Where the line stands is --gcb-compare-pos (0% to 100%, the share showing "before"), written on the root by the script.
   "Before" is on the start side: the left, or the right on a right-to-left page (data-reverse="true" swaps it).
   A look weighs nothing (:where) on the root, the line and the boxes. The pictures, the handle and the labels may be
   elements a theme styles BY THEIR TAG (an img, a <button> handle, an <h3> label: README rule 2), so their looks weigh
   ONE attribute and no more, and stand aside for an element the design marked data-gcb-own. */
:where([data-gcb-kit="compare"]) {
	display: block; position: relative; overflow: hidden; max-width: 100%;
	aspect-ratio: var(--gcb-compare-ratio, auto);
	border-radius: var(--gcb-compare-radius, var(--gcb-kit-radius-card));
}
:where([data-gcb-kit="compare"][data-gcb-kit-ready]) { cursor: ew-resize; }
:where([data-gcb-kit="compare"][data-gcb-kit-ready][data-orientation="vertical"]) { cursor: ns-resize; }
[data-gcb-kit="compare"] { --gcb-compare-at: var(--gcb-compare-pos, 50%); touch-action: pan-y; user-select: none; -webkit-user-select: none; } /* mechanic: where the line is, from the left or the top; a sideways drag moves the line while an up-and-down one still scrolls the page */
[data-gcb-kit="compare"][data-reverse="true"], [data-gcb-kit="compare"]:dir(rtl):not([data-orientation="vertical"]) { --gcb-compare-at: calc(100% - var(--gcb-compare-pos, 50%)); } /* mechanic: "before" on the right (or at the bottom) */
[data-gcb-kit="compare"][data-reverse="true"]:dir(rtl):not([data-orientation="vertical"]) { --gcb-compare-at: var(--gcb-compare-pos, 50%); } /* mechanic: reversed on a right-to-left page, "before" is back on the left */
[data-gcb-kit="compare"][data-orientation="vertical"] { touch-action: pan-x; } /* mechanic: an up-and-down drag moves the line */

/* THE TWO: the first is in the flow and gives the box its shape; the second lies on it, cut at the line */
[data-gcb-kit-before]:where([data-gcb-kit="compare"] > :not([data-gcb-own])),
[data-gcb-kit-after]:where([data-gcb-kit="compare"] > :not([data-gcb-own])) {
	display: block; box-sizing: border-box; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	border-radius: 0; object-fit: var(--gcb-compare-fit, cover);
}
[data-gcb-kit="compare"] > [data-gcb-kit-after] { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--gcb-compare-at)); } /* mechanic: the cut */
[data-gcb-kit="compare"][data-reverse="true"] > [data-gcb-kit-after], [data-gcb-kit="compare"]:dir(rtl):not([data-orientation="vertical"]) > [data-gcb-kit-after] { clip-path: inset(0 calc(100% - var(--gcb-compare-at)) 0 0); } /* mechanic: the cut */
[data-gcb-kit="compare"][data-reverse="true"]:dir(rtl):not([data-orientation="vertical"]) > [data-gcb-kit-after] { clip-path: inset(0 0 0 var(--gcb-compare-at)); } /* mechanic: the cut */
[data-gcb-kit="compare"][data-orientation="vertical"] > [data-gcb-kit-after] { clip-path: inset(var(--gcb-compare-at) 0 0 0); } /* mechanic: the cut */
[data-gcb-kit="compare"][data-orientation="vertical"][data-reverse="true"] > [data-gcb-kit-after] { clip-path: inset(0 0 calc(100% - var(--gcb-compare-at)) 0); } /* mechanic: the cut */
[data-gcb-kit="compare"] img { pointer-events: none; -webkit-user-drag: none; } /* mechanic: a drag moves the line, never the picture */

/* THE LINE between them, drawn with or without the script. It lies over pictures, so it is the colour of words on a
   picture (white), not the site's surface, which a dark theme makes dark. --gcb-compare-line-w: 0 for none. */
:where([data-gcb-kit="compare"])::after {
	content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none;
	width: var(--gcb-compare-line-w, calc(var(--gcb-kit-line-w) * 2));
	background: var(--gcb-compare-line, var(--gcb-kit-on-scrim));
	box-shadow: var(--gcb-compare-line-shadow, var(--gcb-kit-shadow-thumb));
}
:where([data-gcb-kit="compare"][data-orientation="vertical"])::after {
	top: auto; bottom: auto; left: 0; right: 0; width: auto;
	height: var(--gcb-compare-line-w, calc(var(--gcb-kit-line-w) * 2));
}
[data-gcb-kit="compare"]::after { left: var(--gcb-compare-at); translate: -50% 0; } /* mechanic: the line is on the cut */
[data-gcb-kit="compare"][data-orientation="vertical"]::after { left: 0; top: var(--gcb-compare-at); translate: 0 -50%; } /* mechanic: the line is on the cut */

/* THE HANDLE: the thing that is held and focused, its middle on the line. The script makes an empty one if the design
   drew none; an empty one is drawn as a round knob with two arrows, one with anything in it is left as drawn.
   At the ends it stops short of the box's edge, by half its own size (the script writes --gcb-compare-handle-w and -h)
   and room for the focus mark, so it is never cut in half by the box. */
[data-gcb-kit="compare"] [data-gcb-kit-handle] { position: absolute; z-index: 1; left: clamp(calc(var(--gcb-compare-handle-w, 0px) / 2 + var(--gcb-kit-focus-offset) * 2), var(--gcb-compare-at), calc(100% - var(--gcb-compare-handle-w, 0px) / 2 - var(--gcb-kit-focus-offset) * 2)); top: 50%; translate: -50% -50%; touch-action: none; cursor: inherit; } /* mechanic: on the cut, inside the box; held, it moves the line whichever way the finger goes */
[data-gcb-kit="compare"][data-orientation="vertical"] [data-gcb-kit-handle] { left: 50%; top: clamp(calc(var(--gcb-compare-handle-h, 0px) / 2 + var(--gcb-kit-focus-offset) * 2), var(--gcb-compare-at), calc(100% - var(--gcb-compare-handle-h, 0px) / 2 - var(--gcb-kit-focus-offset) * 2)); --gcb-compare-turn: 90deg; } /* mechanic: on the cut, its arrows up and down */
[data-gcb-kit="compare"]:not([data-gcb-kit-ready]) [data-gcb-kit-handle] { visibility: hidden; } /* mechanic: with no script there is nothing to hold, so a handle the design drew is not shown */
/* the knob: a <div> or an empty <button>, both look the same; a theme's `button { … }` and `button:hover { … }` do not get in */
[data-gcb-kit-handle]:where([data-gcb-kit="compare"] *):where(:empty:not([data-gcb-own])),
[data-gcb-kit-handle]:where([data-gcb-kit="compare"] *):where(:empty:not([data-gcb-own])):is(:hover, :focus, :active) {
	appearance: none; box-sizing: border-box; display: block; margin: 0; padding: 0;
	width: var(--gcb-compare-knob-size, var(--gcb-kit-control-h)); height: var(--gcb-compare-knob-size, var(--gcb-kit-control-h));
	min-width: 0; min-height: 0; max-width: none;
	border: var(--gcb-compare-line-w, calc(var(--gcb-kit-line-w) * 2)) solid var(--gcb-compare-line, var(--gcb-kit-on-scrim));
	border-radius: var(--gcb-compare-knob-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-compare-knob, var(--gcb-kit-surface));
	color: var(--gcb-compare-knob-ink, var(--gcb-kit-ink));
	box-shadow: var(--gcb-compare-knob-shadow, var(--gcb-kit-shadow-thumb)); text-shadow: none;
	font: inherit; line-height: 1;
}
/* its two arrows: the stroke follows the site's line, but never so thick that an arrow fills in */
:where([data-gcb-kit="compare"] [data-gcb-kit-handle]:empty:not([data-gcb-own]))::before,
:where([data-gcb-kit="compare"] [data-gcb-kit-handle]:empty:not([data-gcb-own]))::after {
	content: ""; position: absolute; inset: 0; margin: auto; box-sizing: border-box;
	width: var(--gcb-compare-arrow, 8px); height: var(--gcb-compare-arrow, 8px);
	border: solid currentColor;
	border-width: 0 0 var(--gcb-compare-arrow-w, min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-compare-arrow, 8px) / 4))) var(--gcb-compare-arrow-w, min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-compare-arrow, 8px) / 4)));
}
[data-gcb-kit="compare"] [data-gcb-kit-handle]:empty::before { transform: rotate(var(--gcb-compare-turn, 0deg)) translateX(calc(var(--gcb-compare-arrow, 8px) * -0.55)) rotate(45deg); } /* mechanic: the arrow that points back */
[data-gcb-kit="compare"] [data-gcb-kit-handle]:empty::after { transform: rotate(var(--gcb-compare-turn, 0deg)) translateX(calc(var(--gcb-compare-arrow, 8px) * 0.55)) rotate(225deg); } /* mechanic: the arrow that points on */
:where([data-gcb-kit="compare"][data-dragging] [data-gcb-kit-handle]:empty) { scale: var(--gcb-kit-press); }
[data-gcb-kit-handle]:where([data-gcb-kit="compare"] *):where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* moved by a key, a tap or code, the line glides; held, it is under the finger at once (the knob still eases its press) */
:where([data-gcb-kit="compare"][data-gcb-kit-ready]:not([data-dragging], [data-trigger="hover"])) > [data-gcb-kit-after] { transition: clip-path var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit="compare"][data-gcb-kit-ready]:not([data-dragging], [data-trigger="hover"]))::after { transition: left var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand), top var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand); }
[data-gcb-kit-handle]:where([data-gcb-kit="compare"] *):where(:not([data-gcb-own])) { transition: scale var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand); }
[data-gcb-kit-handle]:where([data-gcb-kit="compare"][data-gcb-kit-ready]:not([data-dragging], [data-trigger="hover"]) *):where(:not([data-gcb-own])) { transition: left var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand), top var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand), scale var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand); }

/* THE LABELS: a word in the corner of each side. "before" sits on its side, "after" on the other; the script fades one
   out while the line is across it, so a label is never on the wrong picture. Any tag will do (a span, an h3): it
   brings no size, weight or room of its own. The veil is the opposite of its words (--gcb-kit-on-scrim, white, so a
   black veil) at 72%: dark enough behind them on the palest picture, and still dark on a dark theme, where the
   site's ink is light. A browser without relative colours gets the site's ink at 72%. The site's own
   --gcb-kit-scrim (40%) is a veil for a pop-up, too faint behind small words. */
[data-gcb-kit-label]:where([data-gcb-kit="compare"] *):where(:not([data-gcb-own])) {
	position: absolute; top: var(--gcb-compare-label-inset, var(--gcb-kit-gap)); bottom: auto;
	inset-inline-start: var(--gcb-compare-label-inset, var(--gcb-kit-gap)); inset-inline-end: auto;
	box-sizing: border-box; max-width: calc(50% - var(--gcb-compare-label-inset, var(--gcb-kit-gap)) * 2);
	margin: 0; padding: calc(var(--gcb-kit-gap-s) / 2) var(--gcb-kit-gap); border: 0;
	border-radius: var(--gcb-compare-label-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-compare-label-bg, color-mix(in srgb, var(--gcb-kit-ink) 72%, transparent));
	background: var(--gcb-compare-label-bg, color(from var(--gcb-kit-on-scrim) srgb calc(1 - r) calc(1 - g) calc(1 - b) / 0.72));
	color: var(--gcb-compare-label-ink, var(--gcb-kit-on-scrim));
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-control); font-style: normal;
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-decoration: none; text-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	pointer-events: none;
	transition: opacity var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand);
}
[data-gcb-kit-label]:where([data-gcb-kit="compare"]:not([data-reverse="true"]) [data-gcb-kit-label="after"], [data-gcb-kit="compare"][data-reverse="true"] [data-gcb-kit-label="before"]):where(:not([data-gcb-own])) {
	inset-inline-start: auto; inset-inline-end: var(--gcb-compare-label-inset, var(--gcb-kit-gap));
}
[data-gcb-kit-label]:where([data-gcb-kit="compare"][data-orientation="vertical"]:not([data-reverse="true"]) [data-gcb-kit-label="after"], [data-gcb-kit="compare"][data-orientation="vertical"][data-reverse="true"] [data-gcb-kit-label="before"]):where(:not([data-gcb-own])) {
	inset-inline-start: var(--gcb-compare-label-inset, var(--gcb-kit-gap)); inset-inline-end: auto; top: auto; bottom: var(--gcb-compare-label-inset, var(--gcb-kit-gap));
}
[data-gcb-kit-label]:where([data-gcb-kit="compare"] *):where([data-gcb-kit-covered]) { opacity: 0; }

/* container */
/* CONTAINER: the width content is held to. No script.
   The container is as wide as the box it is in, keeps a gutter at each side (its own padding) and is a grid of one
   column, the held width, in its middle. Each thing straight inside is a row in that column. A grid's columns are
   worked out from the grid's OWN width, so the column is right wherever the container is: edge to edge, held to a
   max-width, a flex or grid item, inside WordPress's constrained layout. A background on the container runs edge to
   edge, and a margin a design writes on a thing inside (margin: 0, mx-4) moves it inside the column and never out of it.
   data-width: left out, the site's content width; "wide", its wide width; "full", the whole box less the gutter.
   --gcb-container-width on a container holds it to any width of its own.

   THE SITE'S WIDTHS. The two widths and the gutter are the part's own tokens. Where a WordPress theme says them
   (theme.json's contentSize and wideSize, its root padding) they start as the theme's, so a container lines up with
   the theme's own blocks; where it does not, these are unset and each rule below falls back to its default (680px,
   1200px, the site's panel padding). Set one on :root, body or any box and it wins. */
:where(:root) {
	--gcb-container-content: var(--wp--style--global--content-size);
	--gcb-container-wide: var(--wp--style--global--wide-size);
	--gcb-container-gutter: var(--wp--style--root--padding-left);
}

/* THE CONTAINER. Weighs nothing, so a class written on it wins: a padding class sets its gutter, and the column stays
   held. The one column is the width, or the room there is less the gutter when that is narrower (a phone); a
   break-out adds a track each side of it that takes the rest of the room. */
:where([data-gcb-kit="container"]) {
	--gcb-container-width: var(--gcb-container-content, 680px);
	box-sizing: border-box;
	display: grid; /* mechanic: the column is a grid track, measured against the container itself */
	grid-template-columns: [content-start] min(100%, var(--gcb-container-width, var(--gcb-container-content, 680px))) [content-end];
	grid-auto-columns: minmax(0, 1fr); /* mechanic: the tracks a break-out spans, either side of the column, share the rest of the room */
	justify-content: center; /* mechanic: with no break-out the one column sits in the middle */
	padding-inline: var(--gcb-container-gutter, var(--gcb-kit-pad-panel));
}
:where([data-gcb-kit="container"][data-width="wide"]) { --gcb-container-width: var(--gcb-container-wide, 1200px); }
:where([data-gcb-kit="container"][data-width="full"]) { --gcb-container-width: 100%; }

/* HELD: each thing straight inside is in the column. A theme's bare <hr> has side margins of auto, which in a grid
   would shrink it to nothing, so a rule straight inside is the column's width; it weighs one attribute (README rule 2)
   and stands aside for one marked data-gcb-own. */
:where([data-gcb-kit="container"] > *) { grid-column: content; }
[data-gcb-kit="container"] > :where(hr):where(:not([data-gcb-own])) { margin-inline: 0; }

/* A CONTAINER STRAIGHT INSIDE A CONTAINER is laid against the outer one's whole box, gutter and all, and holds its
   own width with its own gutter: a content container in a content one is the same column, a wide one in a content
   one is the wide width. */
:where([data-gcb-kit="container"] > [data-gcb-kit="container"]) {
	grid-column: -3 / 3; /* mechanic: one track before the column and one after it */
	margin-inline: calc(-1 * var(--gcb-container-gutter, var(--gcb-kit-pad-panel)));
}

/* BREAKING OUT: one thing straight inside spans the column and a track each side of it, the whole room inside the
   gutter, and is placed in that by its side margins. It may be a figure or a heading, which a theme that is not reset
   gives side margins BY ITS TAG, so the margins weigh one attribute (README rule 2) and stand aside for an element
   marked data-gcb-own.
   WIDE: to the wide width, never narrower than the column and never into the gutter, so on a phone it is the column.
   FULL: to both edges of the container, through its gutter.
   START / END: from the container's start (or end) edge to the column's other side: a picture to the edge with the
   words in the column. */
:where([data-gcb-kit="container"] > [data-gcb-kit-break]:not([data-gcb-own])) { grid-column: -3 / 3; } /* mechanic: one track before the column and one after it */
[data-gcb-kit-break="wide"]:where([data-gcb-kit="container"] > :not([data-gcb-own])) {
	max-width: none;
	margin-inline: max(0%, (100% - max(var(--gcb-container-wide, 1200px), var(--gcb-container-width, var(--gcb-container-content, 680px)))) / 2);
}
[data-gcb-kit-break="full"]:where([data-gcb-kit="container"] > :not([data-gcb-own])) {
	max-width: none;
	margin-inline: calc(-1 * var(--gcb-container-gutter, var(--gcb-kit-pad-panel)));
}
[data-gcb-kit-break="start"]:where([data-gcb-kit="container"] > :not([data-gcb-own])) {
	max-width: none;
	margin-inline: calc(-1 * var(--gcb-container-gutter, var(--gcb-kit-pad-panel))) max(0%, (100% - var(--gcb-container-width, var(--gcb-container-content, 680px))) / 2);
}
[data-gcb-kit-break="end"]:where([data-gcb-kit="container"] > :not([data-gcb-own])) {
	max-width: none;
	margin-inline: max(0%, (100% - var(--gcb-container-width, var(--gcb-container-content, 680px))) / 2) calc(-1 * var(--gcb-container-gutter, var(--gcb-kit-pad-panel)));
}

/* copy */
/* COPY: a button that copies a value and says so. It is a <button> (or a link), which a theme styles by its tag, so its
   look weighs ONE attribute and no more (README rule 2), and stands aside for a button the design made its own
   (data-gcb-own) and for one that is the site's button (.gcb-btn), which keeps the site's look and gains only the tick.
   Its states (hover, focus, press, off) and its two moments (copied, failed) keep their pseudo-class or state outside
   :where, as the accordion's trigger and the close button do, so a theme's own `button:hover`, `button:focus` or
   `a:hover` does not repaint it.
   Every value is a token: the part's own first, the list's after (tokens/README.md). Its border, its hover, its focus
   mark and its copied fill are made of the colour of the words, so it sits on any background with nothing set.
   With no script it could copy nothing, so it is not shown; its script marks it ready. */
[data-gcb-kit="copy"]:where(:not([data-gcb-own], .gcb-btn)) {
	appearance: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; vertical-align: middle;
	gap: var(--gcb-kit-gap-s);
	height: var(--gcb-copy-h, var(--gcb-kit-control-h)); min-width: 0; min-height: 0; margin: 0;
	padding: var(--gcb-copy-pad, 0 var(--gcb-kit-pad-control));
	border: var(--gcb-kit-line-w) solid var(--gcb-copy-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-copy-radius, var(--gcb-kit-radius-full));
	background: transparent; box-shadow: none; color: inherit; text-decoration: none; text-shadow: none; white-space: nowrap; cursor: pointer;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-control);
	font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
	transition: background-color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* SMALL: data-size="small" is the site's pill height: beside a code in a line of words, in a table row */
[data-gcb-kit="copy"]:where([data-size="small"]:not([data-gcb-own], .gcb-btn)) {
	height: var(--gcb-copy-h, var(--gcb-kit-pill-h));
	padding: var(--gcb-copy-pad, 0 var(--gcb-kit-gap));
	font-size: var(--gcb-kit-text-meta);
}
/* ICON ONLY: data-look="icon" is a square with no border, quieter than the words until it is pointed at */
[data-gcb-kit="copy"]:where([data-look="icon"]:not([data-gcb-own], .gcb-btn)) { aspect-ratio: 1; padding: 0; border-color: transparent; color: var(--gcb-kit-quiet); }

/* A THEME'S OWN STATES KEPT OFF: whatever `button:hover`, `button:focus`, `button:active`, `button:disabled` or
   `a:hover` brings, it stays itself in every state; the states below then add only what is the part's */
[data-gcb-kit="copy"]:where(:not([data-gcb-own], .gcb-btn)):is(:hover, :focus, :active, :disabled, [aria-disabled="true"]) {
	background: transparent; border-color: var(--gcb-copy-line, var(--gcb-kit-rule-strong)); box-shadow: none; outline: 0;
	color: inherit; text-decoration: none; text-shadow: none;
}
[data-gcb-kit="copy"]:where([data-look="icon"]:not([data-gcb-own], .gcb-btn)):is(:hover, :focus, :active, :disabled, [aria-disabled="true"]) { border-color: transparent; color: var(--gcb-kit-quiet); }

/* POINTED AT: a faint fill of the words' colour; an icon-only one comes up to the words' colour. Pressed, it gives a
   little. Nothing happens that cannot be pressed. */
[data-gcb-kit="copy"]:where(:not([data-gcb-own], .gcb-btn, :disabled, [aria-disabled="true"])):hover { background: var(--gcb-kit-wash); }
[data-gcb-kit="copy"]:where([data-look="icon"]:not([data-gcb-own], .gcb-btn, :disabled, [aria-disabled="true"])):is(:hover, :focus-visible) { color: inherit; }
[data-gcb-kit="copy"]:where(:not([data-gcb-own], .gcb-btn, :disabled, [aria-disabled="true"])):active { scale: var(--gcb-kit-press); }

/* FOCUSED: the site's outline in the colour of the words, so it shows on a section's own colour, the accent's too.
   The site's button (.gcb-btn) keeps its own focus mark, and a button the design made its own keeps the design's. */
[data-gcb-kit="copy"]:where(:not([data-gcb-own], .gcb-btn)):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* OFF: disabled, or aria-disabled="true": faint, and it copies nothing */
[data-gcb-kit="copy"]:where(:not([data-gcb-own], .gcb-btn)):is(:disabled, [aria-disabled="true"]) { opacity: var(--gcb-kit-disabled); cursor: not-allowed; scale: none; }

/* ITS ICON: a drawing of the design's (an svg) is sized; an empty [data-gcb-kit-icon] is drawn as the copy sign, in
   the colour of the words */
:where([data-gcb-kit="copy"]:not([data-gcb-own], .gcb-btn) svg) { flex: none; width: var(--gcb-copy-icon, 18px); height: var(--gcb-copy-icon, 18px); }
:where([data-gcb-kit="copy"] [data-gcb-kit-icon]:empty) {
	flex: none; display: inline-block; width: var(--gcb-copy-icon, 18px); height: var(--gcb-copy-icon, 18px); background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2.5'/%3E%3Cpath d='M15 5.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* COPIED (data-state="copied", for a moment): a border in the words' colour round a faint fill, and a tick before its
   words in place of its icon; an icon-only one, which has no border, takes a firmer fill than its hover. So copied
   reads apart from hovered at a glance. The state is outside :where, like a
   hover, so a theme's `button:hover` cannot take it off while the pointer is still on it. A button the design made its
   own gets none of this: it shows the state with its own classes. */
[data-gcb-kit="copy"][data-state="copied"]:where(:not([data-gcb-own], .gcb-btn)) {
	background: var(--gcb-copy-tint, var(--gcb-kit-wash));
	border-color: var(--gcb-copy-tint-line, currentColor);
	color: var(--gcb-copy-on-tint, inherit);
}
[data-gcb-kit="copy"][data-state="copied"]:where([data-look="icon"]:not([data-gcb-own], .gcb-btn)) { background: var(--gcb-copy-tint, var(--gcb-kit-rule)); border-color: transparent; }

/* FAILED (data-state="failed", for a moment): a cross before its words in place of its icon, a border and a faint fill
   of the site's error colour, so a refusal is seen, icon-only too, and not only heard */
[data-gcb-kit="copy"][data-state="failed"]:where(:not([data-gcb-own], .gcb-btn)) {
	background: var(--gcb-copy-fail-tint, color-mix(in srgb, var(--gcb-kit-error) 10%, transparent));
	border-color: var(--gcb-copy-fail-line, var(--gcb-kit-error));
	color: var(--gcb-copy-on-fail, inherit);
}

/* THE TICK AND THE CROSS: drawn in the colour of the words, arriving with a little spring */
:where([data-gcb-kit="copy"]:is([data-state="copied"], [data-state="failed"]):not([data-gcb-own]))::before {
	content: ""; flex: none; width: var(--gcb-copy-tick, 16px); height: var(--gcb-copy-tick, 16px); background: currentColor;
	mask: var(--gcb-kit-tick) center / contain no-repeat;
	animation: gcb-copy-tick var(--gcb-kit-dur-spring) var(--gcb-kit-ease-spring);
}
:where([data-gcb-kit="copy"][data-state="failed"]:not([data-gcb-own]))::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
@keyframes gcb-copy-tick { from { scale: 0.3; opacity: 0; } }
/* mechanic: the tick or the cross takes its icon's place: a drawing at any depth (an svg in a span), or an icon-font mark */
[data-gcb-kit="copy"]:is([data-state="copied"], [data-state="failed"]):not([data-gcb-own]) :is(svg, [data-gcb-kit-icon], [aria-hidden="true"]:empty, [aria-hidden="true"]:has(svg)) { display: none; }

[data-gcb-kit="copy"]:not([data-gcb-kit-ready]) { display: none; } /* mechanic: with no script it could copy nothing, so it is not shown */

@media (forced-colors: active) {
	:where([data-gcb-kit="copy"] [data-gcb-kit-icon]:empty), :where([data-gcb-kit="copy"]:is([data-state="copied"], [data-state="failed"]):not([data-gcb-own]))::before { background: ButtonText; } /* mechanic: a high-contrast mode throws away fills, and these drawings are fills */
}

/* countdown */
/* COUNTDOWN: the time left to a moment, in slots the design draws. Its look is little: figures that do not shift as
   they change, which words show (the left while there is time, the done once it is up), and one look, tiles.
   Every look weighs nothing (:where), so a class on any element wins; every value is a token (tokens/README.md).
   With no script it shows what is written: its plain words ([data-gcb-kit-countdown-static]), and its running words
   only if their slots were filled where the page was made. */
:where([data-gcb-kit="countdown"] [data-gcb-kit-countdown-part]) { font-variant-numeric: tabular-nums; }
:where([data-gcb-kit="countdown"] [data-gcb-kit-countdown-part]:not([data-gcb-kit-countdown-part="days"], [data-gcb-kit-countdown-part="weeks"])) { display: inline-block; min-inline-size: 2ch; text-align: center; } /* mechanic: two figures wide whatever the face, so nothing moves as the seconds change */

/* WHICH WORDS SHOW */
[data-gcb-kit="countdown"]:not([data-done]) [data-gcb-kit-countdown-done] { display: none; } /* mechanic: not up yet */
[data-gcb-kit="countdown"][data-done] [data-gcb-kit-countdown-left] { display: none; } /* mechanic: time is up */
[data-gcb-kit="countdown"][data-done]:not(:has([data-gcb-kit-countdown-left])) > :has([data-gcb-kit-countdown-part]):not(:has([data-gcb-kit-countdown-done])) { display: none; } /* mechanic: time is up, and no left was marked: the boxes that hold slots go */
[data-gcb-kit="countdown"][data-done]:not(:has([data-gcb-kit-countdown-left])) > [data-gcb-kit-countdown-part] { display: none; } /* mechanic: the same, for bare slots */
[data-gcb-kit="countdown"][data-gcb-kit-ready] [data-gcb-kit-countdown-static] { display: none; } /* mechanic: the plain words are for a page with no script */
[data-gcb-kit="countdown"]:not([data-gcb-kit-ready], [data-done]) [data-gcb-kit-countdown-left]:has([data-gcb-kit-countdown-part]:empty, [data-gcb-kit-countdown-value]:empty) { display: none; } /* mechanic: slots nobody filled say nothing true; hidden until the script fills them */
[data-gcb-kit="countdown"][hidden] { display: none; } /* mechanic: data-done-action="hide" holds against a display class */
[data-gcb-kit="countdown"] [data-gcb-kit-countdown-say] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: heard, not seen: says the time is up to a screen reader */

/* TILES (data-look="tiles"): each box that holds a slot is a tile, its number large over its caption. The tiles may be
   written as a list (ul > li): a theme styles those BY THEIR TAG (README rule 2), so the two rules that take its margin,
   indent and bullets away weigh one attribute and stand aside for data-gcb-own. Everything else weighs nothing. */
:where([data-gcb-kit="countdown"][data-look="tiles"] [data-gcb-kit-countdown-left]) {
	display: flex; flex-wrap: wrap; align-items: stretch; margin: 0; padding: 0;
	gap: var(--gcb-countdown-between, var(--gcb-kit-gap-s));
}
[data-gcb-kit-countdown-left]:where([data-gcb-kit="countdown"][data-look="tiles"] *):where(ul, ol):where(:not([data-gcb-own])) { margin: 0; padding: 0; list-style: none; }
:where([data-gcb-kit="countdown"][data-look="tiles"] :has(> [data-gcb-kit-countdown-part]):not([data-gcb-kit-countdown-left], [data-gcb-kit="countdown"])) {
	display: inline-grid; justify-items: center; align-content: center; box-sizing: border-box;
	min-inline-size: var(--gcb-countdown-tile-w, 64px);
	gap: var(--gcb-countdown-gap, 2px);
	margin: 0;
	padding: var(--gcb-countdown-pad, 10px 8px 8px);
	border-radius: var(--gcb-countdown-radius, var(--gcb-kit-radius-field));
	background: var(--gcb-countdown-tile, var(--gcb-kit-wash));
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-caption);
	font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
}
:has(> [data-gcb-kit-countdown-part]):where([data-gcb-kit="countdown"][data-look="tiles"] *):where(li):where(:not([data-gcb-kit-countdown-left], [data-gcb-own])) {
	margin: 0; padding: var(--gcb-countdown-pad, 10px 8px 8px); list-style: none;
}
:where([data-gcb-kit="countdown"][data-look="tiles"] [data-gcb-kit-countdown-part]) {
	color: var(--gcb-countdown-number-ink, inherit);
	font-size: var(--gcb-countdown-number, calc(var(--gcb-kit-text-title) * 1.4));
	font-weight: var(--gcb-kit-weight-title);
	line-height: var(--gcb-countdown-number-leading, 1.1);
}
/* the script marks how many figures the longest slot has, so a three-figure day count widens every tile alike */
:where([data-gcb-kit="countdown"][data-look="tiles"][data-figures="3"] [data-gcb-kit-countdown-part]) { min-inline-size: calc(3ch + 0.15em); } /* mechanic: as wide as the longest count, so the tiles stay one size (a figure drawn tabular can be a hair wider than the plain "0" a ch measures) */
:where([data-gcb-kit="countdown"][data-look="tiles"][data-figures="4"] [data-gcb-kit-countdown-part]) { min-inline-size: calc(4ch + 0.2em); } /* mechanic: the same, for four figures */
:where([data-gcb-kit="countdown"][data-look="tiles"] [data-gcb-kit-countdown-caption]) { color: var(--gcb-countdown-caption, var(--gcb-kit-quiet)); }

/* counter */
/* COUNTER: a figure that counts up when it comes into view. Its look is little: figures that are one width each so
   nothing jitters as they change, a figure that never breaks across two lines, and a marked prefix or suffix
   ([data-gcb-kit-prefix], [data-gcb-kit-suffix]) that can be sized, coloured and lifted. Every look weighs nothing
   (:where), so a class on any element wins; every value is a token (tokens/README.md).
   With no script it shows what is written, which is the real figure. */
:where([data-gcb-kit="counter"]) {
	font-variant-numeric: tabular-nums lining-nums;
	white-space: nowrap;
	color: var(--gcb-counter-ink, inherit);
}
:where([data-gcb-kit="counter"]) :where([data-gcb-kit-prefix], [data-gcb-kit-suffix]) {
	font-size: var(--gcb-counter-affix-size, inherit);
	color: var(--gcb-counter-affix-ink, inherit);
	vertical-align: var(--gcb-counter-affix-align, baseline);
}
:where([data-gcb-kit="counter"]) :where([data-gcb-kit-prefix]) { margin-inline-end: var(--gcb-counter-affix-gap, 0); }
:where([data-gcb-kit="counter"]) :where([data-gcb-kit-suffix]) { margin-inline-start: var(--gcb-counter-affix-gap, 0); }

/* HOW LONG AND ON WHAT CURVE the count runs: said here so they are tokens, and read by the script off a box of its own
   (<gcb-counter-clock>) that it puts in the root for a moment. No theme styles that tag, so a theme's
   `* { transition: … }` or `span { transition: … }` is never the count's time; nothing on the page moves by these. */
[data-gcb-kit="counter"] > gcb-counter-clock {
	transition-duration: var(--gcb-counter-duration, calc(var(--gcb-kit-dur-panel) * 4));
	transition-timing-function: var(--gcb-counter-ease, var(--gcb-kit-ease-punch));
}
[data-gcb-kit="counter"] > gcb-counter-clock { display: none; transition-property: none; } /* mechanic: never seen, never moves: it only carries the time and curve */

/* WHILE IT COUNTS the script draws the moving figure in an empty box (seen, not heard, and not in the page's words, so
   copying and find-in-page get the real figure) and keeps the real figure beside it (heard, not seen), so a screen
   reader is never read a figure halfway up. Both go when the count is done. */
[data-gcb-kit="counter"] [data-gcb-kit-counter-run]::before { content: attr(data-gcb-kit-counter-shown); } /* mechanic: the moving figure is drawn, never written */
[data-gcb-kit="counter"] [data-gcb-kit-counter-real] { display: inline-block; width: 1px; height: 1px; margin-inline-end: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: heard, not seen; inline, so the page's words read as one figure with no break round it */
[data-gcb-kit="counter"][data-hold] [data-gcb-kit-counter-run] { display: inline-block; } /* mechanic: data-hold keeps the finished figure's width from the start (the script sets it), so words after it do not move */

/* counts */
/* COUNTS: numbers counted with − and +. Each [data-gcb-kit-count] is a row: its name and a quieter line on one side,
   − the number + on the other, over a real <input type="number"> that a form sends. Every value is a token: the part's
   own first (--gcb-count-…, the names sites already set), the site's after (tokens/README.md).
   An input, a button and a label are elements a theme styles BY THEIR TAG, so on those a rule weighs ONE attribute and
   no more (README rule 2): it beats a theme's `input { border … }`, `button { padding … }` and `label { margin … }`,
   loses to any class written on the element, and stands aside whole for one marked data-gcb-own. Everything else
   weighs nothing. A theme's `input[type=number] { … }` weighs more than one attribute and so wins on the number; the
   number's width is then its figures', so the theme's padding and border add round them and never cut them off.
   Its lines are made of the colour of the words and nothing has a fill, so it sits on any background with nothing set.
   With no script each row is its name beside a plain number box. Its script puts − and + round the number and sets
   data-gcb-kit-ready. */
:where([data-gcb-kit="counts"]) {
	display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-body);
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
	text-align: start;
}

/* A ROW: its words at the start, the number at the end, a line between two rows */
:where([data-gcb-kit="counts"] [data-gcb-kit-count]) {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
	column-gap: var(--gcb-count-gap, 24px);
	padding: var(--gcb-count-pad, var(--gcb-kit-pad-control) 0);
}
:where([data-gcb-kit="counts"] [data-gcb-kit-count] ~ [data-gcb-kit-count]) { border-top: var(--gcb-kit-line-w) solid var(--gcb-count-line, var(--gcb-kit-rule)); }
/* the first row has no room above it and the last none below, so the part's edges are its words' */
:where([data-gcb-kit="counts"] [data-gcb-kit-count]:not([data-gcb-kit-count] ~ *)) { padding-top: 0; }
:where([data-gcb-kit="counts"] [data-gcb-kit-count]:not(:has(~ [data-gcb-kit-count]))) { padding-bottom: 0; }
/* its name (marked, usually a <label>, which a theme styles by its tag; else its first span) and its quieter line
   (marked, else its second span) */
[data-gcb-kit-count-name]:where([data-gcb-kit="counts"] :not([data-gcb-own])) {
	grid-column: 1; margin: 0; padding: 0; color: inherit;
	font-size: inherit; font-weight: var(--gcb-kit-weight-control); line-height: inherit;
	letter-spacing: inherit; text-transform: none;
}
:where([data-gcb-kit="counts"] [data-gcb-kit-count] > span:first-of-type:not([data-gcb-kit-count-hint], [data-gcb-kit-count-name])) {
	grid-column: 1; margin: 0; color: inherit;
	font-weight: var(--gcb-kit-weight-control);
}
:where([data-gcb-kit="counts"] [data-gcb-kit-count-hint], [data-gcb-kit="counts"] [data-gcb-kit-count] > span:nth-of-type(2):not([data-gcb-kit-count-name])) {
	grid-column: 1; margin: 0;
	color: var(--gcb-kit-quiet);
	font-size: var(--gcb-kit-text-meta);
	font-weight: var(--gcb-kit-weight-body);
}
:where([data-gcb-kit="counts"] [data-gcb-kit-count] > input, [data-gcb-kit="counts"] [data-gcb-kit-count-step]) { grid-column: 2; grid-row: 1 / span 2; }
/* a row with a name and no quieter line: the name level with the number's middle */
:where([data-gcb-kit="counts"] [data-gcb-kit-count]:not(:has([data-gcb-kit-count-hint], > span + span)) > :is([data-gcb-kit-count-name], span:first-of-type)) { grid-row: 1 / span 2; }

/* ONE COUNT IN A LINE OF OTHER THINGS (data-inline: a quantity beside "Add to basket"): as wide as its number only */
:where([data-gcb-kit="counts"][data-inline]) { display: inline-grid; vertical-align: middle; }
:where([data-gcb-kit="counts"][data-inline] [data-gcb-kit-count]) { display: flex; gap: var(--gcb-kit-gap); padding: 0; border: 0; }

/* THE NUMBER, with no script: a small box to type in, as tall as the buttons will be so nothing moves when they come */
[type="number"]:where([data-gcb-kit="counts"] input:not([data-gcb-own])) {
	box-sizing: border-box; margin: 0;
	width: var(--gcb-count-field-w, 4.5em);
	height: var(--gcb-count-button, 32px);
	padding: 0 var(--gcb-kit-gap-s);
	border: var(--gcb-kit-line-w) solid var(--gcb-count-button-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-variant-numeric: tabular-nums; letter-spacing: inherit;
	text-align: center;
}
[type="number"]:where([data-gcb-kit="counts"] input:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
/* …and between − and +: the number alone, still typed in, the browser's own little arrows off. Its width is its
   figures' (content-box), as many as the longest number it can hold (--gcb-count-figures, which the script sets
   from its most) and never fewer than --gcb-count-number-w */
[type="number"]:where([data-gcb-kit="counts"][data-gcb-kit-ready] input:not([data-gcb-own])) {
	appearance: textfield; -moz-appearance: textfield;
	box-sizing: content-box;
	width: max(var(--gcb-count-number-w, 3ch), var(--gcb-count-figures, 0ch));
	height: auto; padding: 0; border: 0;
}
[type="number"]:where([data-gcb-kit="counts"][data-gcb-kit-ready] input:not([data-gcb-own]))::-webkit-inner-spin-button { appearance: none; margin: 0; }
[type="number"]:where([data-gcb-kit="counts"][data-gcb-kit-ready] input:not([data-gcb-own]))::-webkit-outer-spin-button { appearance: none; margin: 0; }

/* − THE NUMBER + */
:where([data-gcb-kit="counts"] [data-gcb-kit-count-step]) { display: flex; align-items: center; flex: none; gap: var(--gcb-count-step-gap, 14px); }
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] :not([data-gcb-own])) {
	appearance: none; position: relative; display: grid; place-items: center; flex: none; box-sizing: border-box;
	width: var(--gcb-count-button, 32px);
	height: var(--gcb-count-button, 32px);
	min-width: 0; min-height: 0; margin: 0; padding: 0;
	border: var(--gcb-kit-line-w) solid var(--gcb-count-button-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-count-button-radius, var(--gcb-kit-radius-full));
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; line-height: 1; text-transform: none; text-decoration: none;
	cursor: pointer;
	transition: border-color var(--gcb-kit-dur-feedback), opacity var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* a small round button is still as easy to press as any control: the room round it counts as the button */
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] :not([data-gcb-own]))::before {
	content: ""; position: absolute;
	inset: min(0px, (var(--gcb-count-button, 32px) - var(--gcb-kit-control-h)) / 2); /* mechanic: the pressable area is never smaller than the site's control height */
}
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] :not([data-gcb-own]):hover:not(:disabled, [aria-disabled="true"])) { border-color: var(--gcb-count-button-hover, currentColor); }
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] :not([data-gcb-own]):active:not(:disabled, [aria-disabled="true"])) { scale: var(--gcb-kit-press); }
/* its keyboard mark is the site's, on a button the design made its own too */
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] :focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
/* at its least or its most that button is faint and does nothing */
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] :is(:disabled, [aria-disabled="true"])) { cursor: not-allowed; }
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] :not([data-gcb-own]):is(:disabled, [aria-disabled="true"])) { opacity: var(--gcb-count-disabled, var(--gcb-kit-disabled)); }
[data-gcb-kit="counts"]:not([data-gcb-kit-ready]) :is([data-gcb-kit-count-less], [data-gcb-kit-count-more]) { display: none; } /* mechanic: a − or + the design drew does nothing until the script is up */

/* the − and the + are drawn in the colour of the words (an empty [data-gcb-kit-icon]); one with a drawing in it, or a
   button with words, is left alone */
:where([data-gcb-kit="counts"] :is([data-gcb-kit-count-less], [data-gcb-kit-count-more]) [data-gcb-kit-icon]:empty) { position: relative; display: block; width: var(--gcb-count-icon, 14px); height: var(--gcb-count-icon, 14px); }
:where([data-gcb-kit="counts"] :is([data-gcb-kit-count-less], [data-gcb-kit-count-more]) [data-gcb-kit-icon]:empty)::before,
:where([data-gcb-kit="counts"] [data-gcb-kit-count-more] [data-gcb-kit-icon]:empty)::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; }
/* the bars: twice a thin line, as thick as a heavy one, never heavier than a seventh of the drawing */
:where([data-gcb-kit="counts"] :is([data-gcb-kit-count-less], [data-gcb-kit-count-more]) [data-gcb-kit-icon]:empty)::before { width: 100%; height: min(calc(var(--gcb-kit-line-w) * 2), max(var(--gcb-kit-line-w), calc(var(--gcb-count-icon, 14px) / 7))); }
:where([data-gcb-kit="counts"] [data-gcb-kit-count-more] [data-gcb-kit-icon]:empty)::after { width: min(calc(var(--gcb-kit-line-w) * 2), max(var(--gcb-kit-line-w), calc(var(--gcb-count-icon, 14px) / 7))); height: 100%; }

/* THE BOXED LOOK (data-look="box"): − the number + as one field-shaped box, a line between each, as tall as a control */
:where([data-gcb-kit="counts"][data-look="box"][data-gcb-kit-ready] [data-gcb-kit-count-step]:not([data-gcb-own])) {
	gap: 0; align-items: stretch; overflow: hidden;
	border: var(--gcb-kit-line-w) solid var(--gcb-count-button-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-count-button-radius, var(--gcb-kit-radius-field));
}
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"][data-look="box"] :not([data-gcb-own])) {
	width: var(--gcb-count-button, var(--gcb-kit-control-h));
	height: var(--gcb-count-button, var(--gcb-kit-control-h));
	border: 0; border-radius: 0;
	outline-offset: calc(var(--gcb-kit-focus-offset) * -2);
}
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"][data-look="box"] :not([data-gcb-own]):hover:not(:disabled, [aria-disabled="true"])) { background: var(--gcb-kit-wash); }
[type="number"]:where([data-gcb-kit="counts"][data-look="box"][data-gcb-kit-ready] input:not([data-gcb-own])) {
	height: auto; align-self: stretch; /* mechanic: as tall as its buttons, whatever padding a theme gives a number box */
	padding-inline: calc(var(--gcb-kit-pad-control) / 2);
	border-inline: var(--gcb-kit-line-w) solid var(--gcb-count-button-line, var(--gcb-kit-rule-strong));
	border-radius: 0;
	outline-offset: calc(var(--gcb-kit-focus-offset) * -2);
}
[type="number"]:where([data-gcb-kit="counts"][data-look="box"]:not([data-gcb-kit-ready]) input:not([data-gcb-own])) {
	height: var(--gcb-count-button, var(--gcb-kit-control-h));
	border-radius: var(--gcb-count-button-radius, var(--gcb-kit-radius-field));
}

/* A COUNT THAT CANNOT BE CHANGED (disabled on its input): the whole row faint */
:where([data-gcb-kit="counts"] [data-gcb-kit-count]:has(input:disabled)) { opacity: var(--gcb-count-disabled, var(--gcb-kit-disabled)); }
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] [data-gcb-kit-count]:has(input:disabled) :not([data-gcb-own])) { opacity: 1; }
[type="number"]:where([data-gcb-kit="counts"] input:disabled:not([data-gcb-own])) { cursor: not-allowed; }

/* A COUNT THE PAGE MARKED WRONG (aria-invalid="true" on its input; with no script the browser's own check too): its
   number and its lines in the site's error colour. Say why in its quieter line, which already describes the number. */
[type="number"]:where([data-gcb-kit="counts"]:not([data-gcb-kit-ready]) input:is([aria-invalid="true"], :user-invalid):not([data-gcb-own])) { border-color: var(--gcb-kit-error); }
[type="number"]:where([data-gcb-kit="counts"][data-gcb-kit-ready] input[aria-invalid="true"]:not([data-gcb-own])) { color: var(--gcb-kit-error); }
:is([data-gcb-kit-count-less], [data-gcb-kit-count-more]):where([data-gcb-kit="counts"] [data-gcb-kit-count]:has(input[aria-invalid="true"]) :not([data-gcb-own])) { border-color: var(--gcb-kit-error); }
:where([data-gcb-kit="counts"][data-look="box"][data-gcb-kit-ready] [data-gcb-kit-count]:has(input[aria-invalid="true"]) [data-gcb-kit-count-step]:not([data-gcb-own])) { border-color: var(--gcb-kit-error); }
[type="number"]:where([data-gcb-kit="counts"][data-look="box"][data-gcb-kit-ready] input[aria-invalid="true"]:not([data-gcb-own])) { border-inline-color: var(--gcb-kit-error); }

/* THE SUM IN WORDS ("3 guests"), wherever the design wrote it; quieter while it still shows the design's own words */
:where([data-gcb-kit="counts"] [data-gcb-kit-counts-said]) { margin: 0; }
:where([data-gcb-kit="counts"] [data-gcb-kit-counts-said][data-placeholder]) { color: var(--gcb-kit-quiet); }
[data-gcb-kit="counts"] [data-gcb-kit-counts-live] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: heard by a screen reader when − or + is pressed, never seen */

/* dates */
/* DATES: a field that opens a calendar, for one date or for a start and an end. The root is data-gcb-kit="dates"; in
   it one or two [data-gcb-kit-field]s, each a label over a real <input type="date">.
   With no script the fields are the browser's own date inputs in the site's box, and that is all there is: whole and
   usable. Its script puts a button in each field ([data-gcb-kit-dates-shown]) that says the date in words, takes the
   input out of sight under it (still what the form sends), and draws the calendar ([data-gcb-kit-dates-calendar]).
   The input, the field's button, the days and the calendar's other buttons are elements a theme styles by their tag,
   so their looks weigh ONE attribute and stand aside for an element marked data-gcb-own; everything else weighs
   nothing (:where). Every value is a token: the part's own first, the site's after (tokens/README.md). */

:where([data-gcb-kit="dates"]) { display: flex; flex-wrap: wrap; align-items: flex-end; min-width: 0; gap: var(--gcb-kit-gap); }
[data-gcb-kit="dates"] [hidden] { display: none; } /* mechanic: a field or words the design keeps out of sight stay out of sight */
[data-gcb-kit="dates"]:not([data-gcb-kit-ready]) :is([data-gcb-kit-dates-calendar], [data-gcb-kit-dates-presets], [data-gcb-kit-dates-when]:not([data-gcb-kit-dates-when="empty"])) { display: none; } /* mechanic: with no script there is no calendar, so nothing that depends on it shows */
[data-gcb-kit="dates"]:not([data-gcb-kit-ready]):has(input[type="date"][value]:not([value=""])) [data-gcb-kit-dates-when="empty"] { display: none; } /* mechanic: and the words for "nothing picked" only while nothing is */
[data-gcb-kit="dates"][data-gcb-kit-ready][data-calendar="always"][data-fields="none"] [data-gcb-kit-field] { display: none; } /* mechanic: data-fields="none": the calendar on the page is the only way in once it is up; with no script the fields are */

/* A FIELD: its label over its box */
:where([data-gcb-kit="dates"] [data-gcb-kit-field]) {
	display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; margin: 0;
	flex: 1 1 var(--gcb-dates-field-w, 11em);
	gap: calc(var(--gcb-kit-gap-s) * 0.75);
	color: inherit;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control); font-style: normal;
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case); text-align: start;
}
[data-gcb-kit="dates"] [data-gcb-kit-field] { position: relative; } /* mechanic: what the input out of sight is placed against */

/* THE BOX: the browser's date input before the script is up, the button that says the date after. A firm line made
   of the words' colour, nothing behind it, so it sits on any background.
   Its states (hovered, focused, waiting, wrong) weigh the one attribute and the state, as a theme's `button:hover` or
   `input:focus` does, and come later, so a theme's hovered or focused button never shows through. */
[data-gcb-kit-dates-shown]:where(:not([data-gcb-own])),
[type="date"]:where([data-gcb-kit="dates"] :not([data-gcb-own])) {
	box-sizing: border-box; width: 100%; min-width: 0; margin: 0;
	min-height: var(--gcb-dates-h, var(--gcb-kit-control-h));
	padding: 0 var(--gcb-kit-pad-control);
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong);
	border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
	letter-spacing: inherit; text-transform: none; text-decoration: none;
	transition: border-color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback);
}
[type="date"]:where([data-gcb-kit="dates"] :not([data-gcb-own])) { display: block; }
[data-gcb-kit-dates-shown]:where(:not([data-gcb-own])) {
	appearance: none; display: flex; align-items: center; justify-content: space-between;
	gap: var(--gcb-kit-gap-s);
	text-align: start; white-space: nowrap; cursor: pointer;
}
[data-gcb-kit-dates-shown]:where(:not([data-gcb-own])):is(:hover, :focus, :active),
[type="date"]:where([data-gcb-kit="dates"] :not([data-gcb-own])):is(:hover, :focus, :active) {
	background: transparent; color: inherit; border-color: var(--gcb-kit-rule-strong); box-shadow: none;
}
[data-gcb-kit-dates-shown]:where(:not(:disabled, [data-readonly], [data-gcb-own])):hover,
[type="date"]:where([data-gcb-kit="dates"] :not(:disabled, :read-only, :focus, [data-gcb-own])):hover { border-color: var(--gcb-kit-quiet); }
/* read-only (readonly on its input): a faint fill; it says its date and does not open */
[data-gcb-kit-dates-shown]:where([data-readonly]:not([data-gcb-own])),
[data-gcb-kit-dates-shown]:where([data-readonly]:not([data-gcb-own])):is(:hover, :focus, :active),
[type="date"]:where([data-gcb-kit="dates"] :read-only:not(:disabled, [data-gcb-own])),
[type="date"]:where([data-gcb-kit="dates"] :read-only:not(:disabled, [data-gcb-own])):is(:hover, :focus, :active) { background: var(--gcb-kit-wash); cursor: default; }
/* the one the calendar is open for, or the end the next day pressed sets: the accent's line and the soft ring */
[data-gcb-kit-dates-shown]:where([data-waiting]:not([data-gcb-own])),
[data-gcb-kit-dates-shown]:where([data-waiting]:not([data-gcb-own])):is(:hover, :focus, :active),
[type="date"]:where([data-gcb-kit="dates"] :not(:read-only, [data-gcb-own])):focus {
	outline: var(--gcb-kit-line-w) solid transparent;
	border-color: var(--gcb-kit-accent);
	box-shadow: var(--gcb-kit-focus-ring);
}
/* the keyboard's mark: the site's outline in the colour of the words, so it shows on a section's own colour too */
[data-gcb-kit-dates-shown]:where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
/* wrong (a form's check found it empty, or out of its limits) */
[data-gcb-kit-dates-shown]:where([aria-invalid="true"]:not([data-gcb-own])),
[data-gcb-kit-dates-shown]:where([aria-invalid="true"]:not([data-gcb-own])):is(:hover, :focus, :active) { border-color: var(--gcb-kit-error); }
[data-gcb-kit-dates-shown]:where([aria-invalid="true"][data-waiting]:not([data-gcb-own])),
[data-gcb-kit-dates-shown]:where([aria-invalid="true"][data-waiting]:not([data-gcb-own])):is(:hover, :focus, :active) { box-shadow: var(--gcb-kit-error-ring); }
[data-gcb-kit-dates-shown]:where(:not([data-gcb-own])):disabled,
[type="date"]:where([data-gcb-kit="dates"] :not([data-gcb-own])):disabled { background: transparent; border-color: var(--gcb-kit-rule-strong); opacity: var(--gcb-kit-disabled); cursor: not-allowed; }
:where([data-gcb-kit-dates-shown] [data-gcb-kit-dates-label]) { min-width: 0; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
/* no date yet: its placeholder, quieter */
:where([data-gcb-kit-dates-shown][data-placeholder] [data-gcb-kit-dates-label]) { color: var(--gcb-kit-quiet); }
/* THE MARK: an empty [data-gcb-kit-dates-icon] is drawn as a small calendar; one written in the field with a drawing
   in it is moved into the button and left alone */
:where([data-gcb-kit-dates-shown] [data-gcb-kit-dates-icon]) { flex: none; display: inline-flex; color: var(--gcb-kit-quiet); }
:where([data-gcb-kit="dates"]:not([data-gcb-kit-ready]) [data-gcb-kit-field] > [data-gcb-kit-dates-icon]) { display: none; }
:where([data-gcb-kit-dates-shown] [data-gcb-kit-dates-icon]:empty) {
	width: var(--gcb-dates-icon, 1.2em); height: var(--gcb-dates-icon, 1.2em);
	background: currentColor;
	-webkit-mask: var(--gcb-dates-mark, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E")) center / contain no-repeat;
	mask: var(--gcb-dates-mark, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E")) center / contain no-repeat;
}
:where([data-gcb-kit-dates-shown] [data-gcb-kit-dates-icon] svg) { width: var(--gcb-dates-icon, 1.2em); height: var(--gcb-dates-icon, 1.2em); }
/* HELP AND ERROR under a field (optional): help in quiet words; the error, in the error's colour, only while the field
   is wrong, in the help's place. The script fills an empty error with the browser's own message */
:where([data-gcb-kit="dates"] [data-gcb-kit-field] :is([data-gcb-kit-hint], [data-gcb-kit-error-text])) { margin: 0; font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body); }
:where([data-gcb-kit="dates"] [data-gcb-kit-field] [data-gcb-kit-hint]) { color: var(--gcb-kit-quiet); }
:where([data-gcb-kit="dates"] [data-gcb-kit-field] [data-gcb-kit-error-text]) { color: var(--gcb-kit-error); font-weight: var(--gcb-kit-weight-control); }
[data-gcb-kit="dates"] [data-gcb-kit-field]:not(:has([aria-invalid="true"])) [data-gcb-kit-error-text], [data-gcb-kit="dates"] [data-gcb-kit-field]:has([aria-invalid="true"]) [data-gcb-kit-hint] { display: none; } /* mechanic: the error shows only while the field is wrong, in the help's place */
/* before the script is up, the browser's own mark in the input is drawn as ours, in the words' colour (a browser that
   does not let it be drawn keeps its own) */
[type="date"]:where([data-gcb-kit="dates"] :not([data-gcb-own]))::-webkit-calendar-picker-indicator {
	width: var(--gcb-dates-icon, 1.2em); height: var(--gcb-dates-icon, 1.2em); padding: 0; cursor: pointer;
	background: var(--gcb-kit-quiet);
	-webkit-mask: var(--gcb-dates-mark, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E")) center / contain no-repeat;
	mask: var(--gcb-dates-mark, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E")) center / contain no-repeat;
}
[data-gcb-kit="dates"][data-gcb-kit-ready] [data-gcb-kit-field] > input[type="date"] { position: absolute; inset: auto 0 0 0; opacity: 0; pointer-events: none; } /* mechanic: the input out of sight under its button, still in the form, its own message pointing at the box */

/* THE PRESETS: chips over or under the fields */
:where([data-gcb-kit="dates"] [data-gcb-kit-dates-presets]) { display: flex; flex-wrap: wrap; flex: 0 0 100%; gap: var(--gcb-kit-gap-s); }
:is([data-days], [data-from], [data-to]):where([data-gcb-kit-dates-presets] :not([data-gcb-own])) {
	appearance: none; display: inline-flex; align-items: center; box-sizing: border-box; margin: 0;
	min-height: var(--gcb-kit-pill-h);
	padding: 0 var(--gcb-kit-gap);
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong);
	border-radius: var(--gcb-kit-radius-full);
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback);
}
:is([data-days], [data-from], [data-to]):where([data-gcb-kit-dates-presets] :not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; color: inherit; border-color: var(--gcb-kit-rule-strong); }
:is([data-days], [data-from], [data-to]):where([data-gcb-kit-dates-presets] :not(:disabled, [data-gcb-own])):hover { background: var(--gcb-kit-wash); }
:is([data-days], [data-from], [data-to]):where([data-gcb-kit-dates-presets] [aria-pressed="true"]:not([data-gcb-own])),
:is([data-days], [data-from], [data-to]):where([data-gcb-kit-dates-presets] [aria-pressed="true"]:not([data-gcb-own])):is(:hover, :focus, :active) {
	border-color: var(--gcb-dates-selected, var(--gcb-kit-accent));
	background: var(--gcb-dates-selected, var(--gcb-kit-accent));
	color: var(--gcb-dates-on-selected, var(--gcb-kit-on-accent));
}
:is([data-days], [data-from], [data-to]):where([data-gcb-kit-dates-presets] :not([data-gcb-own])):disabled { opacity: var(--gcb-kit-disabled); cursor: not-allowed; }
/* the keyboard's mark in the colour of the words; on a pressed one, inside it in the colour of its words */
:is([data-days], [data-from], [data-to]):where([data-gcb-kit-dates-presets] :not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
:is([data-days], [data-from], [data-to]):where([data-gcb-kit-dates-presets] [aria-pressed="true"]:not([data-gcb-own])):focus-visible { outline-offset: calc(var(--gcb-kit-focus-offset) * -2); }

/* THE CALENDAR. Open on the page (data-calendar="always") it is part of its section: nothing behind it, the words'
   own colour. Opened from a field it is what a menu is made of: the site's surface, its words, the menu's shadow. */
:where([data-gcb-kit-dates-calendar]) {
	box-sizing: border-box;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-body); font-style: normal;
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case); text-align: start;
}
:where([data-gcb-kit-dates-calendar][data-always]) { flex: 0 0 100%; max-width: 100%; min-width: 0; }
:where([data-gcb-kit-dates-calendar]:not([data-always])) {
	width: max-content;
	margin: var(--gcb-dates-gutter, 6px) 0;
	padding: var(--gcb-dates-pad, var(--gcb-kit-pad-control));
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-line-soft);
	border-radius: var(--gcb-dates-radius, var(--gcb-kit-radius-card));
	background: var(--gcb-kit-surface); color: var(--gcb-kit-ink);
	box-shadow: var(--gcb-kit-shadow-menu);
	overflow: auto; overscroll-behavior: contain;
}
[data-gcb-kit-ready] [data-gcb-kit-dates-calendar]:not([data-always]) { position: fixed; inset: auto; z-index: 1000; max-width: calc(100vw - 16px); } /* mechanic: a box in the top layer, placed by the script, never wider than the screen */
[data-gcb-kit-ready] [data-gcb-kit-dates-calendar]:not([data-open]) { display: none; } /* mechanic: shut */
[data-gcb-kit-dates-status] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: words for a screen reader only (the month it turned to) */
/* it grows in from its field, with the menus' motion (no time at all for someone who asked for less) */
@keyframes gcb-dates-in { from { opacity: 0; scale: var(--gcb-kit-press); } }
:where([data-gcb-kit-dates-calendar][data-open]:not([data-always])) { transform-origin: top; animation: gcb-dates-in var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit-dates-calendar][data-open][data-side="top"]:not([data-always])) { transform-origin: bottom; }

:where([data-gcb-kit-dates-inner]) { display: grid; grid-template-columns: minmax(0, 1fr); width: fit-content; max-width: 100%; gap: var(--gcb-kit-gap); }
/* months side by side, one under another where there is no room */
:where([data-gcb-kit-dates-months]) { display: flex; flex-wrap: wrap; gap: var(--gcb-dates-month-gap, var(--gcb-kit-pad-panel)); }
:where([data-gcb-kit-dates-month]) {
	display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; flex: none; max-width: 100%;
	width: calc(var(--gcb-dates-day, var(--gcb-kit-day)) * 7);
	gap: var(--gcb-kit-gap-s);
}

/* THE MONTH'S NAME between its arrows. The name is a button: it opens the months, then the years */
:where([data-gcb-kit-dates-head]) { display: grid; grid-template-columns: var(--gcb-dates-day, var(--gcb-kit-day)) minmax(0, 1fr) var(--gcb-dates-day, var(--gcb-kit-day)); align-items: center; }
:is([data-gcb-kit-dates-prev], [data-gcb-kit-dates-next], [data-gcb-kit-dates-title]):where(:not([data-gcb-own])) {
	appearance: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; margin: 0; padding: 0;
	height: var(--gcb-dates-day, var(--gcb-kit-day));
	border: 0;
	border-radius: var(--gcb-dates-day-radius, var(--gcb-kit-radius-full));
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-weight: var(--gcb-kit-weight-control); letter-spacing: inherit; text-transform: inherit; text-decoration: none;
	cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-dates-title]:where(:not([data-gcb-own])) { justify-self: center; padding: 0 var(--gcb-kit-gap); gap: var(--gcb-kit-gap-s); font-size: var(--gcb-kit-text-body); white-space: nowrap; }
:is([data-gcb-kit-dates-prev], [data-gcb-kit-dates-next], [data-gcb-kit-dates-title]):where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; color: inherit; border-color: transparent; }
:is([data-gcb-kit-dates-prev], [data-gcb-kit-dates-next], [data-gcb-kit-dates-title]):where(:not(:disabled, [data-gcb-own])):hover { background: var(--gcb-kit-wash); }
:is([data-gcb-kit-dates-prev], [data-gcb-kit-dates-next], [data-gcb-kit-dates-title]):where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: calc(var(--gcb-kit-focus-offset) * -1); }
:is([data-gcb-kit-dates-prev], [data-gcb-kit-dates-next]):where(:not([data-gcb-own])):disabled { opacity: var(--gcb-kit-disabled); cursor: default; }
[data-gcb-kit-dates-title]:where(:not([data-gcb-own])):disabled { opacity: 1; cursor: default; }
/* the arrows, and the small one after the name: drawn, in the words' colour. Their stroke is the site's line doubled,
   but never more than a third of the arrow, so a thick line still draws an arrow */
:where(:is([data-gcb-kit-dates-prev], [data-gcb-kit-dates-next]):empty)::before,
:where([data-gcb-kit-dates-title]:not(:disabled))::after {
	content: ""; flex: none; box-sizing: border-box;
	width: var(--gcb-dates-chevron, 0.55em); height: var(--gcb-dates-chevron, 0.55em);
	border: solid currentColor; border-width: 0 min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-dates-chevron, 0.55em) / 3)) min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-dates-chevron, 0.55em) / 3)) 0;
}
/* pointing back and on; right to left, the other way */
:where([data-gcb-kit-dates-prev]:empty)::before { rotate: 135deg; translate: 20% 0; }
:where([data-gcb-kit-dates-next]:empty)::before { rotate: -45deg; translate: -20% 0; }
:where([data-gcb-kit-dates-prev]:empty:dir(rtl))::before { rotate: -45deg; translate: -20% 0; }
:where([data-gcb-kit-dates-next]:empty:dir(rtl))::before { rotate: 135deg; translate: 20% 0; }
:where([data-gcb-kit-dates-title]:not(:disabled))::after { scale: 0.75; rotate: 45deg; translate: 0 -20%; opacity: var(--gcb-kit-disabled); }

/* THE DAYS: seven to a row, each a round button the site's day wide. They shrink together where there is less room.
   Like the box, their states weigh the one attribute and the state, so a theme's hovered or focused button never
   shows through; a picked day keeps its fill whatever the pointer or the focus does */
:where([data-gcb-kit-dates-grid]) { display: grid; grid-template-columns: minmax(0, 1fr); }
:where([data-gcb-kit-dates-row]) { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
:where([data-gcb-kit-dates-weekday]) {
	display: grid; place-items: center; min-width: 0; overflow: hidden; padding-block: var(--gcb-kit-gap-s);
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-control); white-space: nowrap;
}
:where([data-gcb-kit-dates-slot]) { display: grid; min-width: 0; }
[data-gcb-kit-dates-day]:where(:not([data-gcb-own])) {
	appearance: none; display: grid; place-items: center; box-sizing: border-box; width: 100%; min-width: 0; aspect-ratio: 1; margin: 0; padding: 0;
	border: var(--gcb-kit-line-w) solid transparent;
	border-radius: var(--gcb-dates-day-radius, var(--gcb-kit-radius-full));
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-variant-numeric: tabular-nums; letter-spacing: inherit; text-decoration: none;
	cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-dates-day]:where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; color: inherit; border-color: transparent; box-shadow: none; }
[data-gcb-kit-dates-day]:where(:not([data-disabled], [data-gcb-own])):hover { background: var(--gcb-kit-wash); }
/* today: a ring made of the words' colour, and a heavier number */
[data-gcb-kit-dates-day]:where([data-today]:not([data-gcb-own])),
[data-gcb-kit-dates-day]:where([data-today]:not([data-gcb-own])):is(:hover, :focus, :active) { border-color: var(--gcb-kit-rule-strong); font-weight: var(--gcb-kit-weight-title); }
/* the date picked, and a range's two ends: the accent, whatever else the day is */
[data-gcb-kit-dates-day]:where([data-selected]:not([data-gcb-own])),
[data-gcb-kit-dates-day]:where([data-selected]:not([data-gcb-own])):is(:hover, :focus, :active) {
	border-color: transparent;
	background: var(--gcb-dates-selected, var(--gcb-kit-accent));
	color: var(--gcb-dates-on-selected, var(--gcb-kit-on-accent));
	font-weight: var(--gcb-kit-weight-control);
}
/* the end a pointer or the keyboard is on while it is being chosen: a ring in the accent */
[data-gcb-kit-dates-day]:where([data-stay-trail-end]:not([data-gcb-own])),
[data-gcb-kit-dates-day]:where([data-stay-trail-end]:not([data-gcb-own])):is(:hover, :focus, :active) { border-color: var(--gcb-dates-selected, var(--gcb-kit-accent)); }
/* a day that cannot be picked: faint; one that is taken (a booking) and cannot be picked: struck through as well */
[data-gcb-kit-dates-day]:where([data-disabled]:not([data-selected], [data-gcb-own])) { opacity: var(--gcb-kit-disabled); }
[data-gcb-kit-dates-day]:where([data-disabled]:not([data-gcb-own])) { cursor: default; }
[data-gcb-kit-dates-day]:where([data-unavailable][data-disabled]:not([data-gcb-own])) { text-decoration: line-through; }
/* the keyboard's mark: the site's outline in the colour of the words, so it shows on a section's own colour; on a
   picked day it sits inside the fill, in the colour of the number */
[data-gcb-kit-dates-day]:where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit-dates-day]:where([data-selected]:not([data-gcb-own])):focus-visible { outline-offset: calc(var(--gcb-kit-focus-offset) * -2); }
/* THE BAND behind the days between a start and an end: a faint fill made of the words' colour, running cell to cell,
   from the middle of the start to the middle of the end, rounded where a week ends (right to left, mirrored) */
:where([data-gcb-kit-dates-slot]:has(> :is([data-stay-in], [data-stay-trail]:not([data-stay-trail-end])))) { background: var(--gcb-dates-range, var(--gcb-kit-wash)); }
:where([data-gcb-kit-dates-slot]:has(> [data-stay-start][data-stay-joins])) { background: linear-gradient(to right, transparent 50%, var(--gcb-dates-range, var(--gcb-kit-wash)) 50%); }
:where([data-gcb-kit-dates-slot]:has(> :is([data-stay-end][data-stay-joins], [data-stay-trail-end]))) { background: linear-gradient(to left, transparent 50%, var(--gcb-dates-range, var(--gcb-kit-wash)) 50%); }
:where([data-gcb-kit-dates-slot]:dir(rtl):has(> [data-stay-start][data-stay-joins])) { background: linear-gradient(to left, transparent 50%, var(--gcb-dates-range, var(--gcb-kit-wash)) 50%); }
:where([data-gcb-kit-dates-slot]:dir(rtl):has(> :is([data-stay-end][data-stay-joins], [data-stay-trail-end]))) { background: linear-gradient(to right, transparent 50%, var(--gcb-dates-range, var(--gcb-kit-wash)) 50%); }
:where([data-gcb-kit-dates-slot]:first-child:has(> :is([data-stay-in], [data-stay-trail]))) { border-start-start-radius: var(--gcb-dates-day-radius, var(--gcb-kit-radius-full)); border-end-start-radius: var(--gcb-dates-day-radius, var(--gcb-kit-radius-full)); }
:where([data-gcb-kit-dates-slot]:last-child:has(> :is([data-stay-in], [data-stay-trail]))) { border-start-end-radius: var(--gcb-dates-day-radius, var(--gcb-kit-radius-full)); border-end-end-radius: var(--gcb-dates-day-radius, var(--gcb-kit-radius-full)); }

/* THE MONTHS OF A YEAR, THE YEARS OF A DOZEN: three to a row, in the days' own look */
:where([data-gcb-kit-dates-pick]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gcb-kit-gap-s); }
[data-gcb-kit-dates-cell]:where(:not([data-gcb-own])) {
	appearance: none; display: grid; place-items: center; box-sizing: border-box; min-width: 0; margin: 0; padding: 0;
	min-height: var(--gcb-dates-day, var(--gcb-kit-day));
	border: var(--gcb-kit-line-w) solid transparent;
	border-radius: var(--gcb-dates-day-radius, var(--gcb-kit-radius-full));
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; letter-spacing: inherit; text-decoration: none;
	cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-dates-cell]:where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; color: inherit; border-color: transparent; box-shadow: none; }
[data-gcb-kit-dates-cell]:where(:not(:disabled, [data-gcb-own])):hover { background: var(--gcb-kit-wash); }
[data-gcb-kit-dates-cell]:where([data-today]:not([data-gcb-own])),
[data-gcb-kit-dates-cell]:where([data-today]:not([data-gcb-own])):is(:hover, :focus, :active) { border-color: var(--gcb-kit-rule-strong); font-weight: var(--gcb-kit-weight-title); }
[data-gcb-kit-dates-cell]:where([data-selected]:not([data-gcb-own])),
[data-gcb-kit-dates-cell]:where([data-selected]:not([data-gcb-own])):is(:hover, :focus, :active) {
	border-color: transparent;
	background: var(--gcb-dates-selected, var(--gcb-kit-accent));
	color: var(--gcb-dates-on-selected, var(--gcb-kit-on-accent));
	font-weight: var(--gcb-kit-weight-control);
}
[data-gcb-kit-dates-cell]:where(:not([data-gcb-own])):disabled { opacity: var(--gcb-kit-disabled); cursor: default; }
[data-gcb-kit-dates-cell]:where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit-dates-cell]:where([data-selected]:not([data-gcb-own])):focus-visible { outline-offset: calc(var(--gcb-kit-focus-offset) * -2); }

/* THE FOOT: what to pick next (or what is wrong), Clear, Done */
:where([data-gcb-kit-dates-foot]) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
	gap: var(--gcb-kit-gap-s) var(--gcb-kit-pad-control);
	padding-top: var(--gcb-kit-gap);
	border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-rule);
}
:where([data-gcb-kit-dates-hint]) { flex: 1 1 auto; color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); unicode-bidi: plaintext; text-align: match-parent; }
:where([data-gcb-kit-dates-hint][data-error]) { color: var(--gcb-kit-error); font-weight: var(--gcb-kit-weight-control); }
:is([data-gcb-kit-dates-clear], [data-gcb-kit-dates-done]):where(:not([data-gcb-own])) {
	appearance: none; display: inline-flex; align-items: center; box-sizing: border-box; margin: 0; padding: 0;
	min-height: var(--gcb-kit-pill-h);
	border: 0;
	border-radius: var(--gcb-kit-radius-check);
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-weight: var(--gcb-kit-weight-control); letter-spacing: inherit; text-transform: inherit;
	text-decoration: underline; text-underline-offset: var(--gcb-kit-focus-offset);
	cursor: pointer;
}
[data-gcb-kit-dates-done]:where(:not([data-gcb-own])) { color: var(--gcb-kit-accent); text-decoration-color: transparent; }
:is([data-gcb-kit-dates-clear], [data-gcb-kit-dates-done]):where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; color: inherit; }
[data-gcb-kit-dates-clear]:where(:not([data-gcb-own])):hover { text-decoration-thickness: calc(var(--gcb-kit-line-w) * 2); }
[data-gcb-kit-dates-done]:where(:not([data-gcb-own])):is(:hover, :focus, :active) { color: var(--gcb-kit-accent); }
[data-gcb-kit-dates-done]:where(:not([data-gcb-own])):hover { text-decoration-color: currentColor; }
:is([data-gcb-kit-dates-clear], [data-gcb-kit-dates-done]):where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* depth */
/* DEPTH: a picture, and over it, once the script is up, a canvas that draws the same picture moved by its depth. The
   picture stays underneath: with no script it is all there is, and it holds the box's size. */
:where([data-gcb-kit="depth"]) {
	position: relative; display: block; overflow: hidden; margin: 0; padding: 0;
	aspect-ratio: var(--gcb-depth-ratio, auto);
}
:where([data-gcb-kit="depth"]) > :where(img) {
	display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0;
	box-shadow: none; object-fit: cover; object-position: var(--gcb-depth-focus, center);
}
:where([data-gcb-kit="depth"]) > :where(canvas) {
	position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
}

/* dialog */
/* DIALOG: a pop-up over the page, and with data-side a drawer from an edge. The native <dialog>, opened as a modal by
   its script. Every value is a token: the part's own first, the list's after (tokens/README.md).
   WEIGHT (README rule 2): a dialog, its corner close (a button) and its title (a heading) are elements a theme styles
   BY THEIR TAG, so the rules on those weigh ONE attribute and no more: a theme's `dialog { … }`, `button { … }` or
   `h2 { … }` does not undo the part. They stand aside for an element the design marked data-gcb-own, and the corner
   close for a close-button part written there. Everything else (the body, the foot, where things sit) weighs nothing.
   With no script it cannot be opened: where scripting is off it is shown where it is written, and an opener that is a
   link to its id shows it there too (the last rules). */

/* THE PANEL, both kinds: what a panel is made of, its room, its words */
[data-gcb-kit="dialog"]:where(dialog:not([data-gcb-own])) {
	box-sizing: border-box;
	border: 0;
	padding: var(--gcb-dialog-pad, var(--gcb-kit-pad-panel));
	background: var(--gcb-kit-surface);
	color: var(--gcb-kit-ink);
	box-shadow: var(--gcb-dialog-shadow, var(--gcb-kit-shadow-panel));
	border-radius: var(--gcb-dialog-radius, var(--gcb-kit-radius-panel));
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-body);
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
	text-align: start;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 1;
	translate: 0 0;
	scale: 1;
	transition: opacity var(--gcb-dialog-dur, var(--gcb-kit-dur-expand)) var(--gcb-dialog-ease, var(--gcb-kit-ease-expand)), translate var(--gcb-dialog-dur, var(--gcb-kit-dur-expand)) var(--gcb-dialog-ease, var(--gcb-kit-ease-expand)), scale var(--gcb-dialog-dur, var(--gcb-kit-dur-expand)) var(--gcb-dialog-ease, var(--gcb-kit-ease-expand));
}
[data-gcb-kit="dialog"]:where(dialog:not([data-gcb-own]))::backdrop {
	background: var(--gcb-dialog-scrim, var(--gcb-kit-scrim));
	opacity: 1;
	transition: opacity var(--gcb-dialog-dur, var(--gcb-kit-dur-expand)) var(--gcb-dialog-ease, var(--gcb-kit-ease-expand));
}

/* A POP-UP: in the middle of the screen, a reading width, never taller or wider than the screen less its gutter */
[data-gcb-kit="dialog"]:where(dialog:not([data-side], [data-gcb-own])) {
	width: min(var(--gcb-dialog-w, 560px), calc(100% - var(--gcb-dialog-gutter, 32px)));
	max-width: none;
	max-height: calc(100% - var(--gcb-dialog-gutter, 32px));
	margin: auto;
}
[data-gcb-kit="dialog"]:where(dialog[data-size="small"]:not([data-side], [data-gcb-own])) {
	width: min(var(--gcb-dialog-w, 400px), calc(100% - var(--gcb-dialog-gutter, 32px)));
}
[data-gcb-kit="dialog"]:where(dialog[data-size="wide"]:not([data-side], [data-gcb-own])) {
	width: min(var(--gcb-dialog-w, var(--gcb-kit-modal-w)), calc(100% - var(--gcb-dialog-gutter, 32px)));
}
[data-gcb-kit="dialog"]:where(dialog[data-size="full"]:not([data-side], [data-gcb-own])) {
	width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	border-radius: 0;
}

/* A DRAWER: against its edge, the height of the screen (from the top or the bottom: as tall as what is in it),
   corners on the edge that faces the page, a strip of the page always left to press */
[data-gcb-kit="dialog"]:where(dialog[data-side]:not([data-gcb-own])) {
	margin: 0;
	max-width: none;
	max-height: none;
	transition: translate var(--gcb-dialog-dur, var(--gcb-kit-dur-panel)) var(--gcb-dialog-ease, var(--gcb-kit-ease-panel));
}
[data-gcb-kit="dialog"]:where(dialog[data-side]:not([data-gcb-own]))::backdrop {
	transition: opacity var(--gcb-dialog-dur, var(--gcb-kit-dur-panel)) var(--gcb-dialog-ease, var(--gcb-kit-ease-panel));
}
[data-gcb-kit="dialog"]:where(dialog:is([data-side="right"], [data-side="left"]):not([data-gcb-own])) {
	width: min(var(--gcb-dialog-w, var(--gcb-kit-drawer-w)), calc(100% - var(--gcb-dialog-gutter, 48px)));
	height: 100%;
}
[data-gcb-kit="dialog"]:where(dialog[data-side="right"]:not([data-gcb-own])) {
	inset: 0 0 0 auto;
	border-radius: var(--gcb-dialog-radius, var(--gcb-kit-radius-panel)) 0 0 var(--gcb-dialog-radius, var(--gcb-kit-radius-panel));
}
[data-gcb-kit="dialog"]:where(dialog[data-side="left"]:not([data-gcb-own])) {
	inset: 0 auto 0 0;
	border-radius: 0 var(--gcb-dialog-radius, var(--gcb-kit-radius-panel)) var(--gcb-dialog-radius, var(--gcb-kit-radius-panel)) 0;
}
[data-gcb-kit="dialog"]:where(dialog:is([data-side="bottom"], [data-side="top"]):not([data-gcb-own])) {
	width: 100%;
	height: auto;
	max-height: var(--gcb-dialog-h, 88%);
}
[data-gcb-kit="dialog"]:where(dialog[data-side="bottom"]:not([data-gcb-own])) {
	inset: auto 0 0 0;
	border-radius: var(--gcb-dialog-radius, var(--gcb-kit-radius-panel)) var(--gcb-dialog-radius, var(--gcb-kit-radius-panel)) 0 0;
	padding-bottom: max(var(--gcb-dialog-pad, var(--gcb-kit-pad-panel)), env(safe-area-inset-bottom));
}
[data-gcb-kit="dialog"]:where(dialog[data-side="top"]:not([data-gcb-own])) {
	inset: 0 0 auto 0;
	border-radius: 0 0 var(--gcb-dialog-radius, var(--gcb-kit-radius-panel)) var(--gcb-dialog-radius, var(--gcb-kit-radius-panel));
	padding-top: max(var(--gcb-dialog-pad, var(--gcb-kit-pad-panel)), env(safe-area-inset-top));
}

/* WHAT IS IN IT: the panel's room is the part's, so the first and last things in it bring none of their own: by tag
   for the ones a theme gives margins to (a thing with a class is the design's) */
:where([data-gcb-kit="dialog"] > :first-child, [data-gcb-kit="dialog"] > [data-gcb-kit-close]:first-child + *) { margin-top: 0; }
:where([data-gcb-kit="dialog"] > :last-child) { margin-bottom: 0; }
[data-gcb-kit="dialog"] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where(:first-child, [data-gcb-kit-close]:first-child + *):where(:not([data-gcb-own], [class])) { margin-top: 0; }
[data-gcb-kit="dialog"] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where(:last-child):where(:not([data-gcb-own], [class])) { margin-bottom: 0; }

/* THE TITLE: the first heading written straight in the dialog, and only that one. Its room is the part's; its size
   and weight are the site's panel title unless the design gave the heading a class of its own. */
[data-gcb-kit="dialog"] > :where(h1, h2, h3, h4, h5, h6):where(:not(:is(h1, h2, h3, h4, h5, h6) ~ *)):where(:not([data-gcb-own])) {
	margin: 0 0 var(--gcb-kit-gap);
	padding: 0;
	border: 0;
}
[data-gcb-kit="dialog"] > :where(h1, h2, h3, h4, h5, h6):where(:not(:is(h1, h2, h3, h4, h5, h6) ~ *)):where(:not([data-gcb-own], [class])) {
	font-size: var(--gcb-kit-text-title);
	font-weight: var(--gcb-kit-weight-title);
	line-height: var(--gcb-kit-leading);
}
/* the title clear of the corner close, whichever way the page reads */
[data-gcb-kit="dialog"] > :where(h1, h2, h3, h4, h5, h6):where(:not(:is(h1, h2, h3, h4, h5, h6) ~ *)):where([data-gcb-kit="dialog"]:has(> [data-gcb-kit-close]) > :not([data-gcb-own])) { padding-inline-end: var(--gcb-dialog-close, var(--gcb-kit-control-h)); }

/* THE CORNER CLOSE: a close button written straight in the dialog sits at its top corner, on the side the words end
   (so on the left of a right-to-left page), as far in as puts its middle level with the title's first line whatever
   the panel's room is. Where it sits weighs nothing; a close-button part written there is put in the same corner and
   keeps its own look. */
:where([data-gcb-kit="dialog"] > [data-gcb-kit-close]) {
	position: absolute;
	inset-block-start: var(--gcb-dialog-close-inset, max(0px, calc(var(--gcb-dialog-pad, var(--gcb-kit-pad-panel)) + (var(--gcb-kit-text-title) * var(--gcb-kit-leading) - var(--gcb-dialog-close, var(--gcb-kit-control-h))) / 2)));
	inset-inline-end: var(--gcb-dialog-close-inset, max(0px, calc(var(--gcb-dialog-pad, var(--gcb-kit-pad-panel)) + (var(--gcb-kit-text-title) * var(--gcb-kit-leading) - var(--gcb-dialog-close, var(--gcb-kit-control-h))) / 2)));
}
/* its look: a quiet round button. Left empty it is drawn as a cross made of the words' colour, quieter until pointed
   at; with words or a drawing in it, it is left alone. A close button anywhere deeper (a "Cancel" in the foot) is the
   design's own button. */
[data-gcb-kit-close]:where([data-gcb-kit="dialog"] > *):where(:not([data-gcb-own], [data-gcb-kit="close-button"])) {
	appearance: none;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: var(--gcb-dialog-close, var(--gcb-kit-control-h));
	height: var(--gcb-dialog-close, var(--gcb-kit-control-h));
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--gcb-kit-radius-full);
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-size: var(--gcb-kit-text-section);
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-close]:where([data-gcb-kit="dialog"] > *):where(:not([data-gcb-own], [data-gcb-kit="close-button"])):hover { background: var(--gcb-kit-rule); color: inherit; }
[data-gcb-kit-close]:where([data-gcb-kit="dialog"] > *):where(:not([data-gcb-own], [data-gcb-kit="close-button"])):active { scale: var(--gcb-kit-press); }
[data-gcb-kit-close]:where([data-gcb-kit="dialog"] > *):where(:not([data-gcb-own], [data-gcb-kit="close-button"])):focus-visible { background: transparent; color: inherit; outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
:where([data-gcb-kit="dialog"] > [data-gcb-kit-close]:not([data-gcb-own], [data-gcb-kit="close-button"]):empty)::before,
:where([data-gcb-kit="dialog"] > [data-gcb-kit-close]:not([data-gcb-own], [data-gcb-kit="close-button"]):empty)::after {
	content: "";
	grid-area: 1 / 1;
	width: var(--gcb-dialog-cross, 36%);
	height: var(--gcb-dialog-stroke, min(calc(var(--gcb-kit-line-w) * 2), 3px));
	border-radius: var(--gcb-kit-radius-full);
	background: var(--gcb-kit-quiet);
	rotate: 45deg;
	transition: background-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="dialog"] > [data-gcb-kit-close]:not([data-gcb-own], [data-gcb-kit="close-button"]):empty)::after { rotate: -45deg; }
:where([data-gcb-kit="dialog"] > [data-gcb-kit-close]:not([data-gcb-own], [data-gcb-kit="close-button"]):empty:is(:hover, :focus-visible))::before,
:where([data-gcb-kit="dialog"] > [data-gcb-kit-close]:not([data-gcb-own], [data-gcb-kit="close-button"]):empty:is(:hover, :focus-visible))::after { background: currentColor; }

/* A BODY THAT SCROLLS, A FOOT THAT STAYS: with a [data-gcb-kit-body] in it the panel holds still and the body
   scrolls between two lines, so the title, the close and the foot are always there. The foot is a row of buttons at
   the end. */
[data-gcb-kit="dialog"]:where(dialog[open]:has(> [data-gcb-kit-body]):not([data-gcb-own])) { display: flex; flex-direction: column; overflow: hidden; }
:where([data-gcb-kit="dialog"] > [data-gcb-kit-body]) {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	margin-inline: calc(-1 * var(--gcb-dialog-pad, var(--gcb-kit-pad-panel)));
	padding-inline: var(--gcb-dialog-pad, var(--gcb-kit-pad-panel));
}
:where([data-gcb-kit="dialog"] > :is(h1, h2, h3, h4, h5, h6) + [data-gcb-kit-body]) {
	margin-top: calc(var(--gcb-kit-pad-control) - var(--gcb-kit-gap));
	padding-top: var(--gcb-kit-pad-control);
	border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-rule);
}
:where([data-gcb-kit="dialog"] > [data-gcb-kit-body]:not(:last-child)) { padding-bottom: var(--gcb-kit-pad-control); }
:where([data-gcb-kit="dialog"] > [data-gcb-kit-body] > :first-child) { margin-top: 0; }
:where([data-gcb-kit="dialog"] > [data-gcb-kit-body] > :last-child) { margin-bottom: 0; }
[data-gcb-kit-body] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="dialog"] > [data-gcb-kit-body] > :first-child):where(:not([data-gcb-own], [class])) { margin-top: 0; }
[data-gcb-kit-body] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="dialog"] > [data-gcb-kit-body] > :last-child):where(:not([data-gcb-own], [class])) { margin-bottom: 0; }
:where([data-gcb-kit="dialog"] > [data-gcb-kit-foot]) {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: var(--gcb-kit-gap);
	margin-top: var(--gcb-dialog-pad, var(--gcb-kit-pad-panel));
}
:where([data-gcb-kit="dialog"] > [data-gcb-kit-body] + [data-gcb-kit-foot]) {
	margin-top: 0;
	margin-inline: calc(-1 * var(--gcb-dialog-pad, var(--gcb-kit-pad-panel)));
	padding: var(--gcb-kit-pad-control) var(--gcb-dialog-pad, var(--gcb-kit-pad-panel)) 0;
	border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-rule);
}

/* ITS MOTION. A pop-up rises in (data-effect="fade": only fades; "none": no motion); a drawer slides from its edge.
   Coming in starts from @starting-style; going, its script marks it data-shutting and closes it when the motion ends.
   The site's durations are 0 for someone who asked for less motion, so then it is simply there and gone. */
:where(dialog[data-gcb-kit="dialog"][data-ease="spring"]) { --gcb-dialog-ease: var(--gcb-kit-ease-spring); }
:where(dialog[data-gcb-kit="dialog"][data-ease="expand"]) { --gcb-dialog-ease: var(--gcb-kit-ease-expand); }
:where(dialog[data-gcb-kit="dialog"][data-ease="panel"]) { --gcb-dialog-ease: var(--gcb-kit-ease-panel); }
:where(dialog[data-gcb-kit="dialog"][data-ease="osmo"]) { --gcb-dialog-ease: var(--gcb-kit-ease-osmo); }
:where(dialog[data-gcb-kit="dialog"][data-ease="punch"]) { --gcb-dialog-ease: var(--gcb-kit-ease-punch); }

[data-gcb-kit="dialog"]:where(dialog[data-shutting]:not([data-side], [data-gcb-own])) {
	opacity: 0;
	translate: 0 var(--gcb-dialog-rise, 16px);
	transition-duration: var(--gcb-dialog-dur-out, var(--gcb-kit-dur-menu));
}
[data-gcb-kit="dialog"]:where(dialog[data-shutting]:not([data-side], [data-gcb-own]))::backdrop { transition-duration: var(--gcb-dialog-dur-out, var(--gcb-kit-dur-menu)); }
[data-gcb-kit="dialog"]:where(dialog[data-shutting][data-side]:not([data-gcb-own])) { transition-duration: var(--gcb-dialog-dur-out, var(--gcb-dialog-dur, var(--gcb-kit-dur-panel))); }
[data-gcb-kit="dialog"]:where(dialog[data-shutting][data-side]:not([data-gcb-own]))::backdrop { transition-duration: var(--gcb-dialog-dur-out, var(--gcb-dialog-dur, var(--gcb-kit-dur-panel))); }
[data-gcb-kit="dialog"]:where(dialog[data-shutting][data-effect="fade"]:not([data-side], [data-gcb-own])) { translate: 0 0; }
[data-gcb-kit="dialog"]:where(dialog[data-shutting][data-side="right"]:not([data-gcb-own])) { translate: 100% 0; }
[data-gcb-kit="dialog"]:where(dialog[data-shutting][data-side="left"]:not([data-gcb-own])) { translate: -100% 0; }
[data-gcb-kit="dialog"]:where(dialog[data-shutting][data-side="bottom"]:not([data-gcb-own])) { translate: 0 100%; }
[data-gcb-kit="dialog"]:where(dialog[data-shutting][data-side="top"]:not([data-gcb-own])) { translate: 0 -100%; }
[data-gcb-kit="dialog"]:where(dialog[data-shutting]:not([data-gcb-own]))::backdrop { opacity: 0; }
@starting-style {
	[data-gcb-kit="dialog"]:where(dialog[open]:not([data-side], [data-gcb-own])) {
		opacity: 0;
		translate: 0 var(--gcb-dialog-rise, 16px);
		scale: var(--gcb-kit-press);
	}
	[data-gcb-kit="dialog"]:where(dialog[open][data-effect="fade"]:not([data-side], [data-gcb-own])) {
		translate: 0 0;
		scale: 1;
	}
	[data-gcb-kit="dialog"]:where(dialog[open][data-side="right"]:not([data-gcb-own])) { translate: 100% 0; }
	[data-gcb-kit="dialog"]:where(dialog[open][data-side="left"]:not([data-gcb-own])) { translate: -100% 0; }
	[data-gcb-kit="dialog"]:where(dialog[open][data-side="bottom"]:not([data-gcb-own])) { translate: 0 100%; }
	[data-gcb-kit="dialog"]:where(dialog[open][data-side="top"]:not([data-gcb-own])) { translate: 0 -100%; }
	[data-gcb-kit="dialog"]:where(dialog[open]:not([data-gcb-own]))::backdrop { opacity: 0; }
}
[data-gcb-kit="dialog"]:where(dialog[data-effect="none"]:not([data-gcb-own])),
[data-gcb-kit="dialog"]:where(dialog[data-effect="none"]:not([data-gcb-own]))::backdrop { transition: none; }

/* REFUSED: with data-dismiss="button", Escape or a press outside is answered with a small give, so it is plain the
   panel heard and wants one of its buttons */
@keyframes gcb-dialog-nudge {
	50% { scale: var(--gcb-kit-press); }
}
[data-gcb-kit="dialog"]:where(dialog[data-nudge]:not([data-gcb-own])) { animation: gcb-dialog-nudge var(--gcb-kit-dur-spring) var(--gcb-kit-ease-expand); }

/* WITH NO SCRIPT nothing can open it. Where scripting is off it is shown where it is written: a panel in the page,
   readable and whole, with a line round it in place of its shadow and no close button (there is nothing to shut); a
   button that could only have opened it is not shown. Where the script did not arrive, an opener that is a link to
   the dialog's id (<a href="#visit" data-gcb-kit-open="visit">) shows it the same way. */
@media (scripting: none) {
	dialog[data-gcb-kit="dialog"] { display: block; position: static; inset: auto; width: auto; height: auto; max-height: none; margin-inline: 0; translate: none; overflow: visible; } /* mechanic: in the page, not over it */
	[data-gcb-kit="dialog"]:where(dialog:not([data-gcb-own])) {
		margin-block: var(--gcb-kit-gap);
		max-width: var(--gcb-dialog-w, var(--gcb-kit-modal-w));
		box-shadow: none;
		border: var(--gcb-kit-line-w) solid var(--gcb-kit-line);
		border-radius: var(--gcb-dialog-radius, var(--gcb-kit-radius-panel));
	}
	dialog[data-gcb-kit="dialog"] > [data-gcb-kit-close] { display: none; } /* mechanic: nothing to shut */
	dialog[data-gcb-kit="dialog"]:has(> [data-gcb-kit-close]) > :is(h1, h2, h3, h4, h5, h6) { padding-inline-end: 0; } /* mechanic: no close to stand clear of */
	button[data-gcb-kit-open] { display: none; } /* mechanic: a button that can only open it by script does nothing here; a link is left, it goes where it says */
}
dialog[data-gcb-kit="dialog"]:not([data-gcb-kit-ready]):target { display: block; position: static; inset: auto; width: auto; height: auto; max-height: none; margin-inline: 0; translate: none; overflow: visible; } /* mechanic: no script came, and a link went to it: in the page, not over it */
[data-gcb-kit="dialog"]:where(dialog:not([data-gcb-kit-ready], [data-gcb-own]):target) {
	margin-block: var(--gcb-kit-gap);
	max-width: var(--gcb-dialog-w, var(--gcb-kit-modal-w));
	box-shadow: none;
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-line);
	border-radius: var(--gcb-dialog-radius, var(--gcb-kit-radius-panel));
}
dialog[data-gcb-kit="dialog"]:not([data-gcb-kit-ready]):target > [data-gcb-kit-close] { display: none; } /* mechanic: nothing to shut */
dialog[data-gcb-kit="dialog"]:not([data-gcb-kit-ready]):target:has(> [data-gcb-kit-close]) > :is(h1, h2, h3, h4, h5, h6) { padding-inline-end: 0; } /* mechanic: no close to stand clear of */

/* divider */
/* DIVIDER: a line, a line with a word or a mark in its middle, or a shaped edge between two sections.
   Every value is a token: the part's own first, the list's after (tokens/README.md). The lines are made of the colour
   of the words (--gcb-kit-rule), a shaped edge is the colour its own words would be (currentColor), so it sits on any
   background with nothing set. No script: it is all here.
   WEIGHT: an <hr> and an <img> are elements a theme styles by their tag, so on those the look weighs one attribute and
   stands aside for data-gcb-own; everything else weighs nothing (:where) and a class written on it wins. */

/* every divider's colour: --gcb-divider-colour (a shaped edge is drawn in it), else the words' round it */
:where([data-gcb-kit="divider"]) { color: var(--gcb-divider-colour, inherit); }

/* ---- 1. A LINE: <hr data-gcb-kit="divider"> ---- */
[data-gcb-kit="divider"]:where(hr:not([data-gcb-own])) {
	display: block; box-sizing: content-box; width: auto; max-width: none; min-width: 0; height: 0; overflow: visible; opacity: 1;
	margin: var(--gcb-divider-space, calc(var(--gcb-kit-gap) * 2)) 0; padding: 0;
	border: 0; border-top: var(--gcb-divider-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	background: none; color: var(--gcb-divider-colour, inherit);
}
/* data-look="strong | dashed | dotted": a firmer line, or one in dashes or dots */
[data-gcb-kit="divider"]:where(hr[data-look="strong"]:not([data-gcb-own])) { border-top-color: var(--gcb-kit-rule-strong); }
[data-gcb-kit="divider"]:where(hr[data-look="dashed"]:not([data-gcb-own])) { border-top-style: dashed; border-top-color: var(--gcb-kit-rule-strong); }
[data-gcb-kit="divider"]:where(hr[data-look="dotted"]:not([data-gcb-own])) { border-top-style: dotted; border-top-color: var(--gcb-kit-rule-strong); border-top-width: calc(var(--gcb-kit-line-w) * 2); }
/* data-look="accent": the line in the brand colour, twice as thick so the colour reads */
[data-gcb-kit="divider"]:where(hr[data-look="accent"]:not([data-gcb-own])) { border-top-color: var(--gcb-kit-accent); border-top-width: calc(var(--gcb-kit-line-w) * 2); }
/* data-length="short": a short line, centred (a mark under a heading, a pause in a story); data-align="start | end"
   puts it at that end */
[data-gcb-kit="divider"]:where(hr[data-length="short"]:not([data-dir="vertical"]):not([data-gcb-own])) { width: var(--gcb-divider-short, calc(var(--gcb-kit-gap) * 6)); max-width: 100%; margin-inline: auto; }
[data-gcb-kit="divider"]:where(hr[data-length="short"][data-align="start"]:not([data-dir="vertical"]):not([data-gcb-own])) { margin-inline: 0 auto; }
[data-gcb-kit="divider"]:where(hr[data-length="short"][data-align="end"]:not([data-dir="vertical"]):not([data-gcb-own])) { margin-inline: auto 0; }

/* ---- 2. UPRIGHT: data-dir="vertical", between things in a row (an <hr> in a flex row, or a <span role="separator">
        in a line of words) ---- */
[data-gcb-kit="divider"]:where(hr[data-dir="vertical"]:not([data-gcb-own])) {
	flex: none; align-self: stretch; width: 0; height: auto; min-height: 1lh;
	margin: 0 var(--gcb-divider-space-x, var(--gcb-kit-gap));
	border-top: 0; border-inline-start: var(--gcb-divider-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
}
:where(span[data-gcb-kit="divider"][data-dir="vertical"]) {
	display: inline-block; flex: none; align-self: stretch; vertical-align: middle; width: 0; min-height: 1lh;
	margin: 0 var(--gcb-divider-space-x, var(--gcb-kit-gap));
	border-inline-start: var(--gcb-divider-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
}
[data-gcb-kit="divider"]:where(hr[data-dir="vertical"][data-look="strong"]:not([data-gcb-own])),
:where(span[data-gcb-kit="divider"][data-dir="vertical"][data-look="strong"]) { border-inline-start-color: var(--gcb-kit-rule-strong); }
[data-gcb-kit="divider"]:where(hr[data-dir="vertical"][data-look="accent"]:not([data-gcb-own])),
:where(span[data-gcb-kit="divider"][data-dir="vertical"][data-look="accent"]) { border-inline-start-color: var(--gcb-kit-accent); border-inline-start-width: calc(var(--gcb-kit-line-w) * 2); }
[data-gcb-kit="divider"]:where(hr[data-dir="vertical"][data-look="dashed"]:not([data-gcb-own])),
:where(span[data-gcb-kit="divider"][data-dir="vertical"][data-look="dashed"]) { border-inline-start-style: dashed; border-inline-start-color: var(--gcb-kit-rule-strong); }
[data-gcb-kit="divider"]:where(hr[data-dir="vertical"][data-look="dotted"]:not([data-gcb-own])),
:where(span[data-gcb-kit="divider"][data-dir="vertical"][data-look="dotted"]) { border-inline-start-style: dotted; border-inline-start-color: var(--gcb-kit-rule-strong); border-inline-start-width: calc(var(--gcb-kit-line-w) * 2); }

/* ---- 3. A WORD OR A MARK IN ITS MIDDLE: a <div> holding one [data-gcb-kit-label]; the lines either side are drawn
        here and grow to fill the row ---- */
:where([data-gcb-kit="divider"]:has(> [data-gcb-kit-label])) {
	display: flex; align-items: center;
	gap: var(--gcb-divider-gap, var(--gcb-kit-gap));
	margin: var(--gcb-divider-space, calc(var(--gcb-kit-gap) * 2)) 0;
}
:where([data-gcb-kit="divider"]:has(> [data-gcb-kit-label]))::before,
:where([data-gcb-kit="divider"]:has(> [data-gcb-kit-label]))::after {
	content: ""; flex: 1 1 0; min-width: var(--gcb-divider-gap, var(--gcb-kit-gap));
	border-top: var(--gcb-divider-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
}
:where([data-gcb-kit="divider"][data-look="strong"]:has(> [data-gcb-kit-label]))::before,
:where([data-gcb-kit="divider"][data-look="strong"]:has(> [data-gcb-kit-label]))::after { border-top-color: var(--gcb-kit-rule-strong); }
:where([data-gcb-kit="divider"][data-look="dashed"]:has(> [data-gcb-kit-label]))::before,
:where([data-gcb-kit="divider"][data-look="dashed"]:has(> [data-gcb-kit-label]))::after { border-top-style: dashed; border-top-color: var(--gcb-kit-rule-strong); }
:where([data-gcb-kit="divider"][data-look="dotted"]:has(> [data-gcb-kit-label]))::before,
:where([data-gcb-kit="divider"][data-look="dotted"]:has(> [data-gcb-kit-label]))::after { border-top-style: dotted; border-top-color: var(--gcb-kit-rule-strong); border-top-width: calc(var(--gcb-kit-line-w) * 2); }
:where([data-gcb-kit="divider"][data-look="accent"]:has(> [data-gcb-kit-label]))::before,
:where([data-gcb-kit="divider"][data-look="accent"]:has(> [data-gcb-kit-label]))::after { border-top-color: var(--gcb-kit-accent); border-top-width: calc(var(--gcb-kit-line-w) * 2); }
/* data-align="start | end": the word at that end, one line running from it */
:where([data-gcb-kit="divider"][data-align="start"]:has(> [data-gcb-kit-label]))::before,
:where([data-gcb-kit="divider"][data-align="end"]:has(> [data-gcb-kit-label]))::after { display: none; }
:where([data-gcb-kit="divider"] > [data-gcb-kit-label]) {
	flex: 0 1 auto; display: inline-flex; align-items: center; text-align: center;
	gap: var(--gcb-kit-gap-s);
	color: var(--gcb-kit-quiet);
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-meta);
	font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
}

/* ---- 4. A SHAPED EDGE: data-shape="wave | curve | slant | torn" draws one here; or the divider holds a drawing of
        the design's own (an <svg> drawn in currentColor, or an <img>). Either way the picture is the divider's colour
        (give it the next section's) and --gcb-divider-h tall. ---- */
:where([data-gcb-kit="divider"]:is([data-shape], [data-place])) { position: relative; pointer-events: none; z-index: var(--gcb-divider-z, 1); }
:where([data-gcb-kit="divider"][data-shape])::before {
	content: ""; display: block; width: 100%;
	height: var(--gcb-divider-h, clamp(32px, 6vw, 96px));
	background: currentColor;
	mask-repeat: no-repeat; mask-size: 100% 100%; mask-position: bottom;
}
:where([data-gcb-kit="divider"][data-shape="wave"])::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40C120 8 240 8 360 40S600 72 720 40S960 8 1080 40S1320 72 1440 40V80H0z'/%3E%3C/svg%3E"); }
:where([data-gcb-kit="divider"][data-shape="curve"])::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80Q720 -76 1440 80z'/%3E%3C/svg%3E"); }
:where([data-gcb-kit="divider"][data-shape="slant"])::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80L1440 0V80z'/%3E%3C/svg%3E"); }
/* torn is a strip that repeats along the edge at its own proportions, so its teeth are the same on a phone and a wide screen */
:where([data-gcb-kit="divider"][data-shape="torn"])::before { mask-repeat: repeat-x; mask-size: auto 100%; mask-position: left bottom; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 80'%3E%3Cpath d='M0 22L6 34L17 12L35 22L46 29L64 22L81 25L100 13L112 27L129 8L146 20L167 30L175 21L196 27L212 23L233 33L245 16L264 16L272 15L285 15L306 23L324 32L331 14L346 21L359 12L380 8L392 16L409 34L423 11L435 15L447 19L458 22L474 13L495 20L515 25L531 21L545 27L566 18L583 14L598 17L609 18L628 32L636 31L640 22V80H0z'/%3E%3C/svg%3E"); }
/* a drawing of the design's own */
:where([data-gcb-kit="divider"] > svg) { display: block; width: 100%; height: var(--gcb-divider-h, auto); fill: currentColor; }
[data-gcb-kit="divider"] > :where(img:not([data-gcb-own])) { display: block; box-sizing: content-box; width: 100%; max-width: none; height: var(--gcb-divider-h, auto); margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; object-fit: cover; }

/* which way up: data-flip="y | x | xy" */
[data-gcb-kit="divider"][data-flip="y"]::before, [data-gcb-kit="divider"][data-flip="y"] > :is(svg, img) { scale: 1 -1; } /* mechanic: the picture upside down */
[data-gcb-kit="divider"][data-flip="x"]::before, [data-gcb-kit="divider"][data-flip="x"] > :is(svg, img) { scale: -1 1; } /* mechanic: the picture left to right */
[data-gcb-kit="divider"][data-flip="xy"]::before, [data-gcb-kit="divider"][data-flip="xy"] > :is(svg, img) { scale: -1 -1; } /* mechanic: both */

/* WHERE IT SITS. data-place="top | bottom": inside a section, along that edge (the section needs position: relative). */
[data-gcb-kit="divider"]:is([data-place="top"], [data-place="bottom"]) { position: absolute; inset-inline: 0; margin: 0; } /* mechanic: laid over the section's edge, out of its flow */
[data-gcb-kit="divider"][data-place="top"] { top: -1px; } /* mechanic: one pixel over the edge, so no hairline of the section shows between the shape and its neighbour */
[data-gcb-kit="divider"][data-place="bottom"] { bottom: -1px; } /* mechanic: the same, at the bottom */
/* data-place="seam | seam-up | seam-down": a block of its own between two sections, with no height; its picture sits
   half over each, or wholly over the one above, or wholly over the one below */
[data-gcb-kit="divider"]:is([data-place="seam"], [data-place="seam-up"], [data-place="seam-down"]) { height: 0; min-height: 0; margin: 0; padding: 0; overflow: visible; } /* mechanic: takes no room; the picture overlaps its neighbours */
[data-gcb-kit="divider"]:is([data-place="seam"], [data-place="seam-up"], [data-place="seam-down"])::before,
[data-gcb-kit="divider"]:is([data-place="seam"], [data-place="seam-up"], [data-place="seam-down"]) > :is(svg, img) { position: absolute; inset-inline: 0; top: 0; } /* mechanic: hung from the seam */
[data-gcb-kit="divider"][data-place="seam"]::before, [data-gcb-kit="divider"][data-place="seam"] > :is(svg, img) { translate: 0 -50%; } /* mechanic: half over each section */
[data-gcb-kit="divider"][data-place="seam-up"]::before, [data-gcb-kit="divider"][data-place="seam-up"] > :is(svg, img) { translate: 0 calc(-100% + 1px); } /* mechanic: wholly over the section above, one pixel into the one below so no hairline shows */
[data-gcb-kit="divider"][data-place="seam-down"]::before, [data-gcb-kit="divider"][data-place="seam-down"] > :is(svg, img) { translate: 0 -1px; } /* mechanic: wholly over the section below, one pixel into the one above */

/* dropdown */
/* DROPDOWN (it was "actions"): a button that opens a small menu beside it. The root is data-gcb-kit="dropdown"; in it
   a [data-gcb-kit-dropdown-trigger] (a button) and a [data-gcb-kit-dropdown-list] of [data-gcb-kit-dropdown-item]s
   (links, buttons, choices: an item with data-value, and on/off items: one with data-check).
   The trigger, the items and the separator are elements a theme styles by their tag (button, a, hr), so their looks
   weigh ONE attribute and stand aside for an element marked data-gcb-own; everything else weighs nothing (:where).
   A theme also styles their STATES by tag (button:hover, button:focus, a:visited): those are matched pseudo-class for
   pseudo-class, outside the :where, so a theme's state rule does not win either. A trigger written as the site's
   button (class gcb-btn) wears that button, and only the chevron and the behaviour are the part's.
   Every value is a token: the part's own first, the list's after (tokens/README.md).
   With no script the menu shows beside its button on hover and on keyboard focus, drawn by this file alone, and every
   item is reached with Tab. Its script puts the menu in a box in the top layer ([data-gcb-kit-dropdown-positioner], a
   popover no section can clip), places it, adds the arrows and the typing, and sets data-gcb-kit-ready. */

:where([data-gcb-kit="dropdown"]) { position: relative; display: inline-block; max-width: 100%; vertical-align: middle; }

/* THE BUTTON: an outline made of the words' colour, so it sits on any background */
[data-gcb-kit-dropdown-trigger]:where(:not([data-gcb-own], .gcb-btn)) {
	appearance: none; display: inline-flex; align-items: center; justify-content: space-between; box-sizing: border-box;
	gap: var(--gcb-kit-gap-s);
	min-width: var(--gcb-dropdown-h, var(--gcb-kit-control-h));
	max-width: 100%;
	height: var(--gcb-dropdown-h, var(--gcb-kit-control-h));
	margin: 0;
	padding: var(--gcb-dropdown-trigger-pad, 0 var(--gcb-kit-pad-control));
	border: var(--gcb-dropdown-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-dropdown-radius, var(--gcb-kit-radius-field));
	background: transparent; color: inherit; box-shadow: none; text-shadow: none;
	font: inherit; font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-decoration: none; text-align: start; white-space: nowrap; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback);
}
/* a theme's button:hover / :focus / :active / :disabled is kept off */
[data-gcb-kit-dropdown-trigger]:where(:not([data-gcb-own], .gcb-btn)):is(:hover, :focus, :active, :disabled) {
	background: transparent; color: inherit; box-shadow: none; outline: 0; text-decoration: none;
	border: var(--gcb-dropdown-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong));
}
/* one icon alone, named by its aria-label (the three dots on a card): a square */
[data-gcb-kit-dropdown-trigger]:where([aria-label]:not([data-gcb-own], .gcb-btn)) { justify-content: center; padding: 0 var(--gcb-kit-gap-s); }
/* hovered, and while its menu is open: a faint fill of its own words' colour */
[data-gcb-kit-dropdown-trigger]:where(:not([data-gcb-own], .gcb-btn)):hover,
[data-gcb-kit-dropdown-trigger]:where([aria-expanded="true"]:not([data-gcb-own], .gcb-btn)),
[data-gcb-kit-dropdown-trigger]:where([aria-expanded="true"]:not([data-gcb-own], .gcb-btn)):is(:focus, :active) { background: var(--gcb-kit-wash); }
/* focused from the keyboard: the site's outline in the colour of its words, so it shows on a section's own colour */
[data-gcb-kit-dropdown-trigger]:where(:not([data-gcb-own], .gcb-btn)):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit-dropdown-trigger]:where(:not([data-gcb-own], .gcb-btn)):disabled { opacity: var(--gcb-kit-disabled); background: transparent; cursor: default; }
:where([data-gcb-kit-dropdown-trigger]:not(.gcb-btn) svg) { flex: none; width: var(--gcb-dropdown-icon, 20px); height: var(--gcb-dropdown-icon, 20px); }
:where([data-gcb-kit-dropdown-trigger] [data-gcb-kit-dropdown-value]) { overflow: hidden; text-overflow: ellipsis; }

/* THE MARK: an empty [data-gcb-kit-icon] in the button is drawn as a chevron that turns over while the menu is open;
   one with a drawing in it turns too. Its stroke is a share of its own size, so it stays a chevron at any line weight. */
:where([data-gcb-kit-dropdown-trigger] [data-gcb-kit-icon]) { flex: none; transition: rotate var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), translate var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit-dropdown-trigger] [data-gcb-kit-icon]:empty) {
	box-sizing: border-box; width: var(--gcb-dropdown-mark, 0.5em); height: var(--gcb-dropdown-mark, 0.5em);
	border: solid currentColor;
	border-width: 0 var(--gcb-dropdown-mark-w, calc(var(--gcb-dropdown-mark, 0.5em) * 0.26)) var(--gcb-dropdown-mark-w, calc(var(--gcb-dropdown-mark, 0.5em) * 0.26)) 0;
	rotate: 45deg; translate: 0 -25%;
}
:where([data-gcb-kit-dropdown-trigger][aria-expanded="true"] [data-gcb-kit-icon]:empty) { rotate: 225deg; translate: 0 25%; }
:where([data-gcb-kit-dropdown-trigger][aria-expanded="true"] [data-gcb-kit-icon]:not(:empty)) { rotate: 180deg; }

/* THE MENU: what a menu is made of (the site's surface, its words, the menu's shadow), as wide as its longest item
   and never narrower than its button */
[data-gcb-kit-dropdown-list]:where(:not([data-gcb-own])) {
	display: block; box-sizing: border-box; width: max-content;
	min-width: max(100%, var(--gcb-dropdown-menu-min, 200px));
	max-width: var(--gcb-dropdown-menu-max, 320px);
	max-width: min(var(--gcb-dropdown-menu-max, 320px), calc(100vw - 2 * var(--gcb-kit-pad-control))); /* mechanic: and never wider than the screen */
	max-height: var(--gcb-dropdown-max-h, 320px);
	margin: 0;
	padding: var(--gcb-dropdown-pad, 6px);
	overflow-y: auto; overscroll-behavior: contain; list-style: none; outline: 0;
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-line-soft);
	border-radius: var(--gcb-dropdown-menu-radius, var(--gcb-kit-radius-card));
	background: var(--gcb-kit-surface); color: var(--gcb-kit-ink);
	box-shadow: var(--gcb-kit-shadow-menu);
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-body); font-style: normal;
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-align: start; white-space: normal;
}

/* AN ITEM: a row the height of anything pressed, a link or a button alike, in the body's weight */
[data-gcb-kit-dropdown-item]:where(:not([data-gcb-own])) {
	appearance: none; position: relative; display: flex; align-items: center; box-sizing: border-box; width: 100%;
	gap: var(--gcb-dropdown-gap, var(--gcb-kit-gap-s));
	min-height: var(--gcb-dropdown-item-h, var(--gcb-kit-control-h));
	margin: 0;
	padding: var(--gcb-dropdown-item-pad, var(--gcb-kit-gap-s) var(--gcb-kit-gap));
	border: 0;
	border-radius: var(--gcb-dropdown-item-radius, var(--gcb-kit-radius-field));
	background: transparent; color: inherit; box-shadow: none; text-shadow: none; outline: 0;
	font: inherit; font-weight: var(--gcb-kit-weight-body); letter-spacing: inherit; text-transform: inherit;
	text-align: start; text-decoration: none; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback);
}
/* a theme's a:link / a:visited / a:hover / button:focus … is kept off */
[data-gcb-kit-dropdown-item]:where(:not([data-gcb-own])):is(:link, :visited, :hover, :focus, :active, :disabled) {
	background: transparent; color: inherit; box-shadow: none; outline: 0; border: 0; text-decoration: none;
}
/* the one under the pointer or the keyboard (with no script, the one under the pointer): a faint fill of its words' colour */
[data-gcb-kit-dropdown-item]:where(:not([data-gcb-own], [data-gcb-kit-ready] *)):hover,
[data-gcb-kit-dropdown-item]:where([data-highlighted]:not([data-gcb-own])),
[data-gcb-kit-dropdown-item]:where([data-highlighted]:not([data-gcb-own])):is(:link, :visited, :hover, :focus, :active) { background: var(--gcb-kit-wash); }
/* focused from the keyboard: the site's outline, in the accent set wherever it is set */
[data-gcb-kit-dropdown-item]:where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: var(--gcb-kit-accent); outline-offset: calc(var(--gcb-kit-focus-offset) * -1); }
/* the chosen one, one that is on, and where the visitor is (the sort in use, the page they are on): the accent, with a tick */
[data-gcb-kit-dropdown-item]:where([aria-checked="true"]:not([data-gcb-own]), [data-gcb-kit-current]:not([data-gcb-own]), [aria-current]:not([aria-current="false"], [data-gcb-own])),
[data-gcb-kit-dropdown-item]:where([aria-checked="true"]:not([data-gcb-own]), [data-gcb-kit-current]:not([data-gcb-own]), [aria-current]:not([aria-current="false"], [data-gcb-own])):is(:link, :visited, :hover, :focus, :active) { color: var(--gcb-kit-accent); }
:where([data-gcb-kit-dropdown-item]:is([aria-checked="true"], [data-gcb-kit-current], [aria-current]:not([aria-current="false"])):not([data-gcb-own]))::after {
	content: var(--gcb-dropdown-tick, ""); flex: none; box-sizing: border-box;
	width: calc(var(--gcb-dropdown-mark, 0.5em) * 0.75); height: calc(var(--gcb-dropdown-mark, 0.5em) * 1.4);
	margin-inline: auto calc(var(--gcb-kit-gap-s) / 2);
	border: solid currentColor;
	border-width: 0 var(--gcb-dropdown-mark-w, calc(var(--gcb-dropdown-mark, 0.5em) * 0.26)) var(--gcb-dropdown-mark-w, calc(var(--gcb-dropdown-mark, 0.5em) * 0.26)) 0;
	rotate: 45deg; translate: 0 -15%;
}
/* a thing that cannot be undone (Report, Delete) */
[data-gcb-kit-dropdown-item]:where([data-tone="danger"]:not([data-gcb-own])),
[data-gcb-kit-dropdown-item]:where([data-tone="danger"]:not([data-gcb-own])):is(:link, :visited, :hover, :focus, :active) { color: var(--gcb-kit-error); }
/* one that cannot be used: shown, passed over */
[data-gcb-kit-dropdown-item]:where([aria-disabled="true"]:not([data-gcb-own])),
[data-gcb-kit-dropdown-item]:where(:not([data-gcb-own])):disabled,
[data-gcb-kit-dropdown-item]:where([aria-disabled="true"]:not([data-gcb-own])):is(:link, :visited, :hover, :focus, :active) { opacity: var(--gcb-kit-disabled); background: transparent; cursor: default; }
:where([data-gcb-kit-dropdown-item] > svg) { flex: none; width: var(--gcb-dropdown-icon, 20px); height: var(--gcb-dropdown-icon, 20px); }

/* a line between kinds of item, and a group's name, quieter than its items */
[data-gcb-kit-dropdown-separator]:where(:not([data-gcb-own])) {
	display: block; height: 0; margin: var(--gcb-dropdown-pad, 6px) 0; padding: 0; border: 0;
	border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-rule);
	background: transparent;
}
:where([data-gcb-kit-dropdown-label]) {
	display: block; padding: var(--gcb-kit-gap-s) var(--gcb-kit-gap) calc(var(--gcb-kit-gap-s) / 2);
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-control);
}

/* WITH NO SCRIPT: the menu hangs under its button (over it for data-placement="top…", beside it for "left…" and
   "right…", from its end for data-align="end" or "-end") and shows while the part is hovered or holds the focus */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready]) [data-gcb-kit-dropdown-list] { position: absolute; z-index: 1000; inset-block-start: 100%; inset-inline-start: 0; margin-block: var(--gcb-dropdown-gutter, 6px); } /* mechanic: placed against the part, over the page */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready]):is([data-align="end"], [data-placement$="-end"]) [data-gcb-kit-dropdown-list] { inset-inline-start: auto; inset-inline-end: 0; } /* mechanic: from the button's end */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready])[data-placement^="top"] [data-gcb-kit-dropdown-list] { inset-block-start: auto; inset-block-end: 100%; } /* mechanic: over the button */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready])[data-placement^="right"] [data-gcb-kit-dropdown-list] { inset: 0 auto auto 100%; margin: 0 0 0 var(--gcb-dropdown-gutter, 6px); } /* mechanic: beside the button, after it */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready])[data-placement^="left"] [data-gcb-kit-dropdown-list] { inset: 0 100% auto auto; margin: 0 var(--gcb-dropdown-gutter, 6px) 0 0; } /* mechanic: beside the button, before it */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready]):is([data-placement="left-end"], [data-placement="right-end"]) [data-gcb-kit-dropdown-list] { top: auto; bottom: 0; } /* mechanic: lined up with the button's foot */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready]):not(:hover, :focus-within) [data-gcb-kit-dropdown-list] { display: none; } /* mechanic: shut until it is pointed at or focused */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready]):hover::after { content: ""; position: absolute; inset-inline: 0; inset-block-start: 100%; height: var(--gcb-dropdown-gutter, 6px); } /* mechanic: the pointer can cross the gap to the menu */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready])[data-placement^="top"]:hover::after { inset-block-start: auto; inset-block-end: 100%; } /* mechanic: the same, over the button */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready])[data-placement^="right"]:hover::after { inset: 0 auto 0 100%; width: var(--gcb-dropdown-gutter, 6px); height: auto; } /* mechanic: the same, beside it */
[data-gcb-kit="dropdown"]:not([data-gcb-kit-ready])[data-placement^="left"]:hover::after { inset: 0 100% 0 auto; width: var(--gcb-dropdown-gutter, 6px); height: auto; } /* mechanic: the same, before it */

/* WITH ITS SCRIPT: the box the menu sits in. It is placed by the script (left, top) and carries the gutter on the
   side that faces the button, so the pointer crosses from one to the other without leaving the part. */
[data-gcb-kit-ready] [data-gcb-kit-dropdown-positioner] { position: fixed; inset: auto; z-index: 1000; margin: 0; overflow: visible; width: max-content; } /* mechanic: a box in the top layer, placed by the script */
[data-gcb-kit-ready] [data-gcb-kit-dropdown-positioner]:not([data-open]) { display: none; } /* mechanic: shut */
:where([data-gcb-kit-dropdown-positioner]) { padding: 0; border: 0; background: transparent; color: inherit; }
:where([data-gcb-kit-dropdown-positioner][data-side="bottom"]) { padding-top: var(--gcb-dropdown-gutter, 6px); }
:where([data-gcb-kit-dropdown-positioner][data-side="top"]) { padding-bottom: var(--gcb-dropdown-gutter, 6px); }
:where([data-gcb-kit-dropdown-positioner][data-side="left"]) { padding-right: var(--gcb-dropdown-gutter, 6px); }
:where([data-gcb-kit-dropdown-positioner][data-side="right"]) { padding-left: var(--gcb-dropdown-gutter, 6px); }

/* it grows in from the edge that faces its button, with the menus' motion (no time at all for someone who asked for less) */
@keyframes gcb-dropdown-in { from { opacity: 0; scale: var(--gcb-kit-press); } }
:where([data-gcb-kit-dropdown-positioner][data-open] > [data-gcb-kit-dropdown-list]) { transform-origin: top; animation: gcb-dropdown-in var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit-dropdown-positioner][data-open][data-side="top"] > [data-gcb-kit-dropdown-list]) { transform-origin: bottom; }
:where([data-gcb-kit-dropdown-positioner][data-open][data-side="left"] > [data-gcb-kit-dropdown-list]) { transform-origin: right; }
:where([data-gcb-kit-dropdown-positioner][data-open][data-side="right"] > [data-gcb-kit-dropdown-list]) { transform-origin: left; }

/* emphasis */
/* EMPHASIS: a few words marked out inside a heading or running text (Mark, 2026-11-16: "they'll use a rarely used
   colour from their palette for an underline and they'll have nice text styles sometimes like gradient text ... we
   have to work out why it's used and what it's useful for"). Three looks, data-look:
     "underline" (as written)  a thick underline in the site's rare colour, under the words, not through them
     "colour"                  the words in the rare colour
     "gradient"                the words filled with the site's gradient
   It is an inline element (<em> or <span>) inside a heading or text: it keeps their size, weight and line. The <em>'s
   own italic is taken off. No script. */
[data-gcb-kit="emphasis"]:where(:not([data-gcb-own])) {
	font-style: inherit; font-weight: inherit;
	text-decoration-line: underline;
	text-decoration-color: var(--gcb-emphasis-colour, var(--gcb-kit-highlight));
	text-decoration-thickness: var(--gcb-emphasis-line, 0.08em);
	text-underline-offset: var(--gcb-emphasis-offset, 0.14em);
	text-decoration-skip-ink: auto;
}
[data-gcb-kit="emphasis"][data-look="colour"]:where(:not([data-gcb-own])) { text-decoration-line: none; color: var(--gcb-emphasis-colour, var(--gcb-kit-highlight)); }
[data-gcb-kit="emphasis"][data-look="gradient"]:where(:not([data-gcb-own])) {
	text-decoration-line: none;
	background-image: var(--gcb-emphasis-gradient, var(--gcb-kit-gradient));
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* a printer, and a screen that will not show the gradient, get the words in the rare colour */
@media print { [data-gcb-kit="emphasis"][data-look="gradient"] { -webkit-text-fill-color: currentColor; background-image: none; } }

/* field */
/* FIELD: one form field. A label, the box to type in (a real input or textarea), help under it, and an error that takes
   the help's place. Every value is a token: the part's own first, the site's after (tokens/README.md).
   An input, a textarea and a label are elements a theme styles by their tag, so the box's look and the label's weigh ONE
   attribute and no more (README rule 2): they beat a theme's `input { border … }` or `label { font-size … }`, lose to
   any class written on them, and stand aside whole for one marked data-gcb-own. Everything else weighs nothing. Its
   border, its help and its placeholder are made of the colour of the words, so it sits on any background with nothing
   set; on a dark one (data-scheme="dark", which the script sets from the words' colour) the browser draws its own bits
   of the box (a date's calendar, a number's arrows) light, and the focus, error and right colours are lifted toward the
   words so they still show.
   With no script it is whole: the states below are read from the box's own attributes (required, disabled, readonly,
   aria-invalid). Its script wires the names and ids together and shows the browser's own checks as its error. */
:where([data-gcb-kit="field"]) {
	display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0;
	gap: var(--gcb-field-gap, calc(var(--gcb-kit-gap-s) * 0.75));
	font-family: var(--gcb-kit-font); line-height: var(--gcb-kit-leading); text-align: start;
}
/* the browser's own drawings in the box follow the section it sits on */
:where([data-gcb-kit="field"][data-scheme="dark"]) { color-scheme: dark; }
:where([data-gcb-kit="field"][data-scheme="light"]) { color-scheme: light; }

/* THE LABEL, above the box */
[data-gcb-kit-label]:where([data-gcb-kit="field"] :not([data-gcb-own])) {
	display: block; margin: 0; padding: 0; color: inherit;
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
}
/* a field that must be filled says so after its label, from the box's own `required` (a reader hears "required" from
   the box, so the mark is not read out where a browser allows that to be said) */
:where([data-gcb-kit="field"]:has([data-gcb-kit-control]:required) [data-gcb-kit-label])::after {
	content: var(--gcb-field-required, " *");
	content: var(--gcb-field-required, " *") / "";
}

/* THE BOX */
[data-gcb-kit-control]:where([data-gcb-kit="field"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) {
	box-sizing: border-box; display: block; width: 100%; min-width: 0; margin: 0;
	min-height: var(--gcb-field-h, var(--gcb-kit-control-h));
	padding: 0 var(--gcb-field-pad-x, var(--gcb-kit-pad-control));
	border: var(--gcb-kit-line-w) solid var(--gcb-field-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-field-radius, var(--gcb-kit-radius-field));
	background: var(--gcb-field-ground, transparent);
	box-shadow: none; color: inherit;
	font: inherit; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
	letter-spacing: inherit; text-transform: none;
	transition: border-color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback);
}
/* a search box is a box like the rest: the browser's own taller, rounder look off */
[data-gcb-kit-control]:where([data-gcb-kit="field"] [type="search"]:not([data-gcb-own])) { appearance: none; }
/* a textarea: several lines, its first where an input's is, pulled taller by the reader and never wider */
[data-gcb-kit-control]:where([data-gcb-kit="field"] textarea:not([data-gcb-own])) {
	min-height: calc(var(--gcb-field-h, var(--gcb-kit-control-h)) * var(--gcb-field-rows, 2.5));
	padding-block: var(--gcb-field-pad-y, calc((var(--gcb-field-h, var(--gcb-kit-control-h)) - 1lh) / 2 - var(--gcb-kit-line-w)));
	resize: vertical;
}
[data-gcb-kit-control]:where([data-gcb-kit="field"] :not([data-gcb-own]))::placeholder { color: var(--gcb-kit-quiet); opacity: 1; }

/* THREE SIZES: as written is medium; small and large follow from its numbers */
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-size="sm"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) {
	min-height: calc(var(--gcb-field-h, var(--gcb-kit-control-h)) * 0.8);
	padding-inline: calc(var(--gcb-field-pad-x, var(--gcb-kit-pad-control)) * 0.75);
	font-size: var(--gcb-kit-text-meta);
}
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-size="lg"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) {
	min-height: calc(var(--gcb-field-h, var(--gcb-kit-control-h)) * 1.2);
	padding-inline: calc(var(--gcb-field-pad-x, var(--gcb-kit-pad-control)) * 1.25);
	font-size: var(--gcb-kit-text-section);
}
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-size="sm"] textarea:not([data-gcb-own])) { min-height: calc(var(--gcb-field-h, var(--gcb-kit-control-h)) * 0.8 * var(--gcb-field-rows, 2.5)); }
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-size="lg"] textarea:not([data-gcb-own])) { min-height: calc(var(--gcb-field-h, var(--gcb-kit-control-h)) * 1.2 * var(--gcb-field-rows, 2.5)); }
[data-gcb-kit-label]:where([data-gcb-kit="field"][data-size="sm"] :not([data-gcb-own])) { font-size: var(--gcb-kit-text-meta); }
[data-gcb-kit-label]:where([data-gcb-kit="field"][data-size="lg"] :not([data-gcb-own])) { font-size: var(--gcb-kit-text-body); }

/* ITS STATES. Hover: a firmer line. Focus: the site's mark for a box to type in (the accent's line and the soft ring);
   the see-through outline is what a forced-colours screen draws instead. */
[data-gcb-kit-control]:where([data-gcb-kit="field"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"]):hover:not(:disabled, :focus)) {
	border-color: color-mix(in srgb, currentColor 68%, transparent);
}
[data-gcb-kit-control]:where([data-gcb-kit="field"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"]):focus) {
	outline: var(--gcb-kit-line-w) solid transparent; outline-offset: 0;
	border-color: var(--gcb-kit-accent);
	box-shadow: var(--gcb-kit-focus-ring);
}
/* read-only: there to be read and copied, a faint fill says it is not for typing */
[data-gcb-kit-control]:where([data-gcb-kit="field"] [readonly]:not([data-gcb-own])) { background: var(--gcb-kit-wash); }
/* right (data-valid on the field): the success colour on its line and on the words under it */
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-valid] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) { border-color: var(--gcb-kit-success); }
/* wrong (aria-invalid="true" on the box): the error's line, and its ring when focused */
[data-gcb-kit-control]:where([data-gcb-kit="field"] [aria-invalid="true"]:not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) { border-color: var(--gcb-field-error-line, var(--gcb-kit-error)); }
[data-gcb-kit-control]:where([data-gcb-kit="field"] [aria-invalid="true"]:not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"]):focus) { box-shadow: var(--gcb-kit-error-ring); }
/* off: the whole field quiet, never the pointer */
:where([data-gcb-kit="field"]:has([data-gcb-kit-control]:disabled)) { opacity: var(--gcb-kit-disabled); }
[data-gcb-kit-control]:where([data-gcb-kit="field"] :disabled:not([data-gcb-own])) { cursor: not-allowed; }

/* ON A DARK SECTION the site's accent, error and success colours are often too dark to see, so each is lifted toward
   the colour of the words; focus also draws a second line of it outside the border, as the faint ring does not show */
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-scheme="dark"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"]):focus) {
	border-color: color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor);
	outline-color: color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor);
}
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-scheme="dark"][data-valid] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) { border-color: color-mix(in srgb, var(--gcb-kit-success) 50%, currentColor); }
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-scheme="dark"] [aria-invalid="true"]:not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) {
	border-color: var(--gcb-field-error-line, color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor));
	outline-color: var(--gcb-field-error-line, color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor));
}

/* THE WORDS UNDER IT: help, or the error in its place */
:where([data-gcb-kit="field"] [data-gcb-kit-hint]) { margin: 0; color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); }
:where([data-gcb-kit="field"][data-valid] [data-gcb-kit-hint]) { color: var(--gcb-kit-success); }
:where([data-gcb-kit="field"] [data-gcb-kit-error-text]) { margin: 0; color: var(--gcb-kit-error); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-control); }
:where([data-gcb-kit="field"][data-scheme="dark"][data-valid] [data-gcb-kit-hint]) { color: color-mix(in srgb, var(--gcb-kit-success) 50%, currentColor); }
:where([data-gcb-kit="field"][data-scheme="dark"] [data-gcb-kit-error-text]) { color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor); }
[data-gcb-kit="field"]:has([data-gcb-kit-control][aria-invalid="true"]) [data-gcb-kit-hint] { display: none; } /* mechanic: the error takes the help's place */
[data-gcb-kit="field"]:not([data-gcb-kit-ready], :has([data-gcb-kit-control][aria-invalid="true"])) [data-gcb-kit-error-text] { display: none; } /* mechanic: no error to show while the box is not wrong */
[data-gcb-kit="field"][data-gcb-kit-ready]:not(:has([data-gcb-kit-control][aria-invalid="true"])) [data-gcb-kit-error-text] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: with the script the empty error stays in the page, out of sight, so a screen reader is already listening when words arrive in it */

/* THE LABEL FLOATING INSIDE (data-label="floating" on the field): small at the top of a taller box. While the box is
   empty and not being typed in, the label rests where the words will go. That resting place needs the box to have a
   placeholder (a space will do; the script adds one), so with neither the label simply stays small at the top.
   A floating field has one size: data-size does not apply to it. */
:where([data-gcb-kit="field"][data-label="floating"]) { position: relative; }
[data-gcb-kit-label]:where([data-gcb-kit="field"][data-label="floating"] :not([data-gcb-own])) {
	position: absolute; z-index: 1; pointer-events: none;
	inset-inline: calc(var(--gcb-field-pad-x, var(--gcb-kit-pad-control)) + var(--gcb-kit-line-w));
	top: calc(var(--gcb-kit-line-w) + var(--gcb-kit-gap-s));
	overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-body);
	transition: top var(--gcb-kit-dur-feedback), font-size var(--gcb-kit-dur-feedback), opacity var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-label="floating"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) {
	min-height: var(--gcb-field-h, var(--gcb-kit-field-h));
	padding-block: calc(var(--gcb-kit-gap-s) + var(--gcb-kit-text-caption) * var(--gcb-kit-leading)) calc(var(--gcb-kit-gap-s) / 2);
	padding-inline: var(--gcb-field-pad-x, var(--gcb-kit-pad-control));
	font-size: var(--gcb-kit-text-body);
}
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-label="floating"] textarea:not([data-gcb-own])) { min-height: calc(var(--gcb-field-h, var(--gcb-kit-field-h)) * var(--gcb-field-rows, 2.5) / 1.25); }
[data-gcb-kit-label]:where([data-gcb-kit="field"][data-label="floating"]:has([data-gcb-kit-control]:placeholder-shown:not(:focus)) :not([data-gcb-own])) {
	top: calc((var(--gcb-field-h, var(--gcb-kit-field-h)) - 1lh) / 2);
	font-size: var(--gcb-kit-text-body);
}
[data-gcb-kit-label]:where([data-gcb-kit="field"][data-label="floating"]:has(textarea[data-gcb-kit-control]:placeholder-shown:not(:focus)) :not([data-gcb-own])) {
	top: calc(var(--gcb-kit-line-w) + var(--gcb-kit-gap-s) + var(--gcb-kit-text-caption) * var(--gcb-kit-leading));
}
/* a textarea scrolled down (data-scrolled, from the script) would slide its lines under the small label, so the label
   steps out of the way until it is scrolled back to the top */
[data-gcb-kit-label]:where([data-gcb-kit="field"][data-label="floating"][data-scrolled] :not([data-gcb-own])) { opacity: 0; }
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-label="floating"] :not([data-gcb-own]):not(:focus))::placeholder { color: transparent; }

/* ON A TOUCH SCREEN the typed words are never under 16px: a phone's browser zooms the whole page into a box with
   smaller words, on every field of a form. Above it, the site's sizes stand. */
@media (pointer: coarse) {
	[data-gcb-kit-control]:where([data-gcb-kit="field"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) { font-size: max(var(--gcb-kit-text-body), 16px); } /* mechanic: iOS zooms into a box whose words are under 16px */
	[data-gcb-kit-control]:where([data-gcb-kit="field"][data-size="sm"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) { font-size: max(var(--gcb-kit-text-meta), 16px); } /* mechanic: iOS zooms into a box whose words are under 16px */
	[data-gcb-kit-control]:where([data-gcb-kit="field"][data-size="lg"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) { font-size: max(var(--gcb-kit-text-section), 16px); } /* mechanic: iOS zooms into a box whose words are under 16px */
	[data-gcb-kit-control]:where([data-gcb-kit="field"][data-label="floating"] :not([data-gcb-own], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"])) { font-size: max(var(--gcb-kit-text-body), 16px); } /* mechanic: iOS zooms into a box whose words are under 16px */
	[data-gcb-kit-label]:where([data-gcb-kit="field"][data-label="floating"]:has([data-gcb-kit-control]:placeholder-shown:not(:focus)) :not([data-gcb-own])) { font-size: max(var(--gcb-kit-text-body), 16px); } /* mechanic: a resting label is the size of the words that will replace it */
}

/* figure */
/* FIGURE: a picture, a video or a quote, with its caption. No script.
   figure, img, blockquote, a (and figcaption and blockquote p, in most themes) are styled BY THEIR TAG by a theme that
   is not reset, so the rules on those weigh one attribute (README rule 2) and stand aside for an element marked
   data-gcb-own. The script only measures the page for wide and full (see there); with no script they measure the screen.
   Everything else weighs nothing. Every value is a token: the figure's own first, the list's after.
   Width (data-width): as written the figure is as wide as its column; "wide" reaches past it; "full" reaches the edges
   of the page. Caption (data-caption): as written it sits where it is written (after the picture: under; before: above);
   "over" lays it on the picture's foot. data-align: where the caption's words sit. data-float: beside the words.
   The space above and below a figure is the page's: its block margins are left alone. */
[data-gcb-kit="figure"]:where(:not([data-gcb-own])) {
	display: flex; flex-direction: column; min-width: 0; box-sizing: border-box;
	gap: var(--gcb-figure-gap, var(--gcb-kit-gap-s));
	margin-inline: 0;
	max-width: var(--gcb-figure-max, none);
	font-family: var(--gcb-kit-font); text-align: start;
}
[data-gcb-kit="figure"]:where([data-align="center"]:not([data-gcb-own])) { margin-inline: auto; text-align: center; }
[data-gcb-kit="figure"]:where([data-align="end"]:not([data-gcb-own])) { margin-inline-start: auto; text-align: end; }

/* WIDE: past the column by --gcb-figure-wide each side, and never nearer the page's edge than --gcb-figure-edge, so
   on a phone (the column is the page) it is simply the column. FULL: edge to edge of the page. Both take the column to
   be in the middle of the page; where it is not, name a box as the page (the guide says how). The page is that box, else
   the page's width without its scrollbar (--gcb-figure-screen, written on the html element by the script: 100vw counts
   the scrollbar, and a full figure measured from it would scroll the page sideways), else the screen. */
[data-gcb-kit="figure"]:where([data-width="wide"]:not([data-gcb-own])) {
	max-width: none;
	margin-inline: calc(-1 * max(0%, min(var(--gcb-figure-wide, 8rem), (var(--gcb-figure-page, var(--gcb-figure-screen, 100vw)) - 100%) / 2 - var(--gcb-figure-edge, var(--gcb-kit-pad-control)))));
}
[data-gcb-kit="figure"]:where([data-width="full"]:not([data-gcb-own])) {
	max-width: none;
	margin-inline: calc((100% - var(--gcb-figure-page, var(--gcb-figure-screen, 100vw))) / 2);
}

/* THE PICTURE OR VIDEO: the img or video itself, or a box round a picture element or an embedded player. It fills the
   figure; its height follows its own shape unless --gcb-figure-ratio cuts it to one. */
[data-gcb-kit-media]:where(:not([data-gcb-own])) {
	display: block; box-sizing: border-box; width: 100%; max-width: 100%; height: auto; margin: 0; padding: 0; border: 0;
	box-shadow: none; filter: var(--gcb-figure-filter, none); outline: 0; overflow: hidden; object-fit: cover;
	aspect-ratio: var(--gcb-figure-ratio, auto);
	border-radius: var(--gcb-figure-radius, var(--gcb-kit-radius-card));
}
[data-gcb-kit-media]:where(:has(> iframe):not([data-gcb-own])) { aspect-ratio: var(--gcb-figure-ratio, 16 / 9); }
[data-gcb-kit-media]:where([data-gcb-kit="figure"][data-width="full"] > *:not([data-gcb-own])) { border-radius: var(--gcb-figure-radius, 0); }
/* what is in the box fills it */
[data-gcb-kit-media] > :where(img, video, iframe, picture):where(:not([data-gcb-own])),
[data-gcb-kit-media] > picture > :where(img:not([data-gcb-own])) {
	display: block; width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; filter: none; object-fit: cover;
}

/* THE CAPTION: small, quieter words made of the colour of the words round it, so it sits on any background */
[data-gcb-kit-caption]:where(:not([data-gcb-own])) {
	margin: 0; padding: 0; border: 0; background: none; text-align: inherit; text-wrap: pretty; font-style: normal;
	color: var(--gcb-figure-caption-ink, var(--gcb-kit-quiet));
	font-size: var(--gcb-figure-caption-size, var(--gcb-kit-text-meta)); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
}
/* a full figure's caption keeps off the edge of the page */
[data-gcb-kit-caption]:where([data-gcb-kit="figure"][data-width="full"] > *:not([data-gcb-own])) { padding-inline: var(--gcb-figure-edge, var(--gcb-kit-pad-control)); }

/* OVER: the caption laid on the foot of the picture, over a veil that fades up into it. The figure takes the
   picture's corners and cuts the veil to them. */
[data-gcb-kit="figure"]:where([data-caption="over"]:not([data-gcb-own])) {
	display: grid; gap: 0; overflow: clip;
	border-radius: var(--gcb-figure-radius, var(--gcb-kit-radius-card));
}
[data-gcb-kit="figure"]:where([data-caption="over"][data-width="full"]:not([data-gcb-own])) { border-radius: var(--gcb-figure-radius, 0); }
:where([data-gcb-kit="figure"][data-caption="over"] > *) { grid-area: 1 / 1; min-width: 0; } /* mechanic: the picture and the caption share one cell */
[data-gcb-kit-caption]:where([data-gcb-kit="figure"][data-caption="over"] > *:not([data-gcb-own])) {
	position: relative; z-index: 1; align-self: end; /* mechanic: above the picture, at its foot */
	padding: var(--gcb-figure-veil-fade, var(--gcb-kit-pad-panel)) var(--gcb-kit-pad-control) var(--gcb-kit-pad-control);
	background: var(--gcb-figure-veil, linear-gradient(to top, color-mix(in srgb, var(--gcb-kit-ink) 78%, transparent), transparent));
	color: var(--gcb-figure-caption-ink, var(--gcb-kit-on-scrim));
	font-size: var(--gcb-figure-caption-size, var(--gcb-kit-text-control));
}
/* a link on the veil is the caption's colour, underlined: the theme's link colour would be lost on it */
[data-gcb-kit-caption]:where([data-gcb-kit="figure"][data-caption="over"] > *) :where(a:not([data-gcb-own])) { color: inherit; text-decoration: underline; }

/* A QUOTE: bigger words with a line down their side, and the caption says who said it (a dash is drawn before it).
   Centred or at the end, the line is dropped. */
[data-gcb-kit="figure"]:where(:has(> [data-gcb-kit-quote]):not([data-gcb-own])) {
	gap: var(--gcb-figure-gap, var(--gcb-kit-gap));
	padding-inline-start: var(--gcb-kit-pad-control);
	border-inline-start: var(--gcb-figure-quote-line, calc(var(--gcb-kit-line-w) + 2px) solid currentColor);
}
[data-gcb-kit="figure"]:where([data-align="center"]:has(> [data-gcb-kit-quote]):not([data-gcb-own]), [data-align="end"]:has(> [data-gcb-kit-quote]):not([data-gcb-own])) {
	padding-inline-start: 0; border-inline-start: 0 solid transparent;
}
[data-gcb-kit-quote]:where(:not([data-gcb-own])) {
	margin: 0; padding: 0; border: 0; background: none; color: inherit; quotes: none; text-wrap: pretty; font-style: normal;
	font-size: var(--gcb-figure-quote-size, var(--gcb-kit-text-title)); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
}
/* a theme's big quote mark drawn before or after a blockquote is taken off: the line is the quote's mark */
[data-gcb-kit-quote]:where(:not([data-gcb-own]))::before, [data-gcb-kit-quote]:where(:not([data-gcb-own]))::after { content: none; }
/* its paragraphs: themes style "blockquote p" (a margin, a size, a slant), so these weigh one attribute too */
[data-gcb-kit-quote] > :where(:not([data-gcb-own])) { margin: 0; padding: 0; font-size: inherit; font-style: inherit; line-height: inherit; }
[data-gcb-kit-quote] > :where(* + :not([data-gcb-own])) { margin-block-start: var(--gcb-kit-gap-s); }
:where([data-gcb-kit="figure"]:has(> [data-gcb-kit-quote]) > [data-gcb-kit-caption])::before { content: "\2014\00A0"; }

/* FLOAT (data-float="start" or "end"): beside the paragraphs that follow, which wrap round it; on a narrow screen it is
   the column again. Its side gap faces the words. Not with wide, full or a caption laid over. */
[data-gcb-kit="figure"]:where([data-float="start"]:not([data-gcb-own]), [data-float="end"]:not([data-gcb-own])) {
	float: inline-start; clear: inline-start;
	width: min(var(--gcb-figure-float, 18rem), 50%);
	margin-inline: 0 var(--gcb-figure-float-gap, var(--gcb-kit-pad-panel));
	margin-block: 0 var(--gcb-figure-float-gap, var(--gcb-kit-pad-panel));
}
[data-gcb-kit="figure"]:where([data-float="end"]:not([data-gcb-own])) {
	float: inline-end; clear: inline-end;
	margin-inline: var(--gcb-figure-float-gap, var(--gcb-kit-pad-panel)) 0;
}
@media (max-width: 36rem) {
	[data-gcb-kit="figure"]:where([data-float]:not([data-gcb-own])) { float: none; width: auto; margin-inline: 0; margin-block: var(--gcb-figure-float-gap, var(--gcb-kit-pad-panel)); }
}

/* the keyboard's mark, on a link in the caption and on a video: in the colour of the words round it, so it shows on a
   section's own colour and on a veil. One attribute of weight, so a theme's "a:focus { outline: none }" does not take it */
[data-gcb-kit="figure"] :where(a, button, video, iframe):where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* BLENDS INTO THE PAGE (Mark, 2026-11-15: "putting an image in rounded corners like that means 'click me - big card - i'm
   a product'. Images for decoration are full width ... or they choose image colours that blend in with the color of
   the next section"). data-blend="top | bottom | both" fades that edge of the picture to nothing, so the section's own
   colour comes through and the picture melts into the band it sits in instead of sitting on it in a frame.
   --gcb-figure-blend is how far the fade reaches (35%). */
[data-gcb-kit="figure"][data-blend="top"] [data-gcb-kit-media] { -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--gcb-figure-blend, 35%)); mask-image: linear-gradient(to bottom, transparent, black var(--gcb-figure-blend, 35%)); }
[data-gcb-kit="figure"][data-blend="bottom"] [data-gcb-kit-media] { -webkit-mask-image: linear-gradient(to top, transparent, black var(--gcb-figure-blend, 35%)); mask-image: linear-gradient(to top, transparent, black var(--gcb-figure-blend, 35%)); }
[data-gcb-kit="figure"][data-blend="both"] [data-gcb-kit-media] { -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--gcb-figure-blend, 35%), black calc(100% - var(--gcb-figure-blend, 35%)), transparent); mask-image: linear-gradient(to bottom, transparent, black var(--gcb-figure-blend, 35%), black calc(100% - var(--gcb-figure-blend, 35%)), transparent); }
/* LEADS FROM ONE BAND INTO THE NEXT (Mark, 2026-11-16: "It's all about how you break sections up or let them lead into
   the others"). A blended picture standing on a seam can carry its own ground behind the faded edges: the colour of
   the band above (--gcb-figure-above) at its top and of the band below (--gcb-figure-below) at its bottom, so it fades
   out of one and into the other. Left unset, the faded edges show whatever the picture sits on. */
:where([data-gcb-kit="figure"][data-blend]) { background: linear-gradient(to bottom, var(--gcb-figure-above, transparent), var(--gcb-figure-below, transparent)); }


/* file-upload */
/* FILE UPLOAD: a place to drop or browse for files, the chosen ones listed under it. The truth is a real
   <input type="file">: the form sends it, a reader hears it, the keyboard presses it.
   WITH NO SCRIPT it is that input, dressed as a field (a box, its button at the start). WITH ITS SCRIPT the input is
   laid, see-through, over a drop zone the script draws, so a press, a key and a label all still reach the real thing.
   Every value is a token: the part's own first (--gcb-file-…), the site's after (tokens/README.md). The input, the
   list, its rows and the remove button are elements a theme styles by their tag, so their looks weigh ONE attribute
   (README rule 2) and stand aside for one marked data-gcb-own; everything else weighs nothing. Lines, fills and quiet
   words are made of the colour of the words, so it sits on any background with nothing set. */
:where([data-gcb-kit="file-upload"]) {
	display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; position: relative;
	gap: var(--gcb-file-gap, calc(var(--gcb-kit-gap-s) * 0.75));
	font-family: var(--gcb-kit-font); line-height: var(--gcb-kit-leading); text-align: start;
}

/* THE LABEL, as a field's: a <label> is styled by its tag in many themes, so it weighs one attribute (README rule 2) */
[data-gcb-kit-label]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])) {
	display: block; margin: 0; padding: 0; color: inherit;
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
}
:where([data-gcb-kit="file-upload"]:has([type="file"]:required) [data-gcb-kit-label])::after {
	content: var(--gcb-file-required, " *");
	content: var(--gcb-file-required, " *") / "";
}

/* THE INPUT AS A BOX: what shows with no script, and with data-look="input". The browser's own button sits at its
   start on a faint fill, a line between it and the words. */
[type="file"]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])) {
	box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 0; overflow: hidden;
	height: var(--gcb-kit-control-h); min-height: 0;
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong);
	border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none; color: inherit; cursor: pointer;
	font: inherit; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body);
	line-height: calc(var(--gcb-kit-control-h) - var(--gcb-kit-line-w) * 2);
	transition: border-color var(--gcb-kit-dur-feedback), background-color var(--gcb-kit-dur-feedback);
}
[type="file"]:where([data-gcb-kit="file-upload"] :not([data-gcb-own]))::file-selector-button {
	box-sizing: border-box; height: calc(var(--gcb-kit-control-h) - var(--gcb-kit-line-w) * 2); margin: 0;
	margin-inline-end: var(--gcb-kit-gap);
	padding: 0 var(--gcb-kit-pad-control);
	border: 0; border-inline-end: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong); border-radius: 0;
	background: var(--gcb-kit-wash); color: inherit; cursor: pointer;
	font: inherit; font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
}
/* its states sit OUTSIDE the :where (one attribute and one state), so a theme's `input:hover` or `input:focus { outline:
   none }` (a tag and a state) does not take them over */
[type="file"]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])):focus { border-color: var(--gcb-kit-rule-strong); outline: none; box-shadow: none; background: transparent; }
[type="file"]:where([data-gcb-kit="file-upload"] :not([data-gcb-own], :disabled)):hover { border-color: var(--gcb-kit-quiet); box-shadow: none; background: transparent; }
[type="file"]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
[type="file"]:where([data-gcb-kit="file-upload"][data-valid] :not([data-gcb-own])),
[type="file"]:where([data-gcb-kit="file-upload"][data-valid] :not([data-gcb-own])):is(:hover, :focus) { border-color: var(--gcb-kit-success); }
[type="file"]:where([data-gcb-kit="file-upload"]:not([data-dragging]) [aria-invalid="true"]:not([data-gcb-own]), [data-gcb-kit="file-upload"][data-refused]:not([data-dragging]) :not([data-gcb-own])),
[type="file"]:where([data-gcb-kit="file-upload"]:not([data-dragging]) [aria-invalid="true"]:not([data-gcb-own]), [data-gcb-kit="file-upload"][data-refused]:not([data-dragging]) :not([data-gcb-own])):is(:hover, :focus) { border-color: var(--gcb-kit-error); }
[type="file"]:where([data-gcb-kit="file-upload"][data-dragging] :not([data-gcb-own])),
[type="file"]:where([data-gcb-kit="file-upload"][data-dragging] :not([data-gcb-own])):is(:hover, :focus) { border-color: var(--gcb-kit-accent); background: color-mix(in srgb, var(--gcb-kit-accent) 10%, transparent); }
[type="file"]:where([data-gcb-kit="file-upload"] :disabled) { cursor: not-allowed; }
/* off: the whole part quiet */
:where([data-gcb-kit="file-upload"]:has([type="file"]:disabled)) { opacity: var(--gcb-kit-disabled); }

/* TWO MORE SIZES, for the input as a box and for the button look: as written is medium */
[type="file"]:where([data-gcb-kit="file-upload"][data-size="sm"] :not([data-gcb-own])) { height: calc(var(--gcb-kit-control-h) * 0.8); line-height: calc(var(--gcb-kit-control-h) * 0.8 - var(--gcb-kit-line-w) * 2); font-size: var(--gcb-kit-text-meta); }
[type="file"]:where([data-gcb-kit="file-upload"][data-size="sm"] :not([data-gcb-own]))::file-selector-button { height: calc(var(--gcb-kit-control-h) * 0.8 - var(--gcb-kit-line-w) * 2); font-size: var(--gcb-kit-text-meta); }
[type="file"]:where([data-gcb-kit="file-upload"][data-size="lg"] :not([data-gcb-own])) { height: calc(var(--gcb-kit-control-h) * 1.2); line-height: calc(var(--gcb-kit-control-h) * 1.2 - var(--gcb-kit-line-w) * 2); font-size: var(--gcb-kit-text-section); }
[type="file"]:where([data-gcb-kit="file-upload"][data-size="lg"] :not([data-gcb-own]))::file-selector-button { height: calc(var(--gcb-kit-control-h) * 1.2 - var(--gcb-kit-line-w) * 2); font-size: var(--gcb-kit-text-body); }
[data-gcb-kit-label]:where([data-gcb-kit="file-upload"][data-size="sm"] :not([data-gcb-own])) { font-size: var(--gcb-kit-text-meta); }
[data-gcb-kit-label]:where([data-gcb-kit="file-upload"][data-size="lg"] :not([data-gcb-own])) { font-size: var(--gcb-kit-text-body); }

/* THE ZONE (drawn by the script): a dashed box, its mark, "Drop files here or browse", a quieter line of what it takes */
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-drop]) { position: relative; }
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-drop]:not([data-gcb-own])) {
	box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: var(--gcb-file-drop-gap, calc(var(--gcb-kit-gap-s) / 2));
	min-height: var(--gcb-file-drop-min, 128px);
	padding: var(--gcb-file-drop-pad, var(--gcb-kit-pad-control) var(--gcb-kit-pad-panel));
	border: var(--gcb-file-drop-border, calc(var(--gcb-kit-line-w) * 1.5) dashed var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-kit-radius-field);
	text-align: center; cursor: pointer;
	transition: border-color var(--gcb-kit-dur-feedback), background-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="file-upload"]:not(:has([type="file"]:disabled)) [data-gcb-kit-file-drop]:not([data-gcb-own]):hover) { border-color: var(--gcb-kit-quiet); }
/* the keyboard's mark, for a thing that is pressed: on the zone, whose input it is (a zone of the design's own too) */
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-drop]:has([type="file"]:focus-visible)) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
/* a file held over it: the accent, a solid line, a tint */
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-drop][data-dragging]:not([data-gcb-own])) {
	border-color: var(--gcb-kit-accent); border-style: solid;
	background: color-mix(in srgb, var(--gcb-kit-accent) 10%, transparent);
}
/* the page says it is right (data-valid on the root) */
:where([data-gcb-kit="file-upload"][data-valid] [data-gcb-kit-file-drop]:not([data-gcb-own], [data-dragging])) { border-color: var(--gcb-kit-success); }
/* something was refused, or the page says it is wrong */
:where([data-gcb-kit="file-upload"]:is([data-refused], :has([type="file"][aria-invalid="true"])) [data-gcb-kit-file-drop]:not([data-gcb-own], [data-dragging])) { border-color: var(--gcb-kit-error); }
/* at its most: the zone stays, quieter */
:where([data-gcb-kit="file-upload"][data-full] [data-gcb-kit-file-drop]:not([data-gcb-own])) { color: var(--gcb-kit-quiet); }

:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-icon]) {
	display: grid; place-items: center; color: var(--gcb-kit-quiet);
	transition: translate var(--gcb-kit-dur-spring) var(--gcb-kit-ease-spring);
}
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-icon] svg) { display: block; }
:where([data-gcb-kit="file-upload"] [data-dragging] [data-gcb-kit-file-icon]) { translate: 0 calc(var(--gcb-kit-gap-s) * -0.25); color: var(--gcb-kit-accent); }
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-say]) { font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control); }
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-browse]) {
	color: var(--gcb-file-browse-ink, inherit);
	text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: var(--gcb-file-browse-offset, 0.2em);
}
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-takes]) { color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body); }

/* A BUTTON (data-look="button"): the zone one line, its mark beside its word, a control's height, as wide as its words */
:where([data-gcb-kit="file-upload"][data-look="button"] [data-gcb-kit-file-drop]:not([data-gcb-own])) {
	display: inline-flex; flex-direction: row; justify-self: start; max-width: 100%;
	gap: var(--gcb-file-drop-gap, var(--gcb-kit-gap-s));
	min-height: var(--gcb-kit-control-h);
	padding: var(--gcb-file-drop-pad, 0 var(--gcb-kit-pad-control));
	border-style: solid;
}
:where([data-gcb-kit="file-upload"][data-look="button"][data-size="sm"] [data-gcb-kit-file-drop]:not([data-gcb-own])) { min-height: calc(var(--gcb-kit-control-h) * 0.8); }
:where([data-gcb-kit="file-upload"][data-look="button"][data-size="lg"] [data-gcb-kit-file-drop]:not([data-gcb-own])) { min-height: calc(var(--gcb-kit-control-h) * 1.2); }
:where([data-gcb-kit="file-upload"][data-look="button"][data-size="sm"] [data-gcb-kit-file-say]) { font-size: var(--gcb-kit-text-meta); }
:where([data-gcb-kit="file-upload"][data-look="button"][data-size="lg"] [data-gcb-kit-file-say]) { font-size: var(--gcb-kit-text-body); }

/* THE INPUT OVER THE ZONE: the real thing, see-through, so the press, the key, the label and the reader all get it */
[data-gcb-kit="file-upload"] [data-gcb-kit-file-drop] > [type="file"] { position: absolute; inset: 0; z-index: 1; box-sizing: border-box; display: block; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 0; } /* mechanic: the real input covers the zone, unseen */
[data-gcb-kit="file-upload"] [data-gcb-kit-file-drop] > [type="file"]::file-selector-button { height: 100%; cursor: pointer; } /* mechanic: the whole of it is the pointer */
[data-gcb-kit="file-upload"] [data-gcb-kit-file-drop] > [type="file"]:disabled, [data-gcb-kit="file-upload"]:has([type="file"]:disabled) [data-gcb-kit-file-drop] { cursor: not-allowed; } /* mechanic: off is never the pointer */
[data-gcb-kit="file-upload"] [type="file"][data-gcb-kit-file-hidden] { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; } /* mechanic: a zone that is itself a button opens the picker; the input is kept for the form, out of sight */
[data-gcb-kit="file-upload"]:not([data-gcb-kit-ready]) :is([data-gcb-kit-file-drop], [data-gcb-kit-file-list]) { display: none; } /* mechanic: a zone or a list drawn by the design does nothing until the script is up */
[data-gcb-kit="file-upload"] [data-gcb-kit-file-status] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: said to a screen reader, not shown */

/* THE FILES: a row each, its thumbnail (a picture's own, else a page), its name over its size, its remove button */
[data-gcb-kit-file-list]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])) { display: grid; gap: var(--gcb-kit-gap-s); margin: 0; padding: 0; list-style: none; }
[data-gcb-kit="file-upload"] [data-gcb-kit-file-list]:empty { display: none; } /* mechanic: no files, no gap for them */
[data-gcb-kit-file]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])) {
	box-sizing: border-box; display: flex; align-items: center; min-width: 0; margin: 0; list-style: none;
	gap: var(--gcb-kit-gap);
	padding: var(--gcb-file-row-pad, var(--gcb-kit-gap-s));
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule);
	border-radius: var(--gcb-file-row-radius, var(--gcb-kit-radius-field));
	animation: gcb-file-upload-in var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand) backwards;
}
@keyframes gcb-file-upload-in {
	from { opacity: 0; translate: 0 calc(var(--gcb-kit-gap-s) * -0.5); }
}
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-preview]:not([data-gcb-own])) {
	display: grid; place-items: center; flex: none; overflow: hidden;
	width: var(--gcb-file-thumb, 40px); height: var(--gcb-file-thumb, 40px);
	border-radius: var(--gcb-file-thumb-radius, var(--gcb-kit-radius-check));
	background: var(--gcb-kit-wash); color: var(--gcb-kit-quiet);
}
[data-gcb-kit-file-thumb]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])) { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: cover; }
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-words]) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-name]) {
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
}
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-size]) { color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); font-variant-numeric: tabular-nums; }
[data-gcb-kit-file-remove]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; display: grid; place-items: center; flex: none;
	width: var(--gcb-file-remove, 32px); height: var(--gcb-file-remove, 32px); min-width: 0; min-height: 0; margin: 0; padding: 0;
	border: 0; border-radius: var(--gcb-kit-radius-full);
	background: transparent; box-shadow: none; color: var(--gcb-kit-quiet); cursor: pointer;
	font: inherit; line-height: 1;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback);
}
/* its states sit OUTSIDE the :where (one attribute and one state, as the accordion's trigger), so a theme's
   `button:hover { background }` or `button:focus { outline: none }` does not take them over */
[data-gcb-kit-file-remove]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])):is(:focus, :active) { border: 0; background: transparent; box-shadow: none; outline: none; color: var(--gcb-kit-quiet); }
[data-gcb-kit-file-remove]:where([data-gcb-kit="file-upload"] :not([data-gcb-own], :disabled)):hover { border: 0; background: var(--gcb-kit-wash); box-shadow: none; color: inherit; }
[data-gcb-kit-file-remove]:where([data-gcb-kit="file-upload"] :not([data-gcb-own])):focus-visible { box-shadow: none; outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit-file-remove]:where([data-gcb-kit="file-upload"] :disabled) { cursor: not-allowed; }
:where([data-gcb-kit="file-upload"] [data-gcb-kit-file-remove] svg) { display: block; pointer-events: none; }

/* THE WORDS UNDER IT: help, and what went wrong (a line for each thing refused) */
:where([data-gcb-kit="file-upload"] [data-gcb-kit-hint]) { margin: 0; color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); }
:where([data-gcb-kit="file-upload"][data-valid] [data-gcb-kit-hint]) { color: var(--gcb-kit-success); }
:where([data-gcb-kit="file-upload"] [data-gcb-kit-error-text]) { display: grid; margin: 0; color: var(--gcb-kit-error); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-control); }
[data-gcb-kit="file-upload"]:not([data-refused], :has([type="file"][aria-invalid="true"])) [data-gcb-kit-error-text] { display: none; } /* mechanic: no error to show while nothing is wrong */

/* ON A DARK SECTION (data-scheme="dark", from the colour of the words) the site's accent, error and success colours are
   often too dark to see, so each is lifted toward the colour of the words, as the field part does */
:where([data-gcb-kit="file-upload"][data-scheme="dark"] [data-gcb-kit-error-text]) { color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor); }
:where([data-gcb-kit="file-upload"][data-scheme="dark"][data-valid] [data-gcb-kit-hint]) { color: color-mix(in srgb, var(--gcb-kit-success) 50%, currentColor); }
:where([data-gcb-kit="file-upload"][data-scheme="dark"][data-valid] [data-gcb-kit-file-drop]:not([data-gcb-own], [data-dragging])) { border-color: color-mix(in srgb, var(--gcb-kit-success) 50%, currentColor); }
:where([data-gcb-kit="file-upload"][data-scheme="dark"]:is([data-refused], :has([type="file"][aria-invalid="true"])) [data-gcb-kit-file-drop]:not([data-gcb-own], [data-dragging])) { border-color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor); }
:where([data-gcb-kit="file-upload"][data-scheme="dark"] [data-gcb-kit-file-drop][data-dragging]:not([data-gcb-own])) { border-color: color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor); background: color-mix(in srgb, var(--gcb-kit-accent) 20%, transparent); }
:where([data-gcb-kit="file-upload"][data-scheme="dark"] [data-dragging] [data-gcb-kit-file-icon]) { color: color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor); }
[type="file"]:where([data-gcb-kit="file-upload"][data-scheme="dark"]:not([data-dragging]) [aria-invalid="true"]:not([data-gcb-own]), [data-gcb-kit="file-upload"][data-scheme="dark"][data-refused]:not([data-dragging]) :not([data-gcb-own])),
[type="file"]:where([data-gcb-kit="file-upload"][data-scheme="dark"]:not([data-dragging]) [aria-invalid="true"]:not([data-gcb-own]), [data-gcb-kit="file-upload"][data-scheme="dark"][data-refused]:not([data-dragging]) :not([data-gcb-own])):is(:hover, :focus) { border-color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor); }

/* footer */
/* FOOTER: a site's footer. A recipe: the container holds its width, the grid lays out its columns, the list part is
   each column of links, the row of legal links and the row of social links. What is the footer's own is here: its
   room and top line, a column's heading, how a link looks down here (quieter than the words, full under the pointer),
   the brand block (the way home, a line about the site, the width of a sign-up), the social links' size, and the
   bottom line. A sign-up is the field, input-group and button parts as they are. No script.
   Every value is a token: the part's own first, the site's after (tokens/README.md). It paints no background and its
   lines and quiet words are made of the colour of the words, so it sits on a section's own colour with nothing set.
   WEIGHT (README rule 2): headings, links, a list's rows, paragraphs and pictures are styled by a theme BY THEIR TAG, so each of
   their rules weighs ONE attribute and stands aside for [data-gcb-own] (and, for a link, for any class: a button down
   here stays a button). A STATE of a link (:link, :visited, :hover, :focus-visible) adds that state, as list-group's
   and toc's do: a theme's own a:hover, a:visited or a:focus { outline: none } weighs a tag and a state, more than the
   attribute alone, and would otherwise paint the footer's links. Everything else weighs nothing. */
:where([data-gcb-kit="footer"]) {
	box-sizing: border-box;
	padding-block: var(--gcb-footer-pad, calc(var(--gcb-kit-pad-panel) * 2));
	border-block-start: var(--gcb-kit-line-w) solid var(--gcb-footer-line, var(--gcb-kit-rule));
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-footer-text, var(--gcb-kit-text-control));
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
	text-align: start;
}
:where([data-gcb-kit="footer"][data-line="none"]) { border-block-start: 0; }

/* THE COLUMNS: the grid part, told two things for a footer: a column of links may be narrower than a card (so two sit
   side by side on a phone), and rows of columns stand further apart than the columns do. Both are the grid's own
   tokens: set either on the grid to change it. */
:where([data-gcb-kit="footer"] [data-gcb-kit="grid"]) { --gcb-grid-min: 8rem; --gcb-grid-row-gap: calc(var(--gcb-kit-pad-panel) * 1.5); }

/* A COLUMN'S HEADING: small and firm, the words' own colour */
[data-gcb-kit-title]:where([data-gcb-kit="footer"] :not([data-gcb-own])) {
	margin: 0 0 var(--gcb-footer-title-gap, var(--gcb-kit-gap));
	padding: 0;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-footer-title-text, var(--gcb-kit-text-control));
	font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
	color: inherit;
}

/* A LINK in a list: quieter than the words, the words' full colour and an underline under the pointer, and the page
   you are on in full. A link with a class of its own (a button) is left alone. */
[data-gcb-kit="footer"] :where([data-gcb-kit="list"] a:not([data-gcb-own], [class])) {
	color: var(--gcb-footer-ink, var(--gcb-kit-quiet));
	text-decoration: none;
	text-underline-offset: var(--gcb-footer-underline-offset, 0.2em);
	transition: color var(--gcb-kit-dur-feedback);
}
[data-gcb-kit="footer"] :where([data-gcb-kit="list"] a:not([data-gcb-own], [class])):is(:link, :visited) { color: var(--gcb-footer-ink, var(--gcb-kit-quiet)); text-decoration: none; }
/* the page you are on: the words' full colour and a steady underline, so it is told by more than its colour */
[data-gcb-kit="footer"] :where([data-gcb-kit="list"] a:not([data-gcb-own], [class]))[aria-current="page"] { color: var(--gcb-footer-ink-hover, inherit); text-decoration: underline; }
[data-gcb-kit="footer"] :where([data-gcb-kit="list"] a:not([data-gcb-own], [class])):hover { color: var(--gcb-footer-ink-hover, inherit); text-decoration: underline; }
[data-gcb-kit="footer"] :where(a:not([data-gcb-own], [class])):focus-visible {
	outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset);
	border-radius: var(--gcb-kit-radius-check);
}
/* A ROW of a list takes the footer's words' colour, not a theme's li { color }: the links' quiet is mixed from it */
[data-gcb-kit="footer"] :where([data-gcb-kit="list"] > li:not([data-gcb-own])) { color: inherit; }
/* a row that is words and no link (an address, opening hours) is as quiet as the links beside it */
[data-gcb-kit="footer"] :where([data-gcb-kit="list"] > li:not([data-gcb-own], :has(a))) { color: var(--gcb-kit-quiet); }

/* THE BRAND BLOCK: the way home (a logo or the site's name), a line about the site, the social links */
:where([data-gcb-kit="footer"] [data-gcb-kit-brand]) {
	display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
	gap: var(--gcb-footer-brand-gap, var(--gcb-kit-gap));
}
[data-gcb-kit-home]:where([data-gcb-kit="footer"] :not([data-gcb-own])) {
	display: inline-flex; align-items: center; gap: var(--gcb-kit-gap-s);
	font-size: var(--gcb-footer-home-text, var(--gcb-kit-text-title));
	font-weight: var(--gcb-kit-weight-title);
	line-height: var(--gcb-kit-leading);
	color: inherit; text-decoration: none;
}
[data-gcb-kit-home]:where([data-gcb-kit="footer"] :not([data-gcb-own])):is(:link, :visited, :hover) { color: inherit; text-decoration: none; }
[data-gcb-kit-home]:where([data-gcb-kit="footer"] *) :where(img:not([data-gcb-own]), svg:not([data-gcb-own])) { display: block; width: auto; max-width: 100%; height: var(--gcb-footer-logo, 2rem); }
/* a sign-up in the brand block (the field part round an input-group) takes the column's width, up to its own measure */
:where([data-gcb-kit="footer"] [data-gcb-kit-brand] > [data-gcb-kit="field"]) { align-self: stretch; max-width: var(--gcb-footer-form, 24rem); }
[data-gcb-kit-about]:where([data-gcb-kit="footer"] :not([data-gcb-own])) {
	margin: 0; padding: 0;
	max-width: var(--gcb-footer-measure, 36ch);
	font-size: inherit; line-height: inherit;
	color: var(--gcb-kit-quiet);
	text-wrap: pretty;
}

/* THE SOCIAL LINKS: a list part set side by side, each link a drawing in a box big enough for a finger. The row is
   pulled back by the room round the first drawing, so the drawing itself starts on the column's edge. It is moved,
   not given a margin: the list part clears a list's margin with a rule as heavy as this one, and which of the two
   won would hang on the order the stylesheets load. The list part sets no position or inset. */
:where([data-gcb-kit="footer"] [data-gcb-kit-social]) { --gcb-list-flow-gap: 0px; --gcb-list-gap: 0px; }
[data-gcb-kit-social]:where([data-gcb-kit="footer"] :not([data-gcb-own])) {
	position: relative; /* mechanic: so the row can be moved without its margin */
	inset-inline-start: calc((var(--gcb-footer-social, var(--gcb-kit-control-h)) - var(--gcb-footer-icon, 1.25rem)) / -2);
}
[data-gcb-kit="footer"] :where([data-gcb-kit-social] a:not([data-gcb-own], [class])) {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--gcb-footer-social, var(--gcb-kit-control-h)); height: var(--gcb-footer-social, var(--gcb-kit-control-h));
	border-radius: var(--gcb-kit-radius-field);
	transition: color var(--gcb-kit-dur-feedback), background-color var(--gcb-kit-dur-feedback);
}
[data-gcb-kit="footer"] :where([data-gcb-kit-social] a:not([data-gcb-own], [class])):hover { background-color: var(--gcb-kit-wash); }
:where([data-gcb-kit="footer"] [data-gcb-kit-social] a svg) { display: block; width: var(--gcb-footer-icon, 1.25rem); height: var(--gcb-footer-icon, 1.25rem); }

/* THE BOTTOM LINE: the year and the name at one end, the legal links at the other, under a line. On a phone they
   wrap, one over the other. A footer that is only its bottom line has no line or room above it. */
:where([data-gcb-kit="footer"] [data-gcb-kit-bottom]) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: var(--gcb-kit-gap-s) calc(var(--gcb-kit-gap) * 2);
	margin-block-start: var(--gcb-footer-bottom-gap, calc(var(--gcb-kit-pad-panel) * 1.5));
	padding-block-start: var(--gcb-footer-bottom-pad, var(--gcb-kit-pad-panel));
	border-block-start: var(--gcb-kit-line-w) solid var(--gcb-footer-line, var(--gcb-kit-rule));
	font-size: var(--gcb-footer-bottom-text, var(--gcb-kit-text-meta));
}
:where([data-gcb-kit="footer"] [data-gcb-kit-bottom]:first-child) { margin-block-start: 0; padding-block-start: 0; border-block-start: 0; }
[data-gcb-kit-bottom] > :where(p:not([data-gcb-own])) { margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: var(--gcb-kit-quiet); }

/* IN THE MIDDLE: data-align="center" on the footer, for a small site's footer with no columns */
:where([data-gcb-kit="footer"][data-align="center"]) { text-align: center; }
:where([data-gcb-kit="footer"][data-align="center"] [data-gcb-kit-brand]) { align-items: center; }
[data-gcb-kit-social]:where([data-gcb-kit="footer"][data-align="center"] :not([data-gcb-own])) { inset-inline-start: 0; }
:where([data-gcb-kit="footer"][data-align="center"] [data-gcb-kit-bottom]) { flex-direction: column; justify-content: center; }
[data-gcb-kit="footer"]:where([data-align="center"]) :where([data-gcb-kit="list"][data-flow="inline"]:not([data-gcb-own])) { justify-content: center; }

/* gallery */
/* GALLERY: pictures that open large over the page. A RECIPE: on the page the pictures are laid out by the grid part
   and cut by the picture part (with the figure part where a caption shows on the page); the lightbox is the dialog
   part's full-screen <dialog>, its close the close-button part. So this sheet holds only what none of those has: the
   pointer over a picture, the large picture, the caption and count, the two arrows, and the flight of
   data-open="zoom". What the lightbox looks like as a dialog (no panel, the gallery's veil, its words' colour) it is
   told through the dialog's own tokens, never by restyling it.
   Every value is a token: the gallery's own first, the list's after (tokens/README.md).
   WEIGHT (README rule 2): a, button, dialog, figure, figcaption and img are styled BY THEIR TAG by a theme that is
   not reset, so the rules on those weigh ONE attribute and stand aside for data-gcb-own; the rest weigh nothing.
   What the script made carries data-gcb-kit-made; a lightbox the design drew itself is never dressed.
   With no script the pictures are there and each link opens its own file. */

/* ON THE PAGE: a picture that opens says so with the pointer once the script is up, and takes the site's focus mark */
:where([data-gcb-kit="gallery"][data-gcb-kit-ready] [data-gcb-kit-item]) { cursor: var(--gcb-gallery-cursor, zoom-in); }
[data-gcb-kit-item]:where([data-gcb-kit="gallery"] :not([data-gcb-own])) { color: inherit; text-decoration: none; }
[data-gcb-kit-item]:where([data-gcb-kit="gallery"] :not([data-gcb-own]):focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* THE LIGHTBOX: the dialog part's full-screen dialog with nothing of a panel left, so the veil behind it shows and
   the picture sits in the middle of the screen. It is told so through the dialog's own tokens, set on the box the
   script made: no room, no corners, no shadow, a panel made of nothing, the gallery's veil, and for its ink the
   colour for words on a veil. A token set on an element beats the one it would inherit, so this holds whichever
   stylesheet comes first. The veil is mixed on the gallery, from the site's own ink, because the lightbox then takes
   the veil's words for its ink. */
:where([data-gcb-kit="gallery"]) { --gcb-gallery-made-veil: var(--gcb-gallery-scrim, color-mix(in srgb, var(--gcb-kit-ink) 92%, transparent)); }
:where([data-gcb-kit-lightbox][data-gcb-kit-made]) {
	--gcb-dialog-pad: 0;
	--gcb-dialog-radius: 0;
	--gcb-dialog-shadow: none;
	--gcb-dialog-scrim: var(--gcb-gallery-made-veil);
	--gcb-kit-surface: transparent;
	--gcb-kit-ink: var(--gcb-gallery-ink, var(--gcb-kit-on-scrim));
	align-items: center; justify-content: center;
}
:where([data-gcb-kit-lightbox][data-gcb-kit-made][open]) { display: flex; }
dialog[data-gcb-kit-lightbox][data-gcb-kit-made] { overflow: hidden; } /* mechanic: the lightbox is the screen; a picture in flight never makes it scroll, whatever order the sheets came in */
dialog[data-gcb-kit-lightbox][data-lock="off"] { overscroll-behavior: auto; } /* mechanic: with the page not held still, a scroll over the lightbox reaches the page (data-close-on-scroll) */

/* THE PICTURE AND ITS WORDS, one under the other in the middle. The picture gives up height before its words do,
   so a caption that runs to two or three lines on a short screen still ends on the screen, a gap clear of its edges. */
[data-gcb-kit-stage]:where([data-gcb-kit-made] > *) {
	display: flex; flex-direction: column; align-items: center; box-sizing: border-box;
	gap: var(--gcb-gallery-gap, var(--gcb-kit-gap));
	min-width: 0; max-width: 100%; max-height: calc(100% - var(--gcb-gallery-gap, var(--gcb-kit-gap)) * 2); margin: 0; padding: 0; border: 0;
}
[data-gcb-kit-lightbox] > [data-gcb-kit-stage] { pointer-events: none; } /* mechanic: a press beside the picture lands on the veil, which shuts it */
[data-gcb-kit-lightbox] > [data-gcb-kit-stage] > * { pointer-events: auto; } /* mechanic: the picture and its words can still be pressed */
[data-gcb-kit-large]:where([data-gcb-kit-made] *) {
	display: block; box-sizing: border-box; width: auto; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
	flex: 0 1 auto; min-height: 0;
	max-width: var(--gcb-gallery-max-w, 92vw); max-height: var(--gcb-gallery-max-h, 82svh);
	object-fit: contain;
}
[data-gcb-kit-words]:where([data-gcb-kit-made] *) {
	display: flex; flex: none; flex-wrap: wrap; align-items: baseline; justify-content: center; box-sizing: border-box;
	gap: 0 var(--gcb-kit-gap);
	max-width: var(--gcb-gallery-max-w, 92vw); margin: 0; padding: 0;
	color: inherit; text-align: center;
	font-size: var(--gcb-gallery-caption-size, var(--gcb-kit-text-control)); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
}
[data-gcb-kit-caption]:where([data-gcb-kit-made] *) { color: inherit; font-size: inherit; text-wrap: balance; }
:where([data-gcb-kit-lightbox][data-gcb-kit-made] [data-gcb-kit-caption]:empty) { display: none; }
/* a link in a caption (a photographer's credit) is brought over as a link, in the words' colour and underlined */
[data-gcb-kit-caption]:where([data-gcb-kit-made] *) :where(a:not([data-gcb-own])) { color: inherit; text-decoration: underline; text-decoration-thickness: var(--gcb-kit-line-w); text-underline-offset: calc(var(--gcb-kit-line-w) * 3); }
[data-gcb-kit-caption]:where([data-gcb-kit-made] *) :where(a:not([data-gcb-own]):focus-visible) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit-count]:where([data-gcb-kit-made] *) { color: var(--gcb-kit-quiet); font-size: inherit; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* THE ARROWS the script made: round, at the sides, on a little of the veil's own colour so they show over a picture
   that reaches under them (a phone). One drawing for both, turned round for the one that goes back; its line is the
   close's line: twice the site's, never more than 7% of the button. */
[data-gcb-kit-made]:where([data-gcb-kit-lightbox] > button) {
	appearance: none; position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
	display: inline-grid; place-items: center; box-sizing: border-box;
	width: var(--gcb-gallery-arrow-size, var(--gcb-kit-control-h)); height: var(--gcb-gallery-arrow-size, var(--gcb-kit-control-h));
	min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
	border-radius: var(--gcb-gallery-arrow-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-gallery-arrow-fill, var(--gcb-gallery-scrim, var(--gcb-kit-scrim))); box-shadow: none; color: var(--gcb-gallery-ink, var(--gcb-kit-on-scrim)); font: inherit; line-height: 1; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-prev]:where([data-gcb-kit-lightbox] > [data-gcb-kit-made]) { inset-inline-start: var(--gcb-gallery-arrow-inset, var(--gcb-kit-gap)); }
[data-gcb-kit-next]:where([data-gcb-kit-lightbox] > [data-gcb-kit-made]) { inset-inline-end: var(--gcb-gallery-arrow-inset, var(--gcb-kit-gap)); }
[data-gcb-kit-made]:where([data-gcb-kit-lightbox] > button:hover:not([aria-disabled="true"])) { background: var(--gcb-kit-rule-strong); }
[data-gcb-kit-made]:where([data-gcb-kit-lightbox] > button:active:not([aria-disabled="true"])) { scale: var(--gcb-kit-press); }
[data-gcb-kit-made]:where([data-gcb-kit-lightbox] > button[aria-disabled="true"]) { opacity: var(--gcb-kit-disabled); cursor: not-allowed; }
:where([data-gcb-kit-lightbox] > [data-gcb-kit-made] > svg) {
	display: block; width: var(--gcb-gallery-arrow-mark, 1.25em); height: var(--gcb-gallery-arrow-mark, 1.25em);
	stroke-width: min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-gallery-arrow-size, var(--gcb-kit-control-h)) * 7 / 100));
}
:where([data-gcb-kit-lightbox] > [data-gcb-kit-made] > svg > *) { vector-effect: non-scaling-stroke; } /* mechanic: the line is that many px on the screen, whatever size the drawing is */
:where([data-gcb-kit-lightbox] > [data-gcb-kit-prev][data-gcb-kit-made] > svg) { rotate: 180deg; }
:where([data-gcb-kit-lightbox]:dir(rtl) > [data-gcb-kit-prev][data-gcb-kit-made] > svg) { rotate: none; }
:where([data-gcb-kit-lightbox]:dir(rtl) > [data-gcb-kit-next][data-gcb-kit-made] > svg) { rotate: 180deg; }
/* the keyboard's mark is the site's (its width, its offset), in the colour of the lightbox's words: the accent
   cannot be counted on to show on a veil */
[data-gcb-kit-made]:where([data-gcb-kit-lightbox] > button:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit-close]:where([data-gcb-kit-lightbox][data-gcb-kit-made] > :focus-visible) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

[data-gcb-kit-lightbox][data-single] :is([data-gcb-kit-prev], [data-gcb-kit-next], [data-gcb-kit-count]) { display: none; } /* mechanic: one picture has no next and no count */

/* ZOOM (data-open="zoom"): the script puts the large picture over the one on the page, its corners as that one's,
   and lets go; this carries it to its place, the corners going square on the way. The caption and count come up
   once it has landed. Shutting, the lightbox stays whole while the picture flies back (the dialog told its time out
   by its own token), its controls gone at once and the veil fading. The site's times are 0 for someone who asked for
   less motion, so then it is simply there and gone. */
:where([data-gcb-kit-lightbox][data-zoom]) { --gcb-dialog-dur-out: var(--gcb-gallery-zoom-dur-out, var(--gcb-kit-dur-expand)); cursor: zoom-out; }
[data-gcb-kit-large]:where([data-zoom] *) {
	cursor: zoom-out;
	transition: transform var(--gcb-gallery-zoom-dur, var(--gcb-kit-dur-panel)) var(--gcb-gallery-zoom-ease, var(--gcb-kit-ease-panel)), border-radius var(--gcb-gallery-zoom-dur, var(--gcb-kit-dur-panel)) var(--gcb-gallery-zoom-ease, var(--gcb-kit-ease-panel));
}
[data-gcb-kit-large]:where([data-zoom][data-shutting] *) { transition-duration: var(--gcb-gallery-zoom-dur-out, var(--gcb-kit-dur-expand)); }
[data-gcb-kit-words]:where([data-zoom] *) { transition: opacity var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand) var(--gcb-gallery-zoom-dur, var(--gcb-kit-dur-panel)); }
:where([data-gcb-kit-lightbox][data-zoom] :is(button, a)) { cursor: pointer; }
dialog[data-gcb-kit-lightbox][data-zoom][data-shutting] { opacity: 1; translate: none; } /* mechanic: only the picture flies back, so the box it flies in stays whole */
[data-gcb-kit-lightbox][data-zoom][data-shutting] :is(button, figcaption, [data-gcb-kit-caption], [data-gcb-kit-count]) { visibility: hidden; } /* mechanic: only the picture flies back */
@starting-style {
	dialog[data-gcb-kit-lightbox][data-zoom][open] { opacity: 1; translate: none; scale: 1; } /* mechanic: only the picture flies in, so the box it flies in is whole from the start */
	:where([data-gcb-kit-lightbox][data-zoom][open] [data-gcb-kit-words]) { opacity: 0; }
}

@media (scripting: none) {
	dialog[data-gcb-kit="dialog"][data-gcb-kit-lightbox] { display: none; } /* mechanic: a lightbox the design drew has nothing to show until a picture is pressed */
}

/* grid */
/* GRID: like things in equal columns (cards, logos, people). The root is the grid; every direct child is an item.
   No script: the columns are worked out by the browser from the room the grid has, not the screen's, so it is right
   in a narrow box on a wide screen as much as on a phone.
   Every value is a token: the part's own first, the list's after (tokens/README.md). It draws nothing: no colour, no
   line, no corner. What is in it brings its own look.
   WEIGHT (README rule 2): everything weighs nothing, so a class written on the grid or on an item wins. The exceptions
   are the elements a theme styles by their tag: a grid that is a list (ul, ol) and items that are li or figure. Those
   rules weigh one attribute and stand aside for an element marked data-gcb-own. */

/* THE GAP THE COLUMNS ARE WORKED OUT FROM, as a length. Registered so that a gap written as a bare 0 (which a calc
   cannot take) is read as 0px, and a gap that is not a length at all is 0px, never a grid fallen to one column. */
@property --gcb-grid-space { syntax: "<length-percentage>"; inherits: false; initial-value: 0px; } /* mechanic: a registered length, so a bare 0 is 0px */

/* THE COLUMNS. Each is at least --gcb-grid-min wide and they share the room equally. With a count (--gcb-grid-cols,
   set by data-cols) a column is also never narrower than the row divided by that count, so there are never more
   than that many; as the room runs out the least width wins and a column drops. A column is never wider than the
   grid divided by --gcb-grid-fewest (1: the grid), so one column on a phone does not run off the side, and with
   data-fewest="2" there are always two. */
:where([data-gcb-kit="grid"]) {
	--gcb-grid-space: var(--gcb-grid-gap, var(--gcb-kit-gap));
	display: grid;
	box-sizing: border-box;
	gap: var(--gcb-grid-row-gap, var(--gcb-grid-gap, var(--gcb-kit-gap))) var(--gcb-grid-gap, var(--gcb-kit-gap));
	grid-template-columns: repeat(auto-fill, minmax(min((100% - (var(--gcb-grid-fewest, 1) - 1) * var(--gcb-grid-space)) / var(--gcb-grid-fewest, 1), max(var(--gcb-grid-min, 16rem), (100% - (var(--gcb-grid-cols, 99) - 1) * var(--gcb-grid-space)) / var(--gcb-grid-cols, 99))), 1fr));
}
/* too few to fill a row: as written they keep their column's width; data-few="stretch" shares the row between them */
:where([data-gcb-kit="grid"][data-few="stretch"]) {
	grid-template-columns: repeat(auto-fit, minmax(min((100% - (var(--gcb-grid-fewest, 1) - 1) * var(--gcb-grid-space)) / var(--gcb-grid-fewest, 1), max(var(--gcb-grid-min, 16rem), (100% - (var(--gcb-grid-cols, 99) - 1) * var(--gcb-grid-space)) / var(--gcb-grid-cols, 99))), 1fr));
}
:where([data-gcb-kit="grid"][data-cols="1"]) { --gcb-grid-cols: 1; }
:where([data-gcb-kit="grid"][data-cols="2"]) { --gcb-grid-cols: 2; }
:where([data-gcb-kit="grid"][data-cols="3"]) { --gcb-grid-cols: 3; }
:where([data-gcb-kit="grid"][data-cols="4"]) { --gcb-grid-cols: 4; }
:where([data-gcb-kit="grid"][data-cols="5"]) { --gcb-grid-cols: 5; }
:where([data-gcb-kit="grid"][data-cols="6"]) { --gcb-grid-cols: 6; }
:where([data-gcb-kit="grid"][data-cols="7"]) { --gcb-grid-cols: 7; }
:where([data-gcb-kit="grid"][data-cols="8"]) { --gcb-grid-cols: 8; }
:where([data-gcb-kit="grid"][data-cols="9"]) { --gcb-grid-cols: 9; }
:where([data-gcb-kit="grid"][data-cols="10"]) { --gcb-grid-cols: 10; }
:where([data-gcb-kit="grid"][data-cols="11"]) { --gcb-grid-cols: 11; }
:where([data-gcb-kit="grid"][data-cols="12"]) { --gcb-grid-cols: 12; }
/* never fewer than this many across, however narrow: small things (logos, thumbnails) two or three on a phone */
:where([data-gcb-kit="grid"][data-fewest="2"]) { --gcb-grid-fewest: 2; }
:where([data-gcb-kit="grid"][data-fewest="3"]) { --gcb-grid-fewest: 3; }

/* THE GAP: the site's, across and down. data-gap="s" the site's smaller one, "l" twice it, "none" touching. */
:where([data-gcb-kit="grid"][data-gap="s"]) { --gcb-grid-gap: var(--gcb-kit-gap-s); }
:where([data-gcb-kit="grid"][data-gap="l"]) { --gcb-grid-gap: calc(var(--gcb-kit-gap) * 2); }
:where([data-gcb-kit="grid"][data-gap="none"]) { --gcb-grid-gap: 0px; }

/* A GRID THAT IS A LIST: a theme gives ul and ol bullets, a margin and room at the side */
[data-gcb-kit="grid"]:where(ul, ol):where(:not([data-gcb-own])) { margin: 0; padding: 0; list-style: none; }

/* AN ITEM is as wide as its column and no wider, whatever is in it; its pictures stay inside it and a word too long
   for it breaks. The space between items is the gap and nothing else: a theme's margin on li (or a figure's own side
   room) is taken off, with one attribute's weight. */
:where([data-gcb-kit="grid"] > *) { box-sizing: border-box; max-width: 100%; overflow-wrap: break-word; }
:where([data-gcb-kit="grid"] > *) { min-width: 0; } /* mechanic: lets a column be narrower than the longest word or widest picture in it */
:where([data-gcb-kit="grid"] > * :is(img, video)) { max-width: 100%; }
[data-gcb-kit="grid"] > :where(li, figure):where(:not([data-gcb-own])) { margin: 0; }

/* HEIGHTS: every item is as tall as its row (the grid's own way), and an item that is one wrapper round a card
   passes that height on. data-heights="natural": each keeps its own height, at the top of its row.
   data-align="center | end": each its own height, in the middle or at the foot of its row (logos). */
:where([data-gcb-kit="grid"]:not([data-heights="natural"], [data-align]) > * > :only-child:not(img, picture, video, svg, canvas, iframe)) { min-height: 100%; box-sizing: border-box; }
:where([data-gcb-kit="grid"][data-heights="natural"]) { align-items: start; }
:where([data-gcb-kit="grid"][data-align="center"]) { align-items: center; }
:where([data-gcb-kit="grid"][data-align="end"]) { align-items: end; }

/* AN ITEM THAT SPANS. data-span="full" is the whole row at any width. A number is that many columns where THE GRID is
   wide enough for that many, and the whole row below that, so a span never makes a column that is not there (the
   browser would add a sliver of one and put the next item in it). The grid measures itself only when it holds a
   numbered span. The widths are room for that many columns at the least width out of the box (16rem) with a gap of up
   to 3rem: span 2 at 35rem, 3 at 54rem, 4 at 73rem. Below the next column's room the span and the whole row are the
   same thing, so the margin costs nothing. A set count smaller than the span (data-cols) makes it the whole row. */
:where([data-gcb-kit="grid"] > [data-span]) { grid-column: 1 / -1; }
:where([data-gcb-kit="grid"]:has(> [data-span="2"], > [data-span="3"], > [data-span="4"])) { container-type: inline-size; } /* mechanic: the items ask the grid, not the screen, how wide it is */
@container (min-width: 35rem) { /* mechanic: room for two columns of 16rem and a gap of up to 3rem */
	:where([data-gcb-kit="grid"]:not([data-cols="1"]) > [data-span="2"]) { grid-column: span 2; }
}
@container (min-width: 54rem) { /* mechanic: room for three columns of 16rem and two gaps of up to 3rem */
	:where([data-gcb-kit="grid"]:not([data-cols="1"], [data-cols="2"]) > [data-span="3"]) { grid-column: span 3; }
}
@container (min-width: 73rem) { /* mechanic: room for four columns of 16rem and three gaps of up to 3rem */
	:where([data-gcb-kit="grid"]:not([data-cols="1"], [data-cols="2"], [data-cols="3"]) > [data-span="4"]) { grid-column: span 4; }
}

/* heading */
/* HEADING: two things.
   1. THE STEPS: a site's heading looks as classes on any tag: gcb-type--display | headline | title | eyebrow, and the
      lede, the line of text that goes with a heading. The tag says where the heading is in the page's outline; the
      step says how it looks.
   2. THE SECTION HEADING: [data-gcb-kit="heading"] holding, as direct children, [data-gcb-atom="eyebrow | heading |
      lede | cta"]. It sets what is hard to get right by hand: where the title's lines break (its measure), the gaps
      between the pieces, left or centred, and where a call to action sits.
   No script. The sizes, face, weight, line height and spacing are the site's reading type (--gcb-kit-text-display,
   -headline, -heading, -lead, --gcb-kit-font-heading ...); this part's own tokens change one step on its own. */

/* THE STEPS. Every theme styles h1 to h6 and p by tag, so each weighs one class (README rule 2) and stands aside for an
   element the design made its own. A site that has saved its own steps prints them heavier (three classes) and wins.
   A heading in a section heading that wears no step is a headline; its eyebrow is an eyebrow; its lede a lede.
   The steps set no margin: the space round a heading is the flow it sits in (the text part, the section heading). */
.gcb-type--display:where(:not([data-gcb-own])) {
	font-family: var(--gcb-kit-font-heading);
	font-size: var(--gcb-heading-display-size, var(--gcb-kit-text-display));
	font-weight: var(--gcb-heading-display-weight, var(--gcb-kit-weight-heading));
	line-height: var(--gcb-heading-display-leading, calc(var(--gcb-kit-leading-heading) - 0.05));
	letter-spacing: var(--gcb-heading-display-tracking, calc(var(--gcb-kit-tracking-heading) - 0.005em));
}
.gcb-type--headline:where(:not([data-gcb-own])),
[data-gcb-atom="heading"]:where([data-gcb-kit="heading"] > :not([data-gcb-own], [class*="gcb-type--"])) {
	font-family: var(--gcb-kit-font-heading);
	font-size: var(--gcb-heading-headline-size, var(--gcb-kit-text-headline));
	font-weight: var(--gcb-heading-headline-weight, var(--gcb-kit-weight-heading));
	line-height: var(--gcb-heading-headline-leading, var(--gcb-kit-leading-heading));
	letter-spacing: var(--gcb-heading-headline-tracking, var(--gcb-kit-tracking-heading));
}
.gcb-type--title:where(:not([data-gcb-own])) {
	font-family: var(--gcb-kit-font-heading);
	font-size: var(--gcb-heading-title-size, var(--gcb-kit-text-heading));
	font-weight: var(--gcb-heading-title-weight, var(--gcb-kit-weight-heading));
	line-height: var(--gcb-heading-title-leading, calc(var(--gcb-kit-leading-heading) + 0.1));
	letter-spacing: var(--gcb-heading-title-tracking, calc(var(--gcb-kit-tracking-heading) + 0.01em));
}
/* the eyebrow is a label: small capitals, spaced, quieter than the words (made of their colour, so on any background).
   One look wherever it is, on its own or in a section heading. */
.gcb-type--eyebrow:where(:not([data-gcb-own])),
[data-gcb-atom="eyebrow"]:where([data-gcb-kit="heading"] > :not([data-gcb-own], [class*="gcb-type--"])) {
	font-size: var(--gcb-heading-eyebrow-size, var(--gcb-kit-text-meta));
	font-weight: var(--gcb-heading-eyebrow-weight, var(--gcb-kit-weight-control));
	line-height: var(--gcb-heading-eyebrow-leading, var(--gcb-kit-leading));
	letter-spacing: var(--gcb-heading-eyebrow-tracking, 0.08em);
	text-transform: var(--gcb-heading-eyebrow-case, uppercase);
	color: var(--gcb-heading-eyebrow-color, var(--gcb-kit-quiet));
}
/* the lede: a sentence or two that goes with a heading, larger than body words and quieter than the title */
.gcb-type--lede:where(:not([data-gcb-own])),
[data-gcb-atom="lede"]:where([data-gcb-kit="heading"] > :not([data-gcb-own], [class*="gcb-type--"])) {
	font-size: var(--gcb-heading-lede-size, var(--gcb-kit-text-lead));
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-heading-lede-leading, 1.5);
	letter-spacing: var(--gcb-kit-tracking);
	color: var(--gcb-kit-quiet);
	text-wrap: pretty;
}

/* THE SECTION HEADING: a stack, at the start. Weighs nothing, so a design's own flex or grid classes on it win. */
:where([data-gcb-kit="heading"]) {
	display: flex; flex-direction: column; align-items: flex-start; text-align: start;
	margin-block-end: var(--gcb-heading-after, 0px);
}
:where([data-gcb-kit="heading"][data-align="center"]) { align-items: center; text-align: center; }
:where([data-gcb-kit="heading"][data-align="end"]) { align-items: flex-end; text-align: end; }

/* ITS PIECES. A theme gives h2 and p margins by tag, and the gaps here are the part's, so each piece weighs one
   attribute (README rule 2), and stands aside for a piece the design made its own. Every gap is a margin on a piece of
   words (never on the call to action, which is often a site button with a margin of its own that weighs the same:
   whichever stylesheet came last would win). */
[data-gcb-atom]:where([data-gcb-kit="heading"] > :not([data-gcb-own])) { margin: 0; box-sizing: border-box; }
[data-gcb-atom]:where([data-gcb-kit="heading"] > :not([data-gcb-own])) { min-width: 0; max-width: 100%; overflow-wrap: break-word; } /* mechanic: a long word breaks rather than pushing the page sideways on a phone */
[data-gcb-atom="heading"]:where([data-gcb-kit="heading"] > :not([data-gcb-own])) {
	max-width: min(100%, var(--gcb-heading-measure, 24ch));
	text-wrap: balance;
}
[data-gcb-atom="lede"]:where([data-gcb-kit="heading"] > :not([data-gcb-own])) {
	max-width: min(100%, var(--gcb-heading-lede, 60ch));
	margin-block-start: var(--gcb-heading-gap-l, 16px);
}
[data-gcb-atom]:where([data-gcb-kit="heading"] > [data-gcb-atom="eyebrow"] + :not([data-gcb-own], [data-gcb-atom="cta"])) { margin-block-start: var(--gcb-heading-gap-e, var(--gcb-kit-gap)); }
/* the room above the call to action is the bottom margin of the piece of words before it;
   a piece the design made its own keeps its own margins, so then the room is the design's */
[data-gcb-atom]:where([data-gcb-kit="heading"] > :not([data-gcb-own], [data-gcb-atom="cta"]):has(+ [data-gcb-atom="cta"])) { margin-block-end: var(--gcb-heading-cta-gap, 24px); }

/* ON A DESK: data-cta="end" sits the call to action beside the words, on their last line; data-layout="split" puts
   the eyebrow and title in one column and the line of text and the call to action in the other. On a phone both are
   the stack above. Both are layouts that start at the start: with data-align="center" or "end" the alignment wins and
   the section heading stays the stack, centred or at the end, at every width. */
@media (min-width: 1024px) {
	:where([data-gcb-kit="heading"][data-cta="end"]:not([data-align="center"], [data-align="end"])) {
		display: grid; grid-template-columns: minmax(0, 1fr) auto; justify-items: start;
		column-gap: var(--gcb-heading-cta-gap-x, 32px);
	}
	:where([data-gcb-kit="heading"][data-cta="end"]:not([data-align="center"], [data-align="end"]) > *) { grid-column: 1; }
	[data-gcb-atom="cta"]:where([data-gcb-kit="heading"][data-cta="end"]:not([data-align="center"], [data-align="end"]) > *) {
		grid-column: 2; grid-row: 1 / span 3;
		align-self: var(--gcb-heading-cta-align, end);
	}
	[data-gcb-atom]:where([data-gcb-kit="heading"][data-cta="end"]:not([data-align="center"], [data-align="end"]) > :not([data-gcb-own], [data-gcb-atom="cta"])) { margin-block-end: 0; }
	[data-gcb-atom="cta"]:where([data-gcb-kit="heading"][data-cta="end"]:not([data-align="center"], [data-align="end"]) > :not([data-gcb-own])) { margin-block-start: 0; }

	:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"])) {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; justify-items: start;
		grid-template-rows: auto auto auto 1fr; /* mechanic: the title spans down to the last row, which takes up its extra height, so the action sits right under the text */
		column-gap: var(--gcb-heading-split-gap, 32px);
	}
	:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"]) > [data-gcb-atom="eyebrow"]) { grid-column: 1; grid-row: 1; }
	:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"]) > [data-gcb-atom="heading"]) { grid-column: 1; grid-row: 2 / span 3; }
	:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"]) > [data-gcb-atom="lede"]) { grid-column: 2; grid-row: 2; }
	:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"]) > [data-gcb-atom="cta"]) { grid-column: 2; grid-row: 3; }
	[data-gcb-atom="lede"]:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"]) > :not([data-gcb-own])),
	[data-gcb-atom="heading"]:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"]) > :not([data-gcb-own])) { margin-block-start: 0; }
	[data-gcb-atom="heading"]:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"]) > :not([data-gcb-own])) { margin-block-end: 0; }
	[data-gcb-atom="eyebrow"]:where([data-gcb-kit="heading"][data-layout="split"]:not([data-align="center"], [data-align="end"]) > :not([data-gcb-own])) { margin-block-end: var(--gcb-heading-gap-e, var(--gcb-kit-gap)); } /* mechanic: the gap moves under the eyebrow, so the title and the text beside it start level */
}

/* hover-card */
/* HOVER CARD: a preview beside a link. The root is the link itself (data-gcb-kit="hover-card"); the card is the element
   right after it ([data-gcb-kit-hover-card-content]), or one anywhere the link names (data-gcb-kit-hover-card="#id").
   Every value is a token: the part's own first, the list's after (tokens/README.md). The card's own look weighs nothing
   (:where), so a class the design writes on it wins. What is in the card is styled by themes BY ITS TAG (a heading, a
   link, a picture), so those rules weigh one attribute (the card's) and stand aside for anything marked data-gcb-own;
   a card marked data-gcb-own is the design's, whole.
   With no script the link is a link, and the card shows under it on hover and keyboard focus as something to read (in a
   browser that can place one box against another). Its script puts the card in a box in the top layer
   ([data-gcb-kit-hover-card-positioner], a popover no section can clip), places it, lets the pointer and the keyboard
   into it, adds the tap, and sets data-gcb-kit-ready. */

/* THE LINK */
/* focused: the site's outline in the colour of the link's words, so it shows on a section's own colour too */
[data-gcb-kit="hover-card"]:where(:focus-visible:not([data-gcb-own])) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* THE CARD: its own ground and words, so it sits over any section's colour with nothing set */
:where([data-gcb-kit-hover-card-content]:not([data-gcb-own])) {
	display: block; box-sizing: border-box; margin: 0; overflow: hidden;
	width: var(--gcb-hover-card-w, 320px);
	max-width: calc(100vw - 2 * var(--gcb-kit-pad-control)); /* mechanic: never wider than the screen */
	padding: var(--gcb-hover-card-pad, var(--gcb-kit-pad-control));
	border: var(--gcb-hover-card-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	border-radius: var(--gcb-hover-card-radius, var(--gcb-kit-radius-card));
	background: var(--gcb-hover-card-bg, var(--gcb-kit-surface));
	color: var(--gcb-hover-card-ink, var(--gcb-kit-ink));
	box-shadow: var(--gcb-hover-card-shadow, var(--gcb-kit-shadow-panel));
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-body); font-style: normal;
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-align: start; white-space: normal; overflow-wrap: break-word;
}

/* WHAT IS IN IT. A picture that comes first runs to the card's edges, in one shape */
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) > :where(img, picture, figure):where(:first-child:not([data-gcb-own])) {
	display: block; max-width: none; height: auto; border: 0; border-radius: 0; object-fit: cover;
	width: calc(100% + 2 * var(--gcb-hover-card-pad, var(--gcb-kit-pad-control)));
	margin: calc(-1 * var(--gcb-hover-card-pad, var(--gcb-kit-pad-control))) calc(-1 * var(--gcb-hover-card-pad, var(--gcb-kit-pad-control))) var(--gcb-hover-card-media-gap, var(--gcb-kit-gap));
	aspect-ratio: var(--gcb-hover-card-media-ratio, 16 / 10);
}
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) > :where(picture, figure):where(:first-child:not([data-gcb-own])) > :where(img, picture > img) { display: block; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; object-fit: cover; }
/* its name: a heading or a strong that is a child of the card (a strong inside a line stays a strong), in the body's
   size at the title's weight */
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) > :where(h2, h3, h4, h5, strong):where(:not([data-gcb-own])) {
	display: block; margin: 0 0 var(--gcb-hover-card-title-gap, calc(var(--gcb-kit-gap-s) / 4)); padding: 0; color: inherit;
	font-family: inherit; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-title); line-height: var(--gcb-kit-leading);
	letter-spacing: inherit; text-transform: inherit;
}
/* its quieter lines, and a short list among them */
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) :where(p):where(:not([data-gcb-own])) { margin: 0 0 var(--gcb-hover-card-line-gap, var(--gcb-kit-gap-s)); color: var(--gcb-kit-quiet); font-size: inherit; line-height: inherit; }
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) :where(ul, ol):where(:not([data-gcb-own])) {
	margin: 0 0 var(--gcb-hover-card-line-gap, var(--gcb-kit-gap-s)); padding: 0 0 0 var(--gcb-hover-card-indent, 1.25em); color: var(--gcb-kit-quiet); font-size: inherit; line-height: inherit;
}
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) :where(li):where(:not([data-gcb-own])) { margin: 0; padding: 0; }
/* a strong inside a line is the card's words at the title's weight */
:where([data-gcb-kit-hover-card-content]:not([data-gcb-own]) :is(p, li) strong) { color: var(--gcb-hover-card-ink, var(--gcb-kit-ink)); font-weight: var(--gcb-kit-weight-title); }
/* its link: the card's words, firmer, underlined */
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) :where(a):where(:not([data-gcb-own], .gcb-btn)) { color: inherit; font-weight: var(--gcb-kit-weight-control); text-decoration: underline; text-decoration-thickness: var(--gcb-kit-line-w); text-underline-offset: calc(var(--gcb-kit-line-w) * 3); }
/* a button in it (one that is not the site's own, .gcb-btn): a quiet control in the card's words, an edge of the rule */
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) :where(button):where(:not([data-gcb-own], .gcb-btn)) {
	appearance: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: var(--gcb-kit-gap-s);
	min-height: var(--gcb-kit-control-h); margin: 0; padding: 0 var(--gcb-kit-pad-control);
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong); border-radius: var(--gcb-kit-radius-field); box-shadow: none; text-shadow: none;
	background: transparent; color: inherit; font: inherit; font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback) var(--gcb-kit-ease-expand);
}
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) :where(button):where(:not([data-gcb-own], .gcb-btn)):hover { background: var(--gcb-kit-wash); color: inherit; }
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) :where(a, button):where(:focus-visible:not([data-gcb-own])) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
/* the room is the card's: what comes last brings none under it, by tag too (weighing what the rules above weigh, and
   after them), so a theme's own margins and the line gap never pile up at the card's foot */
:where([data-gcb-kit-hover-card-content]:not([data-gcb-own]) > :last-child) { margin-bottom: 0; }
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) > :where(p, ul, ol, dl, h2, h3, h4, h5, h6, strong, figure, blockquote, button, a):where(:last-child:not([data-gcb-own])) { margin-bottom: 0; }
[data-gcb-kit-hover-card-content]:where(:not([data-gcb-own])) > :where(p, ul, ol, dl, h2, h3, h4, h5, h6, strong, blockquote):where(:first-child:not([data-gcb-own])) { margin-top: 0; }

/* SHUT, AND WITH NO SCRIPT */
[data-gcb-kit-hover-card-content]:not([data-gcb-kit-hover-card-positioner] *) { display: none; } /* mechanic: the card waits until its link is pointed at */
@supports (anchor-name: --gcb-hover-card) {
	[data-gcb-kit="hover-card"]:not([data-gcb-kit-ready]):is(:hover, :focus-visible) { anchor-name: --gcb-hover-card; } /* mechanic: the link being pointed at is what the card is placed against */
	[data-gcb-kit="hover-card"]:not([data-gcb-kit-ready]):is(:hover, :focus-visible) + [data-gcb-kit-hover-card-content] { display: block; position: fixed; position-anchor: --gcb-hover-card; position-area: bottom; position-try-fallbacks: flip-block; margin: var(--gcb-hover-card-gutter, var(--gcb-kit-gap-s)) var(--gcb-kit-pad-control); pointer-events: none; } /* mechanic: shown under the link, over the page, to read, with no script, kept off the screen's edges */
}
@supports not (anchor-name: --gcb-hover-card) {
	[data-gcb-kit="hover-card"]:not([data-gcb-kit-ready]):is(:hover, :focus-visible) + [data-gcb-kit-hover-card-content] { display: block; position: absolute; z-index: 1; margin-top: var(--gcb-hover-card-gutter, var(--gcb-kit-gap-s)); pointer-events: none; } /* mechanic: a browser that cannot place one box against another: shown where it was drawn, under the link's line, over what follows, to read */
}

/* WITH ITS SCRIPT: the box the card sits in. It is placed by the script (left, top) and carries the gutter on the side
   that faces the link, so the pointer can cross from one to the other without the card shutting. */
[data-gcb-kit-hover-card-positioner] { position: fixed; inset: auto; margin: 0; overflow: visible; width: max-content; } /* mechanic: a box in the top layer, placed by the script */
:where([data-gcb-kit-hover-card-positioner]:not([data-gcb-own])) { padding: 0; border: 0; background: transparent; color: inherit; }
:where([data-gcb-kit-hover-card-positioner][data-side="top"]) { padding-bottom: var(--gcb-hover-card-gutter, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit-hover-card-positioner][data-side="bottom"]) { padding-top: var(--gcb-hover-card-gutter, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit-hover-card-positioner][data-side="left"]) { padding-right: var(--gcb-hover-card-gutter, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit-hover-card-positioner][data-side="right"]) { padding-left: var(--gcb-hover-card-gutter, var(--gcb-kit-gap-s)); }

/* it grows a little and fades in from the side its link is on (no time at all for someone who asked for less) */
:where([data-gcb-kit-hover-card-positioner] > [data-gcb-kit-hover-card-content]) {
	opacity: 1; scale: 1; transform-origin: top;
	transition: opacity var(--gcb-hover-card-dur, var(--gcb-kit-dur-menu)) var(--gcb-kit-ease-expand), scale var(--gcb-hover-card-dur, var(--gcb-kit-dur-menu)) var(--gcb-kit-ease-expand);
}
:where([data-gcb-kit-hover-card-positioner][data-side="top"] > [data-gcb-kit-hover-card-content]) { transform-origin: bottom; }
:where([data-gcb-kit-hover-card-positioner][data-side="left"] > [data-gcb-kit-hover-card-content]) { transform-origin: right; }
:where([data-gcb-kit-hover-card-positioner][data-side="right"] > [data-gcb-kit-hover-card-content]) { transform-origin: left; }
@starting-style {
	:where([data-gcb-kit-hover-card-positioner] > [data-gcb-kit-hover-card-content]) { opacity: var(--gcb-hover-card-from-opacity, 0); scale: var(--gcb-hover-card-from-scale, 0.97); }
}
@media (prefers-reduced-motion: reduce) {
	:where([data-gcb-kit-hover-card-positioner] > [data-gcb-kit-hover-card-content]) { transition: none; } /* mechanic: no entrance at all for someone who asked for less motion, whatever --gcb-hover-card-dur says */
}

/* input-group */
/* INPUT GROUP: a field with something joined to it, as one shape. A recipe: it goes INSIDE a field
   ([data-gcb-kit="field"]), round its box, so the box ([data-gcb-kit-control]) keeps the field's look, sizes and
   states, a choice in it is the site's select ([data-gcb-kit="select"]) and a button in it is the site's (.gcb-btn).
   What this part adds is the joining: one row, one height, the inner corners square, one line between two members,
   and the joined unit ([data-gcb-kit-addon]), which is its own.
   A box, a select and a button are elements a theme styles BY THEIR TAG, so on those a rule here weighs ONE attribute
   and no more (README rule 2), comes after the field's, the select's and the button's own, and stands aside for one
   marked data-gcb-own. Everything else, the unit included, weighs nothing, so a class written on it wins.
   The ends of the row are its first and last MEMBERS: a hidden input, a help or an error in the row is not one.
   The unit's words are the colour of the words round it, and its border and fill are made of that colour, so it sits
   on any background with nothing set. No script. */
:where([data-gcb-kit="input-group"]) { display: flex; align-items: stretch; box-sizing: border-box; width: 100%; min-width: 0; }

/* THE BOX takes the room the others leave */
[data-gcb-kit="input-group"] > :where(:is(input, select, textarea):not([data-gcb-own], [type="hidden"])) {
	flex: 1 1 0; width: auto;
	min-width: 0; /* mechanic: a box shrinks on a phone instead of pushing its button off the row */
}
/* THE SITE'S SELECT joined on: its field (the real select, or the one its script draws) fills the member's height */
:where([data-gcb-kit="input-group"] > [data-gcb-kit="select"]:not([data-gcb-own])) { display: flex; flex: 1 1 0; min-width: 0; }
[data-gcb-kit="input-group"] > :where([data-gcb-kit="select"]:not([data-gcb-own])) > :where(select, [data-gcb-kit-select-trigger]):where(:not([data-gcb-own])) { flex: 1 1 auto; height: auto; min-width: 0; }
/* a choice joined to a box to type in (+44 and a number) is as wide as its words */
[data-gcb-kit="input-group"]:where(:has(> :is(input:not([type="hidden"]), textarea))) > :where(:is(select, [data-gcb-kit="select"]):not([data-gcb-own])) { flex: 0 1 auto; }
/* in a small or a large field the select's words follow the box */
:where([data-gcb-kit="field"][data-size="sm"] [data-gcb-kit="input-group"] > [data-gcb-kit="select"]) { font-size: var(--gcb-kit-text-meta); }
:where([data-gcb-kit="field"][data-size="lg"] [data-gcb-kit="input-group"] > [data-gcb-kit="select"]) { font-size: var(--gcb-kit-text-section); }

/* THE UNIT OR SYMBOL joined on: £, .com, @, a small drawing. In the colour of the words, on a faint fill, with the
   field's line */
:where([data-gcb-kit="input-group"] > [data-gcb-kit-addon]) {
	display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; margin: 0;
	padding: 0 var(--gcb-input-group-pad, var(--gcb-kit-pad-control));
	border: var(--gcb-kit-line-w) solid var(--gcb-input-group-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-input-group-radius, var(--gcb-kit-radius-field));
	background: var(--gcb-input-group-addon, var(--gcb-kit-wash));
	color: inherit; /* mechanic: its line and fill are made of the colour of ITS words, so a quieter colour here would thin them both */
	font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
	white-space: nowrap;
}
:where([data-gcb-kit="input-group"] > [data-gcb-kit-addon] svg) { flex: none; width: var(--gcb-input-group-icon, 1.25em); height: var(--gcb-input-group-icon, 1.25em); }
/* in a small or a large field the unit follows the box */
:where([data-gcb-kit="field"][data-size="sm"] [data-gcb-kit="input-group"] > [data-gcb-kit-addon]) { padding-inline: calc(var(--gcb-input-group-pad, var(--gcb-kit-pad-control)) * 0.75); font-size: var(--gcb-kit-text-meta); }
:where([data-gcb-kit="field"][data-size="lg"] [data-gcb-kit="input-group"] > [data-gcb-kit-addon]) { padding-inline: calc(var(--gcb-input-group-pad, var(--gcb-kit-pad-control)) * 1.25); font-size: var(--gcb-kit-text-section); }

/* THE BUTTON is the site's, in any of its styles. Joined, it is as tall as the box whatever its own size, and never
   squeezed. An icon-only one gives up its own height to the row's and stays a square of the field's size. */
[data-gcb-kit="input-group"] > :where(.gcb-btn:not([data-gcb-own])) { flex: none; padding-block: 0; }
[data-gcb-kit="input-group"] > :where(.gcb-btn--icon:not([data-gcb-own])) { height: auto; width: var(--gcb-input-group-square, var(--gcb-kit-control-h)); }
[data-gcb-kit="input-group"]:where([data-gcb-kit="field"][data-size="sm"] *) > :where(.gcb-btn--icon:not([data-gcb-own])) { width: calc(var(--gcb-input-group-square, var(--gcb-kit-control-h)) * 0.8); }
[data-gcb-kit="input-group"]:where([data-gcb-kit="field"][data-size="lg"] *) > :where(.gcb-btn--icon:not([data-gcb-own])) { width: calc(var(--gcb-input-group-square, var(--gcb-kit-control-h)) * 1.2); }

/* A HELP OR AN ERROR IN THE ROW (the field's script puts an error it has to make straight after the box, which may be
   in here): it goes under the row, on a line of its own, and is not a member. */
:where([data-gcb-kit="input-group"]:has(> :is([data-gcb-kit-error-text], [data-gcb-kit-hint]))) { flex-wrap: wrap; }
:where([data-gcb-kit="input-group"] > :is([data-gcb-kit-error-text], [data-gcb-kit-hint])) {
	flex: 0 0 100%; margin-block-start: calc(var(--gcb-kit-gap-s) * 0.75);
	order: 1; /* mechanic: under every member, wherever it was put in the row */
}

/* THE JOINING. Inner corners square, on every member but the first and the last. */
[data-gcb-kit="input-group"] > :where(:is(input, select, textarea, button, a):not(:nth-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])), [data-gcb-own])),
[data-gcb-kit="input-group"] > :where([data-gcb-kit="select"]:not(:nth-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])), [data-gcb-own])) > :where(select, [data-gcb-kit-select-trigger]):where(:not([data-gcb-own])) { border-start-start-radius: 0; border-end-start-radius: 0; }
[data-gcb-kit="input-group"] > :where(:is(input, select, textarea, button, a):not(:nth-last-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])), [data-gcb-own])),
[data-gcb-kit="input-group"] > :where([data-gcb-kit="select"]:not(:nth-last-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])), [data-gcb-own])) > :where(select, [data-gcb-kit-select-trigger]):where(:not([data-gcb-own])) { border-start-end-radius: 0; border-end-end-radius: 0; }
/* the unit and anything else that is not a tag a theme styles: the same, weighing nothing */
:where([data-gcb-kit="input-group"] > :not(input, select, textarea, button, a, [data-gcb-kit="select"], [data-gcb-own]):not(:nth-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])))) { border-start-start-radius: 0; border-end-start-radius: 0; }
:where([data-gcb-kit="input-group"] > :not(input, select, textarea, button, a, [data-gcb-kit="select"], [data-gcb-own]):not(:nth-last-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])))) { border-start-end-radius: 0; border-end-end-radius: 0; }
/* One line between two, never two. A unit gives up the edge that faces what is before it, and the edge that faces a
   box after it: the box's own line is the one seen, whole, so its focus, hover and error lines are whole too. */
:where([data-gcb-kit="input-group"] > [data-gcb-kit-addon]:not(:nth-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])))) { border-inline-start-width: 0; }
:where([data-gcb-kit="input-group"] > [data-gcb-kit-addon]:has(+ :is(input:not([type="hidden"]), select, textarea, [data-gcb-kit="select"]))) { border-inline-end-width: 0; }
/* A box, a select or a button that follows a box or a button sits over its neighbour's edge by one line. */
[data-gcb-kit="input-group"] > :where(:is(input, select, textarea, button, a):not(:nth-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])), [type="hidden"], [data-gcb-kit-addon] + :is(input, select, textarea), [data-gcb-own])),
:where([data-gcb-kit="input-group"] > [data-gcb-kit="select"]:not(:nth-child(1 of :not([type="hidden"], [hidden], [data-gcb-kit-error-text], [data-gcb-kit-hint])), [data-gcb-kit-addon] + *, [data-gcb-own])) { margin-inline-start: calc(var(--gcb-kit-line-w) * -1); }
/* Two boxes side by side: the second gives up the colour of the shared edge while it is at rest, so two lines made of
   the words' colour do not add up to a darker one. An error the script put between them does not part them. */
[data-gcb-kit="input-group"] > :where(:is(input, select, textarea, [data-gcb-kit="select"]) + :is(input, select, textarea):not([data-gcb-own], [type="hidden"], :hover, :focus, [aria-invalid="true"])),
[data-gcb-kit="input-group"] > :where(:is(input, select, textarea) + [data-gcb-kit-error-text] + :is(input, select, textarea):not([data-gcb-own], [type="hidden"], :hover, :focus, [aria-invalid="true"])),
[data-gcb-kit="input-group"] > :where(:is(input, select, textarea) + [data-gcb-kit="select"]:not([data-gcb-own], :hover, :focus-within)) > :where(select, [data-gcb-kit-select-trigger]):where(:not([data-gcb-own], [aria-invalid="true"], [aria-expanded="true"])) { border-inline-start-color: transparent; }
:where([data-gcb-kit="input-group"] > :is(:hover, [aria-invalid="true"], :has(> [aria-invalid="true"]))) { position: relative; z-index: 1; } /* mechanic: its whole border shows over its neighbours' */
:where([data-gcb-kit="input-group"] > :is(:focus, :focus-visible, :focus-within)) { position: relative; z-index: 2; } /* mechanic: the focused one's line and ring show over the rest */

/* list */
/* LIST: a list in content. The root is the list itself: a ul, an ol or a dl. No script: it is a list.
   Every value is a token: the part's own first, the site's after (tokens/README.md). It sets no colour but its marks',
   which are the colour of the words unless a tone or --gcb-list-mark-color says otherwise, so it sits on any background.
   The size and the line height of its words are the page's: it does not set them.
   WEIGHT (README rule 2): the list and its rows are elements a theme styles by their tag (ul, ol, li, dl, dt, dd), so
   each of their rules weighs ONE attribute and stands aside for [data-gcb-own]. Everything else weighs nothing. */
[data-gcb-kit="list"]:where(:not([data-gcb-own])) {
	display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; margin: 0; padding: 0; list-style: none;
	gap: var(--gcb-list-gap, var(--gcb-kit-gap-s));
	font-family: var(--gcb-kit-font);
}
/* A ROW: an li, a dt or a dd straight inside. Nothing of a theme's left on it. */
:where([data-gcb-kit="list"]) > :not([data-gcb-own]) { box-sizing: border-box; min-width: 0; margin: 0; padding: 0; }

/* TIGHT OR ROOMY: data-density on the list. Left out it is the site's smaller space. */
:where([data-gcb-kit="list"][data-density="tight"]) { --gcb-list-gap: calc(var(--gcb-kit-gap-s) / 4); }
:where([data-gcb-kit="list"][data-density="roomy"]) { --gcb-list-gap: calc(var(--gcb-kit-gap-s) * 2); }

/* THE MARKS' COLOUR: data-tone on the list. Left out they are the colour of the words. */
:where([data-gcb-kit="list"][data-tone="accent"]) { --gcb-list-mark-color: var(--gcb-kit-accent); }
:where([data-gcb-kit="list"][data-tone="success"]) { --gcb-list-mark-color: var(--gcb-kit-success); }
:where([data-gcb-kit="list"][data-tone="quiet"]) { --gcb-list-mark-color: var(--gcb-kit-quiet); }
/* A list with no tone of its own inside a toned one: the tone was the outer list's, so its marks go back to the words'
   colour (the token inherits, so it would otherwise carry on down). */
:where([data-gcb-kit="list"][data-tone] [data-gcb-kit="list"]:not([data-tone])) { --gcb-list-mark-color: currentColor; }

/* BULLETS (a ul as written, or data-marks="bullet") and NUMBERS (an ol as written, or data-marks="number"): the
   browser's own marks, so start, reversed and value on an ol all still work. Said out loud because a reset theme
   takes them away. */
[data-gcb-kit="list"]:where(ul:not([data-marks]), [data-marks="bullet"]):where(:not([data-gcb-own])) { padding-inline-start: var(--gcb-list-indent, 1.5em); list-style: disc outside; }
[data-gcb-kit="list"]:where(ol:not([data-marks]), [data-marks="number"]):where(:not([data-gcb-own])) { padding-inline-start: var(--gcb-list-indent, 1.5em); list-style: decimal outside; }
/* LETTERS AND ROMAN NUMBERS: type="a | A | i | I" on the ol. The kind of number is the type attribute's, which is
   case-sensitive and which a selector here cannot read that way (a and A match alike), so the part hands the kind
   back to the attribute, over a theme's own ol rule or reset too. */
[data-gcb-kit="list"]:where(ol[type]:is(:not([data-marks]), [data-marks="number"])):where(:not([data-gcb-own])) { list-style-type: revert-layer; } /* mechanic: back past every author rule to the type attribute's own kind */
/* A LONG LIST: from the hundredth row the numbers are four characters, so the words are set in further. Numbers that
   START past 99 (start="120") cannot be seen from here: set --gcb-list-indent on that list. */
[data-gcb-kit="list"]:where(ol:has(> li:nth-child(100)):is(:not([data-marks]), [data-marks="number"])):where(:not([data-gcb-own])) { padding-inline-start: var(--gcb-list-indent, 2.25em); }
[data-gcb-kit="list"]:where(li > ul:not([data-marks]), li > [data-marks="bullet"]):where(:not([data-gcb-own])) { list-style-type: circle; }
:where([data-gcb-kit="list"]) > :not([data-gcb-own])::marker { color: var(--gcb-list-mark-color, currentColor); font-variant-numeric: tabular-nums; }

/* TICKS AND ICONS: data-marks="tick" draws the site's tick before each row; data-marks="icon" draws nothing, each
   row brings its own [data-gcb-kit-icon]. A row in a tick list that holds an icon shows that instead of the tick.
   The words stay plain text in the row (links and bold inside them work); the mark hangs in the room to their side,
   centred on the first line. */
:where([data-gcb-kit="list"]:is([data-marks="tick"], [data-marks="icon"])) > :not([data-gcb-own]) {
	position: relative;
	padding-inline-start: calc(var(--gcb-list-mark, 1.25em) + var(--gcb-list-mark-gap, var(--gcb-kit-gap-s)));
}
:where([data-gcb-kit="list"][data-marks="tick"] > :not([data-gcb-own], :has(> [data-gcb-kit-icon])))::before {
	content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
	width: var(--gcb-list-mark, 1.25em); height: 1lh;
	background: var(--gcb-list-mark-color, currentColor);
	-webkit-mask: var(--gcb-kit-tick) center / var(--gcb-list-mark, 1.25em) var(--gcb-list-mark, 1.25em) no-repeat;
	mask: var(--gcb-kit-tick) center / var(--gcb-list-mark, 1.25em) var(--gcb-list-mark, 1.25em) no-repeat;
}
:where([data-gcb-kit="list"]:is([data-marks="tick"], [data-marks="icon"]) > * > [data-gcb-kit-icon]) {
	position: absolute; inset-block-start: 0; inset-inline-start: 0;
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--gcb-list-mark, 1.25em); height: 1lh;
	color: var(--gcb-list-mark-color, currentColor);
}
[data-gcb-kit-icon]:where([data-gcb-kit="list"] > * > *) > :where(svg, img):where(:not([data-gcb-own])) { display: block; width: var(--gcb-list-mark, 1.25em); height: var(--gcb-list-mark, 1.25em); object-fit: contain; max-width: none; }

/* SIDE BY SIDE: data-flow="inline" on a ul or ol. The rows run along a line and wrap; bullets and numbers go, ticks
   and icons stay. */
[data-gcb-kit="list"]:where([data-flow="inline"]:not(dl):not([data-gcb-own])) {
	flex-flow: row wrap;
	gap: var(--gcb-list-gap, var(--gcb-kit-gap-s)) var(--gcb-list-flow-gap, calc(var(--gcb-kit-gap) * 2));
}
[data-gcb-kit="list"]:where([data-flow="inline"]:not(dl):not([data-marks="tick"], [data-marks="icon"]):not([data-gcb-own])) { padding-inline-start: 0; list-style: none; }

/* A LIST INSIDE A ROW keeps the rows' space above it; a list that follows something in a text part keeps the text's,
   and the text's closer space after a heading */
[data-gcb-kit="list"]:where(li > :not([data-gcb-own])) { margin-block-start: var(--gcb-list-gap, var(--gcb-kit-gap-s)); }
[data-gcb-kit="list"]:where([data-gcb-kit="text"] > * + :not([data-gcb-own])) { margin-block-start: var(--gcb-list-flow, 1em); }
[data-gcb-kit="list"]:where([data-gcb-kit="text"] > :is(h1, h2, h3, h4, h5, h6) + :not([data-gcb-own])) { margin-block-start: calc(var(--gcb-list-flow, 1em) * 0.6); } /* mechanic: straight after a heading, the text's own closer space, so the list belongs to its heading as a paragraph does */

/* TERM AND MEANING: a dl. As written each term sits over its meaning. */
[data-gcb-kit="list"]:where(dl:not([data-gcb-own])) { display: block; }
:where([data-gcb-kit="list"]) > :not([data-gcb-own]):where(dt) { font-weight: var(--gcb-kit-weight-control); }
:where([data-gcb-kit="list"]:not([data-flow="row"])) > :not([data-gcb-own]):where(dd + dt) { margin-block-start: var(--gcb-list-gap, var(--gcb-kit-gap)); }
/* data-flow="row" on a dl: the term in a column of its own, the meaning beside it. Where there is no longer room for
   both (the term's column, the space and --gcb-list-meaning-min), every term goes back over its meaning: the list
   measures its own width, not the screen's, so it is right in a narrow column on a wide screen too. */
[data-gcb-kit="list"]:where(dl[data-flow="row"]:not([data-gcb-own])) {
	display: flex; flex-flow: row wrap; align-items: baseline;
	gap: var(--gcb-list-gap, var(--gcb-kit-gap)) var(--gcb-kit-gap);
}
:where([data-gcb-kit="list"][data-flow="row"]) > :not([data-gcb-own]):where(dt, dd) { flex: 0 0 auto; max-width: 100%; }
:where([data-gcb-kit="list"][data-flow="row"]) > :not([data-gcb-own]):where(dt) { min-width: min(100%, var(--gcb-list-term, 10em)); }
:where([data-gcb-kit="list"][data-flow="row"]) > :not([data-gcb-own]):where(dd) { min-width: min(100%, var(--gcb-list-meaning-min, 14em)); }
:where([data-gcb-kit="list"][data-flow="row"]) > :not([data-gcb-own]):where(dt) {
	width: max(var(--gcb-list-term, 10em), (var(--gcb-list-term, 10em) + var(--gcb-kit-gap) + var(--gcb-list-meaning-min, 14em) - 100%) * 9999); /* mechanic: the term's column, or far more than the list (held to its width by max-width) once the two no longer fit */
}
:where([data-gcb-kit="list"][data-flow="row"]) > :not([data-gcb-own]):where(dd) {
	width: max(100% - var(--gcb-list-term, 10em) - var(--gcb-kit-gap), (var(--gcb-list-term, 10em) + var(--gcb-kit-gap) + var(--gcb-list-meaning-min, 14em) - 100%) * 9999); /* mechanic: the rest of the line, or the whole line once the two no longer fit */
	margin-block-start: clamp(var(--gcb-list-gap, var(--gcb-kit-gap)) * -1, (100% - var(--gcb-list-term, 10em) - var(--gcb-kit-gap) - var(--gcb-list-meaning-min, 14em)) * 9999, 0px); /* mechanic: stacked, a meaning sits straight under its term: the space between rows is taken back */
}
:where([data-gcb-kit="list"][data-flow="row"]) > :not([data-gcb-own]):where(dd + dd) {
	width: 100%; /* mechanic: a second meaning for one term takes a line of its own */
	padding-inline-start: clamp(0px, (100% - var(--gcb-list-term, 10em) - var(--gcb-kit-gap) - var(--gcb-list-meaning-min, 14em)) * 9999, var(--gcb-list-term, 10em) + var(--gcb-kit-gap)); /* mechanic: and lines up under the first; stacked, it starts at the edge like the rest */
}

/* list-group */
/* LIST GROUP: rows that belong together (ul or ol > li[data-gcb-kit-item]; a row that is pressed holds one
   a, button or label [data-gcb-kit-action] that fills it). No script: it is a list and its links.
   Every value is a token: the part's own first, the list's after (tokens/README.md). It sets no colour of its own but
   the tones and the filled current row: lines, fills, the current mark and quieter words are made of the colour of the
   words where it sits, so it is right on any background.
   WEIGHT (README rule 2): the list, its rows, a row's link or button, a picture, a title and a row's tick box are
   elements a theme styles by their tag, so each of their rules weighs ONE attribute and stands aside for
   [data-gcb-own]. A STATE of a link or button (:hover, :focus-visible, a link's :link and :visited) adds that state, as
   accordion's focus mark does: a theme's own a:hover, a:visited, button:hover or a:focus { outline: none } weighs a tag
   and a state, and would otherwise take the row's colour, fill or focus mark. Everything else weighs nothing. */
[data-gcb-kit="list-group"]:where(:not([data-gcb-own])) {
	display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; margin: 0; padding: 0; list-style: none;
	counter-reset: gcb-list-group;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-list-group-text, var(--gcb-kit-text-body));
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
}
/* BOXED: a line all round and the site's card corners. Left out it is flush: lines between the rows and nothing else. */
[data-gcb-kit="list-group"]:where([data-look="boxed"]:not([data-gcb-own])) {
	border: var(--gcb-list-group-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	border-radius: var(--gcb-list-group-radius, var(--gcb-kit-radius-card));
	overflow: clip;
}

/* A ROW, and the link or button that fills one: what leads, the words, what trails */
:where([data-gcb-kit="list-group"]) [data-gcb-kit-item]:where(:not([data-gcb-own])),
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where(:not([data-gcb-own])) {
	position: relative; display: flex; align-items: center; box-sizing: border-box; min-width: 0; margin: 0;
	gap: var(--gcb-list-group-gap, var(--gcb-kit-gap));
	padding: var(--gcb-list-group-pad-y, var(--gcb-kit-gap)) var(--gcb-list-group-pad-x, var(--gcb-kit-pad-control));
}
:where([data-gcb-kit="list-group"]) [data-gcb-kit-item]:where(:not([data-gcb-own])) { counter-increment: gcb-list-group; list-style: none; }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-item]:where(:not(:first-child):not([data-gcb-own])) { border-top: var(--gcb-list-group-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-item]:where(:has(> [data-gcb-kit-action]):not([data-gcb-own])) { align-items: stretch; padding: 0; }
/* A row of words with nothing leading them sits on the first line of its words: a number, a figure trailing or a date
   stays level with the first line when the words wrap, and with a title over a quieter line, level with the title.
   A row with an icon, a picture or a tick box leading keeps everything centred on it. */
:where([data-gcb-kit="list-group"]) [data-gcb-kit-item]:where(:not(:has(> [data-gcb-kit-action], > [data-gcb-kit-lead])):not([data-gcb-own])),
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where(:not(:has(> [data-gcb-kit-lead], > [type="checkbox"], > [type="radio"])):not([data-gcb-own])) { align-items: baseline; }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where(:not([data-gcb-own])) {
	flex: 1 1 auto; appearance: none; border: 0; border-radius: 0; background: transparent;
	min-height: var(--gcb-kit-control-h);
	color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback);
}
/* its states weigh the attribute and the state, so a theme's a:hover, a:visited or a:focus { outline: none } cannot undo them */
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where(:not([data-gcb-own])):is(:link, :visited, :hover, :focus, :active) { color: inherit; text-decoration: none; }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where(:not([data-gcb-own])):hover { background: var(--gcb-kit-wash); }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where(:not([data-gcb-own])):focus-visible,
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where(label:not([data-gcb-own])):has(> :focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: calc(var(--gcb-kit-focus-offset) * -1); }

/* THE CURRENT ROW: aria-current on a link (or on a plain row), aria-pressed="true" on a button, or
   data-gcb-kit-current. A faint fill, firmer words and a mark down its leading edge, all the words' colour. */
:where([data-gcb-kit="list-group"]) [data-gcb-kit-item]:where([aria-current]:not([aria-current="false"]), [data-gcb-kit-current]):where(:not([data-gcb-own])),
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where([aria-current]:not([aria-current="false"]), [aria-pressed="true"], [data-gcb-kit-current]):where(:not([data-gcb-own])) {
	background: var(--gcb-kit-wash);
	font-weight: var(--gcb-kit-weight-control);
}
:where([data-gcb-kit="list-group"] :is([data-gcb-kit-item], [data-gcb-kit-action]):is([aria-current]:not([aria-current="false"]), [aria-pressed="true"], [data-gcb-kit-current]):not([data-gcb-own]))::after {
	content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
	width: var(--gcb-list-group-mark, 3px);
	background: var(--gcb-list-group-current, currentColor);
}
/* the current row under the pointer: its faint fill twice over, so pointing at it still answers */
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where([aria-current]:not([aria-current="false"]), [aria-pressed="true"], [data-gcb-kit-current]):where(:not([data-gcb-own])):hover { background: linear-gradient(var(--gcb-kit-wash), var(--gcb-kit-wash)), var(--gcb-kit-wash); }
/* data-current="fill" on the list: the current row is filled with the site's accent instead */
:where([data-gcb-kit="list-group"][data-current="fill"]) [data-gcb-kit-item]:where([aria-current]:not([aria-current="false"]), [data-gcb-kit-current]):where(:not([data-gcb-own])),
:where([data-gcb-kit="list-group"][data-current="fill"]) [data-gcb-kit-action]:where([aria-current]:not([aria-current="false"]), [aria-pressed="true"], [data-gcb-kit-current]):where(:not([data-gcb-own])) {
	background: var(--gcb-kit-accent); color: var(--gcb-kit-on-accent);
}
:where([data-gcb-kit="list-group"][data-current="fill"]) [data-gcb-kit-action]:where([aria-current]:not([aria-current="false"]), [aria-pressed="true"], [data-gcb-kit-current]):where(:not([data-gcb-own])):is(:link, :visited, :hover, :focus, :active) { color: var(--gcb-kit-on-accent); }
:where([data-gcb-kit="list-group"][data-current="fill"]) [data-gcb-kit-action]:where([aria-current]:not([aria-current="false"]), [aria-pressed="true"], [data-gcb-kit-current]):where(:not([data-gcb-own])):hover { background: var(--gcb-kit-accent-hover); }
:where([data-gcb-kit="list-group"][data-current="fill"] :is([data-gcb-kit-item], [data-gcb-kit-action]))::after { content: none; }
:where([data-gcb-kit="list-group"][data-current="fill"]) [data-gcb-kit-action]:where(:not([data-gcb-own])):focus-visible { outline-color: currentColor; }

/* A ROW THAT CANNOT BE PRESSED: disabled on a button, aria-disabled="true" on a link with no href */
:where([data-gcb-kit="list-group"]) [data-gcb-kit-action]:where(:disabled, [aria-disabled="true"], label:has(> :disabled)):where(:not([data-gcb-own])) { opacity: var(--gcb-kit-disabled); pointer-events: none; cursor: default; }

/* A ROW TO TICK: a <label data-gcb-kit-action> round a checkbox or radio and its words. The whole row is the label, so
   pressing anywhere on it ticks the box; the box is the browser's own, in the site's accent. */
:where([data-gcb-kit="list-group"] [data-gcb-kit-action]) > :is([type="checkbox"], [type="radio"]):where(:not([data-gcb-own])) {
	flex: none; box-sizing: border-box; margin: 0; padding: 0; border: 0; font: inherit;
	width: var(--gcb-list-group-box, 1.125em); height: var(--gcb-list-group-box, 1.125em);
	accent-color: var(--gcb-kit-accent); cursor: inherit;
}
:where([data-gcb-kit="list-group"] [data-gcb-kit-action]) > :is([type="checkbox"], [type="radio"]):where(:not([data-gcb-own])):focus-visible { outline: none; } /* mechanic: the row draws the focus mark round the whole label */

/* A TONE: data-tone="success | warning | error | info" on a row tints it and colours what leads it */
:where([data-gcb-kit="list-group"] [data-tone="success"]) { --gcb-list-group-tone: var(--gcb-kit-success); }
:where([data-gcb-kit="list-group"] [data-tone="warning"]) { --gcb-list-group-tone: var(--gcb-kit-warning); }
:where([data-gcb-kit="list-group"] [data-tone="error"]) { --gcb-list-group-tone: var(--gcb-kit-error); }
:where([data-gcb-kit="list-group"] [data-tone="info"]) { --gcb-list-group-tone: var(--gcb-kit-info); }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-item]:where([data-tone]:not([data-gcb-own])) { background: color-mix(in srgb, var(--gcb-list-group-tone, currentColor) 12%, transparent); }
:where([data-gcb-kit="list-group"] [data-tone] [data-gcb-kit-lead]) { color: var(--gcb-list-group-tone, currentColor); }

/* NUMBERED: data-numbered on an <ol>. The number is drawn (the list's own is off), quieter than the words. */
:where([data-gcb-kit="list-group"][data-numbered] [data-gcb-kit-item]:not(:has(> [data-gcb-kit-action])):not([data-gcb-own]))::before,
:where([data-gcb-kit="list-group"][data-numbered] [data-gcb-kit-action]:not([data-gcb-own]))::before {
	content: counter(gcb-list-group) "." / ""; flex: none;
	color: var(--gcb-kit-quiet); font-variant-numeric: tabular-nums; font-weight: var(--gcb-kit-weight-body);
}

/* WHAT LEADS: an icon (a span round a drawing, sized to the words) or a picture (an img) */
:where([data-gcb-kit="list-group"]) [data-gcb-kit-lead]:where(:not([data-gcb-own])) {
	flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; margin: 0; padding: 0;
	width: var(--gcb-list-group-icon, 1.25em); height: var(--gcb-list-group-icon, 1.25em);
}
:where([data-gcb-kit="list-group"] [data-gcb-kit-lead] > svg) { display: block; width: 100%; height: 100%; }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-lead]:where(img:not([data-gcb-own])) {
	display: block; max-width: none; border: 0; object-fit: cover;
	width: var(--gcb-list-group-picture, 40px); height: var(--gcb-list-group-picture, 40px);
	border-radius: var(--gcb-list-group-picture-radius, var(--gcb-kit-radius-field));
}

/* THE WORDS: a title over a quieter line, when a row says two things */
:where([data-gcb-kit="list-group"] [data-gcb-kit-body]) { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-title]:where(:not([data-gcb-own])) { margin: 0; padding: 0; font: inherit; font-weight: var(--gcb-kit-weight-control); color: inherit; }
:where([data-gcb-kit="list-group"]) [data-gcb-kit-meta]:where(:not([data-gcb-own])) { margin: 0; padding: 0; font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body); color: var(--gcb-kit-quiet); }

/* WHAT TRAILS: a figure, a few quiet words, a badge, pushed to the far edge */
:where([data-gcb-kit="list-group"] [data-gcb-kit-trail]) {
	flex: none; display: inline-flex; align-items: center; margin-inline-start: auto;
	gap: var(--gcb-kit-gap-s);
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body);
	font-variant-numeric: tabular-nums; white-space: nowrap;
}

:where([data-gcb-kit="list-group"] [data-gcb-kit-trail] > [data-gcb-kit="badge"]) { margin-block: calc(var(--gcb-kit-gap-s) / -2); } /* mechanic: a badge is taller than a line of words; pulled in, a row with one is the height of its neighbours */

/* SIDE BY SIDE: data-flow="row" lays the rows in one line, each the same width, from a tablet up; on a phone it is
   the list again. The lines turn to stand between them and the current mark lies along the bottom. */
@media (min-width: 641px) {
	[data-gcb-kit="list-group"]:where([data-flow="row"]:not([data-gcb-own])) { flex-direction: row; }
	:where([data-gcb-kit="list-group"][data-flow="row"]) [data-gcb-kit-item]:where(:not([data-gcb-own])) { flex: 1 1 0; }
	:where([data-gcb-kit="list-group"][data-flow="row"]) [data-gcb-kit-item]:where(:not(:first-child):not([data-gcb-own])) { border-top: 0; border-inline-start: var(--gcb-list-group-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }
	:where([data-gcb-kit="list-group"][data-flow="row"] :is([data-gcb-kit-item], [data-gcb-kit-action]))::after { inset-block: auto 0; inset-inline: 0; width: auto; height: var(--gcb-list-group-mark, 3px); }
}

@media (forced-colors: active) {
	/* mechanic: a high-contrast mode throws away fills, and the current row's mark and both its fills are fills: the mark
	   comes back in the system's chosen colour, in either look, so the current row is still marked */
	:where([data-gcb-kit="list-group"] :is([data-gcb-kit-item], [data-gcb-kit-action]):is([aria-current]:not([aria-current="false"]), [aria-pressed="true"], [data-gcb-kit-current]):not([data-gcb-own]))::after { content: ""; forced-color-adjust: none; background: Highlight; } /* mechanic: seen in high contrast */
}

/* logo-row */
/* LOGO ROW: a row of logos, each shown whole and sized so they read as one size whatever their shapes.
   The root is the list (a ul with role="list", or any box); each child is one logo: an img or a drawn svg, alone or
   in a link. Nothing here crops, stretches or rounds a logo.

   EQUAL AREA: a square logo is --gcb-logo-row-size tall. A logo r times as wide as it is tall (its shape,
   --gcb-logo-row-shape, written on it or measured by the script) is size × r^-balance tall: at the balance of 0.5
   that is the same area for every logo, so a long wordmark comes out shorter and wider and a tall badge taller and
   narrower. With no shape known a logo is the size's height, whole.

   WEIGHT (README rule 2): the list, its rows, a link and an img are elements a theme styles by their tag, so each of
   their rules weighs ONE attribute and stands aside for [data-gcb-own]. Every value is a token: the part's own first,
   the site's after (tokens/README.md). */
[data-gcb-kit="logo-row"]:where(:not([data-gcb-own])) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; margin: 0; padding: 0; list-style: none;
	column-gap: var(--gcb-logo-row-gap, clamp(calc(var(--gcb-kit-gap) * 2), 5vw, calc(var(--gcb-kit-gap) * 4)));
	row-gap: var(--gcb-logo-row-gap-rows, calc(var(--gcb-kit-gap) * 2.5));
}
/* ONE LOGO'S BOX: as big as its logo, never wider than the row. It and a link in it lay their logo out the same way,
   so the logo can give way in either. */
:where([data-gcb-kit="logo-row"]) > :not([data-gcb-own]) { display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; min-width: 0; max-width: 100%; margin: 0; padding: 0; }
/* a logo that is a link: nothing of a theme's link left on it, and the keyboard's mark */
[data-gcb-kit="logo-row"] :where(a:not([data-gcb-own])) { display: flex; align-items: center; justify-content: center; min-width: 0; max-width: 100%; color: inherit; text-decoration: none; }
[data-gcb-kit="logo-row"] :where(a:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* THE LOGO: whole, its height from its shape, its width its own. The first height and the first max-width are for a
   browser with no pow(). The widest a logo may be is the width a logo nine times as wide as tall gets: a longer one
   is held to that, and a logo whose shape is not known (no script, nothing written) is fitted inside that box, so a
   long wordmark still comes out short and wide. */
[data-gcb-kit="logo-row"] :where(img, svg):where(:not([data-gcb-own])) {
	display: block; box-sizing: content-box; margin: 0; padding: 0; border: 0; border-radius: 0;
	flex: 0 1 auto; min-width: 0; /* mechanic: in a row narrower than the logo (a phone) its box gives way, and the logo is fitted inside it */
	height: var(--gcb-logo-row-size, 56px);
	height: min(calc(var(--gcb-logo-row-size, 56px) * var(--gcb-logo-row-scale, 1) * pow(calc(var(--gcb-logo-row-shape, 1)), calc(-1 * var(--gcb-logo-row-balance, 0.5)))), var(--gcb-logo-row-max, 100vh));
	width: auto; max-height: none; max-width: none;
	max-width: calc(var(--gcb-logo-row-size, 56px) * var(--gcb-logo-row-scale, 1) * pow(9, calc(1 - var(--gcb-logo-row-balance, 0.5))));
	object-fit: contain; /* mechanic: a logo held narrower than its shape (a phone) is fitted inside, never stretched */
	opacity: var(--gcb-logo-row-opacity, 1);
}
@media (max-width: 600px) {
	[data-gcb-kit="logo-row"] :where(img, svg):where(:not([data-gcb-own])) {
		height: var(--gcb-logo-row-size-sm, calc(var(--gcb-logo-row-size, 56px) * 0.8));
		height: min(calc(var(--gcb-logo-row-size-sm, calc(var(--gcb-logo-row-size, 56px) * 0.8)) * var(--gcb-logo-row-scale, 1) * pow(calc(var(--gcb-logo-row-shape, 1)), calc(-1 * var(--gcb-logo-row-balance, 0.5)))), var(--gcb-logo-row-max, 100vh));
		max-width: calc(var(--gcb-logo-row-size-sm, calc(var(--gcb-logo-row-size, 56px) * 0.8)) * var(--gcb-logo-row-scale, 1) * pow(9, calc(1 - var(--gcb-logo-row-balance, 0.5))));
	}
}

/* WHERE THEY SIT: data-align on the row. Left out they are centred. */
[data-gcb-kit="logo-row"]:where([data-align="start"]:not([data-gcb-own])) { justify-content: flex-start; }
[data-gcb-kit="logo-row"]:where([data-align="between"]:not([data-gcb-own])) { justify-content: space-between; }

/* A GRID: data-layout="grid". Equal columns, each logo in the middle of its cell: as many columns as fit at the
   narrowest a cell may be, and never more than --gcb-logo-row-cols. */
[data-gcb-kit="logo-row"]:where([data-layout="grid"]:not([data-gcb-own])) { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(min(var(--gcb-logo-row-cell, 9rem), 100%), calc((100% - (var(--gcb-logo-row-cols, 6) - 1) * var(--gcb-logo-row-gap, clamp(calc(var(--gcb-kit-gap) * 2), 5vw, calc(var(--gcb-kit-gap) * 4)))) / var(--gcb-logo-row-cols, 6))), 1fr)); justify-items: center; }

/* A STRIP: data-layout="strip". One line that never wraps; when it is wider than its column it is scrolled sideways.
   It is centred while it fits (the first and last logos' outer margins take the room that is left) and starts at
   its first logo when it does not. The room inside it is so a focused link's mark is not cut off by the scroller; it
   is kept inside, so the strip is never wider than its column (a full-bleed section does not scroll sideways). */
[data-gcb-kit="logo-row"]:where([data-layout="strip"]:not([data-gcb-own])) {
	flex-wrap: nowrap; justify-content: flex-start;
	overflow-x: auto; /* mechanic: a line too wide for its column is scrolled, never squeezed */
	padding: var(--gcb-kit-gap-s);
	scroll-padding-inline: var(--gcb-logo-row-fade, calc(var(--gcb-kit-gap) * 4)); /* a logo reached by the keyboard is brought out of the fade */
	scrollbar-width: thin; scrollbar-color: var(--gcb-kit-rule-strong) transparent;
}
:where([data-gcb-kit="logo-row"][data-layout="strip"]) > :not([data-gcb-own]):first-child { margin-inline-start: auto; }
:where([data-gcb-kit="logo-row"][data-layout="strip"]) > :not([data-gcb-own]):last-child { margin-inline-end: auto; }
/* MORE THIS WAY: a strip wider than its column fades out at each end that has more logos past it (the script marks
   which: data-gcb-kit-more="start", "end" or "start end"), so a phone, with no scrollbar to see, shows there is more.
   The fade is a mask, so it is made of nothing and shows on any background. */
[data-gcb-kit="logo-row"]:where([data-layout="strip"][data-gcb-kit-more="end"]:not([data-gcb-own])) { mask-image: linear-gradient(to right, black calc(100% - var(--gcb-logo-row-fade, calc(var(--gcb-kit-gap) * 4))), transparent); }
[data-gcb-kit="logo-row"]:where([data-layout="strip"][data-gcb-kit-more="start"]:not([data-gcb-own])) { mask-image: linear-gradient(to left, black calc(100% - var(--gcb-logo-row-fade, calc(var(--gcb-kit-gap) * 4))), transparent); }
[data-gcb-kit="logo-row"]:where([data-layout="strip"][data-gcb-kit-more="start end"]:not([data-gcb-own])) { mask-image: linear-gradient(to right, transparent, black var(--gcb-logo-row-fade, calc(var(--gcb-kit-gap) * 4)), black calc(100% - var(--gcb-logo-row-fade, calc(var(--gcb-kit-gap) * 4))), transparent); }
[data-gcb-kit="logo-row"]:where([data-layout="strip"][data-gcb-kit-more="end"]:dir(rtl):not([data-gcb-own])) { mask-image: linear-gradient(to left, black calc(100% - var(--gcb-logo-row-fade, calc(var(--gcb-kit-gap) * 4))), transparent); }
[data-gcb-kit="logo-row"]:where([data-layout="strip"][data-gcb-kit-more="start"]:dir(rtl):not([data-gcb-own])) { mask-image: linear-gradient(to right, black calc(100% - var(--gcb-logo-row-fade, calc(var(--gcb-kit-gap) * 4))), transparent); }
/* the strip itself focused (a strip with no links): its mark is drawn whole, so the fade steps aside */
[data-gcb-kit="logo-row"]:where([data-layout="strip"]:focus-visible:not([data-gcb-own])) { outline: var(--gcb-kit-focus-outline); outline-offset: calc(-1 * var(--gcb-kit-focus-offset)); mask-image: none; }

/* GREYED: data-tone="grey". Every logo without its colour and fainter; its own colour comes back under the pointer
   or the keyboard. The fade is the site's, so it is nothing for someone who asked for less motion. */
[data-gcb-kit="logo-row"]:where([data-tone="grey"]) :where(img, svg):where(:not([data-gcb-own])) {
	filter: grayscale(1); opacity: var(--gcb-logo-row-opacity, 0.6);
	transition: filter var(--gcb-kit-dur-feedback), opacity var(--gcb-kit-dur-feedback);
}
/* weighs one attribute, like the rule above, and comes after it: a class written on a logo still wins */
[data-gcb-kit="logo-row"] :where([data-gcb-kit="logo-row"][data-tone="grey"] > :is(:hover, :focus-within) :is(img, svg):not([data-gcb-own])) { filter: none; opacity: 1; }

/* ONE COLOUR: data-tone="mono". Every logo is drawn as its outline filled with one colour: the quieter colour of
   the words where it is used, so it shows on any background, or --gcb-logo-row-color. How: the logo itself is moved
   out of its box to the left and what is seen is its shadow, which can be any colour, thrown back into the box. The
   see-through border keeps the logo's box over the place the shadow lands (a browser may skip drawing a thing wholly
   out of view), and the margin takes the border's width back out of the layout. */
:where([data-gcb-kit="logo-row"][data-tone="mono"] :has(> img:not([data-gcb-own]), > svg:not([data-gcb-own]))) { overflow: hidden; } /* mechanic: the box the moved logo is cut by */
[data-gcb-kit="logo-row"]:where([data-tone="mono"]) :where(img, svg):where(:not([data-gcb-own])) {
	position: relative; left: -200vw; border-right: 200vw solid transparent; margin-right: -200vw; /* mechanic: the logo out of view, its box still over the place it was */
	color: var(--gcb-logo-row-color, var(--gcb-kit-quiet));
	filter: drop-shadow(200vw 0 0 currentColor); /* mechanic: its shadow, in the one colour, where the logo was */
}

/* navbar */
/* NAVBAR: a site's header. A logo, a row of links with the page's own marked, a sub-menu that opens under its item, an
   action button, and at a phone's width a button that opens the links as a drawer. A recipe: the drawer is the dialog
   part, the action and the phone button are the site's button, the drawer's cross is the close button. Nothing of
   theirs is drawn again here.
   A link, a button and a list are elements a theme styles by their tag, so each look on one weighs ONE attribute and
   no more (README rule 2: the navbar's own name is inside :where), and stands aside for an element the design made its
   own (data-gcb-own). Every value is a token: the part's own first, the list's after (tokens/README.md).
   The bar sets no colour of its own: its links are the colour of the words where it sits, quieter until pointed at.
   With no script it is a row of links that wraps, and a sub-menu shows on hover and on keyboard focus. */

/* THE BAR: one row, the logo first, what follows spaced evenly; it wraps where there is no room */
:where([data-gcb-kit="navbar"]) {
	position: relative; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center;
	gap: var(--gcb-kit-gap-s) var(--gcb-navbar-gap, var(--gcb-kit-pad-panel));
	padding: var(--gcb-navbar-pad, var(--gcb-kit-pad-control) var(--gcb-kit-pad-panel));
	z-index: var(--gcb-navbar-z, 30);
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-body);
	line-height: var(--gcb-kit-leading);
}
/* HELD TO THE SITE'S WIDTH (data-width="wide"): the bar's ground still runs edge to edge, and the logo, the links and the
   action line up with the page's wide sections. The width and the gutter start as the container part's (so a
   container data-width="wide" and the bar share their two lines), else WordPress's wide width and root padding, else
   1200px and the site's panel padding. Set --gcb-navbar-width on the header or any box round it for another width. */
:where(:root) {
	--gcb-navbar-width: var(--gcb-container-wide, var(--wp--style--global--wide-size));
	--gcb-navbar-gutter: var(--gcb-container-gutter, var(--wp--style--root--padding-left));
}
:where([data-gcb-kit="navbar"][data-width="wide"]) { padding-inline: max(var(--gcb-navbar-gutter, var(--gcb-kit-pad-panel)), (100% - var(--gcb-navbar-width, 1200px)) / 2); }

/* THE LOGO: a picture at one height, or the site's name in words */
:where([data-gcb-kit="navbar"]) [data-gcb-kit-logo]:where(:not([data-gcb-own])),
:where([data-gcb-kit="navbar"]) [data-gcb-site="logo"]:where(:not([data-gcb-own])) {
	display: inline-flex; align-items: center; flex: none; gap: var(--gcb-kit-gap-s);
	padding: 0; border: 0; background: transparent; color: inherit; text-decoration: none;
	font-size: var(--gcb-kit-text-title); font-weight: var(--gcb-kit-weight-title); line-height: 1;
}
:where([data-gcb-kit="navbar"]) [data-gcb-kit-logo] > :where(img, svg),
:where([data-gcb-kit="navbar"]) [data-gcb-site="logo"] > :where(img, svg) { display: block; flex: none; width: auto; max-width: none; height: var(--gcb-navbar-logo-h, 32px); }

/* THE LINKS: a row at the end of the bar (data-align="start": beside the logo; "center": in the middle). Written as
   links straight in the <nav>, or as a list (ul > li) in it. */
:where([data-gcb-kit="navbar"]) [data-gcb-kit-menu]:where(:not([data-gcb-own])) {
	display: flex; flex-wrap: wrap; align-items: center;
	gap: 0 var(--gcb-navbar-link-gap, var(--gcb-kit-pad-panel));
	margin: 0; margin-inline-start: auto; padding: 0; list-style: none;
}
:where([data-gcb-kit="navbar"][data-align="start"]) [data-gcb-kit-menu]:where(:not([data-gcb-own])) { margin-inline: 0 auto; }
:where([data-gcb-kit="navbar"][data-align="center"]) [data-gcb-kit-menu]:where(:not([data-gcb-own])) { margin-inline: auto; }
:where([data-gcb-kit="navbar"]) [data-gcb-kit-menu] > :where(ul, ol) { display: contents; margin: 0; padding: 0; list-style: none; }
:where([data-gcb-kit="navbar"]) [data-gcb-kit-menu] :where(li) { display: inline-flex; align-items: center; margin: 0; padding: 0; list-style: none; }

:where([data-gcb-kit="navbar"]) [data-gcb-kit-menu-item]:where(:not([data-gcb-own])) {
	appearance: none; display: inline-flex; align-items: center; box-sizing: border-box;
	gap: var(--gcb-kit-gap-s);
	margin: 0; padding: var(--gcb-kit-gap-s) 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
	color: var(--gcb-kit-quiet); font: inherit; font-weight: var(--gcb-kit-weight-control);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: color var(--gcb-kit-dur-feedback);
}
/* pointed at, focused, open, or where the visitor is: the full colour of the words */
:where([data-gcb-kit="navbar"]) [data-gcb-kit-menu-item]:where(:not([data-gcb-own]):is(:hover, :focus-visible, [aria-expanded="true"], [aria-current]:not([aria-current="false"]))) { color: inherit; }
:where([data-gcb-kit="navbar"] .is-open) > [data-gcb-kit-menu-item]:where(:not([data-gcb-own])) { color: inherit; }
/* THE PAGE'S OWN LINK (aria-current="page"; a parent of it aria-current="true"): a line under its words */
:where([data-gcb-kit="navbar"]) [data-gcb-kit-menu-item]:where(:not([data-gcb-own])[aria-current]:not([aria-current="false"])) {
	text-decoration: underline;
	text-decoration-thickness: var(--gcb-navbar-mark, min(calc(var(--gcb-kit-line-w) * 2), 3px));
	text-underline-offset: var(--gcb-navbar-mark-offset, 0.5em);
}
/* the keyboard's mark is the site's, on an element the design made its own too */
:where([data-gcb-kit="navbar"]) [data-gcb-kit-menu-item]:where(:focus-visible),
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu-item]:where(:focus-visible),
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu-toggle]:where(:focus-visible),
:where([data-gcb-kit="navbar"]) [data-gcb-kit-logo]:where(:focus-visible),
:where([data-gcb-kit="navbar"]) [data-gcb-site="logo"]:where(:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* AN ITEM THAT OPENS A LIST: the item and its list are one group. An empty [data-gcb-kit-icon] in the item is drawn as
   a chevron that turns over while the list is open; one with a drawing in it is left alone. */
:where([data-gcb-kit="navbar"] [data-gcb-kit-menu-group]) { position: relative; display: inline-flex; align-items: center; gap: calc(var(--gcb-kit-gap-s) / 2); }
:where([data-gcb-kit="navbar"] [data-gcb-kit-icon]) { flex: none; transition: rotate var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), translate var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit="navbar"] [data-gcb-kit-icon]:empty) {
	box-sizing: border-box; width: var(--gcb-navbar-chevron, 0.45em); height: var(--gcb-navbar-chevron, 0.45em);
	border-right: var(--gcb-navbar-chevron-w, calc(var(--gcb-navbar-chevron, 0.45em) * 0.24)) solid currentColor;
	border-bottom: var(--gcb-navbar-chevron-w, calc(var(--gcb-navbar-chevron, 0.45em) * 0.24)) solid currentColor;
	rotate: 45deg; translate: 0 -25%;
}
:where([data-gcb-kit="navbar"] [aria-expanded="true"] [data-gcb-kit-icon]:empty) { rotate: 225deg; translate: 0 25%; }
:where([data-gcb-kit="navbar"] [aria-expanded="true"] [data-gcb-kit-icon]:not(:empty)) { rotate: 180deg; }
/* a parent that is also a page keeps its link; the script puts this small button beside it to open the list */
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu-toggle]:where(:not([data-gcb-own])) {
	appearance: none; display: inline-grid; place-items: center; flex: none; box-sizing: border-box;
	width: var(--gcb-navbar-sub-toggle, 28px); height: var(--gcb-navbar-sub-toggle, 28px); min-width: 0; min-height: 0;
	margin: 0; padding: 0; border: 0; border-radius: var(--gcb-kit-radius-full); background: transparent; box-shadow: none;
	color: inherit; font: inherit; line-height: 1; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu-toggle]:where(:not([data-gcb-own]):hover) { background: var(--gcb-kit-wash); }
/* under a finger (a tablet is wide enough for the bar) it is the site's press target; its margins give back the room
   so the bar is no taller */
@media (pointer: coarse) {
	:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu-toggle]:where(:not([data-gcb-own])) {
		width: max(var(--gcb-navbar-sub-toggle, 28px), var(--gcb-kit-control-h)); height: max(var(--gcb-navbar-sub-toggle, 28px), var(--gcb-kit-control-h));
		margin-block: calc(var(--gcb-kit-gap-s) * -1);
	}
}

/* THE LIST IT OPENS: a small panel of the site's surface under its item (data-align="end" on the group: lined up with
   the item's end; the script does that by itself where it would leave the screen) */
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu]:where(:not([data-gcb-own])) {
	position: absolute; inset: 100% auto auto 0; z-index: 1;
	box-sizing: border-box; display: flex; flex-direction: column;
	min-width: var(--gcb-navbar-sub-min, 200px);
	margin: var(--gcb-navbar-sub-gutter, var(--gcb-kit-gap-s)) 0 0; padding: var(--gcb-navbar-sub-pad, var(--gcb-kit-gap-s)); border: 0; list-style: none;
	border-radius: var(--gcb-kit-radius-card);
	background: var(--gcb-kit-surface); color: var(--gcb-kit-ink);
	box-shadow: var(--gcb-kit-shadow-menu);
	font-size: var(--gcb-kit-text-control);
	transition: opacity var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), visibility var(--gcb-kit-dur-menu);
}
:where([data-gcb-kit="navbar"] [data-gcb-kit-menu-group][data-align="end"]) > [data-gcb-kit-submenu]:where(:not([data-gcb-own])),
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu]:where([data-gcb-kit-flip]:not([data-gcb-own])) { inset: 100% 0 auto auto; }
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu] :where(li) { display: block; margin: 0; padding: 0; list-style: none; }
/* the space between the item and its list is still the item's, so a pointer can cross it */
:where([data-gcb-kit="navbar"] [data-gcb-kit-submenu]:not([data-gcb-own]))::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: var(--gcb-navbar-sub-gutter, var(--gcb-kit-gap-s)); }
/* opening, it is there at once (so the keyboard can step into it) and fades in; shutting, it fades and then is gone */
:where([data-gcb-kit="navbar"] .is-open) > [data-gcb-kit-submenu]:where(:not([data-gcb-own])) { transition-property: opacity; }
[data-gcb-kit="navbar"] [data-gcb-kit-submenu] { visibility: hidden; opacity: 0; } /* mechanic: shut */
[data-gcb-kit="navbar"] [data-gcb-kit-menu-group].is-open > [data-gcb-kit-submenu] { visibility: visible; opacity: 1; } /* mechanic: open */
[data-gcb-kit="navbar"]:not([data-gcb-kit-ready]) [data-gcb-kit-menu-group]:is(:hover, :focus-within) > [data-gcb-kit-submenu] { visibility: visible; opacity: 1; } /* mechanic: with no script, open under the pointer or the keyboard */

:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu-item]:where(:not([data-gcb-own])) {
	appearance: none; display: flex; align-items: center; box-sizing: border-box; width: 100%;
	gap: var(--gcb-kit-gap-s);
	margin: 0; padding: var(--gcb-navbar-sub-item-pad, var(--gcb-kit-gap-s) var(--gcb-kit-gap)); border: 0; border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none; color: inherit; font: inherit; font-weight: var(--gcb-kit-weight-body);
	text-align: start; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu-item]:where(:not([data-gcb-own]):is(:hover, :focus-visible)) { background: var(--gcb-kit-wash); }
:where([data-gcb-kit="navbar"]) [data-gcb-kit-submenu-item]:where(:not([data-gcb-own])[aria-current]:not([aria-current="false"])) { font-weight: var(--gcb-kit-weight-control); }
/* inside a list: a heading over a few of its links, and a line between two sets of them. A heading may be an h6 or an
   li and a line an hr or an li, all styled by a theme by their tag, so each weighs one attribute. */
[data-gcb-kit-submenu-heading]:where([data-gcb-kit="navbar"] [data-gcb-kit-submenu] *:not([data-gcb-own])) {
	display: block; margin: 0; padding: var(--gcb-navbar-sub-item-pad, var(--gcb-kit-gap-s) var(--gcb-kit-gap)); padding-block-end: calc(var(--gcb-kit-gap-s) / 2);
	border: 0; background: transparent; color: var(--gcb-kit-quiet);
	font-family: inherit; font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case); white-space: nowrap;
}
[data-gcb-kit-submenu-separator]:where([data-gcb-kit="navbar"] [data-gcb-kit-submenu] *:not([data-gcb-own])) {
	display: block; box-sizing: content-box; height: 0; width: auto; margin: var(--gcb-kit-gap-s) var(--gcb-kit-gap); padding: 0;
	border: 0; border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-rule); background: transparent; opacity: 1; list-style: none;
}
/* A LINK THAT CANNOT BE USED (aria-disabled="true"): faint, not pointed at, passed over by the arrows; the script
   keeps a press on it from going anywhere */
:where([data-gcb-kit="navbar"]) :is([data-gcb-kit-menu-item], [data-gcb-kit-submenu-item]):where([aria-disabled="true"]:not([data-gcb-own])),
:where([data-gcb-kit="navbar"]) :is([data-gcb-kit-menu-item], [data-gcb-kit-submenu-item]):where([aria-disabled="true"]:not([data-gcb-own]):is(:hover, :focus-visible)) {
	opacity: var(--gcb-kit-disabled); color: var(--gcb-kit-quiet); background: transparent; text-decoration: none; cursor: default;
}

/* THE PHONE'S BUTTON: the site's button, shown only while the links are in the drawer; its three lines a size of
   their own. What stands first in the bar (the logo) pushes the rest to the end. */
[data-gcb-kit="navbar"]:not([data-gcb-kit-mode="drawer"]) [data-gcb-kit-menu-toggle] { display: none; } /* mechanic: there is a drawer only at a phone's width, and only once the script is up */
:where([data-gcb-kit="navbar"] [data-gcb-kit-menu-toggle] svg) { width: var(--gcb-navbar-toggle-icon, 1.5em); height: var(--gcb-navbar-toggle-icon, 1.5em); }
:where([data-gcb-kit="navbar"][data-gcb-kit-mode="drawer"] :first-child:not([data-gcb-kit-menu-toggle]):has(~ [data-gcb-kit-menu-toggle])) { margin-inline-end: auto; }

/* IN THE DRAWER (the dialog part, which is its panel, its veil and its motion): the links one under another with a
   line between, each a full row; a list opens in place under its item */
[data-gcb-kit="navbar"] [data-gcb-kit-menu-drawer] [data-gcb-kit-menu] { display: flex !important; } /* mechanic: a row its own classes hide at this width is still what the drawer holds */
:where([data-gcb-kit-menu-drawer]) [data-gcb-kit-menu]:where(:not([data-gcb-own])) { flex-flow: column nowrap; align-items: stretch; gap: 0; margin: var(--gcb-kit-control-h) 0 0; }
:where([data-gcb-kit-menu-drawer]) [data-gcb-kit-menu] :where(li) { display: block; }
/* the line under each row: a row that is a link itself weighs one attribute, as its look (border: 0) does */
:where([data-gcb-kit-menu-drawer] [data-gcb-kit-menu] > :not(ul, ol), [data-gcb-kit-menu-drawer] [data-gcb-kit-menu] > :is(ul, ol) > li) { border-bottom: var(--gcb-kit-line-w) solid var(--gcb-kit-rule); }
[data-gcb-kit-menu-item]:where([data-gcb-kit-menu-drawer] [data-gcb-kit-menu] > :not([data-gcb-own])) { border-bottom: var(--gcb-kit-line-w) solid var(--gcb-kit-rule); }
:where([data-gcb-kit-menu-drawer]) [data-gcb-kit-menu] :where([data-gcb-kit-menu-group]) { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
:where([data-gcb-kit-menu-drawer]) [data-gcb-kit-menu-item]:where(:not([data-gcb-own])) {
	display: flex; flex: 1 1 auto; justify-content: space-between; min-width: 0;
	padding: var(--gcb-navbar-drawer-item-pad, var(--gcb-kit-pad-control) 0);
	color: inherit; font-size: var(--gcb-kit-text-section); text-align: start; white-space: normal;
}
:where([data-gcb-kit-menu-drawer]) [data-gcb-kit-submenu-toggle]:where(:not([data-gcb-own])) { width: var(--gcb-kit-control-h); height: var(--gcb-kit-control-h); margin: 0; font-size: var(--gcb-kit-text-section); }
/* a parent that only opens its list draws its chevron where the small button beside a parent that is a page draws
   its own: in the middle of a press target at the row's end, so the chevrons of the two kinds stand in one line */
:where([data-gcb-kit-menu-drawer] [data-gcb-kit-menu-item] > [data-gcb-kit-icon]:empty) { margin-inline-end: calc((var(--gcb-kit-control-h) - var(--gcb-navbar-chevron, 0.45em)) / 2); }
:where([data-gcb-kit-menu-drawer]) [data-gcb-kit-submenu]:where(:not([data-gcb-own])) {
	position: static; flex: 0 0 100%; min-width: 0;
	margin: 0; padding: 0 0 var(--gcb-kit-gap) var(--gcb-kit-gap);
	border-radius: 0; background: transparent; color: inherit; box-shadow: none;
	font-size: var(--gcb-kit-text-body); transition: none;
}
:where([data-gcb-kit-menu-drawer]) [data-gcb-kit-submenu-item]:where(:not([data-gcb-own])) { padding-inline: 0; white-space: normal; }
:where([data-gcb-kit-menu-drawer]) [data-gcb-kit-submenu-item]:where(:not([data-gcb-own]):is(:hover, :focus-visible)) { background: transparent; text-decoration: underline; }
:where([data-gcb-kit-menu-drawer] [data-gcb-kit-submenu]:not([data-gcb-own]))::before { content: none; }
[data-gcb-kit="navbar"] [data-gcb-kit-menu-drawer] [data-gcb-kit-submenu] { visibility: visible; opacity: 1; } /* mechanic: in the drawer a list is in the page's flow */
[data-gcb-kit="navbar"] [data-gcb-kit-menu-drawer] [data-gcb-kit-menu-group]:not(.is-open) > [data-gcb-kit-submenu] { display: none; } /* mechanic: shut */
/* what else goes into the drawer with the links (data-gcb-kit-drawer: the action button, a phone number): the script
   puts them in one box after the links, where each takes the full width */
:where([data-gcb-kit-menu-extras]) { display: flex; flex-direction: column; align-items: stretch; gap: var(--gcb-kit-gap); margin-top: var(--gcb-kit-pad-panel); }
@media (scripting: none) {
	[data-gcb-kit="navbar"] [data-gcb-kit-menu-drawer] { display: none; } /* mechanic: a drawer the design wrote holds nothing until the script fills it */
}
/* BEFORE THE SCRIPT IS UP (on WordPress it comes at the foot of the page): where the links will be a drawer (the
   usual 781px, or data-narrow-at="all") the row of links is held back, so a phone does not see it wrap and jump. Held
   back for a moment only: if the script never comes, the row shows, as it does with scripting off. */
@media (scripting: enabled) and (max-width: 781px) {
	[data-gcb-kit="navbar"]:not([data-narrow-at], [data-gcb-kit-ready]) [data-gcb-kit-menu] { animation: gcb-navbar-wait 1.5s step-end; } /* mechanic: held back until the script moves it */
}
@media (scripting: enabled) {
	[data-gcb-kit="navbar"][data-narrow-at="all"]:not([data-gcb-kit-ready]) [data-gcb-kit-menu] { animation: gcb-navbar-wait 1.5s step-end; } /* mechanic: held back until the script moves it */
}
@keyframes gcb-navbar-wait { from { display: none; } } /* mechanic: held back */

/* STAYING AT THE TOP (data-sticky): it needs a ground of its own, as the page passes under it: the site's surface */
[data-gcb-kit="navbar"][data-sticky] { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); } /* mechanic: held at the top of the screen, under WordPress's admin bar when there is one */
header.wp-block-template-part:has([data-gcb-kit="navbar"][data-sticky]:not([data-overlay])) { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: var(--gcb-navbar-z, 30); } /* mechanic: in a WordPress page the header stands in its template part, so that is what must stay */
:where([data-gcb-kit="navbar"][data-sticky]:not([data-overlay])) { background: var(--gcb-kit-surface); color: var(--gcb-kit-ink); }
:where([data-gcb-kit="navbar"][data-sticky]) { transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback); }
:where([data-gcb-kit="navbar"][data-sticky].is-scrolled) { background: var(--gcb-kit-surface); color: var(--gcb-kit-ink); box-shadow: var(--gcb-kit-shadow-lift); }

/* LYING OVER THE PAGE'S FIRST SECTION (data-overlay): out of the flow, across the top of the nearest positioned box,
   with no ground: its words take the colour set on it. With data-sticky it is fixed, and takes the site's surface
   once the page has scrolled (.is-scrolled, above). */
[data-gcb-kit="navbar"][data-overlay] { position: absolute; inset: 0 0 auto 0; } /* mechanic: over the first section */
[data-gcb-kit="navbar"][data-overlay][data-sticky] { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 auto 0; } /* mechanic: over the page, at the top of the screen */
.wp-site-blocks:has([data-gcb-kit="navbar"][data-overlay]) { position: relative; } /* mechanic: WordPress's page box is what it lies across */
.wp-site-blocks:has([data-gcb-kit="navbar"][data-overlay]) > :is(header.wp-block-template-part, main) { margin-block-start: 0; } /* mechanic: no gap between the header's part and the section it lies over */

/* pager */
/* PAGER: a list's pages (a nav holding previous, the pages, the gaps, next, as links or buttons). Written out it needs
   no script. Every value is a token: the part's own first, the list's after (tokens/README.md).
   The nav and the gap weigh nothing (:where). A page and an arrow are a link or a button, which a theme styles by its
   tag, so their rules weigh ONE attribute and stand aside for an element marked data-gcb-own (README rule 2).
   Apart from the current page (the accent, the chosen thing), its fills and lines are made of the colour of the words. */
:where([data-gcb-kit="pager"]) {
	display: flex; align-items: center; justify-content: center;
	gap: var(--gcb-pager-gap, calc(var(--gcb-kit-gap-s) / 2));
	min-width: 0; max-width: 100%;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-pager-text, var(--gcb-kit-text-control));
	font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
	font-variant-numeric: tabular-nums;
}
:where([data-gcb-kit="pager"][data-align="start"]) { justify-content: flex-start; }
:where([data-gcb-kit="pager"][data-align="end"]) { justify-content: flex-end; }
:where([data-gcb-kit="pager"][data-align="between"]) { justify-content: space-between; }
[data-gcb-kit="pager"][hidden] { display: none; } /* mechanic: a list of one page has no pager */

/* A PAGE AND AN ARROW: a square the height of anything pressed. In a row too long for its place (a phone) they give up
   width, never height, and never less than their own words. */
:where([data-gcb-kit="pager"]) :is([data-gcb-kit-page], [data-gcb-kit-page-prev], [data-gcb-kit-page-next]):where(:not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
	flex: 0 1 var(--gcb-pager-size, var(--gcb-kit-control-h));
	gap: var(--gcb-kit-gap-s);
	min-height: var(--gcb-pager-size, var(--gcb-kit-control-h));
	margin: 0; padding: 0 calc(var(--gcb-kit-gap-s) / 2);
	border: var(--gcb-kit-line-w) solid var(--gcb-pager-line, transparent);
	border-radius: var(--gcb-pager-radius, var(--gcb-kit-radius-field));
	background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* an arrow with words or a drawing of the design's in it: as wide as they are, with room */
:where([data-gcb-kit="pager"]) :is([data-gcb-kit-page-prev], [data-gcb-kit-page-next]):where(:not(:empty)):where(:not([data-gcb-own])) { flex: none; padding-inline: var(--gcb-kit-pad-control); }
:where([data-gcb-kit="pager"]) :is([data-gcb-kit-page], [data-gcb-kit-page-prev], [data-gcb-kit-page-next]):where(:hover):where(:not([data-gcb-own])) { background: var(--gcb-pager-hover, var(--gcb-kit-wash)); text-decoration: none; }
:where([data-gcb-kit="pager"]) :is([data-gcb-kit-page], [data-gcb-kit-page-prev], [data-gcb-kit-page-next]):where(:active):where(:not([data-gcb-own])) { scale: var(--gcb-kit-press); }
/* focused: the site's outline, in the colour of the words, so it shows on a section's own colour too */
:where([data-gcb-kit="pager"]) :is([data-gcb-kit-page], [data-gcb-kit-page-prev], [data-gcb-kit-page-next]):where(:focus-visible):where(:not([data-gcb-own])) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* THE CURRENT PAGE: filled, and not something to press */
:where([data-gcb-kit="pager"]) [data-gcb-kit-page]:where([aria-current="page"]):where(:not([data-gcb-own])) {
	background: var(--gcb-pager-current, var(--gcb-kit-accent));
	border-color: var(--gcb-pager-current, var(--gcb-kit-accent));
	color: var(--gcb-pager-current-ink, var(--gcb-kit-on-accent));
	cursor: default;
}
/* the current page focused: its ring is drawn inside its fill, in its own number's colour, so it shows whatever the
   section round it is */
:where([data-gcb-kit="pager"]) [data-gcb-kit-page]:where([aria-current="page"]):where(:focus-visible):where(:not([data-gcb-own])) { outline-offset: calc(var(--gcb-kit-focus-offset) * -2); }

/* AN ARROW AT AN END, OR A PAGE THAT CANNOT BE OPENED: faint, and not pressed */
:where([data-gcb-kit="pager"]) :is([data-gcb-kit-page], [data-gcb-kit-page-prev], [data-gcb-kit-page-next]):where([aria-disabled="true"], :disabled):where(:not([data-gcb-own])) { background: transparent; opacity: var(--gcb-kit-disabled); cursor: default; pointer-events: none; }

/* AN ARROW LEFT EMPTY is drawn: a chevron, a mask, so the words' colour paints it. One with anything in it is left alone. */
:where([data-gcb-kit="pager"] :is([data-gcb-kit-page-prev], [data-gcb-kit-page-next]):empty)::before {
	content: ""; flex: none;
	width: var(--gcb-pager-arrow-size, 1.25em); height: var(--gcb-pager-arrow-size, 1.25em);
	background: currentColor;
	-webkit-mask: var(--gcb-pager-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6l-6 6'/%3E%3C/svg%3E")) center / contain no-repeat;
	mask: var(--gcb-pager-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6l-6 6'/%3E%3C/svg%3E")) center / contain no-repeat;
}
:where([data-gcb-kit="pager"] [data-gcb-kit-page-prev]:empty)::before { scale: -1 1; }
:where([data-gcb-kit="pager"]:dir(rtl) [data-gcb-kit-page-prev]:empty)::before { scale: none; }
:where([data-gcb-kit="pager"]:dir(rtl) [data-gcb-kit-page-next]:empty)::before { scale: -1 1; }

/* A GAP: the dots where pages are left out, quieter, as narrow as they are */
:where([data-gcb-kit="pager"] [data-gcb-kit-page-gap]) { flex: none; display: inline-flex; justify-content: center; color: var(--gcb-kit-quiet); user-select: none; }

/* password-input */
/* PASSWORD INPUT: a password box with a show/hide button (the eye) inside its end. A recipe: it goes INSIDE a field
   ([data-gcb-kit="field"]), round its box, so the box ([data-gcb-kit-control]) keeps the field's look, sizes, states
   and error. What this part adds is the eye, the room kept for it, and a note when Caps Lock is on. Its own tokens
   keep the names sites already set (--gcb-password-…, part.json "token_prefix").
   A box and a button are elements a theme styles BY THEIR TAG, so on those a rule here weighs ONE attribute and no
   more (README rule 2), comes after the field's own, and stands aside for one marked data-gcb-own. The eye's states
   (hover, focus, press, off) keep their pseudo-class outside :where, as the accordion's trigger and the close button
   do, so a theme's `button:hover` or `button:focus { outline: none }` does not repaint it. The rest weighs nothing.
   A theme's `input[type="password"] { padding … }` outweighs one attribute; the script measures the box and keeps
   the eye's room when that happens (script.js, fit()). The eye follows the box: its corners and its inset are read
   from the box by the script (--gcb-password-box-corner, --gcb-password-box-pad), the site's field tokens until then.
   The eye is made of the colour of the words, so it sits on any background with nothing set.
   With no script it is the plain password box: no eye is drawn, and one the design wrote is out of sight until the
   script that makes it work is up (data-gcb-kit-ready). */
:where([data-gcb-kit="password-input"]) { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-width: 0; }
[data-gcb-kit="password-input"] > :is(input, [data-gcb-kit-password-toggle]) { grid-area: 1 / 1; } /* mechanic: the eye lies over the end of the box; anything else written in the part falls under them */
[data-gcb-kit="password-input"]:not([data-gcb-kit-ready]) [data-gcb-kit-password-toggle] { display: none; } /* mechanic: no button that does nothing while there is no script */
[data-gcb-kit="password-input"][data-gcb-kit-ready] input::-ms-reveal { display: none; } /* mechanic: one eye only, once ours is up */

/* THE BOX keeps room for the eye at its end: the eye and its inset on both sides */
[data-gcb-kit-control]:where([data-gcb-kit="password-input"][data-gcb-kit-ready] :not([data-gcb-own])) {
	padding-inline-end: var(--gcb-password-eye-room, calc(var(--gcb-password-eye, 32px) + var(--gcb-password-eye-inset, calc(var(--gcb-password-box-pad, var(--gcb-kit-pad-control)) * 0.375)) * 2));
}
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-size="sm"] [data-gcb-kit="password-input"][data-gcb-kit-ready] :not([data-gcb-own])) {
	padding-inline-end: var(--gcb-password-eye-room, calc(var(--gcb-password-eye, 32px) * 0.8 + var(--gcb-password-eye-inset, calc(var(--gcb-password-box-pad, var(--gcb-kit-pad-control)) * 0.375)) * 2));
}
[data-gcb-kit-control]:where([data-gcb-kit="field"][data-size="lg"] [data-gcb-kit="password-input"][data-gcb-kit-ready] :not([data-gcb-own])) {
	padding-inline-end: var(--gcb-password-eye-room, calc(var(--gcb-password-eye, 32px) * 1.2 + var(--gcb-password-eye-inset, calc(var(--gcb-password-box-pad, var(--gcb-kit-pad-control)) * 0.375)) * 2));
}
/* a floating label stops short of the eye, as the typed words do */
[data-gcb-kit-label]:where([data-gcb-kit="field"][data-label="floating"]:has([data-gcb-kit="password-input"][data-gcb-kit-ready]) :not([data-gcb-own])) {
	inset-inline-end: calc(var(--gcb-password-eye-room, calc(var(--gcb-password-eye, 32px) + var(--gcb-password-eye-inset, calc(var(--gcb-password-box-pad, var(--gcb-kit-pad-control)) * 0.375)) * 2)) + var(--gcb-kit-line-w));
}

/* THE EYE: a button in the quieter colour of the words, its corners following the box's (round in a rounded box,
   square in a square one); the words' own colour while the password is shown */
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] :not([data-gcb-own])) {
	appearance: none; position: relative; justify-self: end; display: grid; place-items: center; box-sizing: border-box;
	width: var(--gcb-password-eye, 32px); height: var(--gcb-password-eye, 32px); min-width: 0; min-height: 0;
	margin: 0; margin-inline-end: var(--gcb-password-eye-inset, calc(var(--gcb-password-box-pad, var(--gcb-kit-pad-control)) * 0.375)); padding: 0;
	border: 0; border-radius: var(--gcb-password-eye-radius, min(var(--gcb-kit-radius-full), calc(var(--gcb-password-box-corner, var(--gcb-kit-radius-field)) * 1.6)));
	background: transparent; box-shadow: none; opacity: 1;
	color: var(--gcb-kit-quiet); font: inherit; font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading); letter-spacing: inherit; text-transform: none; text-decoration: none; text-shadow: none; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] :not([data-gcb-own]))::before { content: ""; position: absolute; inset: min(0px, calc((var(--gcb-password-eye, 32px) - var(--gcb-kit-control-h)) / 2)); } /* mechanic: a finger's room round a small eye, as tall as a control */
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] [data-state="visible"]:not([data-gcb-own])) { color: inherit; }
/* a theme's own button states kept off: whatever `button:hover`, `:focus`, `:active` or `:disabled` brings, the eye
   stays itself in every state */
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] :not([data-gcb-own])):is(:hover, :focus, :active, :disabled) {
	padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; opacity: 1; color: var(--gcb-kit-quiet); text-decoration: none; text-shadow: none;
}
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] [data-face="words"]:not([data-gcb-own])):is(:hover, :focus, :active, :disabled) { padding: 0 var(--gcb-kit-gap-s); }
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] [data-state="visible"]:not([data-gcb-own])):is(:hover, :focus, :active, :disabled) { color: inherit; }
/* pointed at: a faint fill and the words' own colour */
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] :not([data-gcb-own], :disabled)):hover { background: var(--gcb-kit-wash); color: inherit; }
/* focused from the keyboard: the site's outline in the accent, as the box's focus is, the accent of the box it sits in;
   on a dark section lifted toward the words, as the field lifts its own */
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] :not([data-gcb-own])):focus-visible {
	outline: var(--gcb-kit-focus-outline); outline-color: var(--gcb-kit-accent); outline-offset: var(--gcb-password-eye-focus-offset, 0);
}
[data-gcb-kit-password-toggle]:where([data-gcb-kit="field"][data-scheme="dark"] [data-gcb-kit="password-input"] :not([data-gcb-own])):focus-visible { outline-color: color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor); }
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] :not([data-gcb-own])):disabled { cursor: not-allowed; }
/* an eye that is a word ("Show" / "Hide") is as wide as its word */
[data-gcb-kit-password-toggle]:where([data-gcb-kit="password-input"] [data-face="words"]:not([data-gcb-own])) {
	width: auto; padding: 0 var(--gcb-kit-gap-s); border-radius: var(--gcb-password-eye-radius, min(var(--gcb-kit-radius-full), var(--gcb-password-box-corner, var(--gcb-kit-radius-field))));
}
/* in a small or a large field the eye follows the box, its corners scaled with it (still round in the default box) */
[data-gcb-kit-password-toggle]:where([data-gcb-kit="field"][data-size="sm"] [data-gcb-kit="password-input"] :not([data-gcb-own], [data-face="words"])) {
	width: calc(var(--gcb-password-eye, 32px) * 0.8); height: calc(var(--gcb-password-eye, 32px) * 0.8);
	border-radius: var(--gcb-password-eye-radius, min(var(--gcb-kit-radius-full), calc(var(--gcb-password-box-corner, var(--gcb-kit-radius-field)) * 1.28)));
}
[data-gcb-kit-password-toggle]:where([data-gcb-kit="field"][data-size="lg"] [data-gcb-kit="password-input"] :not([data-gcb-own], [data-face="words"])) {
	width: calc(var(--gcb-password-eye, 32px) * 1.2); height: calc(var(--gcb-password-eye, 32px) * 1.2);
	border-radius: var(--gcb-password-eye-radius, min(var(--gcb-kit-radius-full), calc(var(--gcb-password-box-corner, var(--gcb-kit-radius-field)) * 1.92)));
}

/* ITS TWO FACES: the eye while hidden, the struck-through eye while shown. Drawn by the script in an empty button;
   a design's own (its icons, or the words Show and Hide) are marked the same way and swap the same way. */
:where([data-gcb-kit="password-input"] [data-gcb-kit-password-toggle] svg) { display: block; width: 62.5%; height: 62.5%; pointer-events: none; }
[data-gcb-kit="password-input"] [data-gcb-kit-password-toggle][data-state="visible"] [data-gcb-kit-password-show] { display: none; } /* mechanic: the face for the other state is out of sight */
[data-gcb-kit="password-input"] [data-gcb-kit-password-toggle]:not([data-state="visible"]) [data-gcb-kit-password-hide] { display: none; } /* mechanic: the face for the other state is out of sight */

/* CAPS LOCK: a short note under the box while it is on and the box is being typed in. Empty, it takes no room. The
   site's warning colour, lifted toward the words so it reads on a light section and a dark one alike. */
:where([data-gcb-kit="password-input"] [data-gcb-kit-password-caps]) {
	margin: 0; color: color-mix(in srgb, var(--gcb-kit-warning) 70%, currentColor);
	font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
}
:where([data-gcb-kit="password-input"] [data-gcb-kit-password-caps]:not(:empty)) { margin-block-start: calc(var(--gcb-kit-gap-s) * 0.75); }

/* person */
/* PERSON: a picture, a name, a role, a few words, links. A recipe: as a card it IS a card (parts/card) with a person's
   pieces in it, and its round face is a picture (parts/picture); this file only adds what a person needs on top of
   those two. As a line (data-layout="line") it is a round face with the name and the role beside it. No script.
   What the card already does (the title, the portrait's shape) a person sets through the card's own tokens on its
   root, so it is the same whichever of the stylesheets is read first. The name in a line and the links are elements a
   theme styles BY THEIR TAG (a p, an a), so on those a rule here weighs ONE class and no more (README rule 2) and stands
   aside for one marked data-gcb-own. The rest weighs nothing. Every value is a token: the person's own first, the
   list's after. */

/* THE ROOT: the card inside fills it, so people in a row are one height. The card's title (the name), its meta (the
   role) and its picture's shape are the person's, said through the card's tokens. */
:where([data-gcb-kit="person"]) {
	display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
	--gcb-card-title-size: var(--gcb-person-name-size, var(--gcb-kit-text-section));
	--gcb-card-ratio: var(--gcb-person-ratio, 4 / 5);
	--gcb-card-meta: var(--gcb-person-role, var(--gcb-kit-quiet));
}

/* A CARD'S PORTRAIT: taller than it is wide (said twice: the card reads it from the root above, and here), held on
   the face */
:where([data-gcb-kit="person"] .gcb-card__media) { aspect-ratio: var(--gcb-person-ratio, 4 / 5); }
:where([data-gcb-kit="person"] .gcb-card__media > img, [data-gcb-kit="person"] .gcb-card__media > picture > img) { object-position: var(--gcb-person-at, 50% 25%); }

/* A ROUND FACE (a picture with data-corners="circle"): one size, never squeezed. It is held by its most width, so it
   does not matter which of the two stylesheets is read first. */
:where([data-gcb-kit="person"] [data-gcb-kit="picture"]) { flex: none; max-inline-size: var(--gcb-person-face, 6rem); }
/* the room under a round face in a card: the picture's own look takes its margins off at no weight, so this weighs one
   attribute, or it would hold only when read after the picture's */
[data-gcb-kit="person"] :where(.gcb-card__body > [data-gcb-kit="picture"]) { margin-block-end: var(--gcb-kit-gap-s); }

/* NO PICTURE YET: the blank of its shape (the card's or the picture's) holds the drawing of a person, in a line made of
   the colour of the words, so it reads as somebody to come and shows on any background */
:where([data-gcb-kit="person"] .gcb-card__media:not(:has(*)), [data-gcb-kit="person"] [data-gcb-kit="picture"]:not(:has(*)))::before {
	content: ""; display: block; block-size: 100%;
	background: var(--gcb-kit-rule);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 84'%3E%3Ccircle cx='50' cy='30' r='19'/%3E%3Cpath d='M8 84C8 63 27 55 50 55S92 63 92 84Z'/%3E%3C/svg%3E") 50% 100% / 76% auto no-repeat; /* mechanic: the drawing, a head over shoulders, at the foot of the blank */
}

/* CENTRED (data-align="center"): the face, the words and the links down the middle */
:where([data-gcb-kit="person"][data-align="center"] .gcb-card__body) { align-items: center; text-align: center; }
:where([data-gcb-kit="person"][data-align="center"] .gcb-card__foot) { justify-content: center; }

/* THE NAME. In a card it is the card's title, and the card does it (its size is --gcb-person-name-size, set on the
   root above). Anywhere else (the first of the two lines of a line) it is a p or an a, so it weighs one class. */
.gcb-person__name:where(:not(.gcb-card__title, [data-gcb-own])) {
	margin: 0; padding: 0; color: inherit; text-decoration: none;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-person-name-size, var(--gcb-kit-text-body)); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
}
.gcb-person__name > :where(a:not([class], [data-gcb-own])) { color: inherit; text-decoration: none; }
/* a name is a heading: not underlined under the pointer unless the site chose it (--gcb-kit-hover-heading) */
.gcb-person__name:where(a:not([data-gcb-own]):hover), .gcb-person__name > :where(a:not([class], [data-gcb-own]):hover) { text-decoration-line: var(--gcb-kit-hover-heading); }
.gcb-person__name:where(a:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* THE ROLE: quieter, made of the colour of the words, so it shows on any background */
:where(.gcb-person__role) { margin: 0; font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body); color: var(--gcb-person-role, var(--gcb-kit-quiet)); }

/* THE LINKS, in the card's foot. They have a class, so the card's rules for a plain link do not reach them; these say
   the same. In words: the accent on a lifted card, underlined when hovered; on a card that takes its section's colour
   or lies on a picture, the words' colour, underlined until hovered. The focus mark is the site's, and the colour of
   the words where the accent would not show. */
.gcb-person__link:where(:not([data-gcb-own])) {
	color: var(--gcb-person-link, var(--gcb-kit-accent)); text-decoration: none; text-decoration-thickness: var(--gcb-kit-line-w);
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
}
.gcb-person__link:where(:not([data-gcb-own]):hover) { color: var(--gcb-person-link, var(--gcb-kit-accent-hover)); text-decoration: underline; }
.gcb-person__link:where(:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
.gcb-person__link:where(:is([data-look="outline"], [data-look="plain"], [data-layout="over"]) *):where(:not([data-gcb-own])) { color: var(--gcb-person-link, currentColor); text-decoration: underline; }
.gcb-person__link:where(:is([data-look="outline"], [data-look="plain"], [data-layout="over"]) *):where(:not([data-gcb-own]):hover) { color: var(--gcb-person-link, currentColor); text-decoration: none; }
.gcb-person__link:where(:is([data-look="outline"], [data-look="plain"], [data-layout="over"]) *):where(:focus-visible) { outline-color: currentColor; }
/* AS AN ICON (data-icon: a link holding only a drawing, which says who and where in aria-label): a faint round made
   of the colour of the words, a little stronger when hovered */
.gcb-person__link:where([data-icon]:not([data-gcb-own])) {
	display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; padding: 0;
	inline-size: var(--gcb-person-link-size, var(--gcb-kit-pill-h)); block-size: var(--gcb-person-link-size, var(--gcb-kit-pill-h));
	border-radius: var(--gcb-kit-radius-full);
	color: inherit; text-decoration: none;
	background: var(--gcb-kit-wash);
	transition: background-color var(--gcb-kit-dur-feedback);
}
.gcb-person__link:where([data-icon]:not([data-gcb-own]):hover) { color: inherit; text-decoration: none; background: var(--gcb-kit-rule); }
:where(.gcb-person__link[data-icon] > svg) { flex: none; inline-size: var(--gcb-person-icon, 1.125rem); block-size: var(--gcb-person-icon, 1.125rem); }

/* A LINE: the face, then the name over the role. For the foot of a quote, the top of a post. */
:where([data-gcb-kit="person"][data-layout="line"]) {
	display: flex; align-items: center; text-align: start;
	gap: var(--gcb-person-gap, var(--gcb-kit-gap));
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); font-style: normal; line-height: var(--gcb-kit-leading);
}
:where([data-gcb-kit="person"][data-layout="line"] [data-gcb-kit="picture"]) { max-inline-size: var(--gcb-person-face, var(--gcb-kit-control-h)); }
:where(.gcb-person__words) { display: flex; flex-direction: column; min-width: 0; }

/* picture */
/* PICTURE: one picture shown the way it is wanted. The root is the box that cuts it; the img is inside. No script.
   As written (no data-ratio) the picture is whole, in its own shape, as wide as its column (never past its own size).
   With data-ratio it is cut to a shape and covers it, held on the point to keep in view (--gcb-picture-at) and zoomed
   on that point (--gcb-picture-zoom). With nothing inside it is a soft blank of its shape.
   WEIGHT (README rule 2): a div root's look weighs nothing, so a class written on it wins. A figure or an a root, and
   the img, are styled BY THEIR TAG by a theme that is not reset, so each rule says it twice: of no weight for a div,
   and of ONE attribute for a figure or an a (a selector list weighs only the selector that matches). The img's rules
   weigh one attribute: the shape it sits in is tested inside :where. All of it stands aside for data-gcb-own.
   Every value is a token: the picture's own first, the list's after. */
:where([data-gcb-kit="picture"]:not(figure, a)),
[data-gcb-kit="picture"]:where(figure, a):where(:not([data-gcb-own])) {
	display: block; box-sizing: border-box; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
	color: inherit; text-decoration: none; /* a link round a picture brings no colour of its own: its focus mark is the words' colour */
	inline-size: var(--gcb-picture-size, auto);
	overflow: hidden; /* mechanic: the box cuts the picture to its shape, its corners and its zoom */
	min-height: 0; /* mechanic: a holder that is itself held to the screen (a card) can make it shorter */
}
:where([data-gcb-kit="picture"] > picture) { display: contents; } /* mechanic: a picture element's img is laid out as the box's own */

/* THE SHAPES. Any other data-ratio, and data-ratio with nothing after it, reads --gcb-picture-ratio from the box round
   it (4 by 3 if none). */
:where([data-gcb-kit="picture"][data-ratio="4/5"]) { --gcb-picture-ratio: 4/5; }
:where([data-gcb-kit="picture"][data-ratio="1/1"]) { --gcb-picture-ratio: 1/1; }
:where([data-gcb-kit="picture"][data-ratio="4/3"]) { --gcb-picture-ratio: 4/3; }
:where([data-gcb-kit="picture"][data-ratio="3/2"]) { --gcb-picture-ratio: 3/2; }
:where([data-gcb-kit="picture"][data-ratio="16/9"]) { --gcb-picture-ratio: 16/9; }
:where([data-gcb-kit="picture"][data-ratio="21/9"]) { --gcb-picture-ratio: 21/9; }
:where([data-gcb-kit="picture"][data-ratio="3/4"]) { --gcb-picture-ratio: 3/4; }
:where([data-gcb-kit="picture"][data-ratio="2/3"]) { --gcb-picture-ratio: 2/3; }
:where([data-gcb-kit="picture"][data-ratio="9/16"]) { --gcb-picture-ratio: 9/16; }
:where([data-gcb-kit="picture"][data-corners="circle"]:not([data-ratio])) { --gcb-picture-ratio: 1/1; }

/* CUT TO A SHAPE (a shape is asked for, it is a circle, or there is no picture yet). Never taller than the screen:
   it keeps its width (said outright, or the most height would make it narrower through its shape) and is cut
   shorter, round the point kept in view. */
:where([data-gcb-kit="picture"]:not(figure, a):is([data-ratio], [data-corners="circle"], :not(:has(*)))),
[data-gcb-kit="picture"]:where(figure, a):where(:not([data-gcb-own])):where([data-ratio], [data-corners="circle"], :not(:has(*))) {
	inline-size: var(--gcb-picture-size, 100%);
	aspect-ratio: var(--gcb-picture-ratio, 4/3);
	max-height: var(--gcb-picture-max, 88svh);
}
/* a circle is a face or a mark: a small size of its own unless given one, and it keeps it in a row beside words */
:where([data-gcb-kit="picture"]:not(figure, a)[data-corners="circle"]),
[data-gcb-kit="picture"]:where(figure, a):where(:not([data-gcb-own])):where([data-corners="circle"]) {
	inline-size: min(100%, var(--gcb-picture-size, 6rem));
	flex-shrink: 0; /* mechanic: a row of a face and a name squeezes the name, not the face */
}

/* CORNERS: the site's, or a circle. As written they are square: the box it sits in rounds it. */
:where([data-gcb-kit="picture"]:not(figure, a)[data-corners="round"]),
[data-gcb-kit="picture"]:where(figure, a):where(:not([data-gcb-own])):where([data-corners="round"]) { border-radius: var(--gcb-picture-radius, var(--gcb-kit-radius-card)); }
:where([data-gcb-kit="picture"]:not(figure, a)[data-corners="circle"]),
[data-gcb-kit="picture"]:where(figure, a):where(:not([data-gcb-own])):where([data-corners="circle"]) {
	border-radius: 50%; /* mechanic: a circle, or an oval when its shape is not square (a pill's 999px would be a stadium) */
}

/* THE BLANK: no picture yet. A faint fill made of the colour of the words, so it shows on any background. */
:where([data-gcb-kit="picture"]:not(figure, a):not(:has(*))),
[data-gcb-kit="picture"]:where(figure, a):where(:not([data-gcb-own])):where(:not(:has(*))) { background: var(--gcb-picture-blank, var(--gcb-kit-wash)); }

/* THE PICTURE, WHOLE: in its own shape, as wide as the box, never past its own size and never taller than the
   screen. Its corners are its own (the box's, inherited), so a picture made narrower is rounded where it is seen. */
[data-gcb-kit="picture"] :where(img:not([data-gcb-own])):where([data-gcb-kit="picture"] > *, [data-gcb-kit="picture"] > picture > *) {
	display: block; box-sizing: border-box; margin: 0 auto; padding: 0; border: 0; border-radius: inherit;
	background: none; box-shadow: none;
	/* mechanic: given its own shape (--gcb-picture-own) it is as wide as the most height allows; not given it, this is
	   no width at all (auto), so the browser keeps the picture in its shape inside the width and the height below */
	width: calc(var(--gcb-picture-max, 88svh) * var(--gcb-picture-own));
	max-width: 100%; height: auto;
	max-height: var(--gcb-picture-max, 88svh);
	object-fit: contain;
	object-position: var(--gcb-picture-at, 50% 50%);
}
/* THE PICTURE, CUT: it covers its box, held on its point, and can only be zoomed in (out would leave gaps) */
[data-gcb-kit="picture"] :where(img:not([data-gcb-own])):where(:is([data-ratio], [data-corners="circle"])[data-gcb-kit="picture"] > *, :is([data-ratio], [data-corners="circle"])[data-gcb-kit="picture"] > picture > *) {
	width: 100%; height: 100%; max-height: none; border-radius: 0;
	object-fit: cover;
	transform-origin: var(--gcb-picture-at, 50% 50%);
	scale: clamp(1, var(--gcb-picture-zoom, 1), 3);
}
/* data-fit="contain": the whole picture fitted inside the shape, not cut (a logo in a square) */
[data-gcb-kit="picture"] :where(img:not([data-gcb-own])):where([data-fit="contain"][data-gcb-kit="picture"] > *, [data-fit="contain"][data-gcb-kit="picture"] > picture > *) { object-fit: contain; }

/* a picture that is a link: the site's keyboard mark, in the colour of the words so it shows on any background */
[data-gcb-kit="picture"]:where(a):where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* BLENDS INTO THE PAGE (Mark, 2026-11-15: "putting an image in rounded corners like that means 'click me - big card - i'm
   a product'. Images for decoration are full width ... or they choose image colours that blend in with the color of
   the next section"). data-blend="top | bottom | both" fades that edge of the picture to nothing, so the section's own
   colour comes through and the picture melts into the band it sits in instead of sitting on it in a frame.
   --gcb-picture-blend is how far the fade reaches (35%). */
[data-gcb-kit="picture"][data-blend="top"] img { -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--gcb-picture-blend, 35%)); mask-image: linear-gradient(to bottom, transparent, black var(--gcb-picture-blend, 35%)); }
[data-gcb-kit="picture"][data-blend="bottom"] img { -webkit-mask-image: linear-gradient(to top, transparent, black var(--gcb-picture-blend, 35%)); mask-image: linear-gradient(to top, transparent, black var(--gcb-picture-blend, 35%)); }
[data-gcb-kit="picture"][data-blend="both"] img { -webkit-mask-image: linear-gradient(to bottom, transparent, black var(--gcb-picture-blend, 35%), black calc(100% - var(--gcb-picture-blend, 35%)), transparent); mask-image: linear-gradient(to bottom, transparent, black var(--gcb-picture-blend, 35%), black calc(100% - var(--gcb-picture-blend, 35%)), transparent); }
/* LEADS FROM ONE BAND INTO THE NEXT (Mark, 2026-11-16: "It's all about how you break sections up or let them lead into
   the others"). A blended picture standing on a seam can carry its own ground behind the faded edges: the colour of
   the band above (--gcb-picture-above) at its top and of the band below (--gcb-picture-below) at its bottom, so it fades
   out of one and into the other. Left unset, the faded edges show whatever the picture sits on. */
:where([data-gcb-kit="picture"][data-blend]) { background: linear-gradient(to bottom, var(--gcb-picture-above, transparent), var(--gcb-picture-below, transparent)); }


/* pin-input */
/* PIN INPUT: a short code in a row of boxes, a character each. Every value is a token: the part's own first
   (--gcb-pin-…), the site's after (tokens/README.md). As written it is a label over ONE real <input>; with no script
   that input is the whole part, a box as wide as the row of boxes would be. Its script puts that input out of sight (it
   stays the form's) and draws the row: [data-gcb-kit-pin-control] holding a [data-gcb-kit-pin-box] per character.
   An input is an element a theme styles by its tag, so a box's look weighs ONE attribute and no more (README rule 2):
   it beats a theme's `input { border … }` and stands aside whole for a box marked data-gcb-own. Everything else
   weighs nothing. A box's line, the separator, the help and the placeholder are made of the colour of the words, so it
   sits on any background with nothing set. */
:where([data-gcb-kit="pin-input"]) {
	display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%;
	gap: calc(var(--gcb-kit-gap-s) * 0.75);
	font-family: var(--gcb-kit-font); line-height: var(--gcb-kit-leading);
}
:where([data-gcb-kit="pin-input"][data-align="center"]) { text-align: center; }

/* THE LABEL, above the boxes */
:where([data-gcb-kit="pin-input"] [data-gcb-kit-label]) {
	display: block; margin: 0; padding: 0; color: inherit;
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
}

/* THE ROW: boxes at their size, narrower together when the part is narrower than the row; never wrapped */
:where([data-gcb-kit="pin-input"] [data-gcb-kit-pin-control]:not([data-gcb-own])) {
	display: flex; align-items: center; min-width: 0; max-width: 100%;
	gap: var(--gcb-pin-gap, var(--gcb-kit-gap-s));
}
:where([data-gcb-kit="pin-input"][data-align="center"] [data-gcb-kit-pin-control]:not([data-gcb-own])) { justify-content: center; }
[data-gcb-kit="pin-input"] [data-gcb-kit-pin-control] { direction: ltr; } /* mechanic: a code reads left to right in any language */

/* A BOX, and the one input while there is no script: the same line, corners, fill and character */
[data-gcb-kit-pin-box]:where(:not([data-gcb-own])),
[data-gcb-kit="pin-input"] :where(input:not([data-gcb-own], [data-gcb-kit-pin-box])) {
	appearance: none; box-sizing: border-box; display: block; min-width: 0; margin: 0; padding: 0;
	height: var(--gcb-pin-size, var(--gcb-kit-control-h)); min-height: 0;
	border: var(--gcb-kit-line-w) solid var(--gcb-pin-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-pin-radius, var(--gcb-kit-radius-field));
	background: var(--gcb-pin-ground, transparent);
	box-shadow: none; color: inherit; caret-color: var(--gcb-kit-accent);
	font: inherit; font-size: var(--gcb-pin-text, var(--gcb-kit-text-section)); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	font-variant-numeric: tabular-nums; letter-spacing: normal; text-transform: none; text-align: center;
	transition: border-color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback);
}
[data-gcb-kit-pin-box]:where(:not([data-gcb-own])) {
	flex: 0 1 calc(var(--gcb-pin-size, var(--gcb-kit-control-h)) * var(--gcb-pin-ratio, 1));
	width: calc(var(--gcb-pin-size, var(--gcb-kit-control-h)) * var(--gcb-pin-ratio, 1));
}
/* with no script: one box, as wide as the row of boxes would be (--gcb-pin-count of them, 6 unless set, and the spaces
   between them), the code typed along it */
[data-gcb-kit="pin-input"] :where(input:not([data-gcb-own], [data-gcb-kit-pin-box])) {
	width: calc(var(--gcb-pin-size, var(--gcb-kit-control-h)) * var(--gcb-pin-ratio, 1) * var(--gcb-pin-count, 6) + var(--gcb-pin-gap, var(--gcb-kit-gap-s)) * (var(--gcb-pin-count, 6) - 1));
	max-width: 100%;
	padding: 0 var(--gcb-kit-pad-control);
}
[data-gcb-kit="pin-input"][data-align="center"] :where(input:not([data-gcb-own], [data-gcb-kit-pin-box])) { margin-inline: auto; }
[data-gcb-kit-pin-box]:where(:not([data-gcb-own]))::placeholder,
[data-gcb-kit="pin-input"] :where(input:not([data-gcb-own], [data-gcb-kit-pin-box]))::placeholder {
	color: var(--gcb-kit-quiet); opacity: 1; font-weight: var(--gcb-kit-weight-body); font-size: var(--gcb-pin-text, var(--gcb-kit-text-section));
}
/* hidden as typed (data-mask, or type="password"): the dot that stands for a character is drawn half as big again, so a
   filled box never reads as the small mark in an empty one */
[data-gcb-kit-pin-box]:where([type="password"]:not([data-gcb-own])),
[data-gcb-kit="pin-input"] :where(input[type="password"]:not([data-gcb-own], [data-gcb-kit-pin-box])) { font-size: calc(var(--gcb-pin-text, var(--gcb-kit-text-section)) * 1.5); }
/* the character a focused box selects (so typing replaces it) is marked by the box's own ring, not the browser's blue */
[data-gcb-kit-pin-box]:where(:not([data-gcb-own]))::selection { background: transparent; color: inherit; }

/* ITS STATES. A filled box, and a hovered one: a firmer line (--gcb-pin-line-filled; unless set, the empty line taken
   most of the way to the words' colour, so it stays firmer whatever --gcb-pin-line is). Typed in: the site's mark for a box to type in (the
   accent's line and the soft ring); the see-through outline is what a forced-colours screen draws instead. */
[data-gcb-kit-pin-box]:where([data-filled]:not([data-gcb-own])),
[data-gcb-kit-pin-box]:where(:not([data-gcb-own]):hover:not(:disabled)),
[data-gcb-kit="pin-input"] :where(input:not([data-gcb-own], [data-gcb-kit-pin-box]):hover:not(:disabled)) { border-color: var(--gcb-pin-line-filled, color-mix(in srgb, var(--gcb-pin-line, var(--gcb-kit-rule-strong)) 55%, currentColor)); }
[data-gcb-kit-pin-box]:where(:not([data-gcb-own]):focus),
[data-gcb-kit="pin-input"] :where(input:not([data-gcb-own], [data-gcb-kit-pin-box]):focus) {
	outline: var(--gcb-kit-line-w) solid transparent;
	border-color: var(--gcb-kit-accent);
	box-shadow: var(--gcb-kit-focus-ring);
}
/* right: data-valid on the root ("code accepted"), the success colour on every line and on the help */
[data-gcb-kit-pin-box]:where([data-gcb-kit="pin-input"][data-valid] [data-gcb-kit-pin-box]:not([data-gcb-own])),
[data-gcb-kit="pin-input"] :where([data-gcb-kit="pin-input"][data-valid] input:not([data-gcb-own], [data-gcb-kit-pin-box])) { border-color: var(--gcb-kit-success); }
/* wrong: aria-invalid="true" on the input (the script says it on every box) */
[data-gcb-kit-pin-box]:where([aria-invalid="true"]:not([data-gcb-own])),
[data-gcb-kit="pin-input"] :where(input[aria-invalid="true"]:not([data-gcb-own], [data-gcb-kit-pin-box])) { border-color: var(--gcb-kit-error); }
[data-gcb-kit-pin-box]:where([aria-invalid="true"]:not([data-gcb-own]):focus),
[data-gcb-kit="pin-input"] :where(input[aria-invalid="true"]:not([data-gcb-own], [data-gcb-kit-pin-box]):focus) { box-shadow: var(--gcb-kit-error-ring); }
/* off: the whole part quiet, never the pointer */
:where([data-gcb-kit="pin-input"]:has(input:disabled)) { opacity: var(--gcb-kit-disabled); }
[data-gcb-kit-pin-box]:where(:disabled:not([data-gcb-own])),
[data-gcb-kit="pin-input"] :where(input:disabled:not([data-gcb-own], [data-gcb-kit-pin-box])) { cursor: not-allowed; }
/* read-only: there to be read, a faint fill says it is not for typing */
[data-gcb-kit-pin-box]:where([readonly]:not([data-gcb-own])),
[data-gcb-kit="pin-input"] :where(input[readonly]:not([data-gcb-own], [data-gcb-kit-pin-box])) { background: var(--gcb-pin-ground, var(--gcb-kit-wash)); }

/* BETWEEN GROUPS (data-group): the separator's words if it has any, and a wider space either way */
:where([data-gcb-kit="pin-input"] [data-gcb-kit-pin-separator]:not([data-gcb-own])) {
	flex: none;
	margin-inline: calc((var(--gcb-pin-group-gap, calc(var(--gcb-pin-gap, var(--gcb-kit-gap-s)) * 3)) - var(--gcb-pin-gap, var(--gcb-kit-gap-s)) * 2) / 2);
	color: var(--gcb-kit-quiet); font-size: var(--gcb-pin-text, var(--gcb-kit-text-section));
}

/* THE WORDS UNDER IT: help, and what went wrong in its place */
:where([data-gcb-kit="pin-input"] [data-gcb-kit-hint]) { margin: 0; color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); }
:where([data-gcb-kit="pin-input"][data-valid] [data-gcb-kit-hint]) { color: var(--gcb-kit-success); }
:where([data-gcb-kit="pin-input"] [data-gcb-kit-error-text]) { margin: 0; color: var(--gcb-kit-error); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-control); }
[data-gcb-kit="pin-input"] [data-gcb-kit-error-text]:empty { display: none; } /* mechanic: nothing wrong, nothing shown */
[data-gcb-kit="pin-input"]:has([data-gcb-kit-error-text]:not(:empty)) [data-gcb-kit-hint] { display: none; } /* mechanic: the error takes the help's place */

[data-gcb-kit="pin-input"][data-gcb-kit-ready] { position: relative; } /* mechanic: holds the input that is out of sight */
[data-gcb-kit="pin-input"][data-gcb-kit-ready] [data-gcb-kit-pin-value] { position: absolute; inset: auto auto 0 0; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; } /* mechanic: the real input is the form's now, out of sight but still checked and sent; the boxes stand in for it */
[data-gcb-kit="pin-input"]:not([data-gcb-kit-ready]) [data-gcb-kit-pin-control] { display: none; } /* mechanic: a drawn row is empty until the script fills it */

/* price-table */
/* PRICE TABLE: plans side by side. A recipe: each plan is a card, what it includes is a list, its action is the
   site's button, "recommended" is a badge, and a monthly / yearly switch is the segmented part showing panes. Those
   parts draw themselves; this file only lays the plans out, sets the price, and marks the recommended plan.
   Every value is a token: the part's own first, the site's after (tokens/README.md). No script.
   WEIGHT (README rule 2): everything weighs nothing, except the price line (a <p>), which a theme styles by its tag:
   it weighs ONE attribute and stands aside for [data-gcb-own]. The plan's name is the card's title, weighted by card. */
:where([data-gcb-kit="price-table"]) {
	display: grid; box-sizing: border-box; min-width: 0;
	gap: var(--gcb-price-table-gap, calc(var(--gcb-kit-gap) * 2));
	font-family: var(--gcb-kit-font);
	/* a plan is roomier than a card in a grid of posts: the card's own tokens, set here for the plans inside */
	--gcb-card-pad: var(--gcb-kit-pad-panel);
	--gcb-card-gap: var(--gcb-kit-gap);
}
/* THE SWITCH (monthly / yearly): the segmented part, in the middle over the plans */
:where([data-gcb-kit="price-table"] > [data-gcb-kit="segmented"]) { justify-self: center; }

/* THE PLANS: as many across as fit at --gcb-price-table-min each, sharing the width; one height, so their buttons
   line up (the card keeps its foot at the bottom). It measures its own width, not the screen's. */
:where([data-gcb-kit="price-table"] > [data-gcb-kit-plans]) {
	display: grid; align-items: stretch; min-width: 0;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--gcb-price-table-min, 16rem)), 1fr));
	gap: var(--gcb-price-table-gap, calc(var(--gcb-kit-gap) * 2));
	width: 100%; justify-self: center;
}
/* A FEW PLANS IN A WIDE BOX: no plan grows past --gcb-price-table-max; the row of them sits in the middle. Counted up to
   four (the most a row is for); five or more are left to the grid. */
:where([data-gcb-kit="price-table"] > [data-gcb-kit-plans]:has(> :last-child:nth-child(1))) {
	max-width: max(var(--gcb-price-table-min, 16rem), var(--gcb-price-table-max, 26rem));
}
:where([data-gcb-kit="price-table"] > [data-gcb-kit-plans]:has(> :last-child:nth-child(2))) {
	max-width: calc(max(var(--gcb-price-table-min, 16rem), var(--gcb-price-table-max, 26rem)) * 2 + var(--gcb-price-table-gap, calc(var(--gcb-kit-gap) * 2)));
}
:where([data-gcb-kit="price-table"] > [data-gcb-kit-plans]:has(> :last-child:nth-child(3))) {
	max-width: calc(max(var(--gcb-price-table-min, 16rem), var(--gcb-price-table-max, 26rem)) * 3 + var(--gcb-price-table-gap, calc(var(--gcb-kit-gap) * 2)) * 2);
}
:where([data-gcb-kit="price-table"] > [data-gcb-kit-plans]:has(> :last-child:nth-child(4))) {
	max-width: calc(max(var(--gcb-price-table-min, 16rem), var(--gcb-price-table-max, 26rem)) * 4 + var(--gcb-price-table-gap, calc(var(--gcb-kit-gap) * 2)) * 3);
}

/* THE RECOMMENDED PLAN: data-featured on its card. A line round it that takes no room, so its words stay level with
   its neighbours'. On a lifted card it is the accent; on an outline or plain card, which take the colour of the
   section they are in, it is the colour of the words, so it shows on any background. */
:where([data-gcb-kit="price-table"] [data-gcb-kit="card"][data-featured]) {
	outline: var(--gcb-price-table-mark, calc(var(--gcb-kit-line-w) * 2) solid var(--gcb-kit-accent));
	outline-offset: calc(var(--gcb-kit-line-w) * -1);
}
:where([data-gcb-kit="price-table"] [data-gcb-kit="card"][data-featured]:is([data-look="outline"], [data-look="plain"])) {
	outline: var(--gcb-price-table-mark, calc(var(--gcb-kit-line-w) * 2) solid currentColor);
}

/* THE HEAD: the plan's name with its badge at the other end. Every head is one height, badge or none, so the prices
   under them are level. */
:where([data-gcb-kit="price-table"] [data-gcb-kit-head]) {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-width: 0;
	gap: var(--gcb-kit-gap-s);
	min-height: var(--gcb-kit-pill-h);
}

/* THE NAME is the card's own title (.gcb-card__title): the card sets it, at --gcb-card-title-size, whatever the
   theme's headings are. Nothing of this part's. */

/* THE PRICE: a large figure, its period beside it on the same baseline, quieter. */
[data-gcb-kit-price]:where([data-gcb-kit="price-table"] *):where(:not([data-gcb-own])) {
	display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; padding: 0;
	gap: 0 var(--gcb-kit-gap-s);
}
:where([data-gcb-kit="price-table"] [data-gcb-kit-amount]) {
	font-size: var(--gcb-price-table-amount, calc(var(--gcb-kit-text-title) * 2));
	font-weight: var(--gcb-kit-weight-title);
	line-height: var(--gcb-price-table-leading, 1.1); font-variant-numeric: tabular-nums;
	letter-spacing: var(--gcb-kit-tracking);
}
:where([data-gcb-kit="price-table"] [data-gcb-kit-period]) { font-size: var(--gcb-kit-text-meta); color: var(--gcb-kit-quiet); }
/* A PRICE IT WAS (data-gcb-kit-was, after the period, in words: "was <s>£39</s>"): quiet, the old figure struck */
:where([data-gcb-kit="price-table"] [data-gcb-kit-was]) { font-size: var(--gcb-kit-text-meta); color: var(--gcb-kit-quiet); }
:where([data-gcb-kit="price-table"] [data-gcb-kit-was] s) { text-decoration-thickness: var(--gcb-kit-line-w); }

/* WHAT IS NOT IN A PLAN: data-gcb-kit-off on a row of the list. Quieter, its mark with it. */
:where([data-gcb-kit="price-table"] [data-gcb-kit-off]) { color: var(--gcb-kit-quiet); }

/* progress */
/* PROGRESS: how far toward a goal, as a bar (the default) or a ring (data-shape="circle", or "gauge" for half of one).
   Every value is a token: the part's own first, the list's after (tokens/README.md). A look weighs nothing (:where),
   so a class the design writes on any of these elements wins. The one exception is its words, which a theme styles BY
   THEIR TAG (README rule 2: a p, a heading): that rule weighs one attribute, so a theme's `h3 { margin: … }` does not
   push the bar away from its words, and it stands aside for an element the design marked data-gcb-own.
   The track is made of the colour of the words, so it sits on any background. The one number the look reads is
   --percent (0 to 100) on the root: written by the script, or by hand on a page with no script. */
:where([data-gcb-kit="progress"]) { display: grid; gap: var(--gcb-progress-gap, var(--gcb-kit-gap-s)); min-width: 0; font-variant-numeric: tabular-nums; }
[data-gcb-kit="progress"] :where(p, h1, h2, h3, h4, h5, h6):where(:not([data-gcb-own])) { margin: 0; }

/* A LABEL AND ITS FIGURE on one line: the label at the start, the figure at the end */
:where([data-gcb-kit="progress"] [data-gcb-kit-progress-head]) { display: flex; align-items: baseline; justify-content: space-between; gap: var(--gcb-kit-gap); min-width: 0; }
:where([data-gcb-kit="progress"] [data-gcb-kit-progress-figure]) { flex: none; font-weight: var(--gcb-kit-weight-control); }

/* ITS COLOUR: data-tone="success | warning | info | error", on the part or on one fill of several, names a status
   colour of the site's and the words that go on it. Left out it is the site's accent. --gcb-progress-fill and
   --gcb-progress-on-fill set on the part are any other pair. */
:where([data-gcb-kit="progress"][data-tone="success"], [data-gcb-kit="progress"] [data-gcb-kit-progress-fill][data-tone="success"]) { --gcb-progress-fill: var(--gcb-kit-success); --gcb-progress-on-fill: var(--gcb-kit-on-success); }
:where([data-gcb-kit="progress"][data-tone="warning"], [data-gcb-kit="progress"] [data-gcb-kit-progress-fill][data-tone="warning"]) { --gcb-progress-fill: var(--gcb-kit-warning); --gcb-progress-on-fill: var(--gcb-kit-on-warning); }
:where([data-gcb-kit="progress"][data-tone="info"], [data-gcb-kit="progress"] [data-gcb-kit-progress-fill][data-tone="info"]) { --gcb-progress-fill: var(--gcb-kit-info); --gcb-progress-on-fill: var(--gcb-kit-on-info); }
:where([data-gcb-kit="progress"][data-tone="error"], [data-gcb-kit="progress"] [data-gcb-kit-progress-fill][data-tone="error"]) { --gcb-progress-fill: var(--gcb-kit-error); --gcb-progress-on-fill: var(--gcb-kit-on-error); }

/* THE BAR: a track, and in it what is done. Its corners are the site's field corners: a pill on a thin bar out of the
   box, square on a site whose corners are square. */
:where([data-gcb-kit="progress"]:not([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-bar]) {
	display: flex; box-sizing: border-box; overflow: hidden; width: 100%;
	min-width: var(--gcb-progress-min-w, 48px);
	height: var(--gcb-progress-h, 8px);
	border-radius: var(--gcb-progress-radius, var(--gcb-kit-radius-field));
	background: var(--gcb-progress-track, var(--gcb-kit-rule));
}
/* the fill's far end is rounded as the track is; its near end is square and cut by the track's own corners, so a
   small share is a clean sliver, never a squashed blob */
:where([data-gcb-kit="progress"]:not([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-fill]) {
	display: block; flex: none; box-sizing: border-box; min-width: 0; overflow: hidden;
	border-radius: 0; border-start-end-radius: inherit; border-end-end-radius: inherit;
	background-color: var(--gcb-progress-fill, var(--gcb-kit-accent));
	color: var(--gcb-progress-on-fill, var(--gcb-kit-on-accent));
	font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	text-align: end; white-space: nowrap;
	transition: width var(--gcb-kit-dur-panel) var(--gcb-kit-ease-panel);
	animation: gcb-progress-bar var(--gcb-progress-dur, calc(var(--gcb-kit-dur-panel) * 2)) var(--gcb-kit-ease-expand) both;
}
[data-gcb-kit="progress"]:not([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-fill] { width: calc(var(--percent, 0) * 1%); } /* mechanic: its share of the track */
@keyframes gcb-progress-bar { from { width: 0; } }

/* words in the fill ("72%"): at the fill's far end, and the bar is as tall as they are */
:where([data-gcb-kit="progress"]:not([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-bar]:has(> [data-gcb-kit-progress-fill]:not(:empty))) { height: auto; min-height: var(--gcb-progress-h, 8px); }
:where([data-gcb-kit="progress"]:not([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-fill]:not(:empty)) { display: grid; align-items: center; padding-inline-end: var(--gcb-kit-gap-s); }
/* a share too small to hold its words (the script marks it): they stand just past the fill, on the track, in the
   colour of the page's words */
:where([data-gcb-kit="progress"]:not([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-fill][data-gcb-kit-progress-tight]) { display: flex; overflow: visible; padding-inline-end: 0; color: inherit; }
:where([data-gcb-kit="progress"]:not([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-fill][data-gcb-kit-progress-tight])::before { content: ""; flex: none; width: calc(100% + var(--gcb-kit-gap-s)); }

/* SEVERAL FILLS in one track, each its own share and colour: side by side, the track's corners round them all */
:where([data-gcb-kit="progress"] [data-gcb-kit-progress-fill] ~ [data-gcb-kit-progress-fill]),
:where([data-gcb-kit="progress"] [data-gcb-kit-progress-fill]:has(~ [data-gcb-kit-progress-fill])) { border-radius: 0; }

/* STRIPES (data-stripes="1"; "moving" for ones that travel): made of the colour of the words that go on the fill */
:where([data-gcb-kit="progress"][data-stripes] [data-gcb-kit-progress-bar] > [data-gcb-kit-progress-fill]) {
	background-image: linear-gradient(45deg,
		color-mix(in srgb, var(--gcb-progress-on-fill, var(--gcb-kit-on-accent)) 22%, transparent) 25%, transparent 25%, transparent 50%,
		color-mix(in srgb, var(--gcb-progress-on-fill, var(--gcb-kit-on-accent)) 22%, transparent) 50%, color-mix(in srgb, var(--gcb-progress-on-fill, var(--gcb-kit-on-accent)) 22%, transparent) 75%,
		transparent 75%, transparent);
	background-size: var(--gcb-progress-stripe, 1rem) var(--gcb-progress-stripe, 1rem);
}
:where([data-gcb-kit="progress"][data-stripes="moving"] [data-gcb-kit-progress-bar] > [data-gcb-kit-progress-fill]) {
	animation: gcb-progress-bar var(--gcb-progress-dur, calc(var(--gcb-kit-dur-panel) * 2)) var(--gcb-kit-ease-expand) both,
		gcb-progress-stripes calc(var(--gcb-kit-dur-panel) * 2) linear infinite;
}
@keyframes gcb-progress-stripes { from { background-position-x: var(--gcb-progress-stripe, 1rem); } }

/* THE RING: beside the words (before them; data-ring-order="after" for after). Two circles, the second one's dash its
   share. A [data-gcb-kit-progress-label] in the slot sits in the ring's middle. */
:where([data-gcb-kit="progress"]:is([data-shape="circle"], [data-shape="gauge"])) { display: inline-flex; align-items: center; gap: var(--gcb-progress-gap, var(--gcb-kit-gap)); }
:where([data-gcb-kit="progress"]:is([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-bar]) {
	display: inline-grid; place-items: center; flex: none; order: -1;
	width: var(--gcb-progress-size, 64px); height: var(--gcb-progress-size, 64px);
}
:where([data-gcb-kit="progress"][data-ring-order="after"] [data-gcb-kit-progress-bar]) { order: 1; }
/* the ring's corners are read by the script (not drawn): a site whose corners are square gets square ends */
:where([data-gcb-kit="progress"] [data-gcb-kit-progress-ring]) {
	display: block; overflow: visible; width: var(--gcb-progress-size, 64px); height: var(--gcb-progress-size, 64px);
	border-radius: var(--gcb-progress-radius, var(--gcb-kit-radius-field));
}
:where([data-gcb-kit="progress"] [data-gcb-kit-progress-label]) { visibility: visible; font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading); white-space: nowrap; }
[data-gcb-kit="progress"] [data-gcb-kit-progress-bar] > :is([data-gcb-kit-progress-ring], [data-gcb-kit-progress-label]) { grid-area: 1 / 1; } /* mechanic: the label over the ring's middle */
:where([data-gcb-kit="progress"] [data-gcb-kit-progress-ring] > circle) {
	cx: calc(var(--gcb-progress-size, 64px) / 2); cy: calc(var(--gcb-progress-size, 64px) / 2);
	r: calc(var(--gcb-progress-size, 64px) / 2 - var(--gcb-progress-thickness, 6px) / 2);
	fill: none; stroke-width: var(--gcb-progress-thickness, 6px);
	transform-origin: calc(var(--gcb-progress-size, 64px) / 2) calc(var(--gcb-progress-size, 64px) / 2);
}
:where([data-gcb-kit="progress"] circle[data-gcb-kit-progress-track]) { stroke: var(--gcb-progress-track, var(--gcb-kit-rule)); }
:where([data-gcb-kit="progress"] circle[data-gcb-kit-progress-fill]) {
	stroke: var(--gcb-progress-fill, var(--gcb-kit-accent));
	stroke-linecap: var(--gcb-progress-cap, round);
	transform: rotate(var(--gcb-progress-start, -90deg));
	transition: stroke-dashoffset var(--gcb-kit-dur-panel) var(--gcb-kit-ease-panel);
	animation: gcb-progress-ring var(--gcb-progress-dur, calc(var(--gcb-kit-dur-panel) * 2)) var(--gcb-kit-ease-expand) both;
}
:where([data-gcb-kit="progress"] [data-gcb-kit-progress-ring][data-gcb-kit-progress-square] > circle[data-gcb-kit-progress-fill]) { stroke-linecap: var(--gcb-progress-cap, butt); }
[data-gcb-kit="progress"] circle[data-gcb-kit-progress-fill] { stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--percent, 0)); } /* mechanic: its share of the ring, each circle 100 long (pathLength) */
:where([data-gcb-kit="progress"] circle[data-gcb-kit-progress-fill][data-empty]) { opacity: 0; }
@keyframes gcb-progress-ring { from { stroke-dashoffset: 100; } }

/* THE GAUGE: half a ring over its figure and its words, from the start side over the top to the end side (so it is
   mirrored where the page reads right to left). Bigger than a ring out of the box, for its figure to sit under the arc. */
:where([data-gcb-kit="progress"][data-shape="gauge"]) { flex-direction: column; text-align: center; gap: var(--gcb-progress-gap, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit="progress"][data-shape="gauge"]) :where([data-gcb-kit-progress-bar], [data-gcb-kit-progress-ring]) { width: var(--gcb-progress-size, 112px); height: calc(var(--gcb-progress-size, 112px) / 2 + var(--gcb-progress-thickness, 8px) / 2); }
:where([data-gcb-kit="progress"][data-shape="gauge"] [data-gcb-kit-progress-ring] > circle) {
	cx: calc(var(--gcb-progress-size, 112px) / 2); cy: calc(var(--gcb-progress-size, 112px) / 2);
	r: calc(var(--gcb-progress-size, 112px) / 2 - var(--gcb-progress-thickness, 8px) / 2);
	stroke-width: var(--gcb-progress-thickness, 8px);
	transform-origin: calc(var(--gcb-progress-size, 112px) / 2) calc(var(--gcb-progress-size, 112px) / 2);
}
:where([data-gcb-kit="progress"][data-shape="gauge"] [data-gcb-kit-progress-label]) { align-self: end; font-size: var(--gcb-kit-text-title); font-weight: var(--gcb-kit-weight-title); line-height: 1; }
:where([data-gcb-kit="progress"][data-shape="gauge"] circle[data-gcb-kit-progress-track]) { stroke-linecap: var(--gcb-progress-cap, round); transform: rotate(var(--gcb-progress-start, 180deg)); }
:where([data-gcb-kit="progress"][data-shape="gauge"] [data-gcb-kit-progress-ring][data-gcb-kit-progress-square] > circle[data-gcb-kit-progress-track]) { stroke-linecap: var(--gcb-progress-cap, butt); }
:where([data-gcb-kit="progress"][data-shape="gauge"] circle[data-gcb-kit-progress-fill]) { transform: rotate(var(--gcb-progress-start, 180deg)); }
[data-gcb-kit="progress"][data-shape="gauge"] circle[data-gcb-kit-progress-track] { stroke-dasharray: 50 100; } /* mechanic: half the ring */
[data-gcb-kit="progress"][data-shape="gauge"] circle[data-gcb-kit-progress-fill] { stroke-dashoffset: calc(100 - var(--percent, 0) / 2); } /* mechanic: its share of half the ring */
[data-gcb-kit="progress"][data-direction="ccw"] [data-gcb-kit-progress-ring] { scale: -1 1; } /* mechanic: counter-clockwise is the ring mirrored */
[data-gcb-kit="progress"][data-shape="gauge"]:dir(rtl) [data-gcb-kit-progress-ring] { scale: -1 1; } /* mechanic: right to left, the gauge starts at the right */
[data-gcb-kit="progress"][data-shape="gauge"][data-direction="ccw"]:dir(rtl) [data-gcb-kit-progress-ring] { scale: 1 1; } /* mechanic: and counter to that is back again */

/* BEFORE IT KNOWS ITS SHARE (no script yet, and no --percent written): the bar keeps its room and shows nothing, never a wrong empty one */
[data-gcb-kit="progress"]:not([data-gcb-kit-ready], [style*="--percent"]) [data-gcb-kit-progress-bar] { visibility: hidden; } /* mechanic: no share known yet */
/* a ring's own figure is always read, and until the ring is drawn it sits in a faint circle of the track's colour, not alone in an empty square */
:where([data-gcb-kit="progress"]:is([data-shape="circle"], [data-shape="gauge"]):not([data-gcb-kit-ready], [style*="--percent"]) [data-gcb-kit-progress-bar]:has([data-gcb-kit-progress-label]))::before {
	content: ""; grid-area: 1 / 1; visibility: visible; box-sizing: border-box; width: 100%; height: 100%;
	border: var(--gcb-progress-thickness, 6px) solid var(--gcb-progress-track, var(--gcb-kit-rule));
	border-radius: var(--gcb-kit-radius-full);
}
:where([data-gcb-kit="progress"][data-shape="gauge"]:not([data-gcb-kit-ready], [style*="--percent"]) [data-gcb-kit-progress-bar]:has([data-gcb-kit-progress-label]))::before {
	border-width: var(--gcb-progress-thickness, 8px); border-bottom-width: 0;
	border-radius: var(--gcb-kit-radius-full) var(--gcb-kit-radius-full) 0 0;
}
/* BELOW THE FOLD AS THE PAGE LOADS: held empty, then filled when it is seen (the script lifts the hold) */
[data-gcb-kit="progress"][data-gcb-kit-progress-wait]:not([data-shape="circle"], [data-shape="gauge"]) [data-gcb-kit-progress-fill] { animation: none; width: 0; padding-inline: 0; } /* mechanic: held until seen */
[data-gcb-kit="progress"][data-gcb-kit-progress-wait] circle[data-gcb-kit-progress-fill] { animation: none; stroke-dashoffset: 100; opacity: 0; } /* mechanic: held until seen */

/* someone who asked for less motion: the site's durations are already nothing; this stills a time set by hand and the stripes */
@media (prefers-reduced-motion: reduce) {
	[data-gcb-kit="progress"] [data-gcb-kit-progress-fill] { animation: none; } /* mechanic: stilled */
}

/* quote */
/* QUOTE: someone's words and who said them. A recipe: the by-line is a person's line (parts/person, data-layout="line",
   its face a parts/picture), and this file only adds what a quote needs round it. No script.
   <figure data-gcb-kit="quote"> holding <blockquote data-gcb-kit-words> and <figcaption data-gcb-kit-by>. The by-line is
   either a person (data-gcb-kit="person" data-layout="line" on the figcaption), with a logo (data-gcb-kit-logo) if
   wanted, or a plain credit in words, which gets a dash before it.
   figure, blockquote, p, figcaption, img, cite and a are styled BY THEIR TAG by a theme that is not reset, so the rules
   on those weigh one attribute (README rule 2) and stand aside for an element marked data-gcb-own. Everything else
   weighs nothing. Every value is a token: the quote's own first, the list's after.
   Looks (data-look): as written it has no ground and no line, so it takes the colour of where it is put. "card" is the
   site's surface, lifted; "outline" is a line made of the words' colour; "bar" is a line down the side.
   data-size="large" is the pull quote. data-align: center or end. data-mark draws an opening quotation mark. */
[data-gcb-kit="quote"]:where(:not([data-gcb-own])) {
	display: flex; flex-direction: column; align-items: stretch; min-width: 0; box-sizing: border-box;
	gap: var(--gcb-quote-gap, var(--gcb-kit-pad-control));
	margin: var(--gcb-quote-margin, 0);
	padding: var(--gcb-quote-pad, 0);
	border: 0;
	font-family: var(--gcb-kit-font); text-align: start;
}

/* THE LOOKS */
[data-gcb-kit="quote"]:where([data-look="card"]:not([data-gcb-own]), [data-look="outline"]:not([data-gcb-own])) {
	padding: var(--gcb-quote-pad, var(--gcb-kit-pad-panel));
	border-radius: var(--gcb-quote-radius, var(--gcb-kit-radius-card));
}
[data-gcb-kit="quote"]:where([data-look="card"]:not([data-gcb-own])) {
	background: var(--gcb-quote-ground, var(--gcb-kit-surface));
	color: var(--gcb-quote-ink, var(--gcb-kit-ink));
	box-shadow: var(--gcb-quote-shadow, var(--gcb-kit-shadow-lift));
}
[data-gcb-kit="quote"]:where([data-look="outline"]:not([data-gcb-own])) {
	border: var(--gcb-quote-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
}
/* the bar: three of the site's lines, but never past 4px, so a site with heavy lines does not get a heavy slab */
[data-gcb-kit="quote"]:where([data-look="bar"]:not([data-gcb-own])) {
	padding-block: 0; padding-inline: var(--gcb-quote-pad, var(--gcb-kit-pad-control)) 0;
	border-inline-start: var(--gcb-quote-bar, var(--gcb-quote-bar-w, clamp(var(--gcb-kit-line-w), calc(var(--gcb-kit-line-w) * 3), 4px)) solid currentColor);
}

/* THE WORDS. A theme's blockquote has its own margins, padding, line, ground and slant: all of that is taken off. */
[data-gcb-kit-words]:where([data-gcb-kit="quote"] > :not([data-gcb-own])) {
	display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: inherit; quotes: none;
	max-width: var(--gcb-quote-measure, 38em);
	font-size: var(--gcb-quote-size, var(--gcb-kit-text-section));
	font-style: normal; font-weight: var(--gcb-quote-weight, var(--gcb-kit-weight-body));
	letter-spacing: normal; text-transform: none;
	line-height: var(--gcb-quote-leading, 1.5);
	text-wrap: pretty;
}
[data-gcb-kit-words]:where([data-gcb-kit="quote"] > :not([data-gcb-own]))::before,
[data-gcb-kit-words]:where([data-gcb-kit="quote"] > :not([data-gcb-own]))::after { content: none; }
/* its paragraphs: a theme styles p (and blockquote p) by its tag, with a margin that would open a hole above the
   by-line, a grey, a slant. They take everything from the words, so these weigh one attribute too. */
[data-gcb-kit-words]:where([data-gcb-kit="quote"] > *) > :where(:not([data-gcb-own])) {
	margin: 0; padding: 0; border: 0; background: none;
	font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; text-align: inherit;
}
[data-gcb-kit-words]:where([data-gcb-kit="quote"] > *) > :where(* + :not([data-gcb-own])) { margin-block-start: var(--gcb-kit-gap-s); }

/* LARGE: the pull quote. The site's tokens have no size for big words, so it is the site's title size times a number
   of the quote's own; smaller where the quote itself is narrow (a phone, or a narrow column of a wide page), so a long
   word still fits. */
[data-gcb-kit="quote"]:where([data-size="large"]:not([data-gcb-own])) {
	container-type: inline-size; /* mechanic: the words follow the width the quote is given, not the screen's */
	align-self: stretch; justify-self: stretch; /* mechanic: a box measured by its container cannot shrink to its words, so it takes the width it is in */
}
[data-gcb-kit-words]:where([data-gcb-kit="quote"][data-size="large"] > :not([data-gcb-own])) {
	max-width: var(--gcb-quote-measure, 24em);
	font-size: calc(var(--gcb-kit-text-title) * var(--gcb-quote-large, 1.6));
	line-height: var(--gcb-quote-leading, 1.25);
	text-wrap: balance;
}
@container (max-width: 40rem) { /* mechanic: where large words step down */
	[data-gcb-kit-words]:where([data-gcb-kit="quote"][data-size="large"] > :not([data-gcb-own])) {
		font-size: calc(var(--gcb-kit-text-title) * var(--gcb-quote-large-narrow, 1.2));
	}
}

/* THE OPENING MARK (data-mark): a drawing, not a letter, so it is never read out and takes any colour */
:where([data-gcb-kit="quote"][data-mark]:not([data-gcb-own]))::before {
	content: ""; display: block; flex: none;
	width: calc(var(--gcb-quote-mark-size, 1.75rem) * 4 / 3); height: var(--gcb-quote-mark-size, 1.75rem);
	background: var(--gcb-quote-mark-ink, currentColor);
	mask: var(--gcb-quote-mark, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 24%27%3E%3Cpath d=%27M0 24V14C0 6 4 1 12 0v5c-4 1-6 4-6 7h6v12z%27/%3E%3Cpath d=%27M18 24V14c0-8 4-13 12-14v5c-4 1-6 4-6 7h6v12z%27/%3E%3C/svg%3E")) center / contain no-repeat;
}

/* THE BY-LINE. A theme's figcaption has its own size, colour, slant and centring: all of that is taken off, and it is
   the site's body words. Written after the words it sits at the foot, so quotes in a row of one height line their
   by-lines up. The person in it is the person part's line, whole: its face, its name, its role, its gap. */
[data-gcb-kit-by]:where([data-gcb-kit="quote"] > :not([data-gcb-own])) {
	min-width: 0; margin: 0; padding: 0; border: 0; background: none;
	color: inherit; text-align: inherit; font-style: normal; letter-spacing: normal; text-transform: none;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
}
[data-gcb-kit-by]:where([data-gcb-kit="quote"] > [data-gcb-kit-words] ~ :not([data-gcb-own])) { margin-block-start: auto; }
/* a person's line here may hold a logo too, which goes under the person when there is no room beside them */
:where([data-gcb-kit="quote"] > [data-gcb-kit-by][data-gcb-kit="person"]) { flex-wrap: wrap; }

/* A CREDIT IN WORDS (a by-line that is not a person): quieter, with a dash before it that is not read out. The title
   of a work in it is a cite, in the slant a title is given. */
[data-gcb-kit-by]:where([data-gcb-kit="quote"] > :not([data-gcb-kit]):not([data-gcb-own])) { color: var(--gcb-kit-quiet); }
:where([data-gcb-kit="quote"] > [data-gcb-kit-by]:not([data-gcb-kit]):not([data-gcb-own]))::before { content: "\2014\00a0" / ""; }
[data-gcb-kit-by] :where(cite:not([data-gcb-own])) { color: inherit; font: inherit; font-style: italic; }

/* THE LOGO: kept its own shape at one height. In a person's line it sits beside the name and role, a wider space
   between them (made by the words, so a logo that drops under the person starts where the face does); written on
   its own (straight inside the quote, above or below the words) it sits where the words start. */
[data-gcb-kit-logo]:where([data-gcb-kit="quote"] :not([data-gcb-own])) {
	display: block; flex: none; box-sizing: border-box;
	width: auto; height: var(--gcb-quote-logo, 1.75rem); max-width: 100%;
	margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; object-fit: contain;
}
:where([data-gcb-kit="quote"] > [data-gcb-kit-by] > .gcb-person__words:has(+ [data-gcb-kit-logo])) { margin-inline-end: var(--gcb-quote-logo-gap, var(--gcb-kit-gap)); }
[data-gcb-kit-logo]:where([data-gcb-kit="quote"] > :not([data-gcb-own])) { align-self: flex-start; }

/* CENTRED: everything in the middle, the person stacked: face, then name and role, then logo */
[data-gcb-kit="quote"]:where([data-align="center"]:not([data-gcb-own])) { align-items: center; text-align: center; }
:where([data-gcb-kit="quote"][data-align="center"] > [data-gcb-kit-by][data-gcb-kit="person"]) { flex-direction: column; }
[data-gcb-kit-logo]:where([data-gcb-kit="quote"][data-align="center"] :not([data-gcb-own])) { align-self: center; }
:where([data-gcb-kit="quote"][data-align="center"] > [data-gcb-kit-by] > .gcb-person__words) { margin-inline: 0; }
/* AT THE END: the by-line runs from the end, the face last */
[data-gcb-kit="quote"]:where([data-align="end"]:not([data-gcb-own])) { align-items: flex-end; text-align: end; }
:where([data-gcb-kit="quote"][data-align="end"] > [data-gcb-kit-by][data-gcb-kit="person"]) { flex-direction: row-reverse; }
[data-gcb-kit-logo]:where([data-gcb-kit="quote"][data-align="end"] > :not([data-gcb-own])) { align-self: flex-end; }
:where([data-gcb-kit="quote"][data-align="end"] > [data-gcb-kit-by] > .gcb-person__words:has(+ [data-gcb-kit-logo])) { margin-inline: var(--gcb-quote-logo-gap, var(--gcb-kit-gap)) 0; }

/* a link in it (a name, a source) is the site's own link; its focus mark is the site's. A theme's a:focus { outline:
   none } is by its tag, so this weighs one attribute and the state. */
[data-gcb-kit="quote"] :where(a:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* rating */
/* RATING: stars, shown or chosen. One shape (--gcb-rating-star, a mask, so any colour paints it), painted in the
   site's star colour (--gcb-kit-rating); the stars past the score, and the rest of the star it ends in, are made of
   the colour of the words, so it sits on any background with nothing set. Every value is a token: the part's own first, the list's after (tokens/README.md).

   SHOWN   a box with data-value: its script draws one star for each of data-max, each filled to its share.
           With no script it is one star and the number.
   CHOSEN  a <fieldset> of real radios, one a star. Each radio IS its star, so the browser keeps the keyboard, the
           form's value and the name a screen reader says; which stars are filled is CSS alone, script or no script.
           An <input>, a <fieldset> and a <legend> are styled by their tag by any theme that is not reset, so each look
           on them weighs ONE attribute and no more (README rule 2) and stands aside for data-gcb-own. */

/* ---- shown: the row of stars, in the line of the words beside it */
:where([data-gcb-kit="rating"] [data-gcb-kit-stars]) {
	display: inline-flex; align-items: center; flex: none; vertical-align: middle; line-height: 1;
	gap: var(--gcb-rating-gap, 0.125em);
}
/* a little room before the words that follow (the script marks a row with no words after it data-gcb-kit-alone) */
:where([data-gcb-kit="rating"] > [data-gcb-kit-stars]:not([data-gcb-kit-alone])) { margin-inline-end: var(--gcb-kit-gap-s); }
:where([data-gcb-kit="rating"] [data-gcb-kit-star]) {
	display: inline-block; flex: none; width: var(--gcb-rating-size, 1em); height: var(--gcb-rating-size, 1em);
	mask: var(--gcb-rating-star, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245z%27 stroke=%27black%27 stroke-width=%272%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")) center / contain no-repeat;
	background: linear-gradient(to right, var(--gcb-kit-rating) var(--gcb-rating-fill, 0%), var(--gcb-rating-empty, var(--gcb-kit-rule-strong)) var(--gcb-rating-fill, 0%));
}
/* right to left: the stars run from the right, so each one fills from its right */
:where([data-gcb-kit="rating"] [data-gcb-kit-star]:dir(rtl)) {
	background: linear-gradient(to left, var(--gcb-kit-rating) var(--gcb-rating-fill, 0%), var(--gcb-rating-empty, var(--gcb-kit-rule-strong)) var(--gcb-rating-fill, 0%));
}
/* with no script: one star, then the words inside it, or the number if it has none */
:where([data-gcb-kit="rating"]:not([data-gcb-kit-ready], :has(> [type="radio"])))::before {
	content: ""; display: inline-block; vertical-align: middle; width: var(--gcb-rating-size, 1em); height: var(--gcb-rating-size, 1em);
	margin-inline-end: var(--gcb-kit-gap-s);
	mask: var(--gcb-rating-star, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245z%27 stroke=%27black%27 stroke-width=%272%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")) center / contain no-repeat;
	background: var(--gcb-kit-rating);
}
:where([data-gcb-kit="rating"][data-value]:not([data-gcb-kit-ready]):empty)::after { content: attr(data-value); }
/* no score yet (data-value="0"): the star is an empty one, so it does not read as a rating */
:where([data-gcb-kit="rating"][data-value="0"]:not([data-gcb-kit-ready], :has(> [type="radio"])))::before { background: var(--gcb-rating-empty, var(--gcb-kit-rule-strong)); }

/* ---- chosen: the group and its legend */
[data-gcb-kit="rating"]:where(:has(> [type="radio"]):not([data-gcb-own])) {
	display: flex; flex-wrap: wrap; align-items: center; box-sizing: border-box; min-width: 0; margin: 0; padding: 0; border: 0;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-body); line-height: var(--gcb-kit-leading);
}
[data-gcb-kit="rating"] > :where(legend:not([data-gcb-own])) {
	float: none; width: auto; margin: 0; padding: 0; border: 0; color: inherit;
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
}
/* data-label-position="beside": the legend in the stars' line */
[data-gcb-kit="rating"]:where([data-label-position="beside"]) > :where(legend:not([data-gcb-own])) {
	float: inline-start; /* mechanic: a floated legend is laid out as one of the row */
	margin-inline-end: var(--gcb-kit-gap);
}

/* ---- chosen: the words beside and under the stars */
/* <output>: what the chosen star (or the one under the pointer) means, filled by the script, in the stars' line */
:where([data-gcb-kit="rating"] > output:not([data-gcb-own], :empty)) {
	order: 1; /* mechanic: after the last star, wherever it is written */
	margin-inline-start: var(--gcb-kit-gap-s); color: var(--gcb-kit-quiet);
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading); font-variant-numeric: tabular-nums;
}
/* a hint, quieter; what is wrong, in the error's colour: each on a line of its own under the stars */
:where([data-gcb-kit="rating"] > :is([data-gcb-kit-hint], [data-gcb-kit-error]):not([data-gcb-own])) {
	order: 2; flex-basis: 100%; /* mechanic: a line of its own, under the stars and their caption */
	margin: 0; font-size: var(--gcb-kit-text-meta); line-height: var(--gcb-kit-leading);
}
:where([data-gcb-kit="rating"] > [data-gcb-kit-hint]:not([data-gcb-own])) { color: var(--gcb-kit-quiet); }
:where([data-gcb-kit="rating"] > [data-gcb-kit-error]:not([data-gcb-own])) { color: var(--gcb-kit-error); font-weight: var(--gcb-kit-weight-control); }
/* right (data-valid on the root, once the server or the page has checked it): the hint in the success colour */
:where([data-gcb-kit="rating"][data-valid] > [data-gcb-kit-hint]:not([data-gcb-own])) { color: var(--gcb-kit-success); }

/* ---- chosen: each radio is a square to press with its star in the middle */
[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own])) {
	appearance: none; flex: none; display: inline-grid; place-items: center; box-sizing: border-box;
	width: var(--gcb-rating-hit, var(--gcb-kit-control-h)); height: var(--gcb-rating-hit, var(--gcb-kit-control-h));
	min-width: 0; min-height: 0; max-width: none; margin: 0; padding: 0; border: 0;
	border-radius: var(--gcb-kit-radius-field); background: transparent; box-shadow: none; color: inherit; cursor: pointer;
}
/* the first star's drawing, not its square, lines up with the legend above it */
[data-gcb-kit="rating"]:where(:not([data-label-position="beside"])) > :where(input[type="radio"]:not([data-gcb-own]):first-of-type) {
	margin-inline-start: calc((var(--gcb-rating-size, 28px) - var(--gcb-rating-hit, var(--gcb-kit-control-h))) / 2);
}
[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own]))::before {
	content: ""; width: var(--gcb-rating-size, 28px); height: var(--gcb-rating-size, 28px);
	mask: var(--gcb-rating-star, url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873l-6.158 -3.245z%27 stroke=%27black%27 stroke-width=%272%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")) center / contain no-repeat;
	background: var(--gcb-rating-empty, var(--gcb-kit-rule-strong));
	transition: scale var(--gcb-kit-dur-spring) var(--gcb-kit-ease-spring), background-color var(--gcb-kit-dur-feedback);
}

/* ---- its states, in the order they win */
/* wrong (aria-invalid="true" on the group or a radio, or the browser's own check after a try): the error's colour */
[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own])):where([aria-invalid="true"], [aria-invalid="true"] > *, :user-invalid)::before {
	background: color-mix(in srgb, var(--gcb-kit-error) 60%, transparent);
}
/* the chosen star and every star before it */
[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own])):where(:checked, :has(~ :checked))::before { background: var(--gcb-kit-rating); }
[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own])):where(:checked)::before { scale: var(--gcb-rating-checked-scale, 1.08); }
@media (hover: hover) {
	/* under a pointer: what a press would give, the stars after it emptied */
	[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own], :disabled)):where(:hover, :has(~ :hover))::before { background: var(--gcb-rating-preview, var(--gcb-kit-rating)); }
	[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own], :disabled)):where(:hover:not(:disabled) ~ *)::before { background: var(--gcb-rating-empty, var(--gcb-kit-rule-strong)); }
}
[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own], :disabled)):active::before { scale: var(--gcb-kit-press); }
/* the keyboard's mark: the site's outline in the colour of the words (so it shows on a section's own colour too), drawn inside the star's square so it never covers the star beside it */
[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own]):focus-visible) {
	outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: calc(var(--gcb-kit-focus-offset) * -1);
}
/* off */
[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own]):disabled) { opacity: var(--gcb-kit-disabled); cursor: not-allowed; }

@media (forced-colors: active) {
	/* mechanic: a high-contrast mode throws away fills, and a star is a fill: the stars keep theirs, in that mode's own words colour and its grey */
	:where([data-gcb-kit="rating"] [data-gcb-kit-star]) { forced-color-adjust: none; background: linear-gradient(to right, CanvasText var(--gcb-rating-fill, 0%), GrayText var(--gcb-rating-fill, 0%)); } /* mechanic: seen in high contrast */
	:where([data-gcb-kit="rating"] [data-gcb-kit-star]:dir(rtl)) { background: linear-gradient(to left, CanvasText var(--gcb-rating-fill, 0%), GrayText var(--gcb-rating-fill, 0%)); } /* mechanic: seen in high contrast */
	:where([data-gcb-kit="rating"]:not([data-gcb-kit-ready], :has(> [type="radio"])))::before { forced-color-adjust: none; background: CanvasText; } /* mechanic: seen in high contrast */
	[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own]))::before { forced-color-adjust: none; background: GrayText; } /* mechanic: seen in high contrast */
	[data-gcb-kit="rating"] > :where(input[type="radio"]:not([data-gcb-own])):where(:checked, :has(~ :checked))::before { background: CanvasText; } /* mechanic: seen in high contrast */
}

/* section */
/* SECTION: a band across the page. A background (a colour, a gradient or a picture), the words' colour to suit it,
   room above and below in three sizes, a minimum height, and its content held by the container
   (parts/container: the section never sets a width of its own).
   Every value is a token: the part's own first, the list's after (tokens/README.md). No script: it is all here.
   WEIGHT (README rule 2): everything weighs nothing (:where), so a class written on a section wins, with three
   exceptions, each an element or a rule a theme reaches BY ITS TAG, which weigh one attribute and stand aside for
   data-gcb-own: the band's margin (a theme's `section { margin }` and a layout's space between its children), the
   <img> or <svg> of a picture background, and a plain link on a dark or coloured ground (a theme's `a { color }`). */

/* ---- 1. THE BAND. With nothing set it has no colour of its own: the page shows through and the words are the
        page's. --gcb-section-bg takes anything a background can be (a colour, a gradient, a picture's url). ---- */
:where([data-gcb-kit="section"]) {
	display: block; box-sizing: border-box;
	position: relative; /* mechanic: a picture background and a shaped edge (parts/divider) are placed against the band */
	isolation: isolate; /* mechanic: the picture sits behind the band's content and in front of its colour, and never behind the page */
	background: var(--gcb-section-bg, transparent);
	color: var(--gcb-section-ink, inherit);
	padding-block: var(--gcb-section-space-m, clamp(48px, 8vw, 96px));
	min-height: var(--gcb-section-min-h, auto);
	align-content: center; /* mechanic: with a minimum height the content sits in the middle; the container stays an ordinary block */
}
/* bands touch: no margin, whatever a theme gives a <section> by its tag or a layout gives the children it spaces */
[data-gcb-kit="section"]:where(:not([data-gcb-own])) { margin: 0; }
/* the band's own tokens are its own: set on one band (or a box round it), they stop at its edge, so a band inside it
   paints its own ground. The picture layer is the band's, and keeps them. */
:where([data-gcb-kit="section"] > :not([data-gcb-kit-bg])) {
	--gcb-section-bg: initial; --gcb-section-ink: initial; --gcb-section-min-h: initial;
	--gcb-section-scrim: initial; --gcb-section-focus: initial; --gcb-section-fit: initial; --gcb-section-front-mask: initial; --gcb-section-bg-filter: initial; --gcb-section-front-filter: initial;
}

/* ---- 2. THE GROUND: data-ground names one of the site's own colours, and the words' colour that suits it ---- */
:where([data-gcb-kit="section"][data-ground="surface"]) { background: var(--gcb-section-bg, var(--gcb-kit-surface)); color: var(--gcb-section-ink, var(--gcb-kit-ink)); }
:where([data-gcb-kit="section"][data-ground="ground"]) { background: var(--gcb-section-bg, var(--gcb-kit-ground)); color: var(--gcb-section-ink, var(--gcb-kit-ink)); }
:where([data-gcb-kit="section"][data-ground="tint"]) { background: var(--gcb-section-bg, var(--gcb-kit-tint)); color: var(--gcb-section-ink, var(--gcb-kit-ink)); }
:where([data-gcb-kit="section"][data-ground="accent"]) {
	background: var(--gcb-section-bg, var(--gcb-kit-accent)); color: var(--gcb-section-ink, var(--gcb-kit-on-accent));
	/* the keyboard's mark is the accent, which would not show on the accent: here it is the words' colour */
	--gcb-kit-focus-outline: 2px solid var(--gcb-kit-on-accent);
}
:where([data-gcb-kit="section"][data-ground="ink"]) { background: var(--gcb-section-bg, var(--gcb-kit-ink)); color: var(--gcb-section-ink, var(--gcb-kit-surface)); }

/* ON THE ACCENT, THE SITE'S PRIMARY BUTTON TURNS ROUND: filled with the words-on-accent, its words the accent, so the
   one thing the band asks for still stands out. Only a button on the band itself, or in the layout parts that paint
   nothing (container, grid): one in a card or a panel, or in a light band inside this one, is on that colour and
   keeps the site's fill. Set as
   the button's own tokens (parts/button), so a button's own style="--gcb-btn-primary-bg: …" still wins. */
:where([data-gcb-kit="section"][data-ground="accent"] .gcb-btn--primary:not(:is([data-gcb-kit]:not([data-gcb-kit="section"], [data-gcb-kit="container"], [data-gcb-kit="grid"]), [data-gcb-own]) *, [data-ground="accent"] [data-gcb-kit="section"][data-ground]:not([data-ground="accent"]) *)) {
	--gcb-btn-primary-bg: var(--gcb-kit-on-accent);
	--gcb-btn-primary-text: var(--gcb-kit-accent);
}

/* A PLAIN LINK ON A DARK OR COLOURED GROUND (the accent, the ink, a veiled picture): the words' colour, underlined,
   whatever colour the theme or the browser gives a link (its blue is dark on the ink and poor on the accent). Only a
   link with no class (a button stays a button) that is the band's own, not inside another part, which colours its
   own links, and not inside a band with a light ground of its own, where the theme's link colour reads. */
[data-gcb-kit="section"]:where([data-ground="accent"], [data-ground="ink"], [data-scrim]:has(> [data-gcb-kit-bg])) :where(a:not([class], [data-gcb-own]):not(:is([data-gcb-kit]:not([data-gcb-kit="section"], [data-gcb-kit="container"], [data-gcb-kit="grid"]), [data-gcb-own]) *, :is([data-ground="accent"], [data-ground="ink"], [data-scrim]) [data-gcb-kit="section"]:is([data-ground="surface"], [data-ground="ground"], [data-ground="tint"]) *)) {
	color: inherit; text-decoration-line: underline; text-decoration-color: currentColor;
}
/* its states weigh the state too, as a theme's a:hover does, so the theme's hover colour does not take it back */
[data-gcb-kit="section"]:where([data-ground="accent"], [data-ground="ink"], [data-scrim]:has(> [data-gcb-kit-bg])) :where(a:not([class], [data-gcb-own]):not(:is([data-gcb-kit]:not([data-gcb-kit="section"], [data-gcb-kit="container"], [data-gcb-kit="grid"]), [data-gcb-own]) *, :is([data-ground="accent"], [data-ground="ink"], [data-scrim]) [data-gcb-kit="section"]:is([data-ground="surface"], [data-ground="ground"], [data-ground="tint"]) *)):is(:link, :visited, :hover, :focus, :active) {
	color: inherit; text-decoration-color: currentColor;
}

/* ---- 3. ROOM ABOVE AND BELOW: data-space="s | m | l | none" (m when left out); data-space-top and
        data-space-bottom set one side alone, and come after so they win ---- */
:where([data-gcb-kit="section"][data-space="s"]) { padding-block: var(--gcb-section-space-s, clamp(24px, 4vw, 48px)); }
:where([data-gcb-kit="section"][data-space="l"]) { padding-block: var(--gcb-section-space-l, clamp(72px, 12vw, 160px)); }
:where([data-gcb-kit="section"][data-space="none"]) { padding-block: 0; }
:where([data-gcb-kit="section"][data-space-top="s"]) { padding-block-start: var(--gcb-section-space-s, clamp(24px, 4vw, 48px)); }
:where([data-gcb-kit="section"][data-space-top="m"]) { padding-block-start: var(--gcb-section-space-m, clamp(48px, 8vw, 96px)); }
:where([data-gcb-kit="section"][data-space-top="l"]) { padding-block-start: var(--gcb-section-space-l, clamp(72px, 12vw, 160px)); }
:where([data-gcb-kit="section"][data-space-top="none"]) { padding-block-start: 0; }
:where([data-gcb-kit="section"][data-space-bottom="s"]) { padding-block-end: var(--gcb-section-space-s, clamp(24px, 4vw, 48px)); }
:where([data-gcb-kit="section"][data-space-bottom="m"]) { padding-block-end: var(--gcb-section-space-m, clamp(48px, 8vw, 96px)); }
:where([data-gcb-kit="section"][data-space-bottom="l"]) { padding-block-end: var(--gcb-section-space-l, clamp(72px, 12vw, 160px)); }
:where([data-gcb-kit="section"][data-space-bottom="none"]) { padding-block-end: 0; }

/* ---- 4. A MINIMUM HEIGHT: data-height="tall | screen"; the room above and below is inside it. Where the content
        sits in a band taller than it: the middle, or data-align="top | bottom" ---- */
:where([data-gcb-kit="section"][data-height="tall"]) { min-height: var(--gcb-section-min-h, var(--gcb-section-tall, 70svh)); }
:where([data-gcb-kit="section"][data-height="screen"]) { min-height: var(--gcb-section-min-h, var(--gcb-section-screen, 100svh)); }
:where([data-gcb-kit="section"][data-align="top"]) { align-content: start; }
:where([data-gcb-kit="section"][data-align="bottom"]) { align-content: end; }

/* ---- 5. A PICTURE BEHIND IT: one [data-gcb-kit-bg] as a direct child, holding an <img> or a <picture> (cropped to
        cover, toward --gcb-section-focus), or an <svg> (which crops itself: preserveAspectRatio="xMidYMid slice"). It
        fills the band whatever the band's height. ---- */
:where([data-gcb-kit="section"] > [data-gcb-kit-bg]) { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; } /* mechanic: laid behind the content, out of its flow, the size of the band */
:where([data-gcb-kit-bg]) { margin: 0; padding: 0; }
:where([data-gcb-kit-bg] picture) { display: block; width: 100%; height: 100%; }
[data-gcb-kit-bg] > :where(svg:not([data-gcb-own])) { display: block; width: 100%; height: 100%; max-width: none; } /* a theme sizes an svg by its tag: one attribute */
[data-gcb-kit-bg] :where(img:not([data-gcb-own])) {
	display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0;
	object-fit: var(--gcb-section-fit, cover);
	object-position: var(--gcb-section-focus, center);
	border-radius: 0; box-shadow: none;
}
/* data-front: a cut-out of the picture (the same size, see-through round the thing) laid IN FRONT of the veil, so the
   scene fades away and the thing stays whole and sharp. --gcb-section-front-mask fades its own edges (its base). */
:where([data-gcb-kit="section"] > [data-gcb-kit-bg] > [data-front]) {
	position: absolute; inset: 0; z-index: 1;
	-webkit-mask-image: var(--gcb-section-front-mask, none); mask-image: var(--gcb-section-front-mask, none);
	filter: var(--gcb-section-front-filter, none);
}
/* a cut-out IN FRONT OF THE WORDS: the same <img data-front>, but a direct child of the section, after the content, so
   the subject stands in front of the heading (the magazine cover). Laid exactly over the picture behind (the same
   fit and focus), and never in the way of a click. */
:where([data-gcb-kit="section"] > img[data-front]) {
	position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; max-width: none; margin: 0;
	object-fit: var(--gcb-section-fit, cover); object-position: var(--gcb-section-focus, center);
	pointer-events: none;
	-webkit-mask-image: var(--gcb-section-front-mask, none); mask-image: var(--gcb-section-front-mask, none);
	filter: var(--gcb-section-front-filter, none);
}
/* the photograph behind a cut-out, edited live (the darkroom's oldest moves, with the subject kept apart from them):
   blur(…) for depth of field, grayscale(1) for the subject in colour on a black-and-white scene, brightness(…) to dim
   the scene so the subject is the brightest thing. Only when there is a cut-out: alone, the picture is the subject. */
:where([data-gcb-kit="section"]:has(> img[data-front]) > [data-gcb-kit-bg] > img, [data-gcb-kit="section"] > [data-gcb-kit-bg]:has(> [data-front]) > img:not([data-front])) {
	filter: var(--gcb-section-bg-filter, none);
}
/* data-scrim: a veil over the picture so words can be read on it, and the words in the colour that suits the veil.
   Out of the box it is 60% of the site's ink: with the site's light words-on-veil that reads at 4.5:1 or better
   over any picture, white included. --gcb-section-scrim takes a colour or a gradient (dark at the side the words are
   on, clear at the other). With no picture there is nothing to veil, and the words stay as they were. */
:where([data-gcb-kit="section"][data-scrim]:has(> [data-gcb-kit-bg])) { color: var(--gcb-section-ink, var(--gcb-kit-on-scrim)); }
:where([data-gcb-kit="section"][data-scrim] > [data-gcb-kit-bg])::after {
	content: ""; position: absolute; inset: 0;
	background: var(--gcb-section-scrim, color-mix(in srgb, var(--gcb-kit-ink) 60%, transparent));
}

/* segmented */
/* SEGMENTED: one choice of a few, all in sight. Real radios, each inside its <label> (the segment), on a track; the
   chosen one sits on a pill. With no script the pill is the chosen segment's own ground, drawn from its checked radio;
   the script adds a thumb that slides to the chosen one, and the words take the pill's colours as far as the pill
   covers them, so nothing is lost while it moves. The segments are equal columns, as wide as the widest, and share
   the track when it is given a width; words that cannot fit wrap inside their segment and the track grows.
   The track and the thumb weigh nothing (:where), so a class on them wins. The label, its <small> note and the radio
   are elements a theme styles by their tag (`label { display: block; font-size: 18px }`, `small { font-size: 80% }`),
   so their looks weigh ONE attribute, the root's, and stand aside for an element marked data-gcb-own (README rule 2).
   Its tokens are --gcb-segments-* (the track and the pill) and --gcb-segment-* (one segment): the names sites set. */
:where([data-gcb-kit="segmented"]) {
	display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); /* mechanic: equal segments that can shrink */
	position: relative; isolation: isolate; box-sizing: border-box; vertical-align: middle; max-width: 100%;
	width: var(--gcb-segments-w, auto);
	min-height: var(--gcb-segments-h, var(--gcb-kit-control-h));
	padding: var(--gcb-segments-pad, calc(var(--gcb-kit-gap-s) * 0.375));
	border: var(--gcb-segments-line, 0 solid transparent);
	border-radius: var(--gcb-segments-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-segments-track, var(--gcb-kit-wash));
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-control);
	font-weight: var(--gcb-kit-weight-control);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
}
/* stacked: one segment a row, the card's corners */
:where([data-gcb-kit="segmented"][data-orientation="vertical"]) { grid-auto-flow: row; border-radius: var(--gcb-segments-radius, var(--gcb-kit-radius-card)); }
/* the sizes, one switch each: small is the site's pill height with smaller words; large is a field's height */
:where([data-gcb-kit="segmented"][data-size="small"]) {
	min-height: var(--gcb-segments-h, var(--gcb-kit-pill-h)); padding: var(--gcb-segments-pad, calc(var(--gcb-kit-gap-s) / 4)); font-size: var(--gcb-kit-text-meta);
}
:where([data-gcb-kit="segmented"][data-size="large"]) { min-height: var(--gcb-segments-h, var(--gcb-kit-field-h)); padding: var(--gcb-segments-pad, calc(var(--gcb-kit-gap-s) / 2)); font-size: var(--gcb-kit-text-body); }

/* A SEGMENT: its words, an icon before them or a quieter note after, centred. The type is the track's, taken whole,
   so a theme's label rule cannot put its own size, weight or margins in. */
[data-gcb-kit="segmented"] :where(label:not([data-gcb-own])) {
	display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 0; margin: 0;
	gap: var(--gcb-segment-gap, 6px);
	padding: calc(var(--gcb-kit-gap-s) / 4) var(--gcb-segment-pad, var(--gcb-kit-pad-control));
	font: inherit; letter-spacing: inherit; text-transform: inherit;
	color: var(--gcb-segments-ink, var(--gcb-kit-quiet));
	text-align: center; cursor: pointer;
}
:where([data-gcb-kit="segmented"] label) {
	position: relative; z-index: 1; /* mechanic: the words over the thumb */
	border-radius: var(--gcb-segments-thumb-radius, calc(var(--gcb-segments-radius, var(--gcb-kit-radius-full)) - var(--gcb-segments-pad, calc(var(--gcb-kit-gap-s) * 0.375))));
	user-select: none; -webkit-tap-highlight-color: transparent;
	transition: color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
[data-gcb-kit="segmented"]:where([data-size="small"]) :where(label:not([data-gcb-own])) { padding-inline: var(--gcb-segment-pad, var(--gcb-kit-gap)); }
[data-gcb-kit="segmented"]:where([data-orientation="vertical"]) :where(label:not([data-gcb-own])) { justify-content: flex-start; text-align: start; }
:where([data-gcb-kit="segmented"][data-orientation="vertical"] label) {
	min-height: calc(var(--gcb-segments-h, var(--gcb-kit-control-h)) - var(--gcb-segments-pad, calc(var(--gcb-kit-gap-s) * 0.375)) * 2);
	border-radius: var(--gcb-segments-thumb-radius, calc(var(--gcb-segments-radius, var(--gcb-kit-radius-card)) - var(--gcb-segments-pad, calc(var(--gcb-kit-gap-s) * 0.375))));
}
:where([data-gcb-kit="segmented"] label > svg) { flex: none; }
/* the note: quieter and smaller, whatever a theme's small says */
[data-gcb-kit="segmented"] :where(label small:not([data-gcb-own])) { font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-body); line-height: inherit; }
[data-gcb-kit="segmented"] :where(label:not([data-gcb-own]):has(input:not(:disabled)):hover) { color: inherit; }
[data-gcb-kit="segmented"] :where(label:not([data-gcb-own]):has(input:checked)) { color: var(--gcb-segments-on-ink, var(--gcb-kit-ink)); }
:where([data-gcb-kit="segmented"] label:has(input:not(:disabled)):active) { scale: var(--gcb-kit-press); }
[data-gcb-kit="segmented"] :where(label:not([data-gcb-own]):has(input:disabled)) { opacity: var(--gcb-segments-disabled, var(--gcb-kit-disabled)); cursor: not-allowed; }
/* the keyboard's mark is the site's, on the segment */
:where([data-gcb-kit="segmented"] label:has(input:focus-visible)) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
/* while the thumb slides the script says how much of each segment it covers (0 to 1), and the words are that much the
   pill's colour: the words it leaves, reaches and passes are always read on what is under them */
[data-gcb-kit="segmented"]:where([data-gcb-kit-sliding]) :where(label:not([data-gcb-own])) { color: color-mix(in srgb, var(--gcb-segments-on-ink, var(--gcb-kit-ink)) calc(var(--gcb-segmented-cover, 0) * 100%), var(--gcb-segments-ink, var(--gcb-kit-quiet))); transition: scale var(--gcb-kit-dur-feedback); } /* mechanic: the words follow the pill */

/* THE PILL with no script: the chosen segment's own ground */
:where([data-gcb-kit="segmented"]:not([data-gcb-kit-ready]) label:has(input:checked)) {
	background: var(--gcb-segments-thumb, var(--gcb-kit-surface));
	box-shadow: var(--gcb-segments-thumb-shadow, var(--gcb-kit-shadow-lift));
}
/* THE PILL with the script: a thumb under the words, put where the chosen segment is and slid there on a change. Its
   slide is a control's, quick: the spring's time on the panel's easing (no overshoot). */
:where([data-gcb-kit="segmented"] > [data-gcb-kit-segmented-thumb]) {
	border-radius: var(--gcb-segments-thumb-radius, calc(var(--gcb-segments-radius, var(--gcb-kit-radius-full)) - var(--gcb-segments-pad, calc(var(--gcb-kit-gap-s) * 0.375))));
	background: var(--gcb-segments-thumb, var(--gcb-kit-surface));
	box-shadow: var(--gcb-segments-thumb-shadow, var(--gcb-kit-shadow-lift));
	transition: translate var(--gcb-kit-dur-spring) var(--gcb-kit-ease-panel), width var(--gcb-kit-dur-spring) var(--gcb-kit-ease-panel), height var(--gcb-kit-dur-spring) var(--gcb-kit-ease-panel);
}
:where([data-gcb-kit="segmented"][data-orientation="vertical"] > [data-gcb-kit-segmented-thumb]) { border-radius: var(--gcb-segments-thumb-radius, calc(var(--gcb-segments-radius, var(--gcb-kit-radius-card)) - var(--gcb-segments-pad, calc(var(--gcb-kit-gap-s) * 0.375)))); }
[data-gcb-kit="segmented"] > [data-gcb-kit-segmented-thumb] { position: absolute; top: 0; left: 0; z-index: 0; box-sizing: border-box; pointer-events: none; } /* mechanic: under the words, moved by the script */
[data-gcb-kit="segmented"] > [data-gcb-kit-segmented-thumb][hidden] { display: none; } /* mechanic: nothing chosen, no pill */

/* THE RADIO: out of sight, in reach. It lies over its whole segment, so a press, a touch reader's finger and the
   keyboard all find it; the segment draws its states. This is how the part works, not a look, so it weighs enough to
   beat a theme's `input[type="radio"] { position: relative; width: 25px }` and still stands aside for data-gcb-own. */
[data-gcb-kit="segmented"] input[type="radio"]:where(label > :not([data-gcb-own])) { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: inherit; } /* mechanic: out of sight, in reach */

/* A PANE the part hides stays hidden whatever display a design's class gives it */
[data-gcb-kit-pane][hidden] { display: none !important; } /* mechanic: hidden is hidden */

/* select */
/* SELECT: a dropdown to choose one of a list. The root is data-gcb-kit="select" holding a real <select>, which stays
   the truth: a form sends it, a script reads it. With no script the real select is what shows, drawn here as the
   site's field. Its script draws a field over it ([data-gcb-kit-select-trigger], a button) and a menu
   ([data-gcb-kit-select-list] of [data-gcb-kit-select-option]s) from the select's own options, marks the root
   data-drawn, and puts the real select out of sight, in reach.
   The select, the trigger, the list and the options are elements a theme styles by their tag (select, button, ul, li),
   so their looks weigh ONE attribute and stand aside for an element marked data-gcb-own; everything else weighs
   nothing (:where). Every value is a token: the part's own first, the list's after (tokens/README.md). */

[data-gcb-kit="select"] { position: relative; } /* mechanic: what the mark on the real select is placed against */
:where([data-gcb-kit="select"]) {
	display: block; max-width: 100%;
	font-family: var(--gcb-kit-font); font-size: var(--gcb-select-text, var(--gcb-kit-text-body));
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
}

/* THE FIELD, the real select and the drawn one alike: an outline made of the words' colour, so it sits on any background */
:where([data-gcb-kit="select"] select):not([data-gcb-own]),
[data-gcb-kit-select-trigger]:where(:not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; width: 100%; max-width: 100%;
	height: var(--gcb-select-h, var(--gcb-kit-control-h));
	margin: 0;
	padding-block: 0;
	padding-inline: var(--gcb-select-pad, var(--gcb-kit-pad-control));
	border: var(--gcb-select-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-select-radius, var(--gcb-kit-radius-field));
	background: transparent; color: inherit; box-shadow: none;
	font: inherit; font-weight: var(--gcb-kit-weight-body);
	letter-spacing: inherit; text-transform: inherit; text-decoration: none; text-align: start;
	cursor: pointer;
	transition: border-color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="select"] select):not([data-gcb-own]) {
	display: block;
	padding-inline-end: calc(var(--gcb-select-pad, var(--gcb-kit-pad-control)) * 2 + var(--gcb-select-chevron, 0.5em));
	text-overflow: ellipsis;
}
[data-gcb-kit-select-trigger]:where(:not([data-gcb-own])) {
	display: flex; align-items: center; justify-content: space-between;
	gap: var(--gcb-kit-gap-s);
}
/* a theme's button:hover / :focus / :active is kept off the drawn field: matched state for state, so it weighs one
   attribute and the state, as the theme's weighs one tag and the state */
[data-gcb-kit-select-trigger]:where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; color: inherit; text-decoration: none; }
/* under the pointer: its edge firmer, in the words' colour, so it reads on any background */
:where([data-gcb-kit="select"] select):not([data-gcb-own]):hover:where(:not(:disabled, [aria-invalid="true"], :user-invalid, :focus-visible)),
[data-gcb-kit-select-trigger]:where(:not([data-gcb-own])):hover:where(:not(:disabled, [aria-disabled="true"], [aria-invalid="true"], [aria-expanded="true"], :focus-visible)) { border-color: var(--gcb-kit-quiet); }
/* the keyboard's mark: the site's outline, in the words' colour so it shows on a section's own colour too. Open, the
   accent's edge and its soft ring say it instead (one mark at a time). A theme's button:focus { outline: none } loses */
:where([data-gcb-kit="select"] select):not([data-gcb-own]):focus-visible,
[data-gcb-kit-select-trigger]:where(:not([data-gcb-own], [aria-expanded="true"])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
[data-gcb-kit-select-trigger]:where([aria-expanded="true"]:not([data-gcb-own])) { border-color: var(--gcb-kit-accent); box-shadow: var(--gcb-kit-focus-ring); outline: 0; }
/* right: data-valid on the part (or on the field round it) gives its edge the success colour */
:where([data-gcb-kit="select"][data-valid], [data-gcb-kit="field"][data-valid] [data-gcb-kit="select"]) :is(select, [data-gcb-kit-select-trigger]):where(:not([data-gcb-own], [aria-invalid="true"], [aria-expanded="true"], :disabled)) { border-color: var(--gcb-kit-success); }
/* wrong: said by the form on the real select (aria-invalid), or by the browser when it is needed and left empty */
:where([data-gcb-kit="select"] select:is([aria-invalid="true"], :user-invalid)):not([data-gcb-own]),
[data-gcb-kit-select-trigger]:where([aria-invalid="true"]:not([data-gcb-own])) { border-color: var(--gcb-kit-error); box-shadow: var(--gcb-kit-error-ring); }
/* cannot be used */
:where([data-gcb-kit="select"] select:disabled):not([data-gcb-own]),
[data-gcb-kit-select-trigger]:where(:disabled:not([data-gcb-own]), [aria-disabled="true"]:not([data-gcb-own])) { opacity: var(--gcb-kit-disabled); cursor: not-allowed; }

/* the real select's own list (no script, or a phone's wheel) is the browser's: given the site's surface and words,
   so a field on a dark section never opens white words on white */
:where([data-gcb-kit="select"] select:not([data-gcb-own]) :is(option, optgroup)) { background-color: var(--gcb-kit-surface); color: var(--gcb-kit-ink); }
/* several at once (multiple, or size) stays the browser's list box, in the field's edge */
:where([data-gcb-kit="select"] select:is([multiple], [size]:not([size="1"]))):not([data-gcb-own]) {
	height: auto; padding: var(--gcb-select-menu-pad, 6px); overflow-y: auto; cursor: default;
}

/* THE MARK: a chevron made of the words' colour. On the real select it is drawn on the part; in a drawn field an
   empty [data-gcb-kit-select-chevron] is drawn as one, and turns over while the menu is open */
:where([data-gcb-kit="select"]:not([data-drawn]):not(:has(select:is([multiple], [size]:not([size="1"]), [data-gcb-own]))))::after,
:where([data-gcb-kit-select-trigger] [data-gcb-kit-select-chevron]:empty) {
	content: ""; flex: none; box-sizing: border-box;
	width: var(--gcb-select-chevron, 0.5em); height: var(--gcb-select-chevron, 0.5em);
	/* the stroke follows the site's line, never more than a third of the mark, so a thick line never fills it in */
	border: solid currentColor;
	border-width: 0 min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-select-chevron, 0.5em) / 3)) min(calc(var(--gcb-kit-line-w) * 2), calc(var(--gcb-select-chevron, 0.5em) / 3)) 0;
	rotate: 45deg; translate: 0 -25%;
}
:where([data-gcb-kit="select"]:not([data-drawn]))::after {
	position: absolute; inset-block-start: 50%; inset-inline-end: var(--gcb-select-pad, var(--gcb-kit-pad-control));
	margin-block-start: calc(var(--gcb-select-chevron, 0.5em) / -2);
	pointer-events: none;
}
:where([data-gcb-kit="select"]:has(select:disabled))::after { opacity: var(--gcb-kit-disabled); }
:where([data-gcb-kit-select-trigger] :is(svg:last-child, [data-gcb-kit-select-chevron])) { flex: none; transition: rotate var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), translate var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit-select-trigger][aria-expanded="true"] [data-gcb-kit-select-chevron]:empty) { rotate: 225deg; translate: 0 25%; }
:where([data-gcb-kit-select-trigger][aria-expanded="true"] :is(svg:last-child, [data-gcb-kit-select-chevron]:not(:empty)):not([data-gcb-no-rotate])) { rotate: 180deg; }
:where([data-gcb-kit-select-trigger] svg) { width: var(--gcb-select-icon, 20px); height: var(--gcb-select-icon, 20px); }

/* THE WORDS IN THE FIELD: one line, a value too long for it ends in "…" (data-wrap on the part lets it wrap) */
:where([data-gcb-kit-select-trigger] [data-gcb-kit-select-value]) { flex: 1 1 auto; min-width: 0; text-align: start; }
:where([data-gcb-kit="select"]:not([data-wrap]) [data-gcb-kit-select-value]) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where([data-gcb-kit="select"][data-wrap] [data-gcb-kit-select-trigger]) { height: auto; min-height: var(--gcb-select-h, var(--gcb-kit-control-h)); padding-block: var(--gcb-kit-gap-s); }
/* nothing chosen yet, and a word before the value ("Sort"): quieter */
:where([data-gcb-kit-select-value][data-placeholder], [data-gcb-kit-select-prefix]) { color: var(--gcb-kit-quiet); }
:where([data-gcb-kit-select-prefix]) { flex: none; }
:where([data-gcb-kit="select"] select:has(option[value=""]:first-child:checked)):not([data-gcb-own]) { color: var(--gcb-kit-quiet); }

/* THE MENU: what a menu is made of (the site's surface, its words, the menu's shadow), as wide as its longest option
   and never narrower than its field */
[data-gcb-kit-select-list]:where(:not([data-gcb-own])) {
	box-sizing: border-box; width: max-content;
	max-width: min(var(--gcb-select-menu-max, 320px), calc(100% - 2 * var(--gcb-kit-pad-control))); /* never wider than the screen it is placed on */
	max-height: var(--gcb-select-menu-h, 320px);
	padding: var(--gcb-select-menu-pad, 6px);
	overflow-y: auto; overscroll-behavior: contain; list-style: none; outline: 0;
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-line-soft);
	border-radius: var(--gcb-select-menu-radius, var(--gcb-kit-radius-card));
	background: var(--gcb-kit-surface); color: var(--gcb-kit-ink);
	box-shadow: var(--gcb-kit-shadow-menu);
	font-family: var(--gcb-kit-font); font-size: var(--gcb-select-text, var(--gcb-kit-text-body)); font-weight: var(--gcb-kit-weight-body); font-style: normal;
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-align: start; white-space: normal;
}

/* AN OPTION: a row the height of anything pressed. The one under the pointer or the keyboard takes a faint fill; the
   chosen one the accent and a tick, never a heavier weight (the words would jolt) */
[data-gcb-kit-select-option]:where(:not([data-gcb-own])) {
	display: flex; align-items: center; box-sizing: border-box;
	gap: var(--gcb-kit-gap-s);
	min-height: var(--gcb-select-option-h, var(--gcb-kit-control-h));
	margin: 0;
	padding: var(--gcb-kit-gap-s) var(--gcb-kit-gap);
	border-radius: var(--gcb-select-option-radius, var(--gcb-kit-radius-field));
	list-style: none; cursor: pointer;
}
[data-gcb-kit-select-option]:where([data-highlighted]:not([data-gcb-own])) { background: var(--gcb-kit-wash); }
[data-gcb-kit-select-option]:where([aria-selected="true"]:not([data-gcb-own])) { color: var(--gcb-kit-accent); }
/* the placeholder, listed first as the way back to nothing chosen ("Any make"): quieter, and never ticked */
[data-gcb-kit-select-option]:where([data-placeholder]:not([data-gcb-own])) { color: var(--gcb-kit-quiet); }
[data-gcb-kit-select-option]:where([aria-disabled="true"]:not([data-gcb-own])) { opacity: var(--gcb-kit-disabled); cursor: default; }
/* the tick, the site's drawing in the option's own colour: a <… data-gcb-kit-select-check> drawn in the option
   replaces it, data-check="none" on the part leaves it out */
:where([data-gcb-kit="select"]:not([data-check="none"]) [data-gcb-kit-select-option][aria-selected="true"]:not([data-placeholder], :has([data-gcb-kit-select-check])))::after {
	content: ""; flex: none;
	width: var(--gcb-select-tick, 1.1em); height: var(--gcb-select-tick, 1.1em);
	margin-inline-start: auto;
	background: currentColor;
	-webkit-mask: var(--gcb-kit-tick) center / contain no-repeat;
	mask: var(--gcb-kit-tick) center / contain no-repeat;
}
:where([data-gcb-kit-select-option] [data-gcb-kit-select-check]) { flex: none; margin-inline-start: auto; }
:where([data-gcb-kit-select-option]:is(:not([aria-selected="true"]), [data-placeholder]) [data-gcb-kit-select-check]) { visibility: hidden; }
:where([data-gcb-kit-select-option] svg) { flex: none; width: var(--gcb-select-icon, 20px); height: var(--gcb-select-icon, 20px); }

/* A GROUP (an <optgroup>): its name, quieter than its options, a little room above all but the first */
[data-gcb-kit-select-group]:where(:not([data-gcb-own])) { margin: 0; padding: 0; list-style: none; }
[data-gcb-kit-select-group-list]:where(:not([data-gcb-own])) { margin: 0; padding: 0; list-style: none; }
:where([data-gcb-kit-select-group] + [data-gcb-kit-select-group], [data-gcb-kit-select-option] + [data-gcb-kit-select-group]) { margin-top: var(--gcb-kit-gap-s); }
:where([data-gcb-kit-select-group-label]) {
	display: block; padding: var(--gcb-kit-gap-s) var(--gcb-kit-gap) calc(var(--gcb-kit-gap-s) / 2);
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-control);
}
:where([data-gcb-kit-select-group][aria-disabled="true"] [data-gcb-kit-select-group-label]) { opacity: var(--gcb-kit-disabled); }

/* it grows in from the edge that faces its field, with the menus' motion (no time at all for someone who asked for less) */
@keyframes gcb-select-in { from { opacity: 0; scale: var(--gcb-kit-press); } }
:where([data-gcb-kit-select-list][data-state="open"]) { transform-origin: top; animation: gcb-select-in var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }
:where([data-gcb-kit-select-list][data-state="open"][data-side="top"]) { transform-origin: bottom; }

/* HOW IT WORKS, whatever the look */
[data-gcb-kit="select"]:not([data-drawn]) :is([data-gcb-kit-select-trigger], [data-gcb-kit-select-list]) { display: none; } /* mechanic: with no script the real select is what shows */
[data-gcb-kit="select"][data-drawn] > select { position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; } /* mechanic: out of sight, in reach of the form */
[data-gcb-kit="select"] [data-gcb-kit-select-list] { position: fixed; inset: auto; } /* mechanic: in the top layer, placed by the script */
/* the gutter between the menu and its field is the menu's own margin, which the script reads: so it holds for a menu
   the design drew too */
[data-gcb-kit-select-list]:where(:not([data-gcb-own])) { margin-block: var(--gcb-select-gutter, 6px); margin-inline: 0; z-index: var(--gcb-select-z, 1000); }
[data-gcb-kit="select"] [data-gcb-kit-select-list]:not([data-state="open"]) { display: none; } /* mechanic: shut */
[data-gcb-kit="select"][data-mode="inline"] [data-gcb-kit-select-list] { position: static; width: auto; max-width: none; max-height: none; margin-bottom: 0; box-shadow: none; } /* mechanic: opens in place under its field, pushing what follows down */

/* slider */
/* SLIDER: one handle or two on a track, over real number inputs that stay the truth. With no script the boxes are what
   shows; its script makes the track and the handles and sets data-gcb-kit-ready.
   Every value is a token: the part's own first, the site's after (tokens/README.md). The track, the unlit bars, the
   boxes' lines and the quiet words are made of the colour of the words, so it sits on any background with nothing set.
   An <input> is an element a theme styles by its tag, so the boxes' look weighs ONE attribute and no more (README rule
   2): it beats a theme's `input { border … padding … }`, loses to a class written on the box, and stands aside whole
   for a box marked data-gcb-own. Everything else (the handles and the track are divs) weighs nothing. */
:where([data-gcb-kit="slider"]) {
	display: flex; flex-wrap: wrap; align-items: flex-end; box-sizing: border-box; min-width: 0;
	gap: var(--gcb-kit-gap);
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
}
/* the track, the bars and the marks each take a whole row (also when the design lays the part out as a grid) */
:where([data-gcb-kit="slider"]) > :where([data-gcb-kit-histogram], [data-gcb-kit-slider-control], [data-gcb-kit-slider-marks]) {
	flex: 1 1 100%; grid-column: 1 / -1; box-sizing: border-box; min-width: 0;
	margin-inline: var(--gcb-slider-room, 0px);
}
/* cannot be used (every box disabled): faint, never the pointer */
:where([data-gcb-kit="slider"]:not(:has(input:enabled))) { opacity: var(--gcb-kit-disabled); }
:where([data-gcb-kit="slider"]:not(:has(input:enabled)) :is([data-gcb-kit-slider-control], [data-gcb-kit-slider-thumb])) { cursor: not-allowed; }

/* ---- A BOX WITH ITS LABEL: the label over the box, the two side by side */
:where([data-gcb-kit="slider"] [data-gcb-kit-field]) {
	display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 1 0; min-width: 0;
	gap: calc(var(--gcb-kit-gap-s) * 0.75);
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
}
[type="number"]:where([data-gcb-kit="slider"] input:not([data-gcb-own])) {
	box-sizing: border-box; display: block; flex: 1 1 0; width: 100%; min-width: 0; margin: 0;
	height: var(--gcb-kit-control-h);
	padding: 0 var(--gcb-slider-input-pad, var(--gcb-kit-pad-control));
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong);
	border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
	font-variant-numeric: tabular-nums; letter-spacing: inherit; text-transform: none;
	transition: border-color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback);
}
[type="number"]:where([data-gcb-kit="slider"] input:not([data-gcb-own]):hover:not(:disabled, :focus)) { border-color: var(--gcb-kit-quiet); }
/* a box being typed in: the site's mark for a field (the accent's line and the soft ring); the see-through outline is
   what a forced-colours screen draws instead */
[type="number"]:where([data-gcb-kit="slider"] input:not([data-gcb-own]):focus) {
	outline: var(--gcb-kit-line-w) solid transparent;
	border-color: var(--gcb-kit-accent);
	box-shadow: var(--gcb-kit-focus-ring);
}
[type="number"]:where([data-gcb-kit="slider"] input:not([data-gcb-own]):disabled) { cursor: not-allowed; }
/* wrong (aria-invalid="true" on the box): the error's line, and its ring while typed in. The handle says so too */
[type="number"]:where([data-gcb-kit="slider"] input[aria-invalid="true"]:not([data-gcb-own])) { border-color: var(--gcb-kit-error); }
[type="number"]:where([data-gcb-kit="slider"] input[aria-invalid="true"]:not([data-gcb-own]):focus) { box-shadow: var(--gcb-kit-error-ring); }
/* in a field the design made its own (data-gcb-own on the field), the input is that field's words: no box in a box */
[type="number"]:where([data-gcb-kit="slider"] [data-gcb-kit-field][data-gcb-own] input:not([data-gcb-own])) {
	height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none;
}
[type="number"]:where([data-gcb-kit="slider"] [data-gcb-kit-field][data-gcb-own] input:not([data-gcb-own]):focus-visible) {
	outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset);
}

/* ---- HELP AND ERROR WORDS (data-gcb-kit-hint, data-gcb-kit-error-text), each a whole row under the boxes: quiet
   words, and the error's colour */
:where([data-gcb-kit="slider"]) > :where([data-gcb-kit-hint], [data-gcb-kit-error-text]) {
	flex: 1 1 100%; grid-column: 1 / -1; margin: calc(var(--gcb-kit-gap) * -0.5) 0 0;
	color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); line-height: var(--gcb-kit-leading);
}
:where([data-gcb-kit="slider"]) > :where([data-gcb-kit-error-text]) { color: var(--gcb-kit-error); font-weight: var(--gcb-kit-weight-control); }
:where([data-gcb-kit="slider"][data-scheme="dark"]) > :where([data-gcb-kit-error-text]) { color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor); }
:where([data-gcb-kit="slider"]) > :where([data-gcb-kit-error-text]:empty) { display: none; }

/* ---- THE VALUE SAID: a line of words that follows a handle */
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-value]) { font-variant-numeric: tabular-nums; font-weight: var(--gcb-kit-weight-control); }

/* ---- THE HANDLES ON THEIR TRACK, made by the script */
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-control]) {
	position: relative; display: flex; align-items: center;
	height: var(--gcb-slider-control-h, var(--gcb-kit-control-h));
	cursor: pointer;
}
[data-gcb-kit="slider"] [data-gcb-kit-slider-control] { touch-action: none; user-select: none; -webkit-user-select: none; } /* mechanic: a drag moves the handle, not the page or a selection */
[data-gcb-kit="slider"]:not([data-gcb-kit-ready]) :is([data-gcb-kit-slider-control], [data-gcb-kit-slider-marks]) { display: none; } /* mechanic: a drawn track that nothing moves is not shown */
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-track]) {
	position: relative; flex: 1; box-sizing: border-box;
	height: var(--gcb-slider-track-h, 4px);
	border-radius: var(--gcb-kit-radius-full);
	background: var(--gcb-slider-track-ink, var(--gcb-kit-rule));
}
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-range]) {
	position: absolute; top: 0; bottom: 0;
	border-radius: inherit;
	background: var(--gcb-slider-range, var(--gcb-kit-accent));
}
[data-gcb-kit="slider"] [data-gcb-kit-slider-range] { inset-inline: calc(var(--from, 0) * (100% - var(--gcb-slider-thumb, var(--gcb-kit-thumb))) + var(--gcb-slider-thumb, var(--gcb-kit-thumb)) / 2) calc((1 - var(--to, 0)) * (100% - var(--gcb-slider-thumb, var(--gcb-kit-thumb))) + var(--gcb-slider-thumb, var(--gcb-kit-thumb)) / 2); } /* mechanic: from the middle of one handle to the middle of the other */
[data-gcb-kit="slider"] [data-single] [data-gcb-kit-slider-range] { inset-inline-start: 0; } /* mechanic: one handle fills from the start of the track */

:where([data-gcb-kit="slider"] [data-gcb-kit-slider-thumb]) {
	position: absolute; top: 50%; translate: 0 -50%; box-sizing: border-box;
	width: var(--gcb-slider-thumb, var(--gcb-kit-thumb));
	height: var(--gcb-slider-thumb, var(--gcb-kit-thumb));
	border: var(--gcb-slider-thumb-border, 2px solid var(--gcb-kit-accent));
	border-radius: var(--gcb-slider-thumb-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-slider-thumb-bg, var(--gcb-kit-surface));
	box-shadow: var(--gcb-slider-thumb-shadow, var(--gcb-kit-shadow-thumb));
	cursor: grab;
	transition: box-shadow var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
[data-gcb-kit="slider"] [data-gcb-kit-slider-thumb] { inset-inline-start: calc(var(--at, 0) * (100% - var(--gcb-slider-thumb, var(--gcb-kit-thumb)))); } /* mechanic: where its value is, kept inside the track at both ends */
[data-gcb-kit="slider"] [data-gcb-kit-slider-thumb][data-top] { z-index: 1; } /* mechanic: the handle last held is the one on top */
[data-gcb-kit="slider"] [data-gcb-kit-slider-thumb]::before { content: ""; position: absolute; inset: calc((var(--gcb-slider-thumb, var(--gcb-kit-thumb)) - var(--gcb-slider-control-h, var(--gcb-kit-control-h))) / 2); border-radius: inherit; } /* mechanic: a finger's worth of handle round the drawn one */
/* pointed at: a halo of the accent. Held: a wider one, and the handle a little bigger */
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-thumb]:not([aria-disabled]):hover) {
	box-shadow: 0 0 0 var(--gcb-slider-halo, calc(var(--gcb-kit-gap-s) * 0.75)) color-mix(in srgb, var(--gcb-kit-accent) 16%, transparent), var(--gcb-slider-thumb-shadow, var(--gcb-kit-shadow-thumb));
}
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-thumb][data-dragging]) {
	cursor: grabbing;
	scale: var(--gcb-slider-lift, 1.08);
	box-shadow: 0 0 0 var(--gcb-slider-halo-drag, var(--gcb-kit-gap-s)) color-mix(in srgb, var(--gcb-kit-accent) 16%, transparent), var(--gcb-slider-thumb-shadow, var(--gcb-kit-shadow-thumb));
}
/* the keyboard's mark: the site's outline, off its edge, in the colour of the words so it shows on a section's own
   colour too */
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-thumb]:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
/* a handle whose box is wrong: the error's edge */
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-thumb][aria-invalid="true"]) { border-color: var(--gcb-kit-error); }

/* THE BUBBLE: a value written inside a handle sits over it, seen while the handle is pointed at, focused or held */
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-thumb] [data-gcb-kit-slider-value]) {
	position: absolute; bottom: calc(100% + var(--gcb-kit-gap-s)); left: 50%; translate: -50% 0;
	padding: calc(var(--gcb-kit-gap-s) / 2) var(--gcb-kit-gap-s);
	border-radius: var(--gcb-kit-radius-check);
	background: var(--gcb-kit-ink); color: var(--gcb-kit-surface);
	font-size: var(--gcb-kit-text-meta); line-height: var(--gcb-kit-leading); white-space: nowrap;
	opacity: 0; pointer-events: none;
	transition: opacity var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-thumb]:is(:hover, :focus-visible, [data-dragging]) [data-gcb-kit-slider-value]) { opacity: 1; }

/* ---- THE MARKS under the track (data-marks="0,50,100"), each under its value; the ones inside the range in the words' colour */
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-marks]) {
	position: relative;
	height: var(--gcb-slider-marks-h, 1.5em);
	margin-top: calc(var(--gcb-kit-gap) * -1);
	color: var(--gcb-kit-quiet);
	font-size: var(--gcb-kit-text-meta); font-variant-numeric: tabular-nums;
}
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-mark]) { position: absolute; top: 0; translate: -50% 0; white-space: nowrap; }
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-mark]:dir(rtl)) { translate: 50% 0; }
:where([data-gcb-kit="slider"] [data-gcb-kit-slider-mark][data-in]) { color: inherit; }
[data-gcb-kit="slider"] [data-gcb-kit-slider-mark] { inset-inline-start: calc(var(--at, 0) * (100% - var(--gcb-slider-thumb, var(--gcb-kit-thumb))) + var(--gcb-slider-thumb, var(--gcb-kit-thumb)) / 2); } /* mechanic: under the middle of a handle at that value */
[data-gcb-kit="slider"] [data-gcb-kit-slider-mark][data-edge] { translate: none; } /* mechanic: the first and the last stay inside the track's ends */
[data-gcb-kit="slider"] [data-gcb-kit-slider-mark][data-edge="start"] { inset-inline-start: 0; } /* mechanic: flush with the start */
[data-gcb-kit="slider"] [data-gcb-kit-slider-mark][data-edge="end"] { inset-inline: auto 0; } /* mechanic: flush with the end */

/* ---- THE BARS over the track (a [data-gcb-kit-histogram] of [data-from][data-to] bars, each as tall as its --h, 0 to
   1): how many fall at each value. Lit while they fall inside the range. */
:where([data-gcb-kit="slider"] [data-gcb-kit-histogram]) {
	display: flex; align-items: flex-end;
	gap: var(--gcb-slider-bar-gap, 2px);
	height: var(--gcb-slider-bars-h, 56px);
	padding-inline: calc(var(--gcb-slider-thumb, var(--gcb-kit-thumb)) / 2);
}
:where([data-gcb-kit="slider"] [data-gcb-kit-histogram] > [data-from]) {
	flex: 1; min-height: var(--gcb-kit-line-w);
	border-radius: var(--gcb-slider-bar-radius, calc(var(--gcb-kit-radius-field) / 4) calc(var(--gcb-kit-radius-field) / 4) 0 0);
	background: var(--gcb-slider-bar, var(--gcb-kit-rule));
	transition: background-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="slider"] [data-gcb-kit-histogram] > [data-from][data-in]) { background: var(--gcb-slider-bar-in, var(--gcb-kit-accent)); }
[data-gcb-kit="slider"] [data-gcb-kit-histogram] > [data-from] { height: calc(var(--h, 0) * 100%); } /* mechanic: as tall as its share */
[data-gcb-kit="slider"][data-gcb-kit-ready]:not([data-orientation="vertical"]) > [data-gcb-kit-histogram] { margin-bottom: calc((var(--gcb-slider-control-h, var(--gcb-kit-control-h)) - var(--gcb-slider-track-h, 4px)) / -2 - var(--gcb-kit-gap)); } /* mechanic: the bars stand on the track */

/* ---- THE HANDLES ALONE (data-boxes="hide"): the boxes are still what is sent, and are not shown once the handles
   are up. Their labels stay, in a row over the track: the first at the start, the second at the end. */
[data-gcb-kit="slider"][data-gcb-kit-ready][data-boxes="hide"] input[type="number"] { display: none; } /* mechanic: the handles stand in for the boxes */
:where([data-gcb-kit="slider"][data-gcb-kit-ready][data-boxes="hide"] [data-gcb-kit-field]) { display: flex; align-items: baseline; gap: var(--gcb-kit-gap-s); order: -1; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); }
:where([data-gcb-kit="slider"][data-gcb-kit-ready][data-boxes="hide"] [data-gcb-kit-field] ~ [data-gcb-kit-field]) { justify-content: flex-end; }
:where([data-gcb-kit="slider"][data-gcb-kit-ready][data-boxes="hide"]) > :where([data-gcb-kit-slider-control]) { margin-top: calc(var(--gcb-kit-gap) * -1); }

/* ---- STANDING UP (data-orientation="vertical"): the track stands, as tall as --gcb-slider-length, its low end at the
   bottom. Once it is up, what else is in the part sits beside it in one column that takes the rest of the width: one box in the
   middle, or the most at the top and the least at the bottom, each by its end of the track. Marks and bars are for a
   lying track only. */
:where([data-gcb-kit="slider"][data-orientation="vertical"][data-gcb-kit-ready]) {
	display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
	column-gap: var(--gcb-kit-gap); row-gap: var(--gcb-kit-gap-s);
}
:where([data-gcb-kit="slider"][data-orientation="vertical"]) > :where([data-gcb-kit-slider-control]) {
	grid-column: 1; grid-row: 1 / span 2;
	flex-direction: column; margin-inline: 0; margin-top: 0;
	margin-block: var(--gcb-slider-room, 0px);
	width: var(--gcb-slider-control-h, var(--gcb-kit-control-h));
	height: var(--gcb-slider-length, 200px);
}
:where([data-gcb-kit="slider"][data-orientation="vertical"][data-gcb-kit-ready]) > :where([data-gcb-kit-field]) { grid-column: 2; grid-row: 1 / span 2; }
:where([data-gcb-kit="slider"][data-orientation="vertical"][data-gcb-kit-ready]) > :where([data-gcb-kit-field]:has(~ [data-gcb-kit-field])) { grid-row: 2; align-self: end; }
:where([data-gcb-kit="slider"][data-orientation="vertical"][data-gcb-kit-ready]) > :where([data-gcb-kit-field] ~ [data-gcb-kit-field]) { grid-row: 1; align-self: start; }
:where([data-gcb-kit="slider"][data-orientation="vertical"][data-gcb-kit-ready][data-boxes="hide"] [data-gcb-kit-field] ~ [data-gcb-kit-field]) { justify-content: flex-start; }
:where([data-gcb-kit="slider"][data-orientation="vertical"][data-gcb-kit-ready][data-boxes="hide"]) > :where([data-gcb-kit-slider-control]) { margin-top: 0; }
:where([data-gcb-kit="slider"][data-orientation="vertical"] [data-gcb-kit-slider-track]) { width: var(--gcb-slider-track-h, 4px); height: auto; }
:where([data-gcb-kit="slider"][data-orientation="vertical"] [data-gcb-kit-slider-range]) { top: auto; bottom: auto; left: 0; right: 0; }
:where([data-gcb-kit="slider"][data-orientation="vertical"] [data-gcb-kit-slider-thumb]) { top: auto; translate: none; margin-inline: auto; }
[data-gcb-kit="slider"][data-orientation="vertical"] [data-gcb-kit-slider-range] { inset-inline: 0; inset-block: calc((1 - var(--to, 0)) * (100% - var(--gcb-slider-thumb, var(--gcb-kit-thumb))) + var(--gcb-slider-thumb, var(--gcb-kit-thumb)) / 2) calc(var(--from, 0) * (100% - var(--gcb-slider-thumb, var(--gcb-kit-thumb))) + var(--gcb-slider-thumb, var(--gcb-kit-thumb)) / 2); } /* mechanic: from one handle up to the other */
[data-gcb-kit="slider"][data-orientation="vertical"] [data-single] [data-gcb-kit-slider-range] { inset-block-end: 0; } /* mechanic: one handle fills from the bottom */
[data-gcb-kit="slider"][data-orientation="vertical"] [data-gcb-kit-slider-thumb] { inset-inline: 0; bottom: calc(var(--at, 0) * (100% - var(--gcb-slider-thumb, var(--gcb-kit-thumb)))); } /* mechanic: where its value is, the least at the bottom, in the middle of the track's width */
/* its bubble sits over the handle, on the track, where it covers nothing beside it */

/* ---- ON A DARK SECTION (data-scheme="dark", which the script sets from the colour of the words unless the design
   wrote it): the site's accent is often too dark to see there, so the range, the lit bars and the handles' edges are
   lifted toward the words' colour, and the bubble turns light so it stands out */
:where([data-gcb-kit="slider"][data-scheme="dark"] [data-gcb-kit-slider-range]) { background: var(--gcb-slider-range, color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor)); }
:where([data-gcb-kit="slider"][data-scheme="dark"] [data-gcb-kit-histogram] > [data-from][data-in]) { background: var(--gcb-slider-bar-in, color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor)); }
:where([data-gcb-kit="slider"][data-scheme="dark"] [data-gcb-kit-slider-thumb]) { border: var(--gcb-slider-thumb-border, 2px solid color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor)); }
:where([data-gcb-kit="slider"][data-scheme="dark"] [data-gcb-kit-slider-thumb] [data-gcb-kit-slider-value]) { background: var(--gcb-kit-surface); color: var(--gcb-kit-ink); }
:where([data-gcb-kit="slider"][data-scheme="dark"]) [type="number"]:where(input:not([data-gcb-own], [aria-invalid="true"]):focus) { border-color: color-mix(in srgb, var(--gcb-kit-accent) 55%, currentColor); }
:where([data-gcb-kit="slider"][data-scheme="dark"]) [type="number"]:where(input[aria-invalid="true"]:not([data-gcb-own])) { border-color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor); }
:where([data-gcb-kit="slider"][data-scheme="dark"] [data-gcb-kit-slider-thumb][aria-invalid="true"]) { border-color: color-mix(in srgb, var(--gcb-kit-error) 60%, currentColor); }

@media (forced-colors: active) {
	/* a high-contrast screen throws fills away: the track is a line and the range the system's chosen colour */
	[data-gcb-kit="slider"] [data-gcb-kit-slider-track] { border: var(--gcb-kit-line-w) solid CanvasText; } /* mechanic: seen in high contrast */
	[data-gcb-kit="slider"] [data-gcb-kit-slider-range], [data-gcb-kit="slider"] [data-gcb-kit-histogram] > [data-in] { forced-color-adjust: none; background: Highlight; } /* mechanic: seen in high contrast */
}

/* spinner */
/* SPINNER: something is loading. A ring that turns (the default), a row of dots (data-shape="dots"), or a placeholder
   (data-shape="placeholder"): blocks that shimmer where the content will be. Every look below weighs nothing (:where),
   so a class the design writes on any of these elements wins, and every value is a token: the part's own first, the
   list's after (tokens/README.md). The ring, the dots and the blocks are made of the colour of the words, so it sits on
   any background and inside a button with nothing set. Its times are the site's durations, which are nothing for
   someone who asked for less motion. */
:where([data-gcb-kit="spinner"]) { display: inline-block; box-sizing: border-box; flex: none; vertical-align: middle; }
[data-gcb-kit="spinner"][hidden] { display: none; } /* mechanic: hidden is hidden, whatever its shape */

/* ITS WORDS ("Loading"): for a screen reader, not drawn */
[data-gcb-kit="spinner"] [data-gcb-kit-spinner-label] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: read aloud, not seen */

/* THE RING: a faint circle, one quarter of it the words' colour, turning */
:where([data-gcb-kit="spinner"]:not([data-shape="dots"], [data-shape="placeholder"])) {
	width: var(--gcb-spinner-size, 1.5em); height: var(--gcb-spinner-size, 1.5em);
	border: var(--gcb-spinner-thickness, calc(var(--gcb-spinner-size, 1.5em) / 8)) solid var(--gcb-spinner-track, var(--gcb-kit-rule));
	border-top-color: var(--gcb-spinner-color, currentColor);
	border-radius: var(--gcb-kit-radius-full);
	animation: gcb-spinner-turn var(--gcb-spinner-dur, calc(var(--gcb-kit-dur-panel) * 2)) linear infinite;
}
@keyframes gcb-spinner-turn { to { rotate: 1turn; } }
/* beside words of the page's own (decoration, aria-hidden): a little room after it, as well as the space in the words */
:where([data-gcb-kit="spinner"][aria-hidden="true"]:not([data-shape="placeholder"])) { margin-inline-end: var(--gcb-spinner-space, 0.375em); }

/* THE DOTS: three in a row, each shrinking in its turn. One element: each dot is a drawing in its background */
:where([data-gcb-kit="spinner"][data-shape="dots"]) {
	width: calc(var(--gcb-spinner-dot, 0.5em) * 4); height: var(--gcb-spinner-dot, 0.5em);
	background-image: radial-gradient(circle closest-side, var(--gcb-spinner-color, currentColor) 92%, transparent), radial-gradient(circle closest-side, var(--gcb-spinner-color, currentColor) 92%, transparent), radial-gradient(circle closest-side, var(--gcb-spinner-color, currentColor) 92%, transparent);
	background-repeat: no-repeat;
	background-position: 0% 50%, 50% 50%, 100% 50%;
	background-size: 25% 100%;
	animation: gcb-spinner-dots var(--gcb-spinner-dur, calc(var(--gcb-kit-dur-panel) * 2.5)) linear infinite;
}
@keyframes gcb-spinner-dots {
	0%, 80%, 100% { background-size: 25% 100%, 25% 100%, 25% 100%; }
	20% { background-size: 25% 35%, 25% 100%, 25% 100%; }
	40% { background-size: 25% 100%, 25% 35%, 25% 100%; }
	60% { background-size: 25% 100%, 25% 100%, 25% 35%; }
}

/* THE PLACEHOLDER: blocks stacked where the content will be, each a wash of the words' colour with a band of the same
   colour sweeping across it (on a light ground a slightly deeper sweep, on a dark one a lighter) */
:where([data-gcb-kit="spinner"][data-shape="placeholder"]) { display: grid; gap: var(--gcb-spinner-gap, var(--gcb-kit-gap)); }
:where([data-gcb-kit="spinner"] [data-gcb-kit-spinner-block]) {
	display: block; box-sizing: border-box; min-width: 0; max-width: 100%;
	width: var(--gcb-spinner-w, 100%); height: var(--gcb-spinner-line, 0.75em);
	border-radius: var(--gcb-spinner-radius, var(--gcb-kit-radius-check));
	background-color: var(--gcb-spinner-fill, var(--gcb-kit-wash));
	background-image: linear-gradient(100deg, transparent 30%, var(--gcb-spinner-shine, var(--gcb-spinner-fill, var(--gcb-kit-wash))) 50%, transparent 70%);
	background-size: 300% 100%; background-repeat: no-repeat; background-position: 100% 0;
	animation: gcb-spinner-shimmer var(--gcb-spinner-dur, calc(var(--gcb-kit-dur-panel) * 3)) linear infinite;
}
@keyframes gcb-spinner-shimmer { to { background-position: 0% 0; } }
/* a paragraph is a run of lines: its last line stops short */
:where([data-gcb-kit="spinner"] :is([data-gcb-kit-spinner-block=""], [data-gcb-kit-spinner-block="line"]) + :is([data-gcb-kit-spinner-block=""], [data-gcb-kit-spinner-block="line"]):not(:has(+ :is([data-gcb-kit-spinner-block=""], [data-gcb-kit-spinner-block="line"])))) { width: var(--gcb-spinner-w, var(--gcb-spinner-last, 60%)); }
:where([data-gcb-kit="spinner"] [data-gcb-kit-spinner-block="title"]) { width: var(--gcb-spinner-w, 50%); height: var(--gcb-spinner-title, 1.25em); }
:where([data-gcb-kit="spinner"] [data-gcb-kit-spinner-block="picture"]) { height: auto; aspect-ratio: var(--gcb-spinner-ratio, 16 / 9); border-radius: var(--gcb-spinner-radius, var(--gcb-kit-radius-card)); }
:where([data-gcb-kit="spinner"] [data-gcb-kit-spinner-block="circle"]) { flex: none; width: var(--gcb-spinner-circle, 3em); height: var(--gcb-spinner-circle, 3em); border-radius: var(--gcb-kit-radius-full); }
:where([data-gcb-kit="spinner"] [data-gcb-kit-spinner-block="button"]) { width: var(--gcb-spinner-w, var(--gcb-spinner-button, 8em)); height: var(--gcb-kit-control-h); border-radius: var(--gcb-kit-radius-field); }

/* blocks side by side (a circle beside its lines): a row; anything in it that is not a block is a stack that takes the room left */
:where([data-gcb-kit="spinner"] [data-gcb-kit-spinner-row]) { display: flex; align-items: center; gap: var(--gcb-spinner-gap, var(--gcb-kit-gap)); min-width: 0; }
:where([data-gcb-kit="spinner"] [data-gcb-kit-spinner-row] > :not([data-gcb-kit-spinner-block])) { display: grid; flex: 1; min-width: 0; gap: var(--gcb-spinner-gap, var(--gcb-kit-gap)); }

/* data-motion="pulse": the blocks fade and return together, no band sweeping across them */
:where([data-gcb-kit="spinner"][data-motion="pulse"] [data-gcb-kit-spinner-block]) {
	background-image: none;
	animation: gcb-spinner-pulse var(--gcb-spinner-dur, calc(var(--gcb-kit-dur-panel) * 2)) var(--gcb-kit-ease-expand) infinite alternate;
}
@keyframes gcb-spinner-pulse { to { opacity: var(--gcb-spinner-fade, 0.4); } }

/* someone who asked for less motion: the site's durations are already nothing; this stills a time set by hand too.
   A turning ring stopped dead looks broken, so the still ring is a ring of dots all the way round: "working", unmoving */
@media (prefers-reduced-motion: reduce) {
	[data-gcb-kit="spinner"], [data-gcb-kit="spinner"] [data-gcb-kit-spinner-block] { animation: none; } /* mechanic: stilled */
	:where([data-gcb-kit="spinner"]:not([data-shape="dots"], [data-shape="placeholder"])) { border-style: dotted; border-color: var(--gcb-spinner-color, currentColor); }
}

/* stat */
/* STAT: a figure, its label, and an optional line of context. A recipe: the figure wears one of the site's heading
   steps (the heading part: gcb-type--display | headline | title), the number in it may count up (the counter part),
   and a row of stats is a grid (the grid part). This sheet is only what is the stat's own: the stack, the gaps, the
   quieter words, and an optional line. No script.
   Every look weighs nothing (:where), so a class written on any element wins, and the heading step's one class sets
   the figure's size. Its pieces are divs and spans, which no theme styles by tag; the one exception is a stat that is
   a list item (README rule 2). Every value is a token: the part's own first, the list's after (tokens/README.md). */
:where([data-gcb-kit="stat"]) {
	display: flex; flex-direction: column; align-items: flex-start; text-align: start; box-sizing: border-box;
	gap: var(--gcb-stat-gap, var(--gcb-kit-gap-s));
	font-family: var(--gcb-kit-font);
}
:where([data-gcb-kit="stat"]) { min-width: 0; } /* mechanic: in a row, a stat is never wider than its column */
:where([data-gcb-kit="stat"][data-align="center"]) { align-items: center; text-align: center; }
:where([data-gcb-kit="stat"][data-align="end"]) { align-items: flex-end; text-align: end; }
/* a stat that is a list item (a row written as a list): a theme styles li by its tag, so this weighs one attribute */
[data-gcb-kit="stat"]:where(li:not([data-gcb-own])) { margin: 0; list-style: none; }

/* THE FIGURE. Its size is the heading step it wears; with none it is twice a panel's title, so it still reads as the
   figure. Its digits are all one width, so it does not shiver as it counts. */
:where([data-gcb-kit="stat"] [data-gcb-kit-figure]) {
	margin: 0; max-width: 100%;
	color: var(--gcb-stat-figure, inherit);
	font-size: calc(var(--gcb-kit-text-title) * 2);
	font-weight: var(--gcb-kit-weight-title);
	line-height: var(--gcb-stat-leading, 1.1);
	font-variant-numeric: tabular-nums lining-nums;
	overflow-wrap: break-word;
}


/* THE LABEL and THE LINE OF CONTEXT: the label is the words' colour, the context quieter, made of the same colour so
   both sit on any background */
:where([data-gcb-kit="stat"] :is([data-gcb-kit-label], [data-gcb-kit-note])) {
	margin: 0; max-width: min(100%, var(--gcb-stat-measure, 28ch));
	line-height: var(--gcb-kit-leading); text-wrap: balance;
}
:where([data-gcb-kit="stat"] [data-gcb-kit-label]) { font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-control); }
:where([data-gcb-kit="stat"] [data-gcb-kit-note]) { font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body); color: var(--gcb-kit-quiet); }
/* the label written first, as on a dashboard, is the quiet name over the figure: smaller, in the quieter words */
:where([data-gcb-kit="stat"] > [data-gcb-kit-label]:first-child) { font-size: var(--gcb-kit-text-control); color: var(--gcb-kit-quiet); }
/* a line of context that is good or bad news ("up 12% on last year") says so in the site's status colours, and a
   thing to know in its info colour */
:where([data-gcb-kit="stat"] [data-gcb-kit-note][data-tone="success"]) { color: var(--gcb-kit-success); }
:where([data-gcb-kit="stat"] [data-gcb-kit-note][data-tone="warning"]) { color: var(--gcb-kit-warning); }
:where([data-gcb-kit="stat"] [data-gcb-kit-note][data-tone="error"]) { color: var(--gcb-kit-error); }
:where([data-gcb-kit="stat"] [data-gcb-kit-note][data-tone="info"]) { color: var(--gcb-kit-info); }

/* WHAT IS SAID instead of the figure, when its glyphs are not how it is spoken ("4.8/5" is "4.8 out of 5"): the shown
   figure is aria-hidden, and this beside it is heard and not seen */
[data-gcb-kit="stat"] [data-gcb-kit-spoken] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: heard, not seen */

/* ITS PIECES WRITTEN AS PARAGRAPHS, as an editor writes them: a theme gives p a margin, a size and a line height by
   its tag, which the rules above (of no weight) lose to. So on a p piece the same values weigh one attribute (README
   rule 2), and a piece the design made its own keeps the theme's. The figure's size is its heading step's class. */
:is([data-gcb-kit-figure], [data-gcb-kit-label], [data-gcb-kit-note]):where(p):where([data-gcb-kit="stat"] > :not([data-gcb-own])) { margin: 0; }
:is([data-gcb-kit-label], [data-gcb-kit-note]):where(p):where([data-gcb-kit="stat"] > :not([data-gcb-own])) { line-height: var(--gcb-kit-leading); }
[data-gcb-kit-label]:where(p):where([data-gcb-kit="stat"] > :not([data-gcb-own])) { font-size: var(--gcb-kit-text-body); }
[data-gcb-kit-label]:where(p):where([data-gcb-kit="stat"] > :first-child:not([data-gcb-own])) { font-size: var(--gcb-kit-text-control); }
[data-gcb-kit-note]:where(p):where([data-gcb-kit="stat"] > :not([data-gcb-own])) { font-size: var(--gcb-kit-text-meta); }
[data-gcb-kit-figure]:where(p:not([class*="gcb-type--"])):where([data-gcb-kit="stat"] > :not([data-gcb-own])) { font-size: calc(var(--gcb-kit-text-title) * 2); line-height: var(--gcb-stat-leading, 1.1); }

/* THE LINE: above the stat (a row of them reads as one ruled band) or at its side */
:where([data-gcb-kit="stat"][data-line="top"]) {
	border-top: var(--gcb-stat-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	padding-top: var(--gcb-stat-pad, var(--gcb-kit-pad-control));
}
:where([data-gcb-kit="stat"][data-line="start"]) {
	border-inline-start: var(--gcb-stat-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	padding-inline-start: var(--gcb-stat-pad, var(--gcb-kit-pad-control));
}

/* THE BOX: a tile, as on a dashboard. A faint fill and a faint line made of the words' colour, so it sits on any
   background, with the site's card corners and a panel's room inside */
:where([data-gcb-kit="stat"][data-box]) {
	background: var(--gcb-stat-fill, var(--gcb-kit-wash));
	border: var(--gcb-stat-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	border-radius: var(--gcb-stat-radius, var(--gcb-kit-radius-card));
	padding: var(--gcb-stat-box-pad, var(--gcb-kit-pad-panel));
}

/* switch */
/* SWITCH: an on/off switch with its words. The switch is a real checkbox that says role="switch", so it works with no
   script, goes in with a form, and takes Space from the keyboard; the root (a <label>) makes its words press it too.
   The checkbox and the label are elements a theme styles by their tag (`input { … }`, `label { display: block;
   font-weight: 700 }`), so their looks weigh ONE attribute and no more (README rule 2): they beat a theme's tag rule,
   lose to a class written after them, and stand aside whole for an element marked data-gcb-own. The words and the
   hint weigh nothing past that. */
[data-gcb-kit="switch"]:where(:not([data-gcb-own])) {
	display: inline-flex; align-items: center; box-sizing: border-box; max-width: 100%; vertical-align: middle;
	gap: var(--gcb-switch-gap, var(--gcb-kit-gap));
	min-height: var(--gcb-kit-control-h);
	margin: 0;
	padding-block: calc(var(--gcb-kit-gap-s) / 2); /* mechanic: one line of words stays the control's height; words that wrap keep clear of the next row */
	padding-inline: 0;
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-body);
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent; /* mechanic: the switch shows its own press */
}
/* a row of settings: the words take the row, the switch sits at its far end */
[data-gcb-kit="switch"]:where([data-wide]:not([data-gcb-own])) { display: flex; justify-content: space-between; }
:where([data-gcb-kit="switch"] [data-gcb-kit-label]) { min-width: 0; } /* mechanic: long words wrap inside the row instead of pushing the switch out */

/* the switch itself. Its faint edge is made of the colour of the words, so it is seen on any background, on or off.
   Its size is held by min-width/min-height as well, so a theme's `input[type="checkbox"] { width: 18px }`, which
   weighs more than one attribute, cannot shrink it to a dot; a class that makes it wider still wins. */
[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own])) {
	appearance: none; flex: none; position: relative; display: inline-block; box-sizing: border-box; vertical-align: middle;
	width: var(--gcb-switch-w, var(--gcb-kit-switch-w));
	height: var(--gcb-switch-h, var(--gcb-kit-switch-h));
	min-width: var(--gcb-switch-w, var(--gcb-kit-switch-w));
	min-height: var(--gcb-switch-h, var(--gcb-kit-switch-h));
	margin: 0; padding: 0; border: 0;
	border-radius: var(--gcb-switch-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-switch-off, var(--gcb-kit-switch-off));
	box-shadow: inset 0 0 0 var(--gcb-kit-line-w) var(--gcb-kit-rule-strong);
	color: inherit; /* mechanic: a browser gives an input its own text colour; the edge above is made of the words' */
	cursor: inherit;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* its handle */
[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]))::after {
	content: ""; position: absolute;
	top: var(--gcb-switch-inset, 3px);
	inset-inline-start: var(--gcb-switch-inset, 3px);
	width: calc(var(--gcb-switch-h, var(--gcb-kit-switch-h)) - var(--gcb-switch-inset, 3px) * 2);
	height: calc(var(--gcb-switch-h, var(--gcb-kit-switch-h)) - var(--gcb-switch-inset, 3px) * 2);
	border-radius: var(--gcb-switch-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-switch-thumb, var(--gcb-kit-surface));
	box-shadow: var(--gcb-kit-shadow-thumb);
	transition: translate var(--gcb-kit-dur-spring) var(--gcb-kit-ease-spring);
}
/* on */
[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):checked) {
	background: var(--gcb-switch-on, var(--gcb-kit-accent));
	box-shadow: inset 0 0 0 var(--gcb-kit-line-w) var(--gcb-kit-rule);
}
[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):checked)::after {
	translate: calc(var(--gcb-switch-w, var(--gcb-kit-switch-w)) - var(--gcb-switch-h, var(--gcb-kit-switch-h))) 0;
}
[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):checked:dir(rtl))::after {
	translate: calc(var(--gcb-switch-h, var(--gcb-kit-switch-h)) - var(--gcb-switch-w, var(--gcb-kit-switch-w))) 0;
}
/* pointed at (the switch or its words): its fill takes a little of the words' colour, so it answers on any ground */
[role="switch"]:where([data-gcb-kit="switch"]:hover input:not([data-gcb-own], :disabled)) {
	background: color-mix(in srgb, var(--gcb-switch-off, var(--gcb-kit-switch-off)) 88%, currentColor);
}
[role="switch"]:where([data-gcb-kit="switch"]:hover input:not([data-gcb-own], :disabled):checked) {
	background: color-mix(in srgb, var(--gcb-switch-on, var(--gcb-kit-accent)) 88%, currentColor);
}
/* pressed: it gives a little, the site's press */
[role="switch"]:where([data-gcb-kit="switch"]:active input:not([data-gcb-own], :disabled)) { scale: var(--gcb-kit-press); }
/* its keyboard mark is the site's, on a switch the design made its own too */
[role="switch"]:where([data-gcb-kit="switch"] input:focus-visible) {
	outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset);
}
/* cannot be used: faint, with its words */
[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):disabled) { opacity: var(--gcb-kit-disabled); }
[data-gcb-kit="switch"]:where(:not([data-gcb-own]):has(input:disabled)) { cursor: not-allowed; }
:where([data-gcb-kit="switch"]:has(input:disabled) [data-gcb-kit-label]) { opacity: var(--gcb-kit-disabled); }

/* THE HINT: quieter words just under a switch (the element after the label), tied to the input by aria-describedby.
   Under a switch that comes first it starts where the words do. It is often a <p>, which themes space by its tag. */
[data-gcb-kit-hint]:where([data-gcb-kit="switch"] + *:not([data-gcb-own])) {
	display: block; box-sizing: border-box; max-width: 100%;
	margin: calc(var(--gcb-kit-gap-s) / -2) 0 0; padding: 0 0 calc(var(--gcb-kit-gap-s) / 2); /* mechanic: tucks up to the words, past the row's own room */
	color: var(--gcb-kit-quiet);
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
}
[data-gcb-kit-hint]:where([data-gcb-kit="switch"]:has(> input:first-child):not([data-wide]) + *:not([data-gcb-own])) {
	padding-inline-start: calc(var(--gcb-switch-w, var(--gcb-kit-switch-w)) + var(--gcb-switch-gap, var(--gcb-kit-gap)));
}
[data-gcb-kit-hint]:where([data-gcb-kit="switch"][data-wide] + *:not([data-gcb-own])) {
	padding-inline-end: calc(var(--gcb-switch-w, var(--gcb-kit-switch-w)) + var(--gcb-switch-gap, var(--gcb-kit-gap)));
}

/* HIGH CONTRAST (forced colours) throws away fills and shadows, and the switch is drawn with nothing else: it draws
   itself in the system's colours instead. Off: an outline with its handle in the words' colour; on: the highlight
   with its handle in the highlight's words; off-limits: the system's grey. */
@media (forced-colors: active) {
	[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own])) {
		forced-color-adjust: none; /* mechanic: keeps the colours set here */
		background: Canvas; box-shadow: inset 0 0 0 var(--gcb-kit-line-w) CanvasText; opacity: 1;
	}
	[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]))::after {
		forced-color-adjust: none; /* mechanic: keeps the colours set here */
		background: CanvasText; box-shadow: none;
	}
	[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):checked) { background: Highlight; box-shadow: inset 0 0 0 var(--gcb-kit-line-w) Highlight; }
	[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):checked)::after { background: HighlightText; }
	[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):disabled) { background: Canvas; box-shadow: inset 0 0 0 var(--gcb-kit-line-w) GrayText; }
	[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):disabled)::after { background: GrayText; }
	[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):disabled:checked) { background: GrayText; }
	[role="switch"]:where([data-gcb-kit="switch"] input:not([data-gcb-own]):disabled:checked)::after { background: Canvas; }
	[role="switch"]:where([data-gcb-kit="switch"] input:focus-visible) { outline-color: Highlight; }
	:where([data-gcb-kit="switch"]:has(input:disabled) [data-gcb-kit-label]) { opacity: 1; color: GrayText; }
}

/* table */
/* TABLE: rows and columns of data. The root is the box the table scrolls sideways in; the <table> is inside it.
   Every value is a token: the part's own first, the list's after (tokens/README.md). Its lines, fills and quieter
   words are made of the colour of the words, so it sits on any background. With no script it is whole and scrolls;
   the script lets the keyboard reach a box that scrolls and fades the edge where more lies.
   WEIGHT (README rule 2): the root weighs nothing. The table, its caption and its cells are elements a theme styles
   BY THEIR TAG (`table { border: … }`, `td { padding: … }`, `caption { font-size: … }`), so each of their rules weighs ONE attribute, the
   `:not([data-gcb-own])` that also makes it stand aside for a table or a cell the design marked as its own. A class
   the design writes on a cell, coming after this file, still wins.
   Its own elements are reached by child steps (root > table > section > row > cell), so a table inside a cell is
   never touched. */
:where([data-gcb-kit="table"]) { box-sizing: border-box; max-width: 100%; overflow-x: auto; font-family: var(--gcb-kit-font); line-height: var(--gcb-kit-leading); }
:where([data-gcb-kit="table"]:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

:where([data-gcb-kit="table"] > table):not([data-gcb-own]) {
	width: 100%; min-width: var(--gcb-table-min, 0);
	margin: 0; padding: 0; border: 0; border-collapse: separate; border-spacing: 0; /* mechanic: each cell draws its own line, so none is cut off by the scrolling box */
	table-layout: auto; background: transparent; color: inherit; font: inherit; text-align: start;
}
:where([data-gcb-kit="table"] > table > * > tr > *):not([data-gcb-own]) {
	box-sizing: border-box;
	padding: var(--gcb-table-pad-y, var(--gcb-kit-gap)) var(--gcb-table-pad-x, var(--gcb-kit-pad-control));
	border: 0; border-bottom: var(--gcb-table-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	background-color: var(--gcb-table-fill, transparent); background-image: none;
	color: inherit; font: inherit; font-weight: var(--gcb-kit-weight-body); letter-spacing: inherit; text-transform: none;
	text-align: start; vertical-align: var(--gcb-table-valign, top);
}
:where([data-gcb-kit="table"] > table > * > tr > th):not([data-gcb-own]) { font-weight: var(--gcb-kit-weight-control); }

/* THE HEADER ROW and THE TOTALS ROW: heavier words, a heavier line between them and the body */
:where([data-gcb-kit="table"] > table > thead > tr > *):not([data-gcb-own]) {
	vertical-align: bottom; letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	border-bottom: var(--gcb-table-head-line, calc(var(--gcb-kit-line-w) * 2) solid currentColor);
}
:where([data-gcb-kit="table"] > table > tfoot > tr > *):not([data-gcb-own]) {
	font-weight: var(--gcb-kit-weight-control);
	border-top: var(--gcb-table-head-line, calc(var(--gcb-kit-line-w) * 2) solid currentColor);
}
:where([data-gcb-kit="table"] > table > tbody:has(+ tfoot) > tr:last-child > *):not([data-gcb-own]) { border-bottom: 0; }

/* GROUPS OF ROWS: a second <tbody> starts under a firmer line, in place of the row line above it */
:where([data-gcb-kit="table"] > table > tbody:has(+ tbody) > tr:last-child > *):not([data-gcb-own]) { border-bottom: 0; }
:where([data-gcb-kit="table"] > table > tbody + tbody > tr:first-child > *):not([data-gcb-own]) { border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong); }

/* A NUMBER: lines up on its end, every digit the same width, so a column of them can be read down */
:where([data-gcb-kit="table"] > table > * > tr > [data-num]):not([data-gcb-own]) { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* THE CAPTION: quieter words made of the words' colour. Above unless data-caption="bottom" */
:where([data-gcb-kit="table"] > table > caption):not([data-gcb-own]) {
	box-sizing: border-box; caption-side: top; text-align: start; margin: 0; border: 0; background: transparent;
	font-style: normal; letter-spacing: inherit; text-transform: none; line-height: var(--gcb-kit-leading);
	padding: var(--gcb-kit-gap-s) var(--gcb-table-pad-x, var(--gcb-kit-pad-control));
	font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body); color: var(--gcb-kit-quiet);
}
:where([data-gcb-kit="table"][data-caption="bottom"] > table > caption):not([data-gcb-own]) { caption-side: bottom; }
:where([data-gcb-kit="table"] > table > caption):not([data-gcb-own]) { position: sticky; inset-inline-start: 0; width: fit-content; max-width: var(--gcb-table-box, 100%); } /* mechanic: the caption stays in view while the table scrolls sideways under it, no wider than the box (the script says how wide that is) */

/* SETTINGS. Tighter rows */
:where([data-gcb-kit="table"][data-size="compact"] > table > * > tr > *):not([data-gcb-own]) { padding: var(--gcb-table-pad-y, calc(var(--gcb-kit-gap-s) / 2)) var(--gcb-table-pad-x, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit="table"][data-size="compact"] > table > caption):not([data-gcb-own]) { padding-inline: var(--gcb-table-pad-x, var(--gcb-kit-gap-s)); }

/* every line drawn: a box round the table and a line between columns. In the header row the column line is drawn
   inside the cell, so it stops at the heavier line under the header and never cuts into it. No lines at all */
:where([data-gcb-kit="table"][data-lines="all"] > table):not([data-gcb-own]) { border-top: var(--gcb-table-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); border-inline-start: var(--gcb-table-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }
:where([data-gcb-kit="table"][data-lines="all"] > table > * > tr > *):not([data-gcb-own]) { border-inline-end: var(--gcb-table-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }
:where([data-gcb-kit="table"][data-lines="all"] > table > thead > tr > *):not([data-gcb-own]) { border-inline-end: 0; }
:where([data-gcb-kit="table"][data-lines="all"] > table > thead > tr > *):not([data-gcb-own]) { position: relative; } /* mechanic: the column line below is placed against the cell */
:where([data-gcb-kit="table"][data-lines="all"] > table > thead > tr > :not([data-gcb-own]))::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; border-inline-end: var(--gcb-table-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }
:where([data-gcb-kit="table"][data-lines="all"] > table > tbody:has(+ tfoot, + tbody) > tr:last-child > *):not([data-gcb-own]) { border-bottom: var(--gcb-table-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule)); }
:where([data-gcb-kit="table"][data-lines="all"] > table > :is(tfoot, tbody + tbody) > tr > *):not([data-gcb-own]) { border-top: 0; }
:where([data-gcb-kit="table"][data-lines="none"] > table > * > tr > *):not([data-gcb-own]) { border-top: 0; border-bottom: 0; }

/* FILLS. A cell's fill is --gcb-table-fill, which each of these sets on the cells it marks: the row under the
   pointer, stripes and a filled header (a wash of the words' colour), the chosen row or cell (a wash of the accent),
   and a row or cell with a tone (a wash of that status colour). Later in this list wins. */
:where([data-gcb-kit="table"][data-hover="1"] > table > tbody > tr:hover > *):not([data-gcb-own]),
:where([data-gcb-kit="table"][data-stripes="rows"] > table > tbody > tr:nth-child(odd) > *):not([data-gcb-own]),
:where([data-gcb-kit="table"][data-stripes="columns"] > table > :is(tbody, tfoot) > tr > :nth-child(even)):not([data-gcb-own]),
:where([data-gcb-kit="table"][data-head="fill"] > table > thead > tr > *):not([data-gcb-own]) { --gcb-table-fill: var(--gcb-table-wash, var(--gcb-kit-wash)); }
:where([data-gcb-kit="table"] > table > * > tr[data-gcb-kit-current] > *, [data-gcb-kit="table"] > table > * > tr > [data-gcb-kit-current]):not([data-gcb-own]) { --gcb-table-fill: color-mix(in srgb, var(--gcb-kit-accent) 12%, transparent); }
:where([data-gcb-kit="table"] > table > * > tr[data-tone="success"] > *, [data-gcb-kit="table"] > table > * > tr > [data-tone="success"]):not([data-gcb-own]) { --gcb-table-fill: color-mix(in srgb, var(--gcb-kit-success) 12%, transparent); }
:where([data-gcb-kit="table"] > table > * > tr[data-tone="warning"] > *, [data-gcb-kit="table"] > table > * > tr > [data-tone="warning"]):not([data-gcb-own]) { --gcb-table-fill: color-mix(in srgb, var(--gcb-kit-warning) 12%, transparent); }
:where([data-gcb-kit="table"] > table > * > tr[data-tone="error"] > *, [data-gcb-kit="table"] > table > * > tr > [data-tone="error"]):not([data-gcb-own]) { --gcb-table-fill: color-mix(in srgb, var(--gcb-kit-error) 12%, transparent); }
:where([data-gcb-kit="table"] > table > * > tr[data-tone="info"] > *, [data-gcb-kit="table"] > table > * > tr > [data-tone="info"]):not([data-gcb-own]) { --gcb-table-fill: color-mix(in srgb, var(--gcb-kit-info) 12%, transparent); }
/* the row under the pointer: one more wash laid over whatever fill the row has, so it shows on a striped, a chosen
   and a toned row alike */
:where([data-gcb-kit="table"][data-hover="1"] > table > tbody > tr:hover > *):not([data-gcb-own]) { background-image: linear-gradient(var(--gcb-table-wash, var(--gcb-kit-wash)), var(--gcb-table-wash, var(--gcb-kit-wash))); }

/* THE FIRST COLUMN HELD IN VIEW (data-pin="first"): each row's first cell stays at the start while the rest scrolls
   under it. Something that covers what passes behind it has to be solid, so it is the site's surface (or
   --gcb-table-pin on a section of another colour) with the row's own fill laid over that. Once the table has been
   scrolled, a firmer line down its edge says there is more behind it. */
:where([data-gcb-kit="table"][data-pin="first"] > table > * > tr > :first-child):not([data-gcb-own]) { position: sticky; inset-inline-start: 0; z-index: 1; } /* mechanic: held at the start of the scrolling box, over the cells that pass behind */
:where([data-gcb-kit="table"][data-pin="first"] > table > * > tr > :first-child):not([data-gcb-own]) {
	background-color: var(--gcb-table-pin, var(--gcb-kit-surface));
	background-image: linear-gradient(var(--gcb-table-fill, transparent), var(--gcb-table-fill, transparent));
}
:where([data-gcb-kit="table"][data-pin="first"][data-hover="1"] > table > tbody > tr:hover > :first-child):not([data-gcb-own]) {
	background-image: linear-gradient(var(--gcb-table-wash, var(--gcb-kit-wash)), var(--gcb-table-wash, var(--gcb-kit-wash))), linear-gradient(var(--gcb-table-fill, transparent), var(--gcb-table-fill, transparent));
}
:where([data-gcb-kit="table"][data-pin="first"][data-gcb-kit-scrolled] > table > * > tr > :first-child:not([data-gcb-own]))::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; border-inline-end: var(--gcb-kit-line-w) solid var(--gcb-kit-rule-strong); }

/* MORE OUT OF SIGHT: the script says how much lies beyond each edge, and that edge fades: --gcb-table-fade wide, and
   never wider than what is hidden, so the last few pixels of a column are not washed out. The caption's strip is left
   out of the fade (the script says how tall it is), so a caption held in view is never faded. */
:where([data-gcb-kit="table"][data-gcb-kit-more]:not(:focus-visible)) {
	mask-image: linear-gradient(to right, transparent, black min(var(--gcb-table-fade, 1.5rem), var(--gcb-table-more-left, 0px)), black calc(100% - min(var(--gcb-table-fade, 1.5rem), var(--gcb-table-more-right, 0px))), transparent), linear-gradient(black, black);
	mask-repeat: no-repeat; /* mechanic: two pieces, the rows (faded) and the caption's strip (whole) */
	mask-size: 100% calc(100% - var(--gcb-table-caption-h, 0px)), 100% var(--gcb-table-caption-h, 0px); /* mechanic: the rows, then the caption's strip */
	mask-position: 0 100%, 0 0; /* mechanic: the caption's strip on top */
}
:where([data-gcb-kit="table"][data-gcb-kit-more][data-caption="bottom"]:not(:focus-visible)) { mask-position: 0 0, 0 100%; } /* mechanic: the caption's strip underneath */

/* ON PAPER nothing scrolls: the whole table is printed */
@media print {
	:where([data-gcb-kit="table"]) { overflow: visible; mask-image: none; }
}

/* tabs */
/* TABS: a strip of tabs over one panel at a time. Every value is a token: the part's own first, the list's after
   (tokens/README.md). A look weighs nothing (:where), so a class the design writes on any of these elements wins. The
   exceptions are the elements a theme styles BY THEIR TAG (README rule 2): a tab is a <button>, and a panel starts and
   ends with a p or a ul. Those rules weigh one attribute, so a theme's `button { … }` does not undo the part, and they
   stand aside for an element the design marked data-gcb-own.
   Its own elements are reached by child steps only (the root, its strip, its items straight inside it or inside one
   box, each item's tab and panel), so a part inside a panel is never touched.
   With no script every panel shows under its title. Its script builds the strip and sets data-gcb-kit-ready. */

/* A TITLE OVER ITS PANEL: each item's tab as written (no script: a button with nothing to press), and the title the
   script stands in for it when the panels stack on a narrow screen */
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"] > [data-gcb-kit-item] > *, [data-gcb-kit="tabs"] > * > [data-gcb-kit-item] > *):where(:not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: none; height: auto; min-height: 0;
	margin: 0 0 var(--gcb-kit-gap-s); padding: 0; border: 0; border-radius: 0; box-shadow: none; text-shadow: none;
	background: transparent; color: inherit; font: inherit; text-align: start; cursor: default;
	font-weight: var(--gcb-kit-weight-title); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case); text-decoration: none;
}
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"] > [data-gcb-kit-item] > *, [data-gcb-kit="tabs"] > * > [data-gcb-kit-item] > *):where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; color: inherit; }
:where([data-gcb-kit="tabs"] > [data-gcb-kit-item] > [data-gcb-kit-title], [data-gcb-kit="tabs"] > * > [data-gcb-kit-item] > [data-gcb-kit-title]) {
	margin: 0 0 var(--gcb-kit-gap-s);
	font-weight: var(--gcb-kit-weight-title); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
}
/* stacked items: the panel's room between them, half above and half below the line */
:where([data-gcb-kit="tabs"]:not([data-gcb-kit-mode="tabs"]) > [data-gcb-kit-item] + [data-gcb-kit-item], [data-gcb-kit="tabs"]:not([data-gcb-kit-mode="tabs"]) > * > [data-gcb-kit-item] + [data-gcb-kit-item]) {
	margin-top: calc(var(--gcb-tabs-panel-pad, var(--gcb-kit-pad-panel)) / 2);
	padding-top: calc(var(--gcb-tabs-panel-pad, var(--gcb-kit-pad-panel)) / 2);
	border-top: var(--gcb-kit-line-w) solid var(--gcb-tabs-line, var(--gcb-kit-rule));
}

/* THE PANEL: the room round it is the part's, so the first and last things in it bring none of their own: by tag for
   the ones a theme gives margins to */
:where([data-gcb-kit="tabs"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > :first-child, [data-gcb-kit="tabs"] > * > [data-gcb-kit-item] > [data-gcb-kit-panel] > :first-child) { margin-top: 0; }
:where([data-gcb-kit="tabs"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > :last-child, [data-gcb-kit="tabs"] > * > [data-gcb-kit-item] > [data-gcb-kit-panel] > :last-child) { margin-bottom: 0; }
[data-gcb-kit-panel] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="tabs"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > :first-child, [data-gcb-kit="tabs"] > * > [data-gcb-kit-item] > [data-gcb-kit-panel] > :first-child):where(:not([data-gcb-own])) { margin-top: 0; }
[data-gcb-kit-panel] > :where(p, ul, ol, dl, table, figure, blockquote, h1, h2, h3, h4, h5, h6):where([data-gcb-kit="tabs"] > [data-gcb-kit-item] > [data-gcb-kit-panel] > :last-child, [data-gcb-kit="tabs"] > * > [data-gcb-kit-item] > [data-gcb-kit-panel] > :last-child):where(:not([data-gcb-own])) { margin-bottom: 0; }
/* focused (a panel, or a stacked title the keyboard was moved to): the site's outline, in the colour of the words, so
   it shows on a section's own colour too */
:where([data-gcb-kit="tabs"] > [data-gcb-kit-item] > :is([data-gcb-kit-panel], [data-gcb-kit-title]):focus-visible, [data-gcb-kit="tabs"] > * > [data-gcb-kit-item] > :is([data-gcb-kit-panel], [data-gcb-kit-title]):focus-visible) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }
/* the panel that was just chosen fades in, once */
@keyframes gcb-tabs-in { from { opacity: 0; } }
:where([data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"]:not([data-effect="none"]) > [data-gcb-kit-item] > [data-gcb-kit-panel][data-gcb-kit-entering], [data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"]:not([data-effect="none"]) > * > [data-gcb-kit-item] > [data-gcb-kit-panel][data-gcb-kit-entering]) { animation: gcb-tabs-in var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand); }

/* THE STRIP: a row that scrolls sideways when its tabs do not fit, standing on a line made of the words' colour.
   With no script it stays empty and takes no room. */
:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist]) {
	display: flex; gap: var(--gcb-tabs-gap, var(--gcb-kit-gap-s));
	margin-bottom: var(--gcb-tabs-panel-pad, var(--gcb-kit-pad-panel));
	overflow-x: auto; scrollbar-width: none;
	background: linear-gradient(var(--gcb-tabs-line, var(--gcb-kit-rule)), var(--gcb-tabs-line, var(--gcb-kit-rule))) bottom / 100% var(--gcb-kit-line-w) no-repeat;
}
:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist])::-webkit-scrollbar { display: none; }
:where([data-gcb-kit="tabs"]:not([data-gcb-kit-ready]) > [data-gcb-kit-tablist]) { display: none; }
/* more tabs out of sight at an end: that end fades out (a mask: black is seen, transparent is not) */
:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist][data-gcb-kit-more="right"]) { mask-image: linear-gradient(to right, black calc(100% - var(--gcb-tabs-fade, 3rem)), transparent); }
:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist][data-gcb-kit-more="left"]) { mask-image: linear-gradient(to left, black calc(100% - var(--gcb-tabs-fade, 3rem)), transparent); }
:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist][data-gcb-kit-more="both"]) { mask-image: linear-gradient(to right, transparent, black var(--gcb-tabs-fade, 3rem), black calc(100% - var(--gcb-tabs-fade, 3rem)), transparent); }

/* A TAB ON THE STRIP: quieter until it is chosen or hovered; the chosen one stands on its marker */
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; justify-content: center;
	gap: var(--gcb-kit-gap-s);
	width: auto; min-width: 0; max-width: none; height: auto; min-height: var(--gcb-kit-control-h);
	margin: 0; padding: var(--gcb-tabs-pad, var(--gcb-kit-gap) var(--gcb-kit-pad-control));
	border: 0; border-bottom: var(--gcb-tabs-marker, calc(var(--gcb-kit-line-w) * 2) solid currentColor);
	border-radius: 0; box-shadow: none; text-shadow: none;
	background: transparent; color: inherit; font: inherit; text-align: center; white-space: nowrap; cursor: pointer;
	font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case); text-decoration: none;
	transition: background-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback);
}
/* a tab at rest: the quieter words of any background, and no marker */
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist] > :not([aria-selected="true"])):where(:not([data-gcb-own])) { border-color: transparent; color: var(--gcb-tabs-rest, var(--gcb-kit-quiet)); }
/* hovered: at full strength; a theme's own `button:hover` fill is kept off */
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: transparent; }
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])):hover { color: inherit; }
/* focused: the site's outline in the colour of the words, so it shows on a section's own colour too, and inside the
   tab's own edge, where the scrolling strip cannot cut it off */
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: calc(var(--gcb-kit-focus-offset) * -1); }

/* data-fill="1": the tabs share the strip's width */
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-fill="1"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])) { flex: 1 1 0; }
/* data-align="center" or "end": where the tabs stand on the strip (room at the sides, which a strip that scrolls keeps whole) */
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"]:is([data-align="center"], [data-align="end"]):not([data-orientation="vertical"]) > [data-gcb-kit-tablist] > :first-child):where(:not([data-gcb-own])) { margin-inline-start: auto; }
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-align="center"]:not([data-orientation="vertical"]) > [data-gcb-kit-tablist] > :last-child):where(:not([data-gcb-own])) { margin-inline-end: auto; }

/* data-look="pills": no line; the chosen tab is a pill filled with the site's accent, a hovered one a faint wash */
:where([data-gcb-kit="tabs"][data-look="pills"] > [data-gcb-kit-tablist]) { background: none; }
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-look="pills"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])) { border: 0; border-radius: var(--gcb-tabs-radius, var(--gcb-kit-radius-full)); }
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-look="pills"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])):hover { background: var(--gcb-kit-wash); }
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-look="pills"] > [data-gcb-kit-tablist] > [aria-selected="true"]):where(:not([data-gcb-own])),
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-look="pills"] > [data-gcb-kit-tablist] > [aria-selected="true"]):where(:not([data-gcb-own])):is(:hover, :focus, :active) { background: var(--gcb-tabs-pill, var(--gcb-kit-accent)); color: var(--gcb-tabs-pill-ink, var(--gcb-kit-on-accent)); }

/* a tab that cannot be chosen: the quieter words made fainter still, and it does not answer the pointer */
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])):is(:disabled, [aria-disabled="true"]) { background: transparent; color: var(--gcb-tabs-rest, var(--gcb-kit-quiet)); opacity: var(--gcb-kit-disabled); cursor: not-allowed; }

/* data-orientation="vertical": the tabs in a column as wide as their words, beside the panel; the line and the marker
   down the side the words start from */
:where([data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"][data-orientation="vertical"]) { display: flex; align-items: flex-start; gap: var(--gcb-tabs-panel-pad, var(--gcb-kit-pad-panel)); }
:where([data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"][data-orientation="vertical"] > :not([data-gcb-kit-tablist])) {
	flex: 1; min-width: 0;
	padding-top: calc((var(--gcb-kit-control-h) - 1lh) / 2); /* the panel's first line level with the first tab's words */
}
:where([data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"][data-orientation="vertical"] > [data-gcb-kit-tablist]) {
	flex: none; flex-direction: column; box-sizing: border-box; width: var(--gcb-tabs-side, auto); max-width: 40%; margin-bottom: 0;
	overflow: visible; background: none;
	border-inline-start: var(--gcb-kit-line-w) solid var(--gcb-tabs-line, var(--gcb-kit-rule));
}
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"][data-orientation="vertical"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])) {
	justify-content: flex-start; text-align: start; white-space: normal;
	margin-inline-start: calc(var(--gcb-kit-line-w) * -1);
	border-bottom: 0; border-inline-start: var(--gcb-tabs-marker, calc(var(--gcb-kit-line-w) * 2) solid currentColor);
}
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"][data-orientation="vertical"] > [data-gcb-kit-tablist] > :not([aria-selected="true"])):where(:not([data-gcb-own])) { border-color: transparent; }
:where([data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"][data-orientation="vertical"][data-look="pills"] > [data-gcb-kit-tablist]) { border: 0; }
[data-gcb-kit-tab]:where([data-gcb-kit="tabs"][data-gcb-kit-mode="tabs"][data-orientation="vertical"][data-look="pills"] > [data-gcb-kit-tablist] > *):where(:not([data-gcb-own])) { margin-inline-start: 0; border: 0; }

[data-gcb-kit="tabs"][data-gcb-kit-ready] :is([data-gcb-kit-tablist], [data-gcb-kit-item], [data-gcb-kit-panel], [data-gcb-kit-title])[hidden] { display: none; } /* mechanic: one panel at a time, whatever display a design's class gives it */

/* tags-input */
/* TAGS INPUT: words typed into one box, each becoming a chip. Every value is a token: the part's own first, the site's
   after (tokens/README.md). As written it is a label over ONE real <input> whose value is the words, comma-separated;
   with no script that input is the whole part and wears the box's look. Its script hides that input (it stays the
   form's), and draws the box: the chips, then a bare input to type the next one in.
   An input and a button are elements a theme styles by their tag, so their looks weigh ONE attribute and no more
   (README rule 2) and stand aside for one marked data-gcb-own. Everything else weighs nothing. The box's line, a chip's
   fill and line, the help and the placeholder are made of the colour of the words, so it sits on any background with
   nothing set. */
:where([data-gcb-kit="tags-input"]) {
	display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
	gap: calc(var(--gcb-kit-gap-s) * 0.75);
	font-family: var(--gcb-kit-font); line-height: var(--gcb-kit-leading); text-align: start;
}

/* THE LABEL, above the box */
:where([data-gcb-kit="tags-input"] [data-gcb-kit-label]) {
	display: block; margin: 0; padding: 0; color: inherit;
	font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-control);
}

/* THE BOX: the plain input while there is no script, the box round the chips once there is */
[data-gcb-kit="tags-input"] :where(input:not([data-gcb-own], [data-gcb-kit-tags-entry], [data-gcb-kit-tag-input])),
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control]:not([data-gcb-own])) {
	box-sizing: border-box; width: 100%; min-width: 0; margin: 0;
	min-height: var(--gcb-tags-input-h, var(--gcb-kit-control-h));
	border: var(--gcb-kit-line-w) solid var(--gcb-tags-input-line, var(--gcb-kit-rule-strong));
	border-radius: var(--gcb-tags-input-radius, var(--gcb-kit-radius-field));
	background: var(--gcb-tags-input-ground, transparent);
	box-shadow: none; color: inherit;
	font: inherit; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
	letter-spacing: inherit; text-transform: none;
	transition: border-color var(--gcb-kit-dur-feedback), box-shadow var(--gcb-kit-dur-feedback);
}
[data-gcb-kit="tags-input"] :where(input:not([data-gcb-own], [data-gcb-kit-tags-entry], [data-gcb-kit-tag-input])) {
	display: block; padding: 0 var(--gcb-tags-input-pad-x, var(--gcb-kit-pad-control));
}
/* the box round the chips grows a row at a time as they wrap; a chip sits the same distance in from every edge */
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control]:not([data-gcb-own])) {
	gap: var(--gcb-tags-input-gap, calc(var(--gcb-kit-gap-s) * 0.75));
	padding: calc((var(--gcb-tags-input-h, var(--gcb-kit-control-h)) - var(--gcb-tags-input-tag-h, var(--gcb-kit-pill-h))) / 2 - var(--gcb-kit-line-w));
}
/* no chips yet: the words start where a field's do */
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control]:not([data-gcb-own]):not(:has([data-gcb-kit-tag]))) {
	padding-inline-start: calc(var(--gcb-tags-input-pad-x, var(--gcb-kit-pad-control)) - var(--gcb-kit-gap-s) / 2);
}
[data-gcb-kit="tags-input"] [data-gcb-kit-tags-control] { display: flex; flex-wrap: wrap; align-items: center; cursor: text; } /* mechanic: chips and the typing box in rows */
[data-gcb-kit="tags-input"] :where(input:not([data-gcb-own], [data-gcb-kit-tags-entry], [data-gcb-kit-tag-input]))::placeholder,
[data-gcb-kit-tags-entry]:where(:not([data-gcb-own]))::placeholder { color: var(--gcb-kit-quiet); opacity: 1; }

/* ITS STATES. Hover: a firmer line. Typed in: the site's mark for a box to type in (the accent's line and the soft
   ring); the see-through outline is what a forced-colours screen draws instead. */
[data-gcb-kit="tags-input"] :where(input:not([data-gcb-own], [data-gcb-kit-tags-entry], [data-gcb-kit-tag-input]):hover:not(:disabled, :focus)),
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control]:not([data-gcb-own], [data-disabled], [data-focus]):hover) { border-color: var(--gcb-kit-quiet); }
[data-gcb-kit="tags-input"] :where(input:not([data-gcb-own], [data-gcb-kit-tags-entry], [data-gcb-kit-tag-input]):focus),
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control][data-focus]:not([data-gcb-own])) {
	outline: var(--gcb-kit-line-w) solid transparent;
	border-color: var(--gcb-kit-accent);
	box-shadow: var(--gcb-kit-focus-ring);
}
/* wrong: aria-invalid="true" on the input (the script says it on the box as data-invalid) */
[data-gcb-kit="tags-input"] :where(input[aria-invalid="true"]:not([data-gcb-own], [data-gcb-kit-tags-entry], [data-gcb-kit-tag-input])),
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control][data-invalid]:not([data-gcb-own])) { border-color: var(--gcb-kit-error); }
[data-gcb-kit="tags-input"] :where(input[aria-invalid="true"]:not([data-gcb-own], [data-gcb-kit-tags-entry], [data-gcb-kit-tag-input]):focus),
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control][data-invalid][data-focus]:not([data-gcb-own])) { box-shadow: var(--gcb-kit-error-ring); }
/* off: the whole part quiet, never the pointer */
:where([data-gcb-kit="tags-input"]:has(input:disabled)) { opacity: var(--gcb-kit-disabled); }
[data-gcb-kit="tags-input"] [data-gcb-kit-tags-control][data-disabled] { cursor: not-allowed; } /* mechanic: nothing here can be pressed */
/* read-only: there to be read, a faint fill says it is not for typing */
[data-gcb-kit="tags-input"] :where(input[readonly]:not([data-gcb-own], [data-gcb-kit-tags-entry], [data-gcb-kit-tag-input])),
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control][data-readonly]:not([data-gcb-own])) { background: var(--gcb-kit-wash); }

/* THE WORDS BEING TYPED: a bare input in the box's line, as wide as what is left of the row */
[data-gcb-kit-tags-entry]:where(:not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; margin: 0; padding: 0 calc(var(--gcb-kit-gap-s) / 2);
	flex: 1 1 var(--gcb-tags-input-entry, 8ch); width: auto; min-width: var(--gcb-tags-input-entry, 8ch); max-width: 100%; /* takes the rest of the row; wraps to a new one when there is no room */
	height: var(--gcb-tags-input-tag-h, var(--gcb-kit-pill-h)); min-height: 0;
	border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-size: var(--gcb-kit-text-body); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
}
/* the placeholder is an invitation to start: gone once there is a chip, or no room for another (the same weight as
   its colour above, and after it) */
[data-gcb-kit-tags-entry]:where([data-gcb-kit-tag] ~ *, [data-gcb-kit="tags-input"][data-full] *):where(:not([data-gcb-own]))::placeholder { color: transparent; }
/* beside chips and with nothing typed, it asks only for the room left on the row, so it never drops to a row of its
   own and leaves an empty row in the box; the first letter typed gives it its room back (data-typed, from the script) */
[data-gcb-kit-tags-entry]:where([data-gcb-kit-tag] ~ :not([data-typed], [data-gcb-own])) { flex-basis: var(--gcb-kit-gap); min-width: var(--gcb-kit-gap); }

/* A CHIP: its words and a cross. Never the design's <template data-gcb-kit-tag> it is made from: a look on that would
   beat the browser's own template { display: none } and draw an empty chip */
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tag]:not(template)) {
	box-sizing: border-box; display: inline-flex; align-items: center; min-width: 0; max-width: 100%;
	gap: calc(var(--gcb-kit-gap-s) / 2);
	height: var(--gcb-tags-input-tag-h, var(--gcb-kit-pill-h));
	padding: 0 calc((var(--gcb-tags-input-tag-h, var(--gcb-kit-pill-h)) - 2 * var(--gcb-kit-line-w) - var(--gcb-tags-input-remove, 24px)) / 2) 0 var(--gcb-kit-gap);
	border: var(--gcb-kit-line-w) solid var(--gcb-tags-input-tag-line, var(--gcb-kit-rule));
	border-radius: var(--gcb-tags-input-tag-radius, var(--gcb-kit-radius-full));
	background: var(--gcb-tags-input-tag-ground, var(--gcb-kit-wash));
	color: var(--gcb-tags-input-tag-ink, inherit);
	font-size: var(--gcb-tags-input-tag-text, var(--gcb-kit-text-meta)); font-weight: var(--gcb-kit-weight-control); line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	cursor: default;
	transition: background-color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tag]:not(template):dir(rtl)) { padding: 0 var(--gcb-kit-gap) 0 calc((var(--gcb-tags-input-tag-h, var(--gcb-kit-pill-h)) - 2 * var(--gcb-kit-line-w) - var(--gcb-tags-input-remove, 24px)) / 2); }
/* a chip with no cross (read-only): the same room at both ends */
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tags-control]:is([data-readonly], [data-disabled]) [data-gcb-kit-tag]:not(template)) { padding: 0 var(--gcb-kit-gap); }
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tag]:not(template):hover) { border-color: var(--gcb-kit-rule-strong); }
/* one just typed arrives; with reduced motion the site's durations are 0 and it is simply there */
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tag][data-new]) { animation: gcb-tags-input-pop var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand) backwards; }
@keyframes gcb-tags-input-pop { from { opacity: 0; scale: 0.9; } }
/* marked by Backspace or the arrows (the next Backspace takes it off), or being edited: a firm line and a fuller fill,
   both made of the words' colour */
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tag]:is([data-highlighted], [data-editing])) { border-color: currentColor; background: var(--gcb-kit-rule); }
:where([data-gcb-kit="tags-input"] [data-gcb-kit-tag-text]) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ITS CROSS: a button; drawn here while it is empty, or put a drawing of your own in it and it is left alone */
[data-gcb-kit-tag-remove]:where(:not([data-gcb-own])) {
	appearance: none; flex: none; position: relative; display: inline-grid; place-items: center; box-sizing: border-box;
	width: var(--gcb-tags-input-remove, 24px); height: var(--gcb-tags-input-remove, 24px); min-height: 0;
	margin: 0; padding: 0; border: 0; border-radius: var(--gcb-kit-radius-full);
	background: transparent; box-shadow: none; color: inherit; font: inherit; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* its states weigh the attribute and the state, as a theme's button:hover or button:focus does, and come after it in
   the rules that matter: so a theme's dark hover fill never lands on the cross */
[data-gcb-kit-tag-remove]:where(:not([data-gcb-own])):is(:hover, :focus, :active) { border: 0; background: transparent; box-shadow: none; color: inherit; }
[data-gcb-kit-tag-remove]:where(:not([data-gcb-own])):hover { background: var(--gcb-kit-rule); }
[data-gcb-kit-tag-remove]:where(:not([data-gcb-own])):active { scale: var(--gcb-kit-press); }
/* focused: the site's outline in the colour of the words, as every part's, so it shows on a section's own colour */
[data-gcb-kit-tag-remove]:where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: 0; }
[data-gcb-kit-tag-remove]:where(:not([data-gcb-own]):empty)::before,
[data-gcb-kit-tag-remove]:where(:not([data-gcb-own]):empty)::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 46%; height: min(calc(var(--gcb-kit-line-w) * 1.5), 8%); /* a heavy border never makes the cross a blot */
	border-radius: var(--gcb-kit-radius-full); background: currentColor; rotate: 45deg;
}
[data-gcb-kit-tag-remove]:where(:not([data-gcb-own]):empty)::after { rotate: -45deg; }
[data-gcb-kit="tags-input"] [data-gcb-kit-tags-control]:is([data-readonly], [data-disabled]) [data-gcb-kit-tag-remove] { display: none; } /* mechanic: nothing can be taken off */

/* A CHIP EDITED IN PLACE (data-editable): its words become a bare input inside the chip */
[data-gcb-kit-tag-input]:where(:not([data-gcb-own])) {
	appearance: none; box-sizing: content-box; margin: 0; padding: 0; height: 100%; min-height: 0; min-width: 0; max-width: 100%;
	border: 0; border-radius: 0; outline: 0; background: transparent; box-shadow: none; color: inherit;
	font: inherit; letter-spacing: inherit;
}
[data-gcb-kit="tags-input"] [data-gcb-kit-tag][data-editing] :is([data-gcb-kit-tag-text], [data-gcb-kit-tag-remove]) { display: none; } /* mechanic: the input stands in for the words while they are edited */

/* THE WORDS UNDER IT: help, and what went wrong (one too many, a word that is not allowed) in its place */
:where([data-gcb-kit="tags-input"] [data-gcb-kit-hint]) { margin: 0; color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); }
:where([data-gcb-kit="tags-input"] [data-gcb-kit-error-text]) { margin: 0; color: var(--gcb-kit-error); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-control); }
[data-gcb-kit="tags-input"] [data-gcb-kit-error-text]:empty { display: none; } /* mechanic: nothing wrong, nothing shown */
[data-gcb-kit="tags-input"]:has([data-gcb-kit-error-text]:not(:empty)) [data-gcb-kit-hint] { display: none; } /* mechanic: the error takes the help's place */

[data-gcb-kit="tags-input"][data-gcb-kit-ready] [data-gcb-kit-tags-value] { display: none; } /* mechanic: the real input is the form's now; the box stands in for it */
[data-gcb-kit="tags-input"] [data-gcb-kit-tags-status] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* mechanic: heard by a screen reader, never seen */

/* text */
/* TEXT: running text. The root is the wrapper of an article's content; what is inside is plain HTML (p, h2, ul, a …).
   Every value is a token: the part's own first, the list's after (tokens/README.md).
   WEIGHT: almost everything in here is an element a theme styles by its tag (p, h2, ul, a, blockquote, figure, pre,
   figcaption …), so those rules weigh ONE attribute (the root's) and no more. A link's states weigh that and the
   state, as a theme's `a:hover` does, so a theme's hover, visited or focus rule does not take the link over.
   REACH: those rules are nested under one selector that picks out what is this text's own: not another part's root,
   not an element marked data-gcb-own, and nothing inside one, UNLESS it is inside a text again (an FAQ's answers set as
   text, in an article; one such step deep, which is as far as pages go). Written once, so every rule below carries it. The root and the
   spacing between its children sit outside it, so another part in the text is still spaced like a paragraph.
   Lines, fills and quieter words are made of the colour of the words, so it sits on any background.
   The SIZE of body words and of headings is the page's and the site's heading steps: this part does not set them. */
:where([data-gcb-kit="text"]) {
	max-width: var(--gcb-text-measure, 68ch);
	font-family: var(--gcb-kit-font); font-weight: var(--gcb-kit-weight-body); font-size: var(--gcb-kit-text-reading);
	line-height: var(--gcb-text-leading, var(--gcb-kit-leading-reading));
	overflow-wrap: break-word; /* mechanic: a long address breaks rather than pushing the page sideways on a phone */
}
:where([data-gcb-kit="text"][data-align="center"]) { margin-inline: auto; }
:where([data-gcb-kit="text"][data-links="accent"]) { --gcb-text-link: var(--gcb-kit-accent); --gcb-text-link-hover: var(--gcb-kit-accent-hover); }

/* THE FLOW: nothing has a margin of its own; each thing that follows another gets one space above it. This weightless
   form is for anything (a box, another part); the same for the tags a theme styles is in the nested rules below */
:where([data-gcb-kit="text"] > *) { margin-block: 0; }
:where([data-gcb-kit="text"] > * + *) { margin-block-start: var(--gcb-text-flow, 1em); }
:where([data-gcb-kit="text"] > :is(h1, h2, h3, h4, h5, h6) + *) { margin-block-start: calc(var(--gcb-text-flow, 1em) * 0.6); }

/* what is this text's own: X is another part's root or the design's own element, T a text's root. Not X; and either
   inside no X within a text, or inside a text that is inside an X within a text, with no X under that text */
[data-gcb-kit="text"] :where(:not(:is([data-gcb-kit]:not([data-gcb-kit="text"]), [data-gcb-own])):is(:not([data-gcb-kit="text"] :is([data-gcb-kit]:not([data-gcb-kit="text"]), [data-gcb-own]) *), [data-gcb-kit="text"] :is([data-gcb-kit]:not([data-gcb-kit="text"]), [data-gcb-own]) [data-gcb-kit="text"] *:not([data-gcb-kit="text"] :is([data-gcb-kit]:not([data-gcb-kit="text"]), [data-gcb-own]) [data-gcb-kit="text"] :is([data-gcb-kit]:not([data-gcb-kit="text"]), [data-gcb-own]) *))) {
	&:where(p, ul, ol, dl, dd, blockquote, figure, figcaption, pre, hr, h1, h2, h3, h4, h5, h6) { margin: 0; }
	&:where(* + :is(p, ul, ol, dl, blockquote, figure, pre)) { margin-block-start: var(--gcb-text-flow, 1em); }
	/* the reading line height on each thing a theme gives one by its tag, not only on the root */
	&:where(p, li, dt, dd, blockquote) { line-height: var(--gcb-text-leading, var(--gcb-kit-leading-reading)); }

	/* HEADINGS: more room above than below, so a heading belongs to what follows it; lines close together and evenly broken */
	&:where(h1, h2, h3, h4, h5, h6) { line-height: var(--gcb-text-heading-leading, 1.2); text-wrap: balance; }
	&:where(* + :is(h1, h2, h3, h4, h5, h6)) { margin-block-start: var(--gcb-text-flow-heading, 1.4em); }
	&:where(:is(h1, h2, h3, h4, h5, h6) + :is(p, ul, ol, dl, blockquote, figure, pre, h1, h2, h3, h4, h5, h6)) { margin-block-start: calc(var(--gcb-text-flow, 1em) * 0.6); }

	/* A LEAD PARAGRAPH and SMALL PRINT. The lead has its own line height: a larger size wants tighter lines, whatever
	   the body's are */
	&:where([data-gcb-kit-lead]) { font-size: var(--gcb-text-lead, var(--gcb-kit-text-lead)); line-height: var(--gcb-text-lead-leading, 1.45); text-wrap: pretty; }
	&:where([data-gcb-kit-small], small) { font-size: var(--gcb-text-small, var(--gcb-kit-text-small)); color: var(--gcb-kit-quiet); }

	/* LINKS INSIDE TEXT: the words' colour, underlined, so they read on any background; the underline firms up under the
	   pointer. A link with a class is the design's (a button), and is left alone */
	&:where(a:not([class])):is(:link, :visited) {
		color: var(--gcb-text-link, currentColor);
		text-decoration: underline; text-decoration-thickness: var(--gcb-kit-line-w); text-underline-offset: var(--gcb-text-link-offset, 0.18em);
		text-decoration-color: var(--gcb-kit-rule-strong);
		transition: color var(--gcb-kit-dur-feedback), text-decoration-color var(--gcb-kit-dur-feedback);
	}
	&:where(a:not([class])):hover { color: var(--gcb-text-link-hover, var(--gcb-text-link, currentColor)); text-decoration-line: underline; text-decoration-color: currentColor; }
	/* a link that is a heading, or in one, is not underlined, at rest or under the pointer, unless the site chose it */
	&:where(:is(h1, h2, h3, h4, h5, h6) a:not([class])) { text-decoration-line: none; color: inherit; }
	&:where(:is(h1, h2, h3, h4, h5, h6) a:not([class])):hover { text-decoration-line: var(--gcb-kit-hover-heading); }
	&:where(a:not([class])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); border-radius: var(--gcb-kit-radius-check); }

	/* LISTS: set in, their marks drawn (a reset theme takes them away) and quieter than the words */
	&:where(ul, ol) { padding: 0; padding-inline-start: var(--gcb-text-indent, 1.4em); list-style-position: outside; }
	&:where(ul) { list-style-type: disc; }
	&:where(li ul) { list-style-type: circle; }
	&:where(ol) { list-style-type: decimal; }
	&:where(li) { margin: 0; padding: 0; }
	&:where(li + li, li > ul, li > ol) { margin-block-start: var(--gcb-text-item-gap, 0.4em); }
	&:where(li)::marker { color: var(--gcb-kit-quiet); }

	/* TERMS AND WHAT THEY MEAN: the term firmer, its meaning set in under it like a list's items */
	&:where(dt) { font-weight: var(--gcb-kit-weight-control); }
	&:where(dd) { margin-inline-start: var(--gcb-text-indent, 1.4em); }
	&:where(dd + dt) { margin-block-start: var(--gcb-text-item-gap, 0.4em); }

	/* A QUOTE: a line down its side made of the words' colour; who said it, small and quiet, after a dash */
	&:where(blockquote) {
		padding: 0; padding-inline-start: var(--gcb-kit-pad-control);
		border: 0; border-inline-start: var(--gcb-text-quote-line, calc(var(--gcb-kit-line-w) + 2px)) solid var(--gcb-kit-rule-strong);
	}
	&:where(blockquote :is(cite, footer)) { font-size: var(--gcb-text-small, var(--gcb-kit-text-small)); font-style: normal; color: var(--gcb-kit-quiet); }
	&:where(blockquote > footer)::before { content: "\2014\00a0"; }

	/* A PICTURE never wider than the column; its caption small and quiet */
	&:where(img, video) { max-width: 100%; height: auto; }
	&:where(figure > :is(img, video)) { display: block; }
	&:where(figcaption) { margin-block-start: var(--gcb-kit-gap-s); font-size: var(--gcb-text-small, var(--gcb-kit-text-small)); line-height: var(--gcb-kit-leading); color: var(--gcb-kit-quiet); }

	/* A LINE between two parts of an article: twice the space above and below */
	&:where(hr) { height: 0; border: 0; border-top: var(--gcb-kit-line-w) solid var(--gcb-kit-rule); margin-block: calc(var(--gcb-text-flow, 1em) * 2); }

	/* CODE, a block of it, a key and marked words: faint fills made of the words' colour (marked words, of the accent) */
	&:where(:not(pre) > code) { padding: 0; padding-inline: calc(var(--gcb-kit-gap-s) / 2); border-radius: var(--gcb-kit-radius-check); background-color: var(--gcb-kit-wash); }
	&:where(pre) {
		padding: var(--gcb-kit-pad-control); border: 0; border-radius: var(--gcb-kit-radius-field); background-color: var(--gcb-kit-wash);
		font-size: var(--gcb-kit-text-control); line-height: var(--gcb-kit-leading);
		overflow-x: auto; /* mechanic: a long line of code scrolls in its own box, not the page */
	}
	&:where(pre > code) { padding: 0; border-radius: 0; background: none; font-size: inherit; }
	&:where(pre):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
	&:where(kbd) {
		padding-inline: calc(var(--gcb-kit-gap-s) / 2);
		border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule); border-radius: var(--gcb-kit-radius-check);
		background-color: var(--gcb-kit-wash); font-family: inherit; font-size: var(--gcb-kit-text-control); white-space: nowrap;
	}
	&:where(abbr[title]) { text-decoration: underline dotted; text-decoration-thickness: auto; /* mechanic: the font's own weight of line, so a dotted line stays dots on a site with heavy lines */ text-underline-offset: var(--gcb-text-link-offset, 0.18em); cursor: help; }
	&:where(mark) { background-color: color-mix(in srgb, var(--gcb-kit-accent) 22%, transparent); color: inherit; }
}

/* text-media */
/* TEXT + MEDIA: words beside a picture or a video, or above or below it. Two pieces in one box: data-gcb-atom="words"
   and data-gcb-atom="media" (an img, a video, or a box holding one). No script.
   As written the words are on the left and the picture on the right, half and half, the words centred against the
   picture, side by side from 1024px and stacked below that in the order written. Its settings, on the root:
     data-text     left | right | above | below: where the words sit
     data-share    the picture's share of the width beside words: 25 33 40 45 50 55 60 66 75
     data-valign   start | center | end: the words against the picture
     data-align    start | center | end: the words' own alignment
     data-gap      between the two: none | s | m | l | xl (0, 2, 4, 6 and 8 of the site's gaps; m when left out)
     data-offset   none | s | m | l (0, 2, 4 and 6 of the site's gaps): the words held in from their outer edge
     data-ratio    1x1 | 4x5 | 4x3 | 3x2 | 16x9 | 21x9: the shape the picture is cut to
     data-phone    media | text: which comes first when they stack
     data-beside   tablet: side by side from 768px, not 1024px
     data-bleed    edge: the picture runs on to the screen's edge; full: it also fills the row top to bottom
     data-layout   own: the layout is the design's; nothing below lays it out
   The layout weighs nothing (:where), so a class the design writes on any of these elements wins. img, video, iframe
   and figure are styled BY THEIR TAG by a theme that is not reset, so the rules on those weigh one attribute (README
   rule 2) and stand aside for an element marked data-gcb-own. Every value is a token: the part's own (--gcb-tm-…)
   first, the list's after.
   ONE SET OF RULES for both widths: every side-by-side rule is written once. The grid's columns and places are
   ignored while the part is a stacked flex column, and what differs by width (the offset, which side a picture
   bleeds, the room round full-bleed words) is multiplied by --gcb-tm-side, which is 0 stacked and 1 side by side.
   The two @media blocks at the foot only turn the grid on and set that 1. */

/* STACKED: what it is on a phone, and what above and below are at any width */
:where([data-gcb-kit="text-media"]:not([data-layout="own"])) {
	--gcb-tm-side: 0; /* mechanic: 1 once side by side (the @media blocks below); set here so a part never takes it from a box round it */
	display: flex; flex-direction: column; align-items: stretch; box-sizing: border-box; min-width: 0;
	row-gap: var(--gcb-tm-gap-phone, min(calc(var(--gcb-tm-gap, calc(var(--gcb-kit-gap) * 4)) * 0.75), calc(var(--gcb-kit-gap) * 4)));
}
:where([data-gcb-kit="text-media"]:not([data-layout="own"]) > *) { box-sizing: border-box; min-width: 0; }
:where([data-gcb-kit="text-media"]:not([data-layout="own"])[data-text="above"] > [data-gcb-atom="words"], [data-gcb-kit="text-media"]:not([data-layout="own"])[data-text="below"] > [data-gcb-atom="media"]) { order: -1; }
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-phone="media"] > [data-gcb-atom="media"], [data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-phone="text"] > [data-gcb-atom="words"]) { order: -1; }

/* SIDE BY SIDE: the columns and where each piece sits. Inert while stacked (a flex column has no grid), so it is
   written once for both widths; the offset is multiplied by --gcb-tm-side so a stacked phone has none. */
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])) {
	grid-template-columns: minmax(0, var(--gcb-tm-first, 1fr)) minmax(0, var(--gcb-tm-second, 1fr));
	column-gap: var(--gcb-tm-gap, calc(var(--gcb-kit-gap) * 4));
}
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"]) > [data-gcb-atom]) { grid-row: 1; }
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"]) > [data-gcb-atom="words"]) { grid-column: 1; margin-inline-start: calc(var(--gcb-tm-offset, 0px) * var(--gcb-tm-side)); }
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"]) > [data-gcb-atom="media"]) { grid-column: 2; }
:where([data-gcb-kit="text-media"]:not([data-layout="own"])[data-text="right"] > [data-gcb-atom="words"]) { grid-column: 2; margin-inline-start: 0; margin-inline-end: calc(var(--gcb-tm-offset, 0px) * var(--gcb-tm-side)); }
:where([data-gcb-kit="text-media"]:not([data-layout="own"])[data-text="right"] > [data-gcb-atom="media"]) { grid-column: 1; }

/* THE WORDS: their alignment, and no space of their own above the first thing in them or under the last, so they
   sit true against the picture. A heading's margin is its theme's by tag, so these two weigh one attribute. */
:where([data-gcb-kit="text-media"][data-align="start"] > [data-gcb-atom="words"]) { text-align: start; }
:where([data-gcb-kit="text-media"][data-align="center"] > [data-gcb-atom="words"]) { text-align: center; }
:where([data-gcb-kit="text-media"][data-align="end"] > [data-gcb-atom="words"]) { text-align: end; }
[data-gcb-atom="words"] > :where(:first-child):where([data-gcb-kit="text-media"]:not([data-layout="own"]) > * > *):where(:not([data-gcb-own])) { margin-block-start: 0; }
[data-gcb-atom="words"] > :where(:last-child):where([data-gcb-kit="text-media"]:not([data-layout="own"]) > * > *):where(:not([data-gcb-own])) { margin-block-end: 0; }

/* THE PICTURE OR VIDEO: as wide as its column, its height its own unless --gcb-tm-ratio cuts it to a shape. A media
   piece that is itself another part (a picture, a figure) is left to that part. */
[data-gcb-atom="media"]:where([data-gcb-kit="text-media"] > :is(img, video, iframe):not([data-gcb-own])),
[data-gcb-atom="media"] :where(img, video, iframe):where([data-gcb-kit="text-media"] > [data-gcb-atom="media"]:not([data-gcb-kit]) > *, [data-gcb-kit="text-media"] > [data-gcb-atom="media"]:not([data-gcb-kit]) > picture > *):where(:not([data-gcb-own])) {
	display: block; box-sizing: border-box; width: 100%; max-width: 100%; height: auto; margin: 0; padding: 0; border: 0;
	object-fit: cover;
	aspect-ratio: var(--gcb-tm-ratio, auto);
	border-radius: var(--gcb-tm-radius, var(--gcb-kit-radius-card));
}
[data-gcb-atom="media"]:where([data-gcb-kit="text-media"] > iframe:not([data-gcb-own])),
[data-gcb-atom="media"] > :where(iframe):where([data-gcb-kit="text-media"] > * > *):where(:not([data-gcb-own])) { aspect-ratio: var(--gcb-tm-ratio, 16 / 9); }
/* a video that has not loaded and has no poster has no shape yet: 16 by 9 until it knows its own */
[data-gcb-atom="media"]:where([data-gcb-kit="text-media"] > video:not([data-gcb-own])),
[data-gcb-atom="media"] > :where(video):where([data-gcb-kit="text-media"] > * > *):where(:not([data-gcb-own])) { aspect-ratio: var(--gcb-tm-ratio, auto 16 / 9); }
[data-gcb-atom="media"]:where([data-gcb-kit="text-media"] > figure:not([data-gcb-own])) { margin: 0; }
:where([data-gcb-kit="text-media"] > [data-gcb-atom="media"] > picture) { display: block; }

/* BLEED: the picture runs past the part's own edge to the screen's, by being that much wider than its column
   (so these weigh one attribute, as the picture's own width does). How far is worked out from the
   part's width, taking the part to be in the middle of the page; --gcb-tm-bleed says it outright where it is not.
   Stacked it runs on at both sides; side by side, at its outer side only. A picture that bleeds has square corners
   unless --gcb-tm-radius says otherwise. 100vw counts a scrollbar that takes room: the guide says to clip the section. */
:where([data-gcb-kit="text-media"]:not([data-layout="own"])[data-bleed]) { container-type: inline-size; } /* mechanic: the part measures its own width (100cqw) to know how far the screen's edge is */
[data-gcb-atom="media"]:where([data-gcb-kit="text-media"]:not([data-layout="own"])[data-bleed] > :not([data-gcb-own])) {
	margin-inline: calc(-1 * max(0%, var(--gcb-tm-bleed, calc((100vw - 100cqw) / 2))) * (1 - var(--gcb-tm-side))) calc(-1 * max(0%, var(--gcb-tm-bleed, calc((100vw - 100cqw) / 2))));
	width: calc(100% + max(0%, var(--gcb-tm-bleed, calc((100vw - 100cqw) / 2))) * (2 - var(--gcb-tm-side))); max-width: none;
}
[data-gcb-atom="media"]:where([data-gcb-kit="text-media"]:not([data-layout="own"])[data-text="right"][data-bleed] > :not([data-gcb-own])) {
	margin-inline: calc(-1 * max(0%, var(--gcb-tm-bleed, calc((100vw - 100cqw) / 2)))) calc(-1 * max(0%, var(--gcb-tm-bleed, calc((100vw - 100cqw) / 2))) * (1 - var(--gcb-tm-side)));
}
[data-gcb-atom="media"]:where([data-gcb-kit="text-media"][data-bleed] > :is(img, video, iframe):not([data-gcb-own])),
[data-gcb-atom="media"] :where(img, video, iframe):where([data-gcb-kit="text-media"][data-bleed] > [data-gcb-atom="media"]:not([data-gcb-kit]) > *, [data-gcb-kit="text-media"][data-bleed] > [data-gcb-atom="media"]:not([data-gcb-kit]) > picture > *):where(:not([data-gcb-own])) { border-radius: var(--gcb-tm-radius, 0); }
/* full: side by side the picture is as tall as the row and covers it, and the words carry the room above and below
   (--gcb-tm-pad); stacked, the words get the stacked gap above and below, the same space as any stack. */
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-bleed="full"]) { row-gap: 0; }
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-bleed="full"] > [data-gcb-atom="words"]) {
	padding-block: calc(var(--gcb-tm-pad, calc(var(--gcb-kit-pad-panel) * 4)) * var(--gcb-tm-side) + var(--gcb-tm-gap-phone, min(calc(var(--gcb-tm-gap, calc(var(--gcb-kit-gap) * 4)) * 0.75), calc(var(--gcb-kit-gap) * 4))) * (1 - var(--gcb-tm-side)));
}
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-bleed="full"] > [data-gcb-atom="media"]) { align-self: stretch; }
:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-bleed="full"] > [data-gcb-atom="media"]:not([data-gcb-kit], img, video, iframe)) { display: grid; }
[data-gcb-atom="media"]:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-bleed="full"] > :is(img, video, iframe):not([data-gcb-own])),
[data-gcb-atom="media"] :where(img, video, iframe):where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-bleed="full"] > [data-gcb-atom="media"]:not([data-gcb-kit]) > *, [data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-bleed="full"] > [data-gcb-atom="media"]:not([data-gcb-kit]) > picture > *):where(:not([data-gcb-own])) { min-height: calc(100% * var(--gcb-tm-side)); }

/* THE SETTINGS that are a token's value */
:where([data-gcb-kit="text-media"][data-share="25"]) { --gcb-tm-first: 75fr; --gcb-tm-second: 25fr; } :where([data-gcb-kit="text-media"][data-text="right"][data-share="25"]) { --gcb-tm-first: 25fr; --gcb-tm-second: 75fr; }
:where([data-gcb-kit="text-media"][data-share="33"]) { --gcb-tm-first: 67fr; --gcb-tm-second: 33fr; } :where([data-gcb-kit="text-media"][data-text="right"][data-share="33"]) { --gcb-tm-first: 33fr; --gcb-tm-second: 67fr; }
:where([data-gcb-kit="text-media"][data-share="40"]) { --gcb-tm-first: 60fr; --gcb-tm-second: 40fr; } :where([data-gcb-kit="text-media"][data-text="right"][data-share="40"]) { --gcb-tm-first: 40fr; --gcb-tm-second: 60fr; }
:where([data-gcb-kit="text-media"][data-share="45"]) { --gcb-tm-first: 55fr; --gcb-tm-second: 45fr; } :where([data-gcb-kit="text-media"][data-text="right"][data-share="45"]) { --gcb-tm-first: 45fr; --gcb-tm-second: 55fr; }
:where([data-gcb-kit="text-media"][data-share="50"]) { --gcb-tm-first: 50fr; --gcb-tm-second: 50fr; }
:where([data-gcb-kit="text-media"][data-share="55"]) { --gcb-tm-first: 45fr; --gcb-tm-second: 55fr; } :where([data-gcb-kit="text-media"][data-text="right"][data-share="55"]) { --gcb-tm-first: 55fr; --gcb-tm-second: 45fr; }
:where([data-gcb-kit="text-media"][data-share="60"]) { --gcb-tm-first: 40fr; --gcb-tm-second: 60fr; } :where([data-gcb-kit="text-media"][data-text="right"][data-share="60"]) { --gcb-tm-first: 60fr; --gcb-tm-second: 40fr; }
:where([data-gcb-kit="text-media"][data-share="66"]) { --gcb-tm-first: 34fr; --gcb-tm-second: 66fr; } :where([data-gcb-kit="text-media"][data-text="right"][data-share="66"]) { --gcb-tm-first: 66fr; --gcb-tm-second: 34fr; }
:where([data-gcb-kit="text-media"][data-share="75"]) { --gcb-tm-first: 25fr; --gcb-tm-second: 75fr; } :where([data-gcb-kit="text-media"][data-text="right"][data-share="75"]) { --gcb-tm-first: 75fr; --gcb-tm-second: 25fr; }
:where([data-gcb-kit="text-media"][data-valign="start"]) { --gcb-tm-valign: start; } :where([data-gcb-kit="text-media"][data-valign="center"]) { --gcb-tm-valign: center; } :where([data-gcb-kit="text-media"][data-valign="end"]) { --gcb-tm-valign: end; }
:where([data-gcb-kit="text-media"][data-gap="none"]) { --gcb-tm-gap: 0px; } :where([data-gcb-kit="text-media"][data-gap="s"]) { --gcb-tm-gap: calc(var(--gcb-kit-gap) * 2); } :where([data-gcb-kit="text-media"][data-gap="m"]) { --gcb-tm-gap: calc(var(--gcb-kit-gap) * 4); } :where([data-gcb-kit="text-media"][data-gap="l"]) { --gcb-tm-gap: calc(var(--gcb-kit-gap) * 6); } :where([data-gcb-kit="text-media"][data-gap="xl"]) { --gcb-tm-gap: calc(var(--gcb-kit-gap) * 8); }
:where([data-gcb-kit="text-media"][data-offset="none"]) { --gcb-tm-offset: 0px; } :where([data-gcb-kit="text-media"][data-offset="s"]) { --gcb-tm-offset: calc(var(--gcb-kit-gap) * 2); } :where([data-gcb-kit="text-media"][data-offset="m"]) { --gcb-tm-offset: calc(var(--gcb-kit-gap) * 4); } :where([data-gcb-kit="text-media"][data-offset="l"]) { --gcb-tm-offset: calc(var(--gcb-kit-gap) * 6); }
:where([data-gcb-kit="text-media"][data-ratio="1x1"]) { --gcb-tm-ratio: 1 / 1; } :where([data-gcb-kit="text-media"][data-ratio="4x5"]) { --gcb-tm-ratio: 4 / 5; } :where([data-gcb-kit="text-media"][data-ratio="4x3"]) { --gcb-tm-ratio: 4 / 3; } :where([data-gcb-kit="text-media"][data-ratio="3x2"]) { --gcb-tm-ratio: 3 / 2; } :where([data-gcb-kit="text-media"][data-ratio="16x9"]) { --gcb-tm-ratio: 16 / 9; } :where([data-gcb-kit="text-media"][data-ratio="21x9"]) { --gcb-tm-ratio: 21 / 9; }

/* WHERE THE TWO COLUMNS START: from 768px where data-beside="tablet" asks, from 1024px everywhere. All each block does
   is turn the grid on and say so (--gcb-tm-side: 1); the rules above do the rest. Above and below take the full gap. */
@media (min-width: 768px) {
	:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])[data-beside="tablet"]) { --gcb-tm-side: 1; display: grid; align-items: var(--gcb-tm-valign, center); }
	:where([data-gcb-kit="text-media"]:not([data-layout="own"]):is([data-text="above"], [data-text="below"])[data-beside="tablet"]) { row-gap: var(--gcb-tm-gap, calc(var(--gcb-kit-gap) * 4)); }
}
@media (min-width: 1024px) {
	:where([data-gcb-kit="text-media"]:not([data-layout="own"]):not([data-text="above"], [data-text="below"])) { --gcb-tm-side: 1; display: grid; align-items: var(--gcb-tm-valign, center); }
	:where([data-gcb-kit="text-media"]:not([data-layout="own"]):is([data-text="above"], [data-text="below"])) { row-gap: var(--gcb-tm-gap, calc(var(--gcb-kit-gap) * 4)); }
}

/* time */
/* TIME: a time of day chosen from slots set out as chips, over a real <input type="time">. It goes inside a field
   (parts/field), round the box, so with no script it is the field's own box with the browser's time picker in it, and
   the label, the help and the error are the field's. Its script puts the input out of sight (it stays the value the
   form sends) and sets the slots out in its place; its Clear is the site's text button (parts/button).
   A slot is a <button>, an element a theme styles by its tag, so its look weighs ONE attribute (README rule 2), its
   states one more (a pseudo-class or its state's attribute, as the accordion's), and all of it stands aside for a slot
   the design drew as its own (data-gcb-own), but for the keyboard's mark. The rest weighs nothing.
   Every value is a token: the part's own first, the site's after (tokens/README.md). A slot's line, its hover and a
   sitting's name are made of the colour of the words, so it sits on any background with nothing set. */
:where([data-gcb-kit="time"]) {
	display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
	font-family: var(--gcb-kit-font); line-height: var(--gcb-kit-leading); text-align: start;
}
[data-gcb-kit="time"][data-gcb-kit-ready] { position: relative; } /* mechanic: holds the input that is out of sight */
[data-gcb-kit="time"][data-gcb-kit-ready] [data-gcb-kit-time-input] { position: absolute; inset-block-end: 0; inset-inline-start: 0; width: 1px; height: 1px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; } /* mechanic: out of sight, in reach of the form */

/* THE SLOTS: sittings one under the other; taller than --gcb-time-height they scroll. The room round them is the
   keyboard mark's, which a scrolling box would cut off. */
:where([data-gcb-kit="time"] [data-gcb-kit-time-slots]) {
	display: grid; grid-template-columns: minmax(0, 1fr);
	gap: var(--gcb-time-group-gap, calc(var(--gcb-kit-gap) * 1.5));
	max-height: var(--gcb-time-height, none); overflow-y: auto; overscroll-behavior: contain;
	padding: calc(var(--gcb-kit-focus-offset) * 2); margin: calc(var(--gcb-kit-focus-offset) * -2);
}
/* a sitting's name: Lunch, Dinner */
:where([data-gcb-kit="time"] [data-gcb-kit-time-heading]) {
	margin: 0 0 var(--gcb-kit-gap-s); color: var(--gcb-kit-quiet);
	font-size: var(--gcb-kit-text-caption); font-weight: var(--gcb-kit-weight-control);
	letter-spacing: var(--gcb-time-heading-tracking, 0.04em); text-transform: var(--gcb-time-heading-case, uppercase);
}
:where([data-gcb-kit="time"] [data-gcb-kit-time-grid]) {
	display: grid;
	/* a slot is never wider than its share of the row, so a set number of columns fits a narrow column too */
	grid-template-columns: repeat(var(--gcb-time-columns, auto-fill), minmax(min(var(--gcb-time-slot-w, 5.5em), calc((100% - (var(--gcb-time-columns, 1) - 1) * var(--gcb-time-gap, var(--gcb-kit-gap-s))) / var(--gcb-time-columns, 1))), 1fr));
	gap: var(--gcb-time-gap, var(--gcb-kit-gap-s));
}

/* A SLOT: a chip, with the site's field corners, so it sits with the site's buttons and boxes */
[data-gcb-kit-time-slot]:where([data-gcb-kit="time"] :not([data-gcb-own])) {
	appearance: none; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; width: 100%; min-width: 0; margin: 0;
	min-height: var(--gcb-time-slot-h, var(--gcb-kit-day));
	padding: 0 min(var(--gcb-kit-gap-s), 10%); /* the room at its sides gives way first in a narrow column */
	border: var(--gcb-kit-line-w) solid var(--gcb-kit-rule);
	border-radius: var(--gcb-time-radius, var(--gcb-kit-radius-field));
	background: transparent; box-shadow: none; color: inherit;
	font: inherit; font-size: var(--gcb-kit-text-control); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
	letter-spacing: inherit; text-transform: none; text-decoration: none; font-variant-numeric: tabular-nums; text-align: center;
	white-space: normal; overflow-wrap: normal; text-wrap: balance; /* a slot too narrow for "9:30 am" puts "am" under it, never past its edge */
	cursor: pointer; user-select: none;
	transition: background-color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback), color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* THE STATES weigh a pseudo-class or a second attribute more than the slot (as the accordion's do), so a theme's
   `button:hover { background }` or `button:focus { outline: none }`, which weigh a tag more than one attribute, never
   repaint a slot or wipe the keyboard's mark. First a pointed-at, pressed or focused slot looks as it did: */
[data-gcb-kit-time-slot]:where([data-gcb-kit="time"] :not([data-gcb-own])):is(:hover, :focus, :active) {
	border-color: var(--gcb-kit-rule); background: transparent; box-shadow: none; color: inherit; outline: none;
}
/* pointed at: a faint fill and a firmer line */
[data-gcb-kit-time-slot]:where([data-gcb-kit="time"]:not([data-disabled]) :not([data-gcb-own], [aria-disabled="true"], [aria-checked="true"])):hover {
	border-color: var(--gcb-kit-rule-strong); background: var(--gcb-kit-wash);
}
[data-gcb-kit-time-slot]:where([data-gcb-kit="time"]:not([data-disabled]) :not([data-gcb-own], [aria-disabled="true"])):active { scale: var(--gcb-kit-press); }
/* chosen: the accent, whatever the pointer or the theme */
[data-gcb-kit-time-slot][aria-checked="true"]:where([data-gcb-kit="time"] :not([data-gcb-own])) {
	border-color: var(--gcb-time-selected, var(--gcb-kit-accent));
	background: var(--gcb-time-selected, var(--gcb-kit-accent));
	color: var(--gcb-time-on-selected, var(--gcb-kit-on-accent));
	font-weight: var(--gcb-kit-weight-control);
}
/* booked: struck and faint, no line, never the pointer */
[data-gcb-kit-time-slot][aria-disabled="true"]:where([data-gcb-kit="time"] :not([data-gcb-own])) {
	border-color: transparent; background: transparent; color: inherit;
	text-decoration: line-through; opacity: var(--gcb-kit-disabled); cursor: not-allowed;
}
/* the keyboard's mark: the site's outline, off its edge; on the design's own slot too */
[data-gcb-kit-time-slot]:where([data-gcb-kit="time"] *):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
/* its form was sent with no time chosen. In a field the field's error says so under the slots; with no field round it,
   one line in the error's colour round the slots, not one on every slot */
:where([data-gcb-kit="time"]:not([data-gcb-kit="field"] *) [data-gcb-kit-time-slots][aria-invalid="true"]) {
	outline: var(--gcb-kit-line-w) solid var(--gcb-kit-error); outline-offset: calc(var(--gcb-kit-line-w) * -1);
	border-radius: var(--gcb-kit-radius-card);
}
/* the whole part off (its input is disabled) */
:where([data-gcb-kit="time"][data-disabled] [data-gcb-kit-time-slots]) { opacity: var(--gcb-kit-disabled); }
[data-gcb-kit-time-slot]:where([data-gcb-kit="time"][data-disabled] :not([data-gcb-own])) { opacity: 1; cursor: not-allowed; }

/* no times to offer */
/* a <p>, which a theme gives a margin by its tag: so this weighs one attribute */
[data-gcb-kit-time-none]:where([data-gcb-kit="time"] *) { margin: 0; color: var(--gcb-kit-quiet); font-size: var(--gcb-kit-text-meta); }
/* its foot: Clear, once there is a time */
:where([data-gcb-kit="time"] [data-gcb-kit-time-foot]) { display: flex; justify-content: flex-end; margin-top: var(--gcb-kit-gap-s); }
[data-gcb-kit="time"] [data-gcb-kit-time-foot][hidden], [data-gcb-kit="time"] [data-gcb-kit-time-clear][hidden] { display: none; } /* mechanic: nothing to clear yet */

/* toast */
/* TOAST: brief messages at the foot of the screen. The root is the place they appear; each message is a
   [data-gcb-kit-toast] in it. Every value is a token: the part's own first, the list's after (tokens/README.md).
   A look weighs nothing (:where), so a class the design writes on any of these elements wins. The exceptions are the
   elements a theme styles BY THEIR TAG (README rule 2): the action is a <button> or an <a>, the close a <button>, and
   the two lines are <p>s. Those rules weigh one attribute, so a theme's `button { … }`, `a { … }` or `p { … }` does
   not undo the part, and they stand aside for an element the design marked data-gcb-own.
   With no script a message written in the root is a plain notice where it was written, and stays.
   Its script lifts the root to the foot of the screen, above everything, and sets data-gcb-kit-ready. */

/* THE PLACE: a column of messages */
:where([data-gcb-kit="toast"]) {
	display: flex; flex-direction: column; align-items: flex-start;
	gap: var(--gcb-toast-stack-gap, var(--gcb-kit-gap));
	padding: 0; border: 0; background: transparent;
}
:where([data-gcb-kit="toast"][data-gcb-kit-ready]:not([data-placement="here"])) { inset: auto var(--gcb-toast-offset, 24px) var(--gcb-toast-offset, 24px); align-items: center; }
:where([data-gcb-kit="toast"][data-gcb-kit-ready][data-placement^="top"]) { inset: var(--gcb-toast-offset, 24px) var(--gcb-toast-offset, 24px) auto; }
:where([data-gcb-kit="toast"][data-gcb-kit-ready][data-placement$="-start"]) { align-items: flex-start; }
:where([data-gcb-kit="toast"][data-gcb-kit-ready][data-placement$="-end"]) { align-items: flex-end; }
[data-gcb-kit="toast"][data-gcb-kit-ready]:not([data-placement="here"]) { position: fixed; z-index: 2147483647; width: auto; height: auto; margin: 0; overflow: visible; pointer-events: none; } /* mechanic: over the page, and the page under its gaps still pressed */
[data-gcb-kit="toast"][data-gcb-kit-ready][data-placement="here"] { position: relative; } /* mechanic: a message leaves from its own place */
[data-gcb-kit="toast"][data-gcb-kit-ready] > [data-gcb-kit-toast] { pointer-events: auto; touch-action: pan-y; } /* mechanic: a message is pressed, the gaps are not; a finger pushes it aside, and still scrolls the page up and down */
[data-gcb-kit="toast"]:not([data-gcb-kit-ready]) :is([data-gcb-kit-toast-close], button[data-gcb-kit-toast-action]) { display: none; } /* mechanic: with no script nothing shuts it and its button does nothing (a link still goes somewhere, so it stays) */

/* A MESSAGE: one card, whatever it says, with a hairline made of its own words' colour so it has an edge on a site
   with no shadows */
:where([data-gcb-kit="toast"] [data-gcb-kit-toast]) {
	box-sizing: border-box; display: flex; align-items: center;
	width: min(var(--gcb-toast-w, 380px), 100%);
	min-height: calc(var(--gcb-toast-close-size, var(--gcb-kit-pill-h)) + var(--gcb-kit-gap) * 2); /* one height with or without a close */
	gap: var(--gcb-toast-gap, var(--gcb-kit-gap));
	padding: var(--gcb-toast-pad, var(--gcb-kit-gap) var(--gcb-kit-gap) var(--gcb-kit-gap) var(--gcb-kit-pad-control));
	border: var(--gcb-toast-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	border-radius: var(--gcb-toast-radius, var(--gcb-kit-radius-card));
	background: var(--gcb-toast-bg, var(--gcb-kit-surface));
	color: var(--gcb-toast-ink, var(--gcb-kit-ink));
	box-shadow: var(--gcb-toast-shadow, var(--gcb-kit-shadow-menu));
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-kit-text-control);
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
	text-transform: var(--gcb-kit-case);
	text-align: start;
}
:where([data-gcb-kit="toast"] [data-gcb-kit-toast]:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* ITS COMING AND GOING: it rises into place, the others make room, it sinks away. The times are the site's, so
   someone who asked for less motion gets none. */
:where([data-gcb-kit="toast"][data-gcb-kit-ready] [data-gcb-kit-toast]) {
	transition: translate var(--gcb-kit-dur-expand) var(--gcb-kit-ease-expand), opacity var(--gcb-kit-dur-expand) var(--gcb-kit-ease-expand);
}
:where([data-gcb-kit="toast"][data-gcb-kit-ready] [data-gcb-kit-toast]:not([data-state="open"])) { opacity: 0; translate: 0 var(--gcb-toast-rise, 1rem); }
:where([data-gcb-kit="toast"][data-gcb-kit-ready][data-placement^="top"] [data-gcb-kit-toast]:not([data-state="open"])) { translate: 0 calc(var(--gcb-toast-rise, 1rem) * -1); }
:where([data-gcb-kit="toast"][data-gcb-kit-ready] [data-gcb-kit-toast][data-state="closed"]) { transition-duration: var(--gcb-kit-dur-menu); }

/* THE MARK: a tick on the site's success colour, ! on its warning colour, ! on its error colour, none for a plain
   message (data-type="info") */
:where([data-gcb-kit="toast"] [data-gcb-kit-toast-mark]) {
	flex: none; position: relative;
	width: var(--gcb-toast-mark-size, 1.375rem); height: var(--gcb-toast-mark-size, 1.375rem);
	border-radius: var(--gcb-kit-radius-full);
	background: var(--gcb-toast-mark, var(--gcb-kit-success));
	color: var(--gcb-kit-on-success);
}
:where([data-gcb-kit="toast"] [data-type="info"] [data-gcb-kit-toast-mark]) { display: none; }
:where([data-gcb-kit="toast"] [data-gcb-kit-toast-mark])::after {
	content: ""; position: absolute; inset: 22%; background: currentColor;
	-webkit-mask: var(--gcb-toast-mark-icon, var(--gcb-kit-tick)) center / contain no-repeat;
	mask: var(--gcb-toast-mark-icon, var(--gcb-kit-tick)) center / contain no-repeat;
}
:where([data-gcb-kit="toast"] [data-type="warning"] [data-gcb-kit-toast-mark]) { background: var(--gcb-toast-warning, var(--gcb-kit-warning)); color: var(--gcb-kit-on-warning); }
:where([data-gcb-kit="toast"] [data-type="error"] [data-gcb-kit-toast-mark]) { background: var(--gcb-kit-error); color: var(--gcb-kit-on-error); }
:where([data-gcb-kit="toast"] :is([data-type="error"], [data-type="warning"]) [data-gcb-kit-toast-mark])::after {
	content: "!"; inset: 0; display: grid; place-items: center; background: none;
	-webkit-mask: none; mask: none;
	font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-title); line-height: 1;
}

/* ITS WORDS: a line, and a second, quieter one. They are <p>s (or a heading), which a theme styles by tag, so they
   weigh one attribute. */
:where([data-gcb-kit="toast"] [data-gcb-kit-toast-words]) { flex: 1 1 var(--gcb-toast-words-min, 10rem); min-width: 0; overflow-wrap: break-word; }
[data-gcb-kit-toast-title]:where([data-gcb-kit="toast"] :not([data-gcb-own])),
[data-gcb-kit-toast-description]:where([data-gcb-kit="toast"] :not([data-gcb-own])) {
	margin: 0; padding: 0; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
[data-gcb-kit-toast-title]:where([data-gcb-kit="toast"] :not([data-gcb-own])) { font-weight: var(--gcb-kit-weight-control); }
[data-gcb-kit-toast-description]:where([data-gcb-kit="toast"] :not([data-gcb-own])) {
	color: var(--gcb-toast-description-ink, var(--gcb-kit-quiet));
	font-size: var(--gcb-kit-text-meta);
}
[data-gcb-kit-toast-description]:where([data-gcb-kit="toast"] [data-gcb-kit-toast-title] + :not([data-gcb-own])) { margin-block-start: calc(var(--gcb-kit-gap-s) / 4); }

/* ITS ACTION: the accent's words, before the close. A button or a link, so it weighs one attribute. */
[data-gcb-kit-toast-action]:where([data-gcb-kit="toast"] :not([data-gcb-own])) {
	appearance: none; flex: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
	width: auto; max-width: 100%; min-width: 0; height: auto;
	min-height: var(--gcb-toast-close-size, var(--gcb-kit-pill-h));
	margin: 0; padding: 0 var(--gcb-kit-gap-s); border: 0;
	border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none;
	color: var(--gcb-toast-action-ink, var(--gcb-kit-accent));
	font: inherit; font-weight: var(--gcb-kit-weight-control); letter-spacing: inherit; text-transform: inherit; text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}

/* ITS CLOSE: a quiet cross, drawn here when the button is empty; one with a drawing in it is left alone. Its corners
   are the action's, so the two read as a pair. A button, so it weighs one attribute. */
[data-gcb-kit-toast-close]:where([data-gcb-kit="toast"] :not([data-gcb-own])) {
	appearance: none; flex: none; position: relative; box-sizing: border-box; display: grid; place-items: center;
	width: var(--gcb-toast-close-size, var(--gcb-kit-pill-h)); height: var(--gcb-toast-close-size, var(--gcb-kit-pill-h));
	min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0;
	border-radius: var(--gcb-kit-radius-field);
	background: transparent; box-shadow: none; color: inherit; font: inherit; line-height: 1; cursor: pointer;
	opacity: var(--gcb-toast-close-dim, 0.6);
	transition: opacity var(--gcb-kit-dur-feedback), background-color var(--gcb-kit-dur-feedback), scale var(--gcb-kit-dur-feedback);
}
/* the cross: its lines are a share of the button's size, not the site's border, so a thick border never blots it */
:where([data-gcb-kit="toast"] [data-gcb-kit-toast-close]:not([data-gcb-own]):empty)::before,
:where([data-gcb-kit="toast"] [data-gcb-kit-toast-close]:not([data-gcb-own]):empty)::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 42%; height: calc(var(--gcb-toast-close-size, var(--gcb-kit-pill-h)) * 0.0625);
	border-radius: var(--gcb-kit-radius-full); background: currentColor; rotate: 45deg;
}
:where([data-gcb-kit="toast"] [data-gcb-kit-toast-close]:not([data-gcb-own]):empty)::after { rotate: -45deg; }
/* pointed at, pressed, focused: the same for the action and the close. A state is one pseudo-class on top of the one
   attribute, as a theme's `button:hover` is, so the theme's hover fill does not come through. The focus mark is the
   site's outline in the control's own colour, so it follows an accent set on a box round it. */
[data-gcb-kit-toast-close]:where([data-gcb-kit="toast"] :not([data-gcb-own])):is(:hover, :focus-visible) { opacity: 1; }
[data-gcb-kit-toast-close]:where([data-gcb-kit="toast"] :not([data-gcb-own])):hover,
[data-gcb-kit-toast-action]:where([data-gcb-kit="toast"] :not([data-gcb-own])):hover { background: var(--gcb-kit-wash); color: var(--gcb-toast-action-ink, var(--gcb-kit-accent)); }
[data-gcb-kit-toast-close]:where([data-gcb-kit="toast"] :not([data-gcb-own])):hover { color: inherit; }
[data-gcb-kit-toast-close]:where([data-gcb-kit="toast"] :not([data-gcb-own])):active,
[data-gcb-kit-toast-action]:where([data-gcb-kit="toast"] :not([data-gcb-own])):active { scale: var(--gcb-kit-press); }
[data-gcb-kit-toast-close]:where([data-gcb-kit="toast"] :not([data-gcb-own])):focus-visible,
[data-gcb-kit-toast-action]:where([data-gcb-kit="toast"] :not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: var(--gcb-kit-focus-offset); }

/* NO ROOM BESIDE THE WORDS (data-stacked, set by its script when the action would leave the words less than
   --gcb-toast-words-min and they are wrapping): the action drops under the words, in line with them; the mark and
   the close sit level with the first line */
:where([data-gcb-kit="toast"] [data-gcb-kit-toast][data-stacked]) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; row-gap: calc(var(--gcb-kit-gap-s) / 2); }
:where([data-gcb-kit="toast"] [data-gcb-kit-toast][data-stacked]:is([data-type="info"], :not(:has(> [data-gcb-kit-toast-mark])))) { grid-template-columns: minmax(0, 1fr) auto; }
:where([data-gcb-kit="toast"] [data-stacked] > [data-gcb-kit-toast-mark]) { margin-block: calc((1lh - var(--gcb-toast-mark-size, 1.375rem)) / 2); }
:where([data-gcb-kit="toast"] [data-stacked] > [data-gcb-kit-toast-words]) { grid-column: -3 / -2; }
[data-gcb-kit-toast-close]:where([data-gcb-kit="toast"] [data-stacked] > :not([data-gcb-own])) { grid-column: -2 / -1; grid-row: 1; margin-block: calc((1lh - var(--gcb-toast-close-size, var(--gcb-kit-pill-h))) / 2); }
[data-gcb-kit-toast-action]:where([data-gcb-kit="toast"] [data-stacked] > :not([data-gcb-own])) {
	grid-column: -3 / -2; grid-row: 2; justify-self: start;
	margin-inline-start: calc(var(--gcb-kit-gap-s) * -1); margin-block-end: calc((1lh - var(--gcb-toast-close-size, var(--gcb-kit-pill-h))) / 2);
	white-space: normal; text-align: start;
}

/* FILLED WITH ITS KIND (data-look="solid" on the root): the whole card is the kind's colour with the site's words for
   it; a plain message is the words' colour with the surface's words. The mark, the action and the close are made
   of the card's words. */
:where([data-gcb-kit="toast"][data-look="solid"] [data-gcb-kit-toast]) { border-color: transparent; background: var(--gcb-toast-mark, var(--gcb-kit-success)); color: var(--gcb-kit-on-success); }
:where([data-gcb-kit="toast"][data-look="solid"] [data-gcb-kit-toast][data-type="info"]) { background: var(--gcb-kit-ink); color: var(--gcb-kit-surface); }
:where([data-gcb-kit="toast"][data-look="solid"] [data-gcb-kit-toast][data-type="warning"]) { background: var(--gcb-toast-warning, var(--gcb-kit-warning)); color: var(--gcb-kit-on-warning); }
:where([data-gcb-kit="toast"][data-look="solid"] [data-gcb-kit-toast][data-type="error"]) { background: var(--gcb-kit-error); color: var(--gcb-kit-on-error); }
:where([data-gcb-kit="toast"][data-look="solid"] [data-gcb-kit-toast] [data-gcb-kit-toast-mark]) { background: color-mix(in srgb, currentColor 22%, transparent); color: inherit; }
[data-gcb-kit-toast-description]:where([data-gcb-kit="toast"][data-look="solid"] :not([data-gcb-own])) { color: color-mix(in srgb, currentColor 86%, transparent); }
[data-gcb-kit-toast-action]:where([data-gcb-kit="toast"][data-look="solid"] :not([data-gcb-own])) { color: inherit; }
[data-gcb-kit-toast-action]:where([data-gcb-kit="toast"][data-look="solid"] :not([data-gcb-own])):hover { color: inherit; }

@media (forced-colors: active) {
	/* mechanic: a high-contrast mode throws away fills, and the cross and the tick are fills: they take the system's words */
	:where([data-gcb-kit="toast"] [data-gcb-kit-toast-close]:not([data-gcb-own]):empty)::before, :where([data-gcb-kit="toast"] [data-gcb-kit-toast-close]:not([data-gcb-own]):empty)::after { background: ButtonText; } /* mechanic: seen in high contrast */
	:where([data-gcb-kit="toast"] :not([data-type="error"], [data-type="warning"]) > [data-gcb-kit-toast-mark])::after { background: CanvasText; } /* mechanic: seen in high contrast */
}

/* toc */
/* TOC: a contents list, a link per heading, the one being read marked. Every value is a token: the part's own first,
   the list's after (tokens/README.md). It sets no colour of its own: a link is the words' colour made quieter, the rule
   and the mark are made of the words' colour, so it sits on any background with nothing set.
   The boxes weigh nothing (:where). A link, and a list written as ul/li, weigh one attribute (README rule 2), so a
   theme's plain `a { color; text-decoration }` and `ul { padding-left }` do not paint it, and stand aside for an
   element the design made its own (data-gcb-own). A link's states weigh the attribute and the state (below).
   With no script a list written by hand is whole (its links jump); a list the script is to build is not shown, nor is
   the box it sits in (its label with it), and the article takes the whole width. */
:where([data-gcb-kit="toc"] [data-gcb-kit-list]) {
	font-family: var(--gcb-kit-font);
	font-size: var(--gcb-toc-size, var(--gcb-kit-text-control));
	font-weight: var(--gcb-kit-weight-body);
	line-height: var(--gcb-kit-leading);
	letter-spacing: var(--gcb-kit-tracking);
}

/* written as a list (ul or ol, li): no bullets, no room of its own; the depth is the link's, not the nesting's */
:where([data-gcb-kit="toc"]) [data-gcb-kit-list]:where(ul, ol):where(:not([data-gcb-own])) { margin: 0; padding: 0; list-style: none; }
:where([data-gcb-kit="toc"]) [data-gcb-kit-list] :where(ul, ol, li):where(:not([data-gcb-own])) { margin: 0; padding: 0; list-style: none; }

/* A LINK: quieter than the words round it, on a rule down its side */
:where([data-gcb-kit="toc"]) [data-gcb-kit-link]:where(:not([data-gcb-own])) {
	display: block; margin: 0;
	padding: var(--gcb-toc-pad, calc(var(--gcb-kit-gap-s) * 0.75)) var(--gcb-kit-gap-s);
	padding-inline-start: var(--gcb-toc-indent, 1em);
	border: 0; border-inline-start: var(--gcb-toc-rule-w, calc(var(--gcb-kit-line-w) * 2)) solid var(--gcb-toc-rule, var(--gcb-kit-rule-strong));
	background: none;
	color: var(--gcb-toc-color, var(--gcb-kit-quiet));
	font: inherit; text-align: start; text-decoration: none; text-transform: var(--gcb-kit-case);
	overflow-wrap: anywhere; cursor: pointer;
	transition: color var(--gcb-kit-dur-feedback), border-color var(--gcb-kit-dur-feedback);
}
:where([data-gcb-kit="toc"]) [data-gcb-kit-link]:where([data-depth="3"]:not([data-gcb-own])) { padding-inline-start: calc(var(--gcb-toc-indent, 1em) * 2); }
:where([data-gcb-kit="toc"]) [data-gcb-kit-link]:where([data-depth="4"]:not([data-gcb-own])) { padding-inline-start: calc(var(--gcb-toc-indent, 1em) * 3); }
:where([data-gcb-kit="toc"]) [data-gcb-kit-link]:where([data-depth="5"]:not([data-gcb-own])) { padding-inline-start: calc(var(--gcb-toc-indent, 1em) * 4); }
:where([data-gcb-kit="toc"]) [data-gcb-kit-link]:where([data-depth="6"]:not([data-gcb-own])) { padding-inline-start: calc(var(--gcb-toc-indent, 1em) * 5); }
/* A SECTION THE ONE BEING READ IS IN (an h2 while one of its h3s is read): the words' full colour, no mark */
:where([data-gcb-kit="toc"]) [data-gcb-kit-link]:where([data-within]:not([data-gcb-own])) { color: inherit; }
/* THE ONE BEING READ: the words' full colour, and the rule beside it too */
:where([data-gcb-kit="toc"]) [data-gcb-kit-link]:where([data-status="active"]:not([data-gcb-own])) {
	color: var(--gcb-toc-active, inherit);
	border-inline-start-color: var(--gcb-toc-active, currentColor);
}
/* ITS STATES weigh the attribute and the state, so a theme's a:visited, a:hover or a:focus { outline } cannot paint
   it (a theme's a:hover weighs a tag and a state, more than the attribute alone). The state the link is in when
   nothing is happening (:link) is left out, so a class the design writes on a link still sets its colour. */
[data-gcb-kit-link]:where([data-gcb-kit="toc"] *):where(:not([data-gcb-own])):is(:visited, :hover, :focus, :active) {
	color: var(--gcb-toc-color, var(--gcb-kit-quiet));
	background: none; box-shadow: none; outline: none; text-decoration: none;
	border-block: 0; border-inline-end: 0; border-inline-start-color: var(--gcb-toc-rule, var(--gcb-kit-rule-strong));
}
[data-gcb-kit-link]:where([data-gcb-kit="toc"] *):where([data-within]:not([data-gcb-own])):is(:visited, :focus, :active) { color: inherit; }
/* hovered: the words' full colour and underlined, which is not the mark of the one being read */
[data-gcb-kit-link]:where([data-gcb-kit="toc"] *):where(:not([data-gcb-own])):is(:hover, :active) {
	color: inherit; text-decoration-line: underline; text-decoration-thickness: var(--gcb-kit-line-w);
}
/* focused: the site's outline in the colour of the words, so it shows on a section's own colour too; it sits inside
   the link's own edge, where a list that scrolls in its box cannot cut it off */
[data-gcb-kit-link]:where([data-gcb-kit="toc"] *):where(:not([data-gcb-own])):focus-visible {
	color: inherit;
	outline: var(--gcb-kit-focus-outline); outline-color: currentColor; outline-offset: calc(var(--gcb-kit-focus-offset) * -1);
}
[data-gcb-kit-link]:where([data-gcb-kit="toc"] *):where([data-status="active"]:not([data-gcb-own])):is(:visited, :hover, :focus, :active) {
	color: var(--gcb-toc-active, inherit);
	border-inline-start-color: var(--gcb-toc-active, currentColor);
}

/* A HEADING JUMPED TO by the keyboard is given the keyboard's place, not a ring: it is not a thing to press */
[data-toc-target]:where(:not([data-gcb-own])):focus { outline: none; }

/* A HEADING JUMPED TO lands below the sticky header, with no script too */
:where([data-gcb-kit="toc"] [data-gcb-kit-content] :is(h1, h2, h3, h4, h5, h6)) { scroll-margin-top: var(--gcb-toc-offset, 80px); }

/* data-side: the list in a column beside the article on a wide screen, staying on screen as the article scrolls;
   above the article, and still, on a narrow one. data-side="end" puts the column after the article. */
:where([data-gcb-kit="toc"][data-side]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gcb-kit-pad-panel) var(--gcb-toc-gap, calc(var(--gcb-kit-pad-panel) * 2)); align-items: start; }
:where([data-gcb-kit="toc"][data-side]) > [data-gcb-kit-content] > :where(:first-child) { margin-top: 0; }
@media (min-width: 48em) {
	:where([data-gcb-kit="toc"][data-side]) { grid-template-columns: var(--gcb-toc-side, 14rem) minmax(0, 1fr); }
	:where([data-gcb-kit="toc"][data-side="end"]) { grid-template-columns: minmax(0, 1fr) var(--gcb-toc-side, 14rem); }
	:where([data-gcb-kit="toc"][data-side="end"] > :not([data-gcb-kit-content])) { order: 1; }
	:where([data-gcb-kit="toc"][data-side] > :not([data-gcb-kit-content])) {
		position: sticky; top: var(--gcb-toc-offset, 80px);
		max-height: var(--gcb-toc-max, calc(100vh - var(--gcb-toc-offset, 80px) - var(--gcb-kit-gap)));
		overflow-y: auto;
	}
}

/* NOTHING TO LIST (no headings, data-empty; or no script yet for a list that is to be built): the box holding the list
   is not shown, label and all; a part with no article of its own is not shown at all; beside an article, the article
   takes the whole width */
[data-gcb-kit="toc"][data-empty] > :is([data-gcb-kit-list], :has([data-gcb-kit-list])):not([data-gcb-kit-content]) { display: none; } /* mechanic: nothing to list */
[data-gcb-kit="toc"][data-empty]:not(:has([data-gcb-kit-content])) { display: none; } /* mechanic: nothing to list, and no article of its own */
[data-gcb-kit="toc"]:not([data-gcb-kit-ready]):has([data-gcb-kit-list] [data-gcb-kit-link]:is([href="#"], [href=""], :not([href]))):not(.editor-styles-wrapper *) > :is([data-gcb-kit-list], :has([data-gcb-kit-list])):not([data-gcb-kit-content]) { display: none; } /* mechanic: the one drawn link the script copies per heading is not a link to anywhere until it has; the editor shows it as drawn */
[data-gcb-kit="toc"]:not([data-gcb-kit-ready]):has([data-gcb-kit-list] [data-gcb-kit-link]:is([href="#"], [href=""], :not([href]))):not(:has([data-gcb-kit-content])):not(.editor-styles-wrapper *) { display: none; } /* mechanic: so is a box above an article that lives elsewhere */
@media (min-width: 48em) {
	[data-gcb-kit="toc"][data-side]:is([data-empty], :not([data-gcb-kit-ready]):has([data-gcb-kit-list] [data-gcb-kit-link]:is([href="#"], [href=""], :not([href])))):not(.editor-styles-wrapper *) { grid-template-columns: minmax(0, 1fr); } /* mechanic: no column for a list that is not shown */
}

/* tooltip */
/* TOOLTIP: a short explanation beside the thing it describes. The root is the thing itself (data-gcb-kit="tooltip");
   its words are in data-gcb-kit-tooltip="…" or written out in the element after it ([data-gcb-kit-tooltip-content]).
   Every look below weighs nothing (:where), so a class the design writes on the words wins, and every value is a
   token: the part's own first, the list's after (tokens/README.md).
   With no script the words show on hover and on keyboard focus, drawn by this file alone. Its script puts them in a
   box in the top layer ([data-gcb-kit-tooltip-positioner], a popover no section can clip), places it, adds the arrow
   and the tap, and sets data-gcb-kit-ready. */

/* THE THING IT DESCRIBES */
:where([data-gcb-kit="tooltip"]:not(button, a, input, select, textarea, summary)) { cursor: help; }
/* the site's focus mark. The thing is often a button or a link, which a theme styles BY ITS TAG (README rule 2), so
   this weighs one attribute (and the state, as a theme's `button:focus-visible` does) and stands aside for a thing
   the design marked data-gcb-own */
[data-gcb-kit="tooltip"]:where(:not([data-gcb-own])):focus-visible { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* THE LABEL: the same look whether its words were written out, came from the attribute, or are drawn with no script */
:where([data-gcb-kit-tooltip-content]),
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready], [data-gcb-kit-tooltip=""], [data-trigger="manual"])[data-gcb-kit-tooltip]:is(:hover, :focus-visible))::after {
	display: block; box-sizing: border-box;
	max-width: var(--gcb-tooltip-w, 260px);
	max-width: min(var(--gcb-tooltip-w, 260px), calc(100vw - 2 * var(--gcb-kit-gap))); /* mechanic: and never wider than the screen */
	padding: var(--gcb-tooltip-pad, var(--gcb-kit-gap-s) var(--gcb-kit-gap));
	border: var(--gcb-tooltip-line, var(--gcb-kit-line-w) solid var(--gcb-kit-rule));
	border-radius: var(--gcb-tooltip-radius, var(--gcb-kit-radius-check));
	background: var(--gcb-tooltip-bg, var(--gcb-kit-ink));
	color: var(--gcb-tooltip-ink, var(--gcb-kit-surface));
	box-shadow: var(--gcb-tooltip-shadow, var(--gcb-kit-shadow-menu));
	font-family: var(--gcb-kit-font); font-size: var(--gcb-kit-text-meta); font-weight: var(--gcb-kit-weight-body); font-style: normal;
	line-height: var(--gcb-kit-leading); letter-spacing: var(--gcb-kit-tracking); text-transform: var(--gcb-kit-case);
	text-align: start; white-space: normal; overflow-wrap: break-word;
}

/* WITH NO SCRIPT: words in the attribute are drawn on the side asked for (over the thing, centred, as written);
   written-out words show on that side too, in a browser that can place one box against another (they wait for the
   script in one that cannot). Nothing but the script keeps them on the screen. */
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready], [data-gcb-kit-tooltip=""], [data-trigger="manual"])[data-gcb-kit-tooltip]:is(:hover, :focus-visible)) { position: relative; } /* mechanic: what the drawn words are placed against */
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready], [data-gcb-kit-tooltip=""], [data-trigger="manual"])[data-gcb-kit-tooltip]:is(:hover, :focus-visible))::after {
	content: attr(data-gcb-kit-tooltip); position: absolute; left: 50%; translate: -50% 0; width: max-content; pointer-events: none;
	bottom: calc(100% + var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s)));
}
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready])[data-place^="bottom"])::after { bottom: auto; top: calc(100% + var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s))); } /* mechanic: under it */
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready]):is([data-place="top-start"], [data-place="bottom-start"]))::after { left: 0; translate: none; } /* mechanic: lined up with its start */
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready]):is([data-place="top-end"], [data-place="bottom-end"]))::after { left: auto; right: 0; translate: none; } /* mechanic: lined up with its end */
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready]):is([data-place^="left"], [data-place^="right"]))::after { bottom: auto; top: 50%; translate: 0 -50%; } /* mechanic: level with its middle */
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready])[data-place^="left"])::after { left: auto; right: calc(100% + var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s))); } /* mechanic: before it */
:where([data-gcb-kit="tooltip"]:not([data-gcb-kit-ready])[data-place^="right"])::after { left: calc(100% + var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s))); } /* mechanic: after it */
[data-gcb-kit-tooltip-content]:not([data-gcb-kit-tooltip-positioner] *) { display: none; } /* mechanic: the words wait until the thing is pointed at */
@supports (anchor-name: --gcb-tooltip) {
	[data-gcb-kit="tooltip"]:not([data-gcb-kit-ready], [data-trigger="manual"]):is(:hover, :focus-visible) { anchor-name: --gcb-tooltip; } /* mechanic: the one being pointed at is what the words are placed against */
	[data-gcb-kit="tooltip"]:not([data-gcb-kit-ready], [data-trigger="manual"]):is(:hover, :focus-visible) + [data-gcb-kit-tooltip-content] { display: block; position: fixed; position-anchor: --gcb-tooltip; position-area: bottom; position-try-fallbacks: flip-block; width: max-content; margin: var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s)) 0; pointer-events: none; } /* mechanic: shown under the thing, over the page, with no script */
	[data-gcb-kit="tooltip"]:not([data-gcb-kit-ready], [data-trigger="manual"]):is(:hover, :focus-visible):is([data-place="top"], [data-place^="top-"]) + [data-gcb-kit-tooltip-content] { position-area: top; } /* mechanic: or over it, when asked */
	[data-gcb-kit="tooltip"]:not([data-gcb-kit-ready], [data-trigger="manual"]):is(:hover, :focus-visible)[data-place^="left"] + [data-gcb-kit-tooltip-content] { position-area: left; position-try-fallbacks: flip-inline, bottom; margin: 0 var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s)); } /* mechanic: before it */
	[data-gcb-kit="tooltip"]:not([data-gcb-kit-ready], [data-trigger="manual"]):is(:hover, :focus-visible)[data-place^="right"] + [data-gcb-kit-tooltip-content] { position-area: right; position-try-fallbacks: flip-inline, bottom; margin: 0 var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s)); } /* mechanic: after it */
}

/* WITH ITS SCRIPT: the box the label sits in. It is placed by the script (left, top) and carries the gutter on the
   side that faces the thing, so the pointer can cross from one to the other without the label shutting. */
[data-gcb-kit-tooltip-positioner] { position: fixed; inset: auto; margin: 0; overflow: visible; width: max-content; } /* mechanic: a box in the top layer, placed by the script */
[data-gcb-kit-tooltip-positioner]:not(:popover-open) { pointer-events: none; } /* mechanic: a label fading out is not there to point at */
:where([data-gcb-kit-tooltip-positioner]) { padding: 0; border: 0; background: transparent; color: inherit; }
:where([data-gcb-kit-tooltip-positioner][data-side="top"]) { padding-bottom: var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit-tooltip-positioner][data-side="bottom"]) { padding-top: var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit-tooltip-positioner][data-side="left"]) { padding-right: var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s)); }
:where([data-gcb-kit-tooltip-positioner][data-side="right"]) { padding-left: var(--gcb-tooltip-gutter, var(--gcb-kit-gap-s)); }
[data-gcb-kit-tooltip-positioner] > [data-gcb-kit-tooltip-content] { position: relative; } /* mechanic: what the arrow is placed against */

/* it grows a little out of the thing and fades in, and fades out again, with the menus' motion (no time at all for
   someone who asked for less). Its box stays drawn while the words fade out. */
:where([data-gcb-kit-tooltip-positioner]) { transition: display var(--gcb-kit-dur-menu) allow-discrete, overlay var(--gcb-kit-dur-menu) allow-discrete; }
:where([data-gcb-kit-tooltip-positioner] > [data-gcb-kit-tooltip-content]) {
	opacity: 1; scale: 1; transform-origin: bottom;
	transition: opacity var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand), scale var(--gcb-kit-dur-menu) var(--gcb-kit-ease-expand);
}
:where([data-gcb-kit-tooltip-positioner][data-side="bottom"] > [data-gcb-kit-tooltip-content]) { transform-origin: top; }
:where([data-gcb-kit-tooltip-positioner][data-side="left"] > [data-gcb-kit-tooltip-content]) { transform-origin: right; }
:where([data-gcb-kit-tooltip-positioner][data-side="right"] > [data-gcb-kit-tooltip-content]) { transform-origin: left; }
:where([data-gcb-kit-tooltip-positioner]:not(:popover-open) > [data-gcb-kit-tooltip-content]) { opacity: 0; scale: var(--gcb-tooltip-from-scale, 0.96); }
@starting-style {
	:where([data-gcb-kit-tooltip-positioner]:popover-open > [data-gcb-kit-tooltip-content]) { opacity: 0; scale: var(--gcb-tooltip-from-scale, 0.96); }
}

/* THE ARROW: a turned square on the edge that faces the thing, made of whatever the label is made of (its fill and its
   edge are the label's, so a label the design restyled keeps a matching arrow). Its middle sits on the inside of the
   label's edge and only its outer half is drawn, so its edge carries on the label's at any thickness and it never
   covers the words. The script slides it to point at the thing's middle. */
:where([data-gcb-kit-tooltip-arrow]) {
	position: absolute; box-sizing: border-box; pointer-events: none;
	width: var(--gcb-tooltip-arrow-size, 10px); height: var(--gcb-tooltip-arrow-size, 10px);
	background: inherit; border: inherit; border-top-color: transparent; border-left-color: transparent;
	border-radius: 0; border-bottom-right-radius: var(--gcb-tooltip-arrow-radius, 0); box-shadow: none;
	translate: -50% -50%; clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
:where([data-gcb-kit-tooltip-positioner][data-side="top"] [data-gcb-kit-tooltip-arrow]) { top: 100%; rotate: 45deg; }
:where([data-gcb-kit-tooltip-positioner][data-side="bottom"] [data-gcb-kit-tooltip-arrow]) { top: 0; rotate: 225deg; }
:where([data-gcb-kit-tooltip-positioner][data-side="left"] [data-gcb-kit-tooltip-arrow]) { left: 100%; rotate: -45deg; }
:where([data-gcb-kit-tooltip-positioner][data-side="right"] [data-gcb-kit-tooltip-arrow]) { left: 0; rotate: 135deg; }

/* video */
/* VIDEO: a video held to its shape. A frame of one shape (16 by 9 unless --gcb-video-ratio says otherwise) holds a
   poster and a play button; pressing it puts the player where the poster was. Or the frame holds a <video> written by
   hand, with the browser's controls. Under the frame, a caption.
   figure, img, a and figcaption are styled BY THEIR TAG by a theme that is not reset, so the rules on the root, the
   poster, the play button, the player and the caption weigh one attribute (README rule 2) and stand aside for an
   element marked data-gcb-own. Everything else weighs nothing. Every value is a token: the video's own first, the
   list's after. With no script the play button is a link to the film.
   The space above and below is the page's: its block margins are left alone. */
[data-gcb-kit="video"]:where(:not([data-gcb-own])) {
	display: flex; flex-direction: column; width: 100%; min-width: 0; box-sizing: border-box;
	gap: var(--gcb-video-gap, var(--gcb-kit-gap-s));
	margin-inline: 0;
	max-width: var(--gcb-video-max, none);
	font-family: var(--gcb-kit-font); text-align: start;
}
[data-gcb-kit="video"]:where([data-align="center"]:not([data-gcb-own])) { margin-inline: auto; text-align: center; }

/* THE FRAME: the one shape, whatever is in it. A faint fill made of the words' colour until there is a picture;
   --gcb-video-ground behind a playing film, where the film's shape is not the frame's (the words' colour unless set:
   dark on an ordinary site; a dark theme sets it, as there is no site token for a film's ground yet). */
:where([data-gcb-kit="video"] [data-gcb-kit-frame]) {
	position: relative; overflow: hidden; width: 100%; box-sizing: border-box;
	aspect-ratio: var(--gcb-video-ratio, 16 / 9);
	border-radius: var(--gcb-video-radius, var(--gcb-kit-radius-card));
	background: var(--gcb-kit-wash);
}
:where([data-gcb-kit="video"][data-gcb-kit-current] [data-gcb-kit-frame]) { background: var(--gcb-video-ground, var(--gcb-kit-ink)); }
[data-gcb-kit-poster][hidden]:where([data-gcb-kit="video"] *), [data-gcb-kit-play][hidden]:where([data-gcb-kit="video"] *) { display: none; } /* mechanic: the poster and the button are put away while the player is up */

/* THE POSTER and THE PLAYER fill the frame: the player made on pressing play, or one written into the frame (any
   video or iframe in it, marked or not). The poster is cut to it; a film is shown whole. */
[data-gcb-kit-poster]:where([data-gcb-kit="video"] *:not([data-gcb-own])),
[data-gcb-kit-player]:where([data-gcb-kit="video"] *:not([data-gcb-own])),
[data-gcb-kit-frame] > :where(video, iframe, embed, object):where([data-gcb-kit="video"] *:not([data-gcb-own])) {
	position: absolute; inset: 0; display: block; box-sizing: border-box;
	width: 100%; max-width: none; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
	object-fit: cover;
}
[data-gcb-kit-frame] > :where(video):where([data-gcb-kit="video"] *:not([data-gcb-own])) { object-fit: contain; }

/* THE PLAY BUTTON: the whole poster is pressed; a disc in its middle says so. An empty [data-gcb-kit-icon] is drawn
   as the disc with its triangle; one with a drawing in it is left alone. The disc is --gcb-video-play across, never
   more than --gcb-video-play-max of the frame's width; under the pointer it grows by --gcb-video-grow. */
[data-gcb-kit-play]:where([data-gcb-kit="video"] *:not([data-gcb-own])) {
	position: absolute; inset: 0; display: grid; place-items: center;
	margin: 0; padding: 0; border: 0; background: transparent; color: inherit; text-decoration: none; cursor: pointer;
	outline: 0 solid transparent;
	-webkit-tap-highlight-color: transparent;
}
:where([data-gcb-kit="video"] [data-gcb-kit-play] [data-gcb-kit-icon]) {
	display: grid; place-items: center;
	transition: scale var(--gcb-kit-dur-spring) var(--gcb-kit-ease-spring);
}
:where([data-gcb-kit="video"] [data-gcb-kit-play] [data-gcb-kit-icon]:empty) {
	width: min(var(--gcb-video-play, calc(var(--gcb-kit-control-h) * 1.5)), var(--gcb-video-play-max, 40%)); aspect-ratio: 1;
	border-radius: var(--gcb-kit-radius-full);
	background: var(--gcb-video-play-fill, var(--gcb-kit-surface));
	box-shadow: var(--gcb-kit-shadow-lift);
}
:where([data-gcb-kit="video"] [data-gcb-kit-play] [data-gcb-kit-icon]:empty)::before {
	content: ""; width: 32%; aspect-ratio: 7 / 8; margin-inline-start: 8%; /* mechanic: the triangle's drawing, a share of the disc, moved right so it looks centred */
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	background: var(--gcb-video-play-ink, var(--gcb-kit-ink));
}
@media (hover: hover) {
	:where([data-gcb-kit="video"] [data-gcb-kit-play]:hover [data-gcb-kit-icon]) { scale: var(--gcb-video-grow, 1.08); }
}
:where([data-gcb-kit="video"] [data-gcb-kit-play]:active [data-gcb-kit-icon]) { scale: var(--gcb-kit-press); }
/* for someone who asked for less motion the disc keeps its size, as press does */
@media (prefers-reduced-motion: reduce) {
	:where([data-gcb-kit="video"] [data-gcb-kit-play]:hover [data-gcb-kit-icon]) { scale: none; }
}

/* the keyboard's mark: round the disc for the play button; round the frame for the player, and for a play button
   with no disc in it (the frame cuts off anything drawn round the button itself) */
:where([data-gcb-kit="video"] [data-gcb-kit-play]:focus-visible [data-gcb-kit-icon]) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
:where([data-gcb-kit="video"] [data-gcb-kit-frame]:has([data-gcb-kit-player]:focus-visible, > video:focus-visible, > iframe:focus-visible)),
:where([data-gcb-kit="video"] [data-gcb-kit-frame]:has([data-gcb-kit-play]:focus-visible):not(:has([data-gcb-kit-icon]))) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }
:where([data-gcb-kit="video"] [data-gcb-kit-frame] > :is([data-gcb-kit-player], video, iframe):focus-visible) { outline: 0 solid transparent; }
:where([data-gcb-kit="video"] [data-gcb-kit-caption] a:focus-visible) { outline: var(--gcb-kit-focus-outline); outline-offset: var(--gcb-kit-focus-offset); }

/* THE CAPTION: small, quieter words made of the colour of the words round it, so it sits on any background */
[data-gcb-kit-caption]:where([data-gcb-kit="video"] > *:not([data-gcb-own])) {
	margin: 0; padding: 0; text-align: inherit; text-wrap: pretty;
	color: var(--gcb-video-caption-ink, var(--gcb-kit-quiet));
	font-size: var(--gcb-video-caption-size, var(--gcb-kit-text-meta)); font-weight: var(--gcb-kit-weight-body); line-height: var(--gcb-kit-leading);
}
/* a link in the caption: the caption's colour, underlined, so it reads on any background. It weighs nothing, so a
   theme's own link colour (a{color}) wins: that is the site's link */
:where([data-gcb-kit="video"] > [data-gcb-kit-caption] a:not([data-gcb-own])) { color: inherit; text-decoration: underline; }
