/*
Theme Name: Isesar
Description: Block theme with a figure-first editorial design: teal and amber on white, charcoal text, Schibsted Grotesk and Inter, self-hosted fonts.
Text Domain: isesar
Requires at least: 7.0
Requires PHP: 8.1
Version: 0.1.10
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Update URI: false
*/

/* Tokens that theme.json does not cover. Colours, fonts, sizes and spacing live in theme.json. */
:root {
	--wb-focus: #1553c7; /* Focus ring on light surfaces: 6.8:1 on paper. */
	--wb-focus-dark: var(--wp--preset--color--amber); /* Focus ring on charcoal surfaces: 10.4:1. */
	--wb-r-control: 6px;
	--wb-r-card: 10px;
	--wb-bar-h: 3.5rem; /* Sticky header height, used for scroll offsets. */
	--wb-chart-1: var(--wp--preset--color--teal);
	--wb-chart-2: var(--wp--preset--color--energy);
}

/* A sticky header must not hide the focused element or an anchor target (WCAG 2.2, 2.4.11). */
html { scroll-padding-top: calc(var(--wb-bar-h) + 1.5rem); -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
img, svg { height: auto; max-width: 100%; }
a { text-decoration-thickness: 0.08em; text-underline-offset: 0.24em; }
a:hover { text-decoration-thickness: 0.14em; }

/* Keyboard focus: a visible ring everywhere, amber on every charcoal surface. */
:focus-visible { outline: 3px solid var(--wb-focus); outline-offset: 3px; }
.has-charcoal-background-color :focus-visible, .wb-top :focus-visible, .wb-foot :focus-visible, .wb-lead :focus-visible { outline-color: var(--wb-focus-dark); }

/* Figures and data align on tabular digits; running text keeps proportional digits. */
.wb-num, .wb-table, .wp-block-table table { font-variant-numeric: tabular-nums; }

/* Logo: a vector file in assets/logo, shown as an image block (no inline SVG). */
.wb-logo { line-height: 0; }
header.wp-block-template-part .wb-logo, footer.wp-block-template-part .wb-logo { margin: 0; }
.wb-logo a { display: block; }
.wb-logo img { display: block; height: 1.25rem !important; max-width: none; width: auto !important; } /* Block attributes write an inline size; 20 px, 26 px from 1024. */
@media (min-width: 64rem) { .wb-logo img { height: 1.625rem !important; } }

/* Tables: scroll inside their own region (360 px), numbers right, first column pinned, horizontal rules only; the caption sits below the frame. */
.wb-scroll { -webkit-overflow-scrolling: touch; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wb-r-control); overflow-x: auto; }
.wp-block-table table, .wp-block-table table.has-fixed-layout { border-collapse: collapse; min-width: 34rem; table-layout: auto; width: 100%; }
.wp-block-table thead, .wp-block-table tfoot { border: 0; }
.wp-block-table th:first-child, .wp-block-table td:first-child { min-width: 9rem; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.5rem 0.75rem; }
.wp-block-table :where(th:not(:first-child), td:not(:first-child)) { text-align: right; } /* Zero specificity: the editor's has-text-align-* classes win. */
.wp-block-table thead th { background: var(--wp--preset--color--mist-2); font-weight: 700; }
.wp-block-table tbody tr { background: var(--wp--preset--color--paper); }
.wp-block-table tbody tr:nth-child(even) { background: var(--wp--preset--color--stripe); }
.wp-block-table tbody tr:hover { background: var(--wp--preset--color--mist); }
.wp-block-table tbody tr:last-child > * { border-bottom: 0; }
.wp-block-table :where(th, td):first-child { background: inherit; left: 0; position: sticky; text-align: left; }
.wp-block-table thead th:first-child { background: var(--wp--preset--color--mist-2); }
.wp-block-table { overflow: visible; } /* Core clips the figure; the scroller is .wb-scroll, whose 3 px focus ring must show. */
.wb-scroll > table { font-size: var(--wp--preset--font-size--note); line-height: 1.4; } /* The theme.json size sits on the figure; the table is now one level down. */
.wb-scroll:focus-visible { outline-offset: 2px; }
.wp-block-table figcaption { margin: var(--wp--preset--spacing--s-2) 0 0; }
figcaption.wb-ai-caption { margin: var(--wp--preset--spacing--s-2) 0 0; } /* The AI label under the lead picture (functions.php, ai_image_caption); size and colour come from the theme.json caption element. */
.wp-block-table table.has-fixed-layout :is(th, td), .wp-block-table table :is(th, td) { overflow-wrap: normal; word-break: normal; } /* Core breaks words in fixed-layout cells: a wide table must scroll, not squash. */
.wb-scroll-hint { margin: var(--wp--preset--spacing--s-2) 0 0; color: var(--wp--preset--color--slate); font-size: var(--wp--preset--font-size--fine); }
@media (min-width: 64rem) { /* Wide screens: tighter cells, so a six-column table fits the 42rem column (the rail beside it leaves no room to widen the frame). */
	.wp-block-table th:first-child, .wp-block-table td:first-child { min-width: 7rem; }
	.wp-block-table th, .wp-block-table td { padding-inline: 0.5rem; }
}

