/* ==========================================================================
ABlawg — WordPress bridge
--------------------------------------------------------------------------
The approved design is hand-authored HTML, so every element in it carries an
explicit class (.prose__title, .prose__run, .subscribe__input). Content that
comes out of WordPress does not: the editor emits bare <h2>, <p>, <ul> and
<figure>, Gravity Forms emits its own markup, and core widgets emit theirs.

This file is the only place those two vocabularies are reconciled. It adds
nothing new to the design — every value below is one of app.css's own
tokens — and it never overrides a rule app.css already sets, so the two can
be read independently.

Loaded after app.css. Sections mirror app.css's numbering where they relate.
========================================================================== */


/* ── A. Gutenberg content ─────────────────────────────────────────────────
Moved out. Every block style now lives in assets/css/blocks.css, so there is
exactly one place that decides what a heading, quote, table or button looks
like inside post content. Two files setting the same properties from the
same tokens would drift the first time one of them was edited.

Multi-page posts stay here, because wp_link_pages() is theme output rather
than a block.                                                            */

body {
	word-wrap: break-word;
	word-break: break-word;
}

.prose__pages { display: flex; flex-wrap: wrap; gap: var(--sp-10); }
.prose__pages a,
.prose__pages > span {
	padding: 0.375rem 0.75rem;
	border: var(--hairline) solid var(--clr-border);
	font-size: var(--fs-14);
	text-decoration: none;
}
.prose__pages a:hover { border-color: var(--clr-red); }


/* ── B. Core alignment and media classes ───────────────────────────────── */

.alignleft {
	float: left;
	margin: 0 var(--sp-30) var(--sp-20) 0;
}
.alignright {
	float: right;
	margin: 0 0 var(--sp-20) var(--sp-30);
}
.aligncenter { margin-inline: auto; }

/* A wide or full-width block inside the narrow article column would otherwise
spill past the card's padding. */
.prose > .alignwide,
.prose > .alignfull { width: 100%; max-width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text {
	font-size: var(--fs-14);
	color: var(--clr-muted);
}

/* Core's own visually-hidden class. app.css ships .u-sr-only; this gives
core's markup — pagination labels, form labels — the same treatment rather
than letting it render visibly. */
.screen-reader-text:not(:focus):not(:active) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


/* ── C. Widgets in the sidebar ─────────────────────────────────────────────
The theme's own three widgets emit the design's markup directly and need
nothing here. This is for the core widgets an editor may drop in beside
them — Recent Posts, a nav menu, a text block — so they inherit the
sidebar's panel look instead of arriving unstyled.                       */

.sidebar > .widget { display: grid; gap: var(--sp-20); }

/* The theme's widgets open with their own .feed/.panel/.side-head element,
which already carries the spacing. Only a widget that does NOT is given panel
padding — otherwise the search and category widgets, which are wrappers
around the design's own controls, would gain a grey panel the design does
not draw around them. */
.sidebar > .widget:not(:has(> .feed)):not(:has(> .panel)):not(:has(> .side-head)) {
	padding: var(--panel-pad);
	background: var(--clr-surface);
}
/* AA: brand red is 4.48:1 on this grey panel. */
.sidebar > .widget:not(:has(> .feed)):not(:has(> .panel)):not(:has(> .side-head)) .section-head__title {
	color: var(--clr-red-deep);
}

.sidebar .widget ul {
	display: grid;
	gap: var(--sp-10);
	padding: 0;
	list-style: none;
}
.sidebar .widget li a {
	font-family: var(--ff-display);
	font-size: var(--fs-18);
	color: var(--clr-ink);
	text-decoration: none;
}
.sidebar .widget li a:hover { color: var(--clr-red); text-decoration: underline; }

/* The homepage About widget area sits in the main column, not the sidebar. */
.layout__main > .widget { display: grid; gap: var(--sp-30); }


/* ── D. Gravity Forms: the newsletter ──────────────────────────────────────
The brief requires Gravity Forms to own this form, so the design's
.subscribe markup is never rendered. These rules give GF's output the same
shape: a full-width stack of a bare white input and a full-width CTA
button, matching section 16 of app.css.

Scoped to .subscribe--gf so no other Gravity Form on the site is touched. */

.subscribe--gf { width: 100%; }
.subscribe--gf .gform_wrapper { margin: 0; }
/* Three classes, not two. Gravity Forms sets these from
`.gform-theme--foundation .gform_fields` and `… .gform_footer` — (0,2,0),
exactly the weight a `.subscribe--gf .gform_*` rule carries — and its
stylesheet is injected into the head after the theme's, so an equal-weight
rule loses the tie. Going through `.gform_wrapper`, which GF always renders,
makes these (0,3,0) and settles it without !important. */
.subscribe--gf .gform_wrapper .gform_fields {
	display: grid;
	/* Flush, as the design draws it: .subscribe is a grid with no gap, so the
	field and the button meet on one edge and read as a single control. */
	gap: 0;
	grid-template-columns: 1fr;   /* GF's own grid would make this multi-column */
	padding: 0;
	list-style: none;
}
/* WCAG 3.3.2: a visible label, not placeholder only. */
.subscribe--gf .gform_wrapper .gfield_label {
	display: block;
	margin: 0 0 var(--sp-10);
	font-family: var(--ff-body);
	font-size: var(--fs-12);
	font-weight: 700;
	line-height: var(--lh-label);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--clr-ink);
}
.subscribe--gf .gform_description,
.subscribe--gf .gfield_description:not(.validation_message) {
	/* The panel heading above already names the form; descriptions stay in
	the DOM for assistive tech rather than being removed. */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.subscribe--gf input[type='text'],
.subscribe--gf input[type='email'],
.subscribe--gf input[type='url'],
.subscribe--gf input[type='tel'],
.subscribe--gf textarea {
	width: 100%;
	padding: var(--sp-20) 1.4375rem;      /* design: 20px 23px */
	/* WCAG 1.4.11: 3:1 field edge (white on #F5F5F5 was 1.09:1). */
	border: var(--hairline) solid var(--clr-muted);
	border-radius: var(--radius);
	background: var(--clr-white);
	font-family: var(--ff-body);
	font-size: var(--fs-14);
	/* Stated, not inherited. The design's own field takes the body's 1.5 and
	measures 61px tall; Gravity Forms' reset sets its own line-height, which
	brought the field down to 57 and left it visibly shorter than the design. */
	line-height: var(--lh-body);
	color: var(--clr-text);
}
/* Gravity Forms' reset restates the placeholder colour, and its stylesheet is
injected after the theme's, so this needs the field's own class to out-rank
it rather than relying on order. */
.subscribe--gf ::placeholder,
.subscribe--gf input::placeholder,
.subscribe--gf textarea::placeholder {
	color: var(--clr-muted);
	opacity: 1;
}

/* The button sits directly against the field. GF spaces this with
`margin-block-start`, which the margin shorthand resets, but the shorthand
only wins at the raised specificity above. */
.subscribe--gf .gform_wrapper .gform_footer {
	margin: 0;
	padding: 0;
}

/* Reproduces .btn.btn--cta from section 5 of app.css. The declarations are
repeated rather than shared because GF's submit button cannot be given the
.btn class without a filter, and a filter would be a less obvious place for
a future developer to find this. */
.subscribe--gf .gform_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-10);
	width: 100%;
	min-height: var(--btn-h);
	padding-inline: var(--btn-pad-x);
	border: 0;
	border-radius: var(--radius);
	background: var(--btn-bg);
	/* The design's .btn is Inter 700 at 0.04em, not the display face — see
	section 5 of app.css. */
	font-family: var(--ff-body);
	font-size: var(--fs-12);
	font-weight: 700;
	line-height: var(--lh-label);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--btn-fg);
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.subscribe--gf .gform_button:hover {
	background: var(--btn-bg-hover);
	color: var(--btn-fg-hover);
}