/* Rubric colour: the six rubrics tint the label and the card rule. Hooks are the rubric URLs of the menu. */
.wp-block-post-terms { --wb-rub: var(--wp--preset--color--slate); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wp-block-post-terms { position: relative; z-index: 1; } /* Above the title link overlay, so the label stays clickable. */
.wp-block-post-terms a { color: var(--wb-rub); text-decoration: none; }
.wp-block-post-terms a:hover { text-decoration: underline; }
.wp-block-post-terms:has(a[href*="/energy-prices/"]), li:has(a[rel="tag"][href*="/energy-prices/"]) { --wb-rub: var(--wp--preset--color--energy); }
.wp-block-post-terms:has(a[href*="/housing/"]), li:has(a[rel="tag"][href*="/housing/"]) { --wb-rub: var(--wp--preset--color--housing); }
.wp-block-post-terms:has(a[href*="/work-pay/"]), li:has(a[rel="tag"][href*="/work-pay/"]) { --wb-rub: var(--wp--preset--color--work); }
.wp-block-post-terms:has(a[href*="/consumers/"]), li:has(a[rel="tag"][href*="/consumers/"]) { --wb-rub: var(--wp--preset--color--consumers); }
.wp-block-post-terms:has(a[href*="/trade/"]), li:has(a[rel="tag"][href*="/trade/"]) { --wb-rub: var(--wp--preset--color--trade); }
.wp-block-post-terms:has(a[href*="/explained/"]), li:has(a[rel="tag"][href*="/explained/"]) { --wb-rub: var(--wp--preset--color--explained); }
.has-charcoal-background-color .wp-block-post-terms a { color: var(--wp--preset--color--amber); }

/* Material card: the whole card is one link target, a rule in the rubric colour, hover, focus and active states. */
.wp-block-post-template.is-layout-grid > li { border-top: 4px solid var(--wb-rub, var(--wp--preset--color--line)); padding-top: var(--wp--preset--spacing--s-3); position: relative; }
.wp-block-post-template > li .wp-block-post-title { line-height: 1.3; text-wrap: balance; } /* List title: line height on the block, not on the inline link. */
.wp-block-post-title a { color: var(--wp--preset--color--charcoal); text-decoration: none; }
.wp-block-post-template.is-layout-grid .wp-block-post-title a::after { content: ""; inset: 0; position: absolute; }
.wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: 0.14em; }
.wp-block-post-title a:active { color: var(--wp--preset--color--teal-deep); }
.wp-block-post-template.is-layout-grid > li:has(.wp-block-post-title a:focus-visible) { border-radius: var(--wb-r-card); outline: 3px solid var(--wb-focus); outline-offset: 3px; }
.wp-block-post-template.is-layout-grid > li .wp-block-post-title a:focus-visible { outline: 0; }
.wp-block-post-featured-image { border-radius: var(--wb-r-card); overflow: hidden; }
.wp-block-post-featured-image img { transition: transform 0.25s; }
li:hover > .wp-block-post-featured-image img { transform: scale(1.03); }
.has-charcoal-background-color .wp-block-post-title a { color: var(--wp--preset--color--paper); }
.has-charcoal-background-color .wp-block-post-title a:active { color: var(--wp--preset--color--amber); }