/* WCAG 2.4.7: restore focus ring GF strips. Raised to (0,3,1)+ so it beats
Gravity Forms' Orbital `outline: none`, injected after this sheet. */
.subscribe--gf .gform_wrapper input:focus-visible,
.subscribe--gf .gform_wrapper textarea:focus-visible,
.subscribe--gf .gform_wrapper .gform_button:focus-visible {
	outline: 3px solid var(--clr-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--clr-focus-halo);
}

/* The design's send glyph, which Gravity Forms has no way to put in the markup.
Reproduced as a pseudo-element — possible only because GF renders a <button>
rather than an <input>, which could not carry one.

Painted through a mask so it is `currentColor` and follows the label from ink
to white on the red hover, exactly as .btn__icon--send does in the design. A
background-image would stay dark against the hover state. */
.subscribe--gf .gform_button::before {
	content: '';
	flex: none;
	width: 1.25rem;                        /* design: 20×20 */
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: url('../images/button-icon.svg') no-repeat center / contain;
	mask: url('../images/button-icon.svg') no-repeat center / contain;
}

/* Without mask support, fall back to the flat glyph the design ships. */
@supports not ((-webkit-mask-image: url('../images/button-icon.svg')) or (mask-image: url('../images/button-icon.svg'))) {
	.subscribe--gf .gform_button::before {
		background: url('../images/button-icon.svg') no-repeat center / contain;
	}
}

/* Gravity Forms' reset sets `cursor: revert` on every button inside its
framework wrapper — (0,1,1), and its stylesheet is injected into the head
after the theme's, so a bare `button { cursor: pointer }` loses. `revert`
rolls a <button> back to the user-agent default, which is `default`, so the
subscribe button was the one control on the site that did not say it was
clickable. */
.subscribe--gf .gform_button { cursor: pointer; }
.subscribe--gf .gform_button:disabled { cursor: default; }
.subscribe--gf .gform_button:active {
	background: var(--btn-bg-active);
	color: var(--btn-fg-active);
}

/* Validation and confirmation. Both must stay legible on the panel's #F5F5F5. */
.subscribe--gf .gfield_error input { outline: 2px solid var(--clr-red-deep); }
.subscribe--gf .validation_message,
.subscribe--gf .gform_validation_errors {
	margin-top: var(--sp-10);
	font-size: var(--fs-14);
	color: var(--clr-red-deep);           /* 4.76:1 on #F5F5F5 */
}
.subscribe--gf .gform_confirmation_message {
	font-family: var(--ff-display);
	font-size: var(--fs-18);
	color: var(--clr-ink);
}
.subscribe--gf .gfield_validation_message {
	margin-top: var(--sp-15) !important;
	margin-bottom: var(--sp-15) !important;
}


/* ── E. Odds and ends ──────────────────────────────────────────────────── */

/* The hero backdrop's cover sizing when a featured image replaces the
design's own artwork. app.css sizes the static image `auto 100%` against
its known aspect ratio; an arbitrary upload needs `cover` to fill the band
without letterboxing. */
.hero__bg[style] { background-size: cover; background-position: center; }

/* ── F. Theme additions beyond the approved design ────────────────────────
Two components the approved HTML does not contain, added on request so the
single post template can be reviewed against the QA checklist. Both are
built from the design's existing vocabulary — the section heading, the
category pill, the date line, the card surface — so they read as native
rather than as a bolt-on, and both are confined to this section so a future
developer can see exactly what is not in the original design.           */

/* F1. Featured image on a single post.
Sits above the card head, flush to the card's own hairline, so the surface
band still frames the title beneath it. */
.card__media { margin: 0; }
.card__media img {
	display: block;
	width: 100%;
	height: auto;
	/* The design's hero band is 1440×749 ≈ 1.92:1. Matching it keeps the
	article image in the same family as the homepage hero. */
	aspect-ratio: 1.92 / 1;
	object-fit: cover;
	border-bottom: var(--hairline) solid var(--clr-border);
}
.card__media-caption {
	padding: var(--sp-15) var(--card-pad-x);
	background: var(--clr-surface);
	font-size: var(--fs-14);
	color: var(--clr-muted-on-surface, #6B6B6B);   /* AA on #F5F5F5 */
}

/* F2. Related posts.
Three compact cards. The grid floors at the design's own 216px topic tile
width, so it steps down to two and then one by itself as the column narrows
— the same mechanism section 14 uses for the topic grid. */
.related { display: grid; gap: var(--sp-30); }
.related__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
	gap: var(--sp-25);
	padding: 0;
	list-style: none;
}
.related__item {
	display: grid;
	gap: var(--sp-10);
	align-content: start;
	justify-items: start;
	padding-bottom: var(--sp-20);
	background: var(--clr-white);
	border: var(--hairline) solid var(--clr-border);
	transition: border-color var(--dur) var(--ease);
}
.related__item:hover { border-color: var(--clr-red); }
.related__item > :not(.related__media) { margin-inline: var(--sp-20); }

.related__media { display: block; width: 100%; margin-bottom: var(--sp-10); }
.related__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
/* No featured image: hold the same space so the row of cards stays level. */
.related__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: var(--clr-surface);
}

.related__title {
	font-family: var(--ff-display);
	font-size: var(--fs-18);
	font-weight: 700;
	line-height: var(--lh-tight);
}
.related__title a { color: var(--clr-ink); text-decoration: none; }
.related__title a:hover { color: var(--clr-red); text-decoration: underline; }

.related__date {
	display: flex;
	align-items: center;
	gap: var(--sp-10);
	font-size: var(--fs-12);
	line-height: var(--lh-label);
	text-transform: uppercase;
	color: var(--clr-muted);
}

@media (max-width: 767px) {
	.card__media img { aspect-ratio: 16 / 10; }
}

/* F3. ACF WYSIWYG fields return their own <p> wrappers, so the containers that
hold them are divs (see the note in article.php). app.css zeroes every
paragraph margin, so consecutive paragraphs inside one need their gap back. */
.card__note > p + p,
.cite > p + p { margin-top: 1.5em; }


/* ── G. Category icons ────────────────────────────────────────────────────
The approved design hardcodes eight topic icons and three card glyphs as
CSS background-images keyed to modifier classes. Those are now real images
managed per category in the admin (ACF `category_icon`), so the icon is
content rather than stylesheet — a new category gets one without a developer,
and the card's icon finally relates to what the post is about.

app.css's own `.topic__icon--*` and `.card__icon--*` rules are left in place
and simply go unused: they are the designer's file, and nothing emits those
modifiers any more.

Both icons are <img> elements, so every rule below sizes a box and lets the
image fit inside it. An editor uploading a 2000px square or a wide banner
cannot change any layout. */

/* G1. Homepage topic tile.
The design renders each icon at its own natural size — 20×34 for Energy,
44×31 for Criminal, 38×38 for Administrative — rather than normalising them
to a common box. An earlier revision forced a 38×38 square here, which
changed seven of the eight icons' proportions and their weight against the
label.

The size now comes from the width/height attributes PHP sets per icon, so
there is nothing to declare but the guard: a max-* pair that stops an
editor's oversized upload from resizing the tile. */
.topic__icon {
	flex: none;
	/* No width or height here, deliberately. PHP sets both as attributes, and a
	CSS `width: auto` would override them — which it did in an earlier
	revision, sending every icon back to its intrinsic 3× size to be clamped
	by the guard below, so all eight came out 39px tall.

	With the attributes left alone, width comes from the attribute and
	app.css's `img { height: auto }` derives the height from the aspect ratio,
	which lands on the design's figure exactly. */
	max-width: 2.75rem;      /* 44px — the widest of the eight */
	max-height: 2.4375rem;   /* 39px — the tallest; a guard for editor uploads */
	object-fit: contain;
}