/* Wire and Topics lists: rows split by a rule, the whole row is one link target; five Wire notes below 1024 px. */
#wire .wp-block-post-template, .wb-topic .wp-block-post-template { align-content: start; gap: 0; }
#wire .wp-block-post-template > li, .wb-topic .wp-block-post-template > li { border-top: 1px solid var(--wp--preset--color--line); display: grid; gap: var(--wp--preset--spacing--s-1); margin: 0; padding: var(--wp--preset--spacing--s-3) 0; position: relative; }
#wire .wp-block-post-template > li > *, .wb-topic .wp-block-post-template > li > * { margin: 0; }
#wire .wp-block-post-template > li { align-items: start; grid-template-columns: 8.25rem 1fr; gap: var(--wp--preset--spacing--s-3); } /* Date and time: "14 Oct 2026, 08:40". */
#wire .wp-block-post-date { white-space: nowrap; }
@media (max-width: 39.99rem) { #wire .wp-block-post-template > li { gap: var(--wp--preset--spacing--s-1); grid-template-columns: 1fr; } } /* Phones: the date sits above the title. */
.wb-topic .wp-block-post-title { font-size: 1rem !important; font-weight: 600; } /* Beats has-text-font-size (!important): list title is 16 px. */
h5, h5.wp-block-heading { font-size: 1rem; } /* A literal size in theme.json would be made fluid (14 px at 360). */
.wb-topic .wp-block-post-title a::after, #wire .wp-block-post-title a::after { content: ""; inset: 0; position: absolute; }
#wire .wp-block-post-title { font-weight: 600; line-height: 1.3; }
#wire .wp-block-post-terms:has(a[href*="/wire/"]) { display: none; } /* A note filed only in Wire has no topic to show. */
@media (max-width: 63.99rem) { #wire .wp-block-post-template > li:nth-child(n+6) { display: none; } }

/* Home: the first material of a topic is a card (3:2 art, 1:1 and 96 px on phones), the rest are rows. */
.wb-topic .wp-block-post-template > li:first-child { border-top: 0; gap: var(--wp--preset--spacing--s-2); padding-top: 0; }
.wb-topic .wp-block-post-template > li:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--text) !important; font-weight: 700; }
.wb-topic .wp-block-post-template > li:not(:first-child) :is(.wp-block-post-featured-image, .wp-block-post-date) { display: none; }
.wb-topics.is-layout-grid { gap: var(--wp--preset--spacing--s-6) var(--wp--preset--spacing--s-5); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .wb-topics.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .wb-topics.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wb-topic-late:not(:has(li)) { display: none; } /* Hide the late-topic column when it has fewer than four items. */
.wb-topic > h3 a { color: var(--wp--preset--color--charcoal); text-decoration: none; }
.wb-topic > h3 a:hover { text-decoration: underline; }
@media (max-width: 39.99rem) {
	.wb-topic .wp-block-post-template > li:first-child { align-items: start; column-gap: var(--wp--preset--spacing--s-3); grid-template-columns: 6rem 1fr; }
	.wb-topic li:first-child .wp-block-post-featured-image { aspect-ratio: 1; grid-row: 1 / 3; }
	.wb-topic li:first-child .wp-block-post-featured-image img { aspect-ratio: 1 !important; }
}

/* Home: lead (dark card) and Wire side by side from 1024 px; chart of the day in two columns. */
.wb-split { display: grid; gap: var(--wp--preset--spacing--s-6) var(--wp--preset--spacing--s-5); }
.wb-split > * { margin: 0; min-width: 0; }
.wb-lead { display: flex; flex-direction: column; }
.wb-lead :is(.wp-block-query, .wp-block-post-template, .wp-block-post-template > li) { display: flex; flex: 1; flex-direction: column; gap: var(--wp--preset--spacing--s-4); margin: 0; padding: 0; }
.wb-lead .wp-block-post-template > li > * { margin: 0; }
.wb-lead .wp-block-post-template > li > .wb-fr { border-top: 1px solid var(--wp--preset--color--dark-line); margin-top: auto; padding-top: var(--wp--preset--spacing--s-5); }
.wb-fr:has(.wb-num:empty) { display: none; }
.wb-fr-meta p, .wb-src p, .wb-kick p { margin: 0; }
.wb-src .wb-asof { white-space: nowrap; }
.wb-src > p:nth-child(2)::after { content: " ·"; } /* The dot ends the source name, so no line starts with it. */
.wb-src:has(.wb-asof:empty) > p:nth-child(2)::after { content: none; }
.wb-src .wb-asof:empty { display: none; }
.wb-src:has(p:nth-child(2):empty) > p:nth-child(-n+2) { display: none; } /* No source name: drop the label, keep the date. */
.wb-src:has(p:nth-child(2):empty) .wb-asof::before { content: "As of "; }
.wb-plot:not(:has(img)) { display: none; } /* A chart without an image: no empty white strip. */ /* Empty binding (no value, hidden post): no stray label or dot. */
.wb-lab { align-items: center; display: inline-flex; font-weight: 700; gap: 0.5em; letter-spacing: 0.06em; text-transform: uppercase; }
.wb-lab::before { background: var(--wb-rub, currentColor); border-radius: 50%; content: ""; height: 0.5rem; width: 0.5rem; }
.wb-lead .wb-lab { --wb-rub: var(--wp--preset--color--amber); }
.wb-lead .wp-block-read-more { width: 100%; }
.wb-kick .wp-block-post-terms { align-items: center; display: inline-flex; gap: 0.5em; }
.wb-kick .wp-block-post-terms::before { content: "·"; }
.wb-kick > :first-child::before { background: currentColor; border-radius: 50%; content: ""; height: 0.5rem; width: 0.5rem; }
.wb-head { margin-bottom: var(--wp--preset--spacing--s-3); }
.wb-more { font-weight: 700; }
@media (max-width: 63.99rem) { #wire .wb-more a { box-sizing: border-box; display: inline-block; min-height: 2.75rem; padding-block: 0.5rem; padding-block: calc((2.75rem - 1lh) / 2); } } /* The one "All notes" link is a 44 px touch target on phones and tablets (there is no second button); an inline-block box centred by the padding, never flex (a flex link splits its em / mark children into columns). */
.wb-chart .wp-block-post-template > li { display: grid; gap: var(--wp--preset--spacing--s-5); margin: 0; }
.wb-chart .wp-block-post-template > li > * { margin: 0; }
.wb-chart .wp-block-post-featured-image { border-radius: 0; }
.wb-chart .wp-block-post-title { margin: var(--wp--preset--spacing--s-2) 0 var(--wp--preset--spacing--s-3); }
.wb-chart .wp-block-post-excerpt { margin-bottom: 1.25rem; }
@media (min-width: 40rem) { .wb-lead { padding: var(--wp--preset--spacing--s-6) !important; } .wb-chart { padding: var(--wp--preset--spacing--s-6) !important; } }
@media (min-width: 64rem) {
	.wb-split:has(> .wb-lead):has(> #wire) { grid-template-columns: 7fr 5fr; } /* No lead story, or no Wire (fewer than three notes): one column. */
	.wb-chart .wp-block-post-template > li,
	.wp-block-columns:has(.wb-explainer):not(:has(.wb-wip)) .wb-explainer .wp-block-post-template > li:first-child { gap: var(--wp--preset--spacing--s-7); grid-template-columns: 5fr 7fr; }
	/* Explainer alone in the row: image left, title and excerpt right, so the 16:9 image keeps the chart's width. */
	.wp-block-columns:has(.wb-explainer):not(:has(.wb-wip)) .wb-explainer .wp-block-post-template > li:first-child { align-content: start; display: grid; grid-template-rows: auto 1fr; row-gap: 0; }
	.wp-block-columns:has(.wb-explainer):not(:has(.wb-wip)) .wb-explainer .wp-block-post-template > li:first-child > .wp-block-post-featured-image { grid-row: 1 / span 2; margin: 0; }
	.wp-block-columns:has(.wb-explainer):not(:has(.wb-wip)) .wb-explainer .wp-block-post-template > li:first-child > :not(.wp-block-post-featured-image) { grid-column: 2; }
}

/* A home slot that found no post renders nothing (functions.php): its empty column goes, the other fills the row. */
.wp-block-columns > .wp-block-column:not(:has(> *)) { display: none; }
.wp-block-columns:not(:has(> .wp-block-column > *)) { display: none; }

/* Explainer of the week: the first material is the feature (title and excerpt), the next two are compact rows. */
.wb-explainer .wp-block-post-template { gap: 0; }
.wb-explainer .wp-block-post-template > li { margin: 0; }
.wb-explainer .wp-block-post-template > li:not(:first-child) { border-top: 1px solid var(--wp--preset--color--line); margin-top: var(--wp--preset--spacing--s-3); padding-top: var(--wp--preset--spacing--s-3); }
.wb-explainer .wp-block-post-template > li:not(:first-child) :is(.wp-block-post-excerpt, .wp-block-post-featured-image) { display: none; }
.wb-explainer .wp-block-post-template > li:not(:first-child) .wp-block-post-title { font-size: 1rem !important; font-weight: 600; }

/* Read-more link as a button (amber; outline variant; on dark surfaces). */
.wp-block-read-more { box-sizing: border-box; background: var(--wp--preset--color--amber); border: 2px solid transparent; border-radius: var(--wb-r-control); color: var(--wp--preset--color--charcoal); display: inline-block; font-size: var(--wp--preset--font-size--note); font-weight: 700; line-height: 1; min-height: 2.75rem; padding: 0.5rem 1.25rem; padding-block: calc((2.75rem - 1lh - 4px) / 2); text-align: center; text-decoration: none; width: fit-content; } /* Not a flex box: markup inside the label would become flex items. The label is centred by the padding (44 px minus the 2 px borders), as before. */
.wp-block-read-more:hover { background: var(--wp--preset--color--amber-soft); color: var(--wp--preset--color--charcoal); }
.wp-block-read-more:active { box-shadow: inset 0 3px 0 rgba(26, 31, 28, 0.28); }
.wp-block-read-more.is-style-outline { background: transparent; border-color: var(--wp--preset--color--teal); color: var(--wp--preset--color--teal); }
.wp-block-read-more.is-style-outline:hover { background: var(--wp--preset--color--mist); border-color: var(--wp--preset--color--teal-deep); color: var(--wp--preset--color--teal-deep); }

/* Figures: teal-deep digits, amber on dark. */
.wb-num { color: var(--wp--preset--color--teal-deep); }
.has-charcoal-background-color .wb-num { color: var(--wp--preset--color--amber); }

/* Buttons: 44 px high; states beyond hover. Disabled is aria-disabled and also changes the text colour, not colour alone. */
.wp-block-button__link { align-items: center; display: inline-flex; justify-content: center; min-height: 2.75rem; }
.wp-block-button__link:active { box-shadow: inset 0 3px 0 rgba(26, 31, 28, 0.28); }
.wp-block-button__link[aria-disabled="true"] { background: var(--wp--preset--color--mist-2); box-shadow: none; color: var(--wp--preset--color--slate); cursor: not-allowed; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid var(--wp--preset--color--teal); color: var(--wp--preset--color--teal); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--mist); border-color: var(--wp--preset--color--teal-deep); color: var(--wp--preset--color--teal-deep); }
.wp-block-button.is-style-outline > .wp-block-button__link:active { background: var(--wp--preset--color--mist-2); box-shadow: none; }
.wp-block-button.is-style-outline > .wp-block-button__link[aria-disabled="true"] { background: transparent; border-color: var(--wp--preset--color--line); color: var(--wp--preset--color--slate); }
.has-charcoal-background-color .wp-block-button.is-style-outline > .wp-block-button__link { border-color: var(--wp--preset--color--on-dark-soft); color: var(--wp--preset--color--on-dark); }
.has-charcoal-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--dark-line); border-color: var(--wp--preset--color--on-dark); color: var(--wp--preset--color--on-dark); }
.has-charcoal-background-color .wp-block-button.is-style-outline > .wp-block-button__link:active { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3); }