/* G2. Post card.
The design's card glyphs are 67×79, 67×68 and 55×67 — roughly twice the
topic-tile scale, because they sit beside a 36px title rather than an 18px
label. ablawg_icon_display_size() scales the same artwork into that box, so
the card reads at the design's weight without new artwork. */
.card__icon {
	flex: none;
	display: grid;
	place-items: start;
	/* Reserving the design's full box keeps every title in a listing aligned on
	one left edge, whatever each icon's own aspect ratio is. */
	width: 4.1875rem;        /* 67px */
	min-height: 4.1875rem;
}
.card__icon-img {
	/* Same reasoning as the tile: the width/height attributes govern, and this
	is only a guard against an icon wider than the box. */
	max-width: 100%;
	object-fit: contain;
}

/* No icon: close the gap so the title starts flush rather than indented past
an empty column. */
.card__head--no-icon { gap: 0; }

/* G3. The archive / search / author card.
app.css draws this head as `display: block` with no icon. Adding one means
switching to a row — done here rather than in app.css, and only when an icon
is actually present, so the design's own rule still governs every card
without one.

The denser listing takes the icon at the topic-tile scale rather than the
card scale; at full card size it would out-weigh a 36px title repeated down
a long archive. */
.card__head--plain.card__head--has-icon {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-20);
}
/* No separate sizing. Both card variants use the .card__icon rule above, so the
homepage and the archive cannot drift apart — an earlier revision gave this
one its own smaller box and the two stopped matching. */

/* G4. Hover.
The tile and the card already lift or tint on hover (app.css section 14,
animations.css section 3a); the icon travels with them rather than animating
separately, which would read as two things moving at once. */
@media (hover: hover) {
	.topic:hover .topic__icon,
	.card:hover .card__icon-img { transform: scale(1.06); }
}
.topic__icon,
.card__icon-img { transition: transform var(--dur) var(--ease); }

@media (prefers-reduced-motion: reduce) {
	.topic:hover .topic__icon,
	.card:hover .card__icon-img { transform: none; }
}

/* G5. Responsive.
At the phone breakpoint app.css already stacks `.card__head` into a column,
so the icon sits above the title; it is scaled down there so it reads as a
label rather than as the card's main event. */
@media (max-width: 767px) {
	/* app.css stacks .card__head into a column here, so the icon sits above the
	title. At the card's full 67px it would dominate that stack, so it is
	brought down to the tile scale — still its own aspect, just smaller. */
	.card__icon { width: 2.75rem; min-height: 0; }
	.card__icon .card__icon-img { max-width: 2.75rem; max-height: 2.4375rem; }
	.card__head--plain.card__head--has-icon { gap: var(--sp-15); }
}

@media (max-width: 520px) {
	.topic__icon { max-width: 2.375rem; max-height: 2.125rem; }
}


/* ── H. Comments ──────────────────────────────────────────────────────────
The approved design has no comment UI, so this is assembled from its own
parts rather than invented: the section heading's red bracket, the card's
hairline and #F5F5F5 surface, the meta row's glyphs, the CTA and ghost
buttons, and the pill the hero uses for its category.

Markup is in inc/comments.php, which rebuilds core's output rather than
restyling it — core's defaults carry inline markup and a field order the
design has no place for. */

.comments { display: grid; gap: var(--sp-40); }

/* H1. The thread ─────────────────────────────────────────────────────── */

.comments__list,
.comments__list .children {
	display: grid;
	gap: var(--sp-25);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Each comment is a card, so a thread reads as a stack of discrete things
rather than as one long column of text. */
.comment__body {
	display: grid;
	gap: var(--sp-20);
	padding: var(--sp-30);
	background: var(--clr-white);
	border: var(--hairline) solid var(--clr-border);
}

/* A reply sits on the surface tone and keeps the brand rule on its left edge,
which is what carries the nesting without relying on indentation alone. */
.comments__list .children > .comment > .comment__body {
	background: var(--clr-surface);
	border-left: 3px solid var(--clr-red);
}

/* Indentation. Capped deliberately: at the fifth level an unbounded indent
leaves the text column too narrow to read, so past level three the rule and
the surface carry the nesting on their own. */
.comments__list .children { margin-top: var(--sp-25); padding-left: var(--sp-40); }
.comments__list .children .children { padding-left: var(--sp-30); }
.comments__list .children .children .children { padding-left: var(--sp-20); }
.comments__list .children .children .children .children { padding-left: 0; }

/* The post's own author, so a reply from them is findable at a glance. */
.comment--author > .comment__body { border-color: var(--clr-red); }

/* H2. Head ───────────────────────────────────────────────────────────── */

.comment__head {
	display: flex;
	align-items: center;
	gap: var(--sp-15);
}

.comment__avatar {
	flex: none;
	width: 3rem;
	height: 3rem;
	/* Gravatar is a remote request. If it fails this tone shows through instead
	of a broken-image icon, and the square matches the design's --radius: 0. */
	background: var(--clr-border);
	border-radius: var(--radius);
	object-fit: cover;
}

.comment__byline { display: grid; gap: 0.25rem; min-width: 0; }

/* A flex row, because the design's .pill is itself `display: flex` — dropped
into a plain paragraph it would become a block and push the name onto its
own line. This is the same arrangement .podcast__head uses for the design's
own "Coming soon" badge. */
.comment__author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-10);
	font-family: var(--ff-display);
	font-size: var(--fs-18);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--clr-ink);
	overflow-wrap: anywhere;
}
.comment__author a { color: inherit; text-decoration: none; }
.comment__author a:hover { color: var(--clr-red); text-decoration: underline; }

/* The row's gap already spaces it. */
.comment__badge { flex: none; }

/* The meta row is the design's, at the smaller scale a comment wants. */
.comment__meta { font-size: var(--fs-12); }
.comment__meta a { color: var(--clr-muted); text-decoration: none; }
.comment__meta a:hover { color: var(--clr-red); text-decoration: underline; }

/* H3. Body ───────────────────────────────────────────────────────────── */

.comment__text { display: grid; gap: 1em; color: var(--clr-ink); }
.comment__text p { margin: 0; }
.comment__text a { color: var(--clr-link); text-decoration: underline; }
/* AA: the brand red is 4.48:1 on #F5F5F5, so a reply's links take the deeper
tone the design already defines for exactly this case. */
.comments__list .children .comment__text a { color: var(--clr-red-deep); }
/* AA: muted grey is 4.17:1 on a reply's #F5F5F5. */
.comments__list .children .comment__meta a,
.comments__list .children .comment__text blockquote { color: var(--clr-muted-on-surface, #6B6B6B); }

.comment__text :is(ul, ol) { display: grid; gap: 0.5em; padding-left: 1.5em; }
.comment__text blockquote {
	margin: 0;
	padding-left: var(--sp-20);
	border-left: 3px solid var(--clr-border);
	color: var(--clr-muted);
}

/* Awaiting moderation. WordPress only shows an unapproved comment to its own
author or to a moderator, so most visitors never see this. */
.comment__pending {
	padding: var(--sp-10) var(--sp-15);
	background: var(--clr-red-soft);
	font-size: var(--fs-14);
	color: var(--clr-red-deep);     /* 4.76:1 on #F2E1E4 */
}

/* H4. Actions ────────────────────────────────────────────────────────── */

.comment__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-15);
}

/* A reply link is a secondary action beside a 60px primary button, so it takes
the ghost button at a reduced height rather than the full CTA. */
.btn--sm {
	min-height: 2.5rem;
	padding-inline: var(--sp-20);
	font-size: var(--fs-10);
}