/* Header: sticky charcoal bar; navigation with an amber rule for hover and the current page. */
header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 5; }
header.wp-block-template-part > .wp-block-group > .wp-block-group { min-height: calc(var(--wb-bar-h) - 0.75rem); } /* The inner row carries the bar height (minus the 0.375rem padding on each side) and centres its content vertically. */
header.wp-block-template-part .wp-block-navigation a.wp-block-navigation-item__content { color: var(--wp--preset--color--on-dark-soft); } /* Specific enough to beat the core inherit rule. */
.wp-block-navigation .wp-block-navigation-item__content { border-bottom: 3px solid transparent; font-weight: 600; text-decoration: none; }
.wp-block-navigation .wp-block-navigation-item__content:hover, .wp-block-navigation .wp-block-navigation-item__content[aria-current] { border-bottom-color: var(--wp--preset--color--amber); color: var(--wp--preset--color--on-dark); }
header.wp-block-template-part .wp-block-navigation a.wp-block-navigation-item__content:hover, header.wp-block-template-part .wp-block-navigation a.wp-block-navigation-item__content[aria-current] { color: var(--wp--preset--color--on-dark); }
.wp-block-navigation .wp-block-navigation-item__content:active, header.wp-block-template-part .wp-block-navigation a.wp-block-navigation-item__content:active { color: var(--wp--preset--color--amber); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--grotesk); font-size: var(--wp--preset--font-size--head-s); font-weight: 700; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { border-radius: var(--wb-r-control); min-height: 2.75rem; min-width: 2.75rem; }
.wp-block-navigation__responsive-container-open:hover, .wp-block-navigation__responsive-container-close:hover { background: var(--wp--preset--color--dark-line); }
footer.wp-block-template-part a { color: var(--wp--preset--color--on-dark-soft); }
footer.wp-block-template-part a:hover { color: var(--wp--preset--color--on-dark); }
/* A short page (404, an empty search, a one-note rubric) keeps the footer at the bottom of the window: main takes the spare height. */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.wp-site-blocks > main { flex: 1 0 auto; }