.comment__ping { font-size: var(--fs-14); color: var(--clr-muted); }

/* H5. The form ───────────────────────────────────────────────────────── */

.comment-form { display: grid; gap: var(--sp-20); }

.comment-form__head { margin-bottom: var(--sp-10); }

/* Core prints the "Cancel reply" link inside the heading when replying. */
.comment-form__cancel {
	/* A margin rather than a literal space in the markup: core drops the space
	when it substitutes the author name into the "Reply to %s" heading. */
	margin-left: var(--sp-10);
	font-family: var(--ff-body);
	font-size: var(--fs-12);
	font-weight: 400;
	text-transform: none;
}
.comment-form__cancel a { color: var(--clr-muted); }
.comment-form__cancel a:hover { color: var(--clr-red); }

.comment-form__note {
	font-size: var(--fs-14);
	color: var(--clr-muted);
}

.comment-form__field { display: grid; gap: var(--sp-10); }

.comment-form__field label {
	font-family: var(--ff-display);
	font-size: var(--fs-12);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--clr-ink);
}
.comment-form__required { color: var(--clr-red); }

/* The design's search field: white, square, one hairline, generous padding. */
.comment-form__input {
	width: 100%;
	padding: var(--sp-15) var(--sp-20);
	background: var(--clr-white);
	border: var(--hairline) solid var(--clr-field-border, #767676);   /* WCAG 1.4.11 */
	border-radius: var(--radius);
	font-family: var(--ff-body);
	font-size: var(--fs-14);
	line-height: var(--lh-body);
	color: var(--clr-text);
	transition: border-color var(--dur) var(--ease);
}
.comment-form__input:hover { border-color: var(--clr-ink); }
.comment-form__input:focus-visible { outline-offset: -3px; }
.comment-form__input::placeholder { color: var(--clr-muted); opacity: 1; }

.comment-form__textarea { resize: vertical; min-height: 9rem; }

/* The three identity fields share a row on a wide screen and stack below it. */
.comment-form {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.comment-form > :is(.comment-form__head, .comment-form__note, .comment-form__field--comment,
.comment-form__consent, .comment-form__actions, .comment-respond) {
	grid-column: 1 / -1;
}

.comment-form__consent {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-10);
	font-size: var(--fs-14);
	color: var(--clr-ink);
}
.comment-form__consent input {
	flex: none;
	/* WCAG 2.5.8: a 24px target, rather than the browser's ~13px default. */
	width: 1.5rem;
	height: 1.5rem;
	margin: 0;
	accent-color: var(--clr-red);
}
.comment-form__consent label { cursor: pointer; }

.comment-form__actions { margin-top: var(--sp-10); }
.comment-form__submit { width: auto; }

/* Core's own wrappers, which exist whether or not the theme asks for them. */
.comment-respond { display: grid; gap: var(--sp-20); }
.comments__closed,
.comment-form .logged-in-as { font-size: var(--fs-14); color: var(--clr-muted); }
.comment-form .logged-in-as a { color: var(--clr-link); }

.comments__pagination { margin-top: var(--sp-20); }

/* H6. Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.comment-form { grid-template-columns: minmax(0, 1fr); }
	.comment__body { padding: var(--sp-20); }

	/* Indentation costs too much of a phone's width to be the nesting cue, so
	past the first level the rule and the surface carry it alone. */
	.comments__list .children { padding-left: var(--sp-15); margin-top: var(--sp-20); }
	.comments__list .children .children,
	.comments__list .children .children .children { padding-left: var(--sp-10); }

	.comment__avatar { width: 2.5rem; height: 2.5rem; }
	.comment-form__submit { width: 100%; }
}


/* ── I. Pointer affordance ────────────────────────────────────────────────
Anything that acts on a click should say so.

`a[href]` and `button` already resolve to `pointer` — the browser does the
first, and section 3 of app.css does the second — so the only real gap was
the submit input, which browsers give `default`. Gravity Forms renders its
submit as `<input type="submit">`, so the newsletter button was the one
control on the site that did not say it was clickable.

`a` is matched on `[href]` rather than bare: an anchor without one is not a
link, and telling a visitor it is clickable when nothing happens is worse
than the default. */

a[href],
button,
[role='button'],
input[type='submit'],
input[type='button'],
input[type='reset'] {
	cursor: pointer;
}

/* A disabled control is not clickable, and must not claim to be. This includes
the load-more button while a request is in flight, which sets `disabled`. */
button:disabled,
input:disabled,
[aria-disabled='true'] {
	cursor: default;
}

/* ── J. Tables in article content ─────────────────────────────────────────
blocks.css already styles the Gutenberg table block, including the
`overflow-x: auto` that lets a wide table scroll instead of squeezing. The
migrated archive never gets that: all 32 posts with a table carry raw
`<table>` from the old site with no wrapper to target, so the table divided
whatever width it was given. On the widest one — six columns in a 296px phone
column — that left about 17px of text per cell and rows 289px tall.

inc/content.php supplies the missing wrapper; this styles it, and matches the
block treatment so the two are indistinguishable. Everything is scoped to
`.prose`: a bare `table` selector would also catch TablePress, Gravity Forms
and any plugin that renders a table in a widget.                          */

.prose__table {
  /* The scroll the design already gives a block table. */
  overflow-x: auto;
  margin: var(--sp-30) 0;
  /* Momentum scrolling, and a focus ring that follows the box when a keyboard
     user tabs to it — the element is focusable so it can be scrolled without
     a pointer. */
  -webkit-overflow-scrolling: touch;
}

.prose__table:focus-visible,
.wp-block-table:focus-visible,
pre[tabindex]:focus-visible {
  outline: 3px solid var(--clr-focus);
  outline-offset: 2px;
}

.prose table,
.prose__table table {
  width: 100%;
  /* Below this the columns stop dividing and the wrapper scrolls instead.
     32rem keeps a two-column table intact on the narrowest phone while a
     six-column one is allowed to run past the edge and be dragged. */
  min-width: 32rem;
  border-collapse: collapse;
  font-size: var(--fs-14);
  line-height: var(--lh-body);
  text-align: left;
}

/* The archive's tables carry legacy pixel widths from the old editor, on the
   table (`width="468"`) and on individual cells (`width="151"`). They were
   measured against a page that no longer exists, so the stylesheet wins. */
.prose table[width] { width: 100%; }
.prose :is(th, td)[width] { width: auto; }

.prose :is(th, td) {
  padding: var(--sp-15);
  border: var(--hairline) solid var(--clr-border);
  vertical-align: top;
  /* Automatic table layout hands width to whichever column has the most text,
     and will starve the others to do it: one post's three-column table came
     out 43px / 543px / 43px, crushing "Province/ Territory" into sixteen
     lines. A floor per column stops that — the table grows past the wrapper
     and scrolls instead, which is the behaviour this section exists for. */
  min-width: 5.5rem;
}

.prose th {
  background: var(--clr-surface);
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--clr-ink);
}

/* Zebra striping and a hover tint, which the block styling does not have:
   a data table read on a phone needs the row to be followable across a
   scroll. Both use the design's own tokens rather than fixed greys. */
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--clr-surface) 55%, transparent); }
.prose tbody tr:hover           { background: color-mix(in srgb, var(--clr-red) 6%, transparent); }

/* The striped block variant drops its cell borders, so the stripe has to stay
   visible on its own. */
.wp-block-table.is-style-stripes tbody tr:nth-child(even) { background: none; }

@media (max-width: 767px) {
  /* A touch target needs the padding more than the table needs the width. */
  .prose :is(th, td) { padding: var(--sp-10); }
}