/* Chart legend: line samples, not dots (series differ by stroke, not by colour alone). */
.wb-legend { align-items: center; display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--s-1) var(--wp--preset--spacing--s-4); }
.wb-sw { border-top: 3px solid var(--wb-chart-1); display: inline-block; height: 0; margin-right: 0.5rem; vertical-align: middle; width: 1.75rem; }
.wb-sw-2 { border-top: 4px dotted var(--wb-chart-2); }

@media (prefers-reduced-motion: reduce) { .wp-block-post-featured-image img { transition: none; } li:hover > .wp-block-post-featured-image img { transform: none; } }

/* Article: header, rail (figure card, contents) and body; the rail sits beside them from 1024 px. */
.wb-page { display: grid; gap: var(--wp--preset--spacing--s-5); grid-template-columns: minmax(0, 1fr); }
.wb-page > * { margin: 0; min-width: 0; }
.wb-rail { align-self: start; display: grid; gap: var(--wp--preset--spacing--s-5); }
.wb-rail:not(:has(.wb-key, .wb-toc)) { display: none; } /* No figure card and no contents: no empty landmark. */
@media (max-width: 63.99rem) { .wb-rail:not(:has(.wb-key)) { display: none; } }
.wb-rail > * { margin: 0; }
.wb-cap { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wb-key:has(.wb-num:empty) { display: none; }
.wb-key p, .wb-src p { margin: 0; }
.wb-toc { display: none; }
.wb-toc-list { display: grid; font-size: var(--wp--preset--font-size--note); gap: var(--wp--preset--spacing--s-2); list-style: none; margin: var(--wp--preset--spacing--s-3) 0 0; padding: 0; }
.wb-toc-list a { border-left: 3px solid transparent; color: var(--wp--preset--color--graphite); display: block; line-height: 1.4; padding-left: var(--wp--preset--spacing--s-3); text-decoration: none; }
.wb-toc-list a:hover { color: var(--wp--preset--color--teal-deep); text-decoration: underline; }
.wb-body { display: grid; gap: var(--wp--preset--spacing--s-5); grid-template-columns: minmax(0, 1fr); }
.wb-body > * { margin: 0; }
.wp-block-post-terms.wb-more { letter-spacing: 0; text-transform: none; }
.wb-more a { color: var(--wp--preset--color--teal); text-decoration: underline; }
.wb-body h2 { margin-top: var(--wp--preset--spacing--s-5); }
@media (min-width: 64rem) {
	.wb-page { column-gap: clamp(3rem, 7vw, 4.5rem); grid-template-columns: minmax(0, 42rem) 20rem; justify-content: center; }
	.wb-ah { grid-column: 1; grid-row: 1; }
	.wb-rail { grid-column: 2; grid-row: 1 / 3; position: sticky; top: calc(var(--wb-bar-h) + var(--wp--preset--spacing--s-5)); max-height: calc(100vh - var(--wb-bar-h) - 2 * var(--wp--preset--spacing--s-5)); overflow-y: auto; }
	.wb-body { grid-column: 1; grid-row: 2; }
	.wb-toc { display: block; }
}

/* Footer: the brand and one link column (the section links live only in the masthead menu); side by side from 782 px, with the wider gap from 1024 px. */
.wb-fg { display: grid; gap: var(--wp--preset--spacing--s-6); }
.wb-fg > * { margin: 0; }
.wb-fcol .wp-block-navigation { gap: var(--wp--preset--spacing--s-2); }
.wb-fb { border-top: 1px solid var(--wp--preset--color--dark-line); margin-top: var(--wp--preset--spacing--s-6); padding-top: var(--wp--preset--spacing--s-4); gap: var(--wp--preset--spacing--s-2) var(--wp--preset--spacing--s-5); }
.wb-fb p { margin: 0; }
/* Footer links on phones and tablets: a 44 x 44 px touch target per link (a short label such as «About» gets the width from min-inline-size), not flex, so inline markup in a link keeps its flow; the look stays (the hover mark moves from a border to an underline). */
@media (max-width: 63.99rem) {
	.wb-fcol .wp-block-navigation { gap: 0; }
	.wb-fcol .wp-block-navigation .wp-block-navigation-item__content { border-bottom: 0; box-sizing: border-box; display: inline-block; min-block-size: 2.75rem; min-inline-size: 2.75rem; padding-block: 0.5rem; padding-block: calc((2.75rem - 1lh) / 2); text-decoration-color: transparent; text-decoration-line: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
	.wb-fcol .wp-block-navigation .wp-block-navigation-item__content:hover, .wb-fcol .wp-block-navigation .wp-block-navigation-item__content[aria-current] { text-decoration-color: var(--wp--preset--color--amber); }
}
@media (min-width: 48.875rem) { .wb-fg { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 64rem) { .wb-fg { gap: var(--wp--preset--spacing--s-7); } }
.wp-block-post-template .wp-block-post-excerpt { overflow-wrap: anywhere; }
.wp-block-post-template.is-layout-grid > li { min-width: 0; }
/* Header on phones: a Wire pill next to the burger (Wire is not in the menu), search first; the full menu from 1024 px. */
header .wb-pill.wb-pill { margin: 0 0 0 auto; }
header .wp-block-navigation { flex: 0 0 auto; margin-left: 0; }
.wb-pill a { border: 1.5px solid var(--wp--preset--color--on-dark-muted); border-radius: 999px; color: var(--wp--preset--color--on-dark); display: inline-block; font-weight: 700; min-height: 2.25rem; padding: 0 0.875rem; text-decoration: none; }
.wb-pill a::before { background: var(--wp--preset--color--amber); border-radius: 50%; content: ""; display: inline-block; height: 0.5rem; margin-right: 0.4rem; vertical-align: middle; width: 0.5rem; } /* The dot sits before the label in the inline flow (the 0.4rem gap is its margin); the link itself is not flex. */
.wb-nav-wire a::before { background: var(--wp--preset--color--amber); border-radius: 50%; content: ""; height: 0.5rem; width: 0.5rem; } /* Unchanged: core makes the menu link a block, so this empty inline box never showed (and the removed inline-flex on the link never applied either). */
.wb-pill a:hover { background: var(--wp--preset--color--dark-line); }
.wb-nav-search a::before, .wb-nav-search-m a::before { background: currentColor; content: ""; display: inline-block; height: 1.125rem; margin-right: 0.4rem; -webkit-mask: url("assets/icons/search.svg") center / contain no-repeat; mask: url("assets/icons/search.svg") center / contain no-repeat; vertical-align: -0.2em; width: 1.125rem; }
.wp-block-navigation__responsive-container.is-menu-open .wb-nav-wire.wp-block-navigation-item { display: none; }
.wp-block-navigation .wb-nav-search-m.wp-block-navigation-item { display: none; } /* Search is first in the open menu (DOM order), last in the bar. */
.wp-block-navigation__responsive-container.is-menu-open .wb-nav-search-m.wp-block-navigation-item { display: list-item; }
.wp-block-navigation__responsive-container.is-menu-open .wb-nav-search.wp-block-navigation-item { display: none; }
@media (min-width: 64rem) { .wb-pill { display: none; } }
@media (min-width: 64rem) and (max-width: 79.99rem) { header .wp-block-navigation__container { gap: 0.625rem; } } /* Eight items fit one row at 1024 px. */
@media (min-width: 37.5rem) and (max-width: 63.99rem) {
	header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; } /* Beats the core rule that shows the menu from 600 px. */
	header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

/* Touch targets on phones and tablets: a control that is not a link inside running text is at least 44 px (2.75rem) tall; type size and colour stay. */
@media (max-width: 63.99rem), (pointer: coarse) {
	.wb-logo a { align-content: center; display: block; margin-block: -0.75rem; min-block-size: 2.75rem; width: fit-content; } .wb-logo a img { display: block; } /* The 20 px mark keeps its place: the extra height is cancelled by the margin. */
	.wb-pill { display: flex; } /* The pill is the paragraph's only child, so the line box adds nothing to its 44 px. */
	.wb-pill a { border-color: transparent; box-sizing: border-box; isolation: isolate; min-height: 2.75rem; padding-block: 0.625rem; padding-block: calc((2.75rem - 1lh - 3px) / 2); position: relative; } /* 44 px target, the header bar stays 56 px. */
	.wb-pill a::after { border: 1.5px solid var(--wp--preset--color--on-dark-muted); border-radius: 999px; content: ""; inset: calc(0.1875rem - 1.5px) -1.5px; position: absolute; } /* The visible ring keeps its 38 px (inset counts from inside the transparent border). */
	.wb-pill a:hover { background: none; }
	.wb-pill a:hover::after { background: var(--wp--preset--color--dark-line); z-index: -1; }
	.wp-block-post-terms:not(.wb-more) a { box-sizing: border-box; display: inline-block; min-height: 2.75rem; min-width: 2.75rem; overflow-wrap: anywhere; padding-block: 0.5rem; padding-block: calc((2.75rem - 1lh) / 2); } /* A short label (BETA) is 44 px wide too; the text stays at the left edge. */
	.wp-block-post-template .wp-block-post-title a, .wb-topic > h3 a { box-sizing: border-box; display: inline-block; min-block-size: 2.75rem; min-inline-size: 2.75rem; overflow-wrap: anywhere; padding-block: 0.5rem; padding-block: calc((2.75rem - 1lh) / 2); } /* A real 44 px box (the hit test counts the box, not padding cancelled by a negative margin); the title link may hold em / mark, so it is inline-block, never flex (flex splits every child into its own column); padding-block centres a one-line title in the 44 px (the rem value is the fallback for browsers without lh); no inline padding. */
	#wire .wp-block-post-title a, .wb-topic .wp-block-post-title a { display: inline-block; margin-block: -0.75rem; min-height: 0; padding-block: 0.75rem; } /* Home lists: the ::after of the link already covers the whole row, so the 44 px box is padding cancelled by the margin and the row does not move. */
	.wb-more a { box-sizing: border-box; display: inline-block; min-height: 2.75rem; min-width: 2.75rem; overflow-wrap: anywhere; padding-block: 0.5rem; padding-block: calc((2.75rem - 1lh) / 2); text-align: center; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { box-sizing: border-box; display: inline-block; min-height: 2.75rem; padding-block: 0.5rem; padding-block: calc((2.75rem - 1lh) / 2); } /* Links of the open phone menu: a 44 px box, the label centred by the padding. */
}
