/*
Theme Name: Afra Signal
Author: Afra Signal
Description: A glossy print-monthly block theme for Afra Signal: coated-white paper, near-black ink, one deep damson accent, a Didone nameplate and the Oxford rule.
Version: 1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afrakey
*/

/* Bodoni Moda draws hyphens and dashes as hairlines that vanish on screen at
   display sizes; this face lends them Source Serif's solid dash, nothing else. */
@font-face {
	font-family: "AK Dash";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(assets/fonts/source-serif-4-400.woff2) format("woff2");
	unicode-range: U+002D, U+2010-2015, U+2212;
}

@font-face {
	font-family: "AK Dash";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url(assets/fonts/source-serif-4-400-italic.woff2) format("woff2");
	unicode-range: U+002D, U+2010-2015, U+2212;
}

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ak-base: var(--wp--preset--color--base, #fff);
	--ak-nickel: var(--wp--preset--color--nickel, #eeeff1);
	--ak-nickel-soft: var(--wp--preset--color--nickel-soft, #f6f6f8);
	--ak-ink: var(--wp--preset--color--ink, #18141b);
	--ak-text: var(--wp--preset--color--text, #221d26);
	--ak-muted: var(--wp--preset--color--muted, #66606b);
	--ak-rule: var(--wp--preset--color--rule, #d6d7dc);
	--ak-damson: var(--wp--preset--color--damson, #6b1e4f);
	--ak-night: var(--wp--preset--color--night, #2b0f22);
	--ak-blush: var(--wp--preset--color--blush, #e9c8b4);
	--ak-night-muted: var(--wp--preset--color--night-muted, #cdbfc9);
	--ak-mist: var(--wp--preset--color--mist, #f4ecf1);

	--ak-display: 'AK Dash', var(--wp--preset--font-family--display, 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif);
	--ak-serif: var(--wp--preset--font-family--text, 'Source Serif 4', Georgia, 'Times New Roman', serif);
	--ak-ui: var(--wp--preset--font-family--ui, 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif);

	--ak-gap: var(--wp--preset--spacing--70, clamp(4rem, 3rem + 5vw, 6.5rem));
	--ak-ease: cubic-bezier(.16, 1, .3, 1);

	/* Context colours, re-pointed inside the night band. */
	--ak-rule-c: var(--ak-ink);
	--ak-sweep-c: var(--ak-damson);
	--ak-kicker-c: var(--ak-damson);
	--ak-focus-c: var(--ak-damson);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html,
body {
	overflow-x: clip;
}

/* Bodoni Moda's optical sizes above ~20 thin its hairlines below one pixel, so
   letters break apart on standard-density screens. Pin the axis at 18: still a
   crisp, high-contrast Didone, but every stroke survives. Only Bodoni has opsz. */
body {
	font-variation-settings: "opsz" 18;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

.wp-site-blocks > * {
	margin-block: 0;
}

::selection {
	background: var(--ak-mist);
	color: var(--ak-ink);
}

:where(a, button, input, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--ak-focus-c);
	outline-offset: 3px;
}

.wp-block-post-title,
.wp-block-heading,
.wp-block-query-title {
	overflow-wrap: anywhere;
}

/* The single structural ornament: 3px ink, 3px paper, 1px ink. */
.ak-oxford {
	box-sizing: border-box;
	height: 7px;
	margin: 0;
	border-top: 3px solid var(--ak-rule-c);
	border-bottom: 1px solid var(--ak-rule-c);
}

/* Kicker: plain uppercase grotesk, no chip. */
.ak-kicker {
	margin: 0;
	font-family: var(--ak-ui);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ak-kicker-c);
}

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

.ak-kicker a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ak-kicker .wp-block-post-terms__separator {
	display: none;
}

.ak-kicker a + a {
	margin-inline-start: .9em;
}

/* Title hover: an underline sweep. */
.ak-sweep a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--ak-sweep-c), var(--ak-sweep-c));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 2px;
	transition: background-size 450ms var(--ak-ease);
}

.ak-sweep a:hover,
.ak-sweep a:focus-visible,
.wp-block-post:hover .ak-sweep a {
	background-size: 100% 2px;
}

/* Photographs: square corners, fixed ratios, slow push on hover. */
.ak-media {
	margin: 0;
	overflow: hidden;
	background: var(--ak-nickel);
}

.ak-media a {
	display: block;
}

.ak-media img {
	display: block;
	width: 100%;
	object-fit: cover;
	transition: transform 600ms ease-out;
}

.wp-block-post:hover .ak-media img {
	transform: scale(1.035);
}

.ak-excerpt,
.ak-excerpt p {
	margin: 0;
}

.ak-excerpt p {
	font-family: var(--ak-serif);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ak-muted);
}

.ak-date {
	margin: 0;
	font-family: var(--ak-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ak-muted);
}

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

/* Byline strip. */
.ak-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	font-family: var(--ak-ui);
	font-size: 14px;
	line-height: 1.4;
}

.ak-byline > * {
	margin: 0;
}

.ak-byline__author {
	font-weight: 700;
	color: var(--ak-ink);
}

.ak-byline__author::before {
	content: "By ";
}

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

.ak-byline__author a:hover {
	color: var(--ak-damson);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ak-byline__date,
.ak-byline__time {
	font-weight: 500;
	color: var(--ak-muted);
}

/* Section labels: Bodoni italic under the Oxford rule. */
.ak-label {
	margin: 0 0 28px;
	padding-top: 18px;
	font-family: var(--ak-display);
	font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	color: var(--ak-ink);
	background:
		linear-gradient(var(--ak-rule-c), var(--ak-rule-c)) 0 0 / 100% 3px no-repeat,
		linear-gradient(var(--ak-rule-c), var(--ak-rule-c)) 0 6px / 100% 1px no-repeat;
}

/* ==========================================================================
   3. Masthead
   ========================================================================== */
.ak-masthead__inner > * {
	margin-block: 0;
}

.ak-masthead__row {
	padding: 26px 0 20px;
	gap: 12px 40px;
}

.ak-nameplate {
	margin: 0;
	font-family: var(--ak-display);
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--ak-ink);
}

.ak-nameplate a {
	color: var(--ak-ink);
	text-decoration: none;
	transition: color .25s ease;
}

.ak-nameplate a::before {
	content: "";
	display: inline-block;
	width: .84em;
	height: .84em;
	margin-inline-end: .32em;
	vertical-align: -.08em;
	background: url(assets/favicon.svg) center / contain no-repeat;
}

.ak-nameplate a:hover {
	color: var(--ak-damson);
}

.ak-nameplate a:focus-visible {
	outline: 2px solid var(--ak-damson);
	outline-offset: 3px;
}

/* Navigation */
.ak-nav.wp-block-navigation,
.ak-nav .wp-block-navigation__container {
	gap: 28px;
}

.ak-nav .wp-block-navigation-item__content {
	padding-block: 6px;
	font-family: var(--ak-ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ak-ink);
	text-decoration: none;
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

.ak-nav .wp-block-navigation-item__content:hover {
	text-decoration-line: underline;
	text-decoration-color: var(--ak-damson);
}

.ak-nav .ak-nav__page .wp-block-navigation-item__content {
	color: var(--ak-muted);
}

.ak-nav .ak-nav__page .wp-block-navigation-item__content:hover {
	color: var(--ak-ink);
}

.ak-nav .ak-nav__about {
	margin-inline-start: 12px;
}

.category-remotes-controls .ak-nav a[href$="/category/remotes-controls/"],
.category-access-keys .ak-nav a[href$="/category/access-keys/"],
.category-car-security .ak-nav a[href$="/category/car-security/"],
.category-threats-defence .ak-nav a[href$="/category/threats-defence/"],
.ak-page-about .ak-nav a[href$="/about/"],
.ak-page-contacts .ak-nav a[href$="/contacts/"] {
	text-decoration-line: underline;
	text-decoration-color: var(--ak-damson);
}

.ak-page-about .ak-nav .ak-nav__page a[href$="/about/"],
.ak-page-contacts .ak-nav .ak-nav__page a[href$="/contacts/"] {
	color: var(--ak-ink);
}

.ak-nav .wp-block-navigation__responsive-container-open,
.ak-nav .wp-block-navigation__responsive-container-close {
	color: var(--ak-ink);
}

/* Overlay menu (opened below 782px). Its top repeats the masthead exactly: the
   nameplate, the close button where the menu button was, and the Oxford rule,
   all on the page gutter, so nothing jumps when the menu opens. */
.ak-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0 var(--wp--style--root--padding-right, 20px) 48px var(--wp--style--root--padding-left, 20px);
	background: var(--ak-base);
	color: var(--ak-ink);
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "Afra Signal";
	position: absolute;
	top: 20px;
	inset-inline-start: 0;
	padding-inline-start: 1.16em;
	background: url(assets/favicon.svg) 0 .355em / .84em .84em no-repeat;
	font-family: var(--ak-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: -.02em;
	color: var(--ak-ink);
	pointer-events: none;
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: 18px;
	right: -10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 78px;
	align-items: stretch;
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::before {
	content: "";
	flex: none;
	box-sizing: border-box;
	height: 7px;
	margin-bottom: 6px;
	border-top: 3px solid var(--ak-ink);
	border-bottom: 1px solid var(--ak-ink);
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
	align-items: stretch;
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .ak-nav__section {
	border-bottom: 1px solid var(--ak-rule);
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .ak-nav__section .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 14px 0;
	font-family: var(--ak-display);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--ak-ink);
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .ak-nav__page .wp-block-navigation-item__content {
	display: block;
	padding: 12px 0;
	font-size: 16px;
	color: var(--ak-muted);
}

.ak-nav .wp-block-navigation__responsive-container.is-menu-open .ak-nav__about {
	margin-inline-start: 0;
	margin-top: 20px;
}

/* ==========================================================================
   4. Front page
   ========================================================================== */
.ak-front > * {
	margin-block: 0;
}

main.ak-front > .ak-section,
.ak-section {
	margin-block: 0 var(--ak-gap);
}

.ak-section > * {
	margin-block: 0;
}

.ak-section > .ak-label {
	margin-bottom: 28px;
}

/* 4.1 Intro: one H1, one paragraph, one size and one colour.
   Kept compact so the cover photograph opens inside the first desktop screen. */
.ak-front > .ak-intro {
	padding: 20px 0 32px;
}

.ak-intro > * {
	margin: 0;
}

.ak-intro h1 {
	max-width: 15em;
	margin: 0 0 20px;
	font-family: var(--ak-display);
	font-size: clamp(2rem, 1.35rem + 3vw, 4.125rem);
	font-weight: 800;
	line-height: 1.03;
	letter-spacing: -.02em;
	color: var(--ak-ink);
	text-wrap: balance;
}

.ak-intro p {
	max-width: 64ch;
	margin: 0;
	font-family: var(--ak-serif);
	font-size: clamp(1.125rem, 1rem + .35vw, 1.25rem);
	font-weight: 400;
	line-height: 1.5;
	color: var(--ak-text);
	text-align: start;
}

.ak-intro p + p {
	margin-top: 1em;
}

.ak-intro p:empty {
	display: none;
}

.ak-intro strong,
.ak-intro b {
	font-weight: inherit;
}

.ak-intro a {
	color: inherit;
	text-decoration-color: var(--ak-damson);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

/* 4.2 Cover story */
.ak-cover__list,
.ak-issue__list,
.ak-features__list,
.ak-rows__list,
.ak-cards__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ak-cover__list > li,
.ak-issue__list > li,
.ak-features__list > li,
.ak-rows__list > li,
.ak-cards__list > li {
	margin: 0;
}

.ak-cover__item > * {
	margin-block: 0;
}

.ak-cover__head {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px;
	align-items: end;
}

.ak-cover__head > *,
.ak-cover__titles > * {
	margin: 0;
}

.ak-cover__title {
	margin-top: 10px;
	font-family: var(--ak-display);
	font-size: clamp(2rem, 1.3rem + 2vw, 3rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.015em;
	color: var(--ak-ink);
	/* No balancing: the headline runs the full 7/12 column up to the standfirst, so the
	   opener reads as one block instead of two pieces with a hole between them. */
	text-wrap: pretty;
}

.ak-cover__titles > .ak-cover__title {
	margin-top: 10px;
}

.ak-cover__standfirst p {
	margin: 0;
	font-family: var(--ak-display);
	font-size: 1.375rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.45;
	color: var(--ak-text);
}

/* Photograph first, like every other story on the page; the head sits under it. */
.ak-cover__item > .ak-cover__head {
	margin-top: 28px;
}

.ak-cover .ak-cover__media img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}

.ak-cover__item > .ak-cover__byline {
	margin-top: 16px;
}

/* 4.3 In this issue */
.ak-issue__list {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__media,
.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__media img {
	aspect-ratio: 3 / 4 !important;
}

.ak-issue__media {
	margin-bottom: 16px;
}

.ak-issue__text > *,
.ak-features__text > *,
.ak-row__text > *,
.ak-card__text > * {
	margin: 0;
}

.ak-issue__title,
.ak-features__title,
.ak-row__title,
.ak-card__title,
.ak-dept__name {
	text-wrap: balance;
}

.ak-issue__title {
	font-family: var(--ak-display);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ak-ink);
}

.ak-issue .wp-block-post:first-child .ak-issue__title {
	font-size: 2rem;
	line-height: 1.1;
}

.ak-issue__text > .ak-issue__title {
	margin-top: 8px;
}

.ak-issue__text > .ak-issue__excerpt {
	margin-top: 10px;
}

.ak-issue .wp-block-post:first-child .ak-issue__excerpt p {
	font-size: 1.0625rem;
}

.ak-issue__text > .ak-date {
	margin-top: 12px;
}

/* The two companion columns end level: excerpts are held to four lines and the date
   sits on the column floor, whatever the headline length. */
@media (min-width: 600px) {
	.ak-issue__list {
		align-items: stretch;
	}

	.ak-issue .wp-block-post:nth-child(n+2) {
		display: flex;
		flex-direction: column;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__text {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__excerpt p {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__text > .ak-date {
		margin-top: auto;
		padding-top: 12px;
	}
}

/* 4.4 Features: the one dark band */
.ak-front > .ak-band {
	margin-block: 0 var(--ak-gap);
}

.ak-band {
	--ak-rule-c: #fff;
	--ak-sweep-c: var(--ak-blush);
	--ak-kicker-c: var(--ak-blush);
	--ak-focus-c: var(--ak-blush);
	padding-block: 88px;
	background-color: var(--ak-night);
	background-image: radial-gradient(90% 120% at 100% 0%, rgba(233, 200, 180, .10), rgba(233, 200, 180, 0) 60%);
	color: #fff;
}

.ak-band__inner > * {
	margin-block: 0;
}

.ak-band .ak-label {
	color: #fff;
	margin-bottom: 28px;
}

.ak-features__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px 56px;
}

.ak-features__list > li {
	display: grid;
	grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.ak-features__media {
	background: rgba(255, 255, 255, .06);
}

.ak-features__title {
	font-family: var(--ak-display);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.ak-features__title a {
	color: #fff;
}

.ak-features__text > .ak-features__title {
	margin-top: 8px;
}

.ak-features__text > .ak-features__excerpt {
	margin-top: 10px;
}

.ak-band .ak-excerpt p,
.ak-band .ak-date {
	color: var(--ak-night-muted);
}

.ak-features__text > .ak-date {
	margin-top: 12px;
}

/* 4.5 Departments: a typographic contents spread */
.ak-depts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--ak-rule);
	border-bottom: 1px solid var(--ak-rule);
}

/* Each column shares two rows with its neighbours (subgrid), so every description
   starts on one line. Names hang from the top and are sized to stay on one line. */
.ak-depts > .ak-dept {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-row: span 2;
	grid-template-rows: subgrid;
	row-gap: 14px;
	align-content: start;
	margin: 0;
	padding: 28px 28px 32px;
}

/* The opening column starts on the section's left edge, under the label. */
.ak-depts > .ak-dept:first-child {
	padding-inline-start: 0;
}

/* Hover tint and focus ring live on a layer behind the text; on the flush column it
   reaches 12px past the edge (as the archive rows do), so text never meets its border. */
.ak-depts > .ak-dept::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--ak-mist);
	opacity: 0;
	transition: opacity .3s ease;
}

.ak-depts > .ak-dept:first-child::before {
	inset-inline-start: -12px;
}

.ak-depts > .ak-dept + .ak-dept {
	border-inline-start: 1px solid var(--ak-rule);
}

.ak-dept > * {
	margin: 0;
}

.ak-dept__name {
	align-self: start;
	font-family: var(--ak-display);
	font-size: clamp(1.5rem, .49rem + 1.54vw, 1.875rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.15;
	color: var(--ak-damson);
}

.ak-dept__name a {
	color: inherit;
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: .14em;
}

.ak-dept__name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ak-dept__name a:focus-visible {
	outline: none;
}

.ak-dept > .ak-dept__text {
	font-family: var(--ak-serif);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ak-text);
}

.ak-depts > .ak-dept:hover::before,
.ak-depts > .ak-dept:has(:focus-visible)::before {
	opacity: 1;
}

.ak-dept:hover .ak-dept__name a {
	text-decoration-line: underline;
}

.ak-depts > .ak-dept:has(:focus-visible)::before {
	box-shadow: inset 0 0 0 2px var(--ak-damson);
}

/* 4.6 Ruled rows (From the archive, section fronts, search) */
.ak-rows__list {
	border-top: 1px solid var(--ak-ink);
}

.ak-rows__list > li {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 220px;
	grid-template-areas: "date text media";
	gap: 32px;
	align-items: start;
	padding: 24px 0;
	border-bottom: 1px solid var(--ak-rule);
	transition: background-color .3s ease;
}

.ak-rows__list > li:hover {
	margin-inline: -12px;
	padding-inline: 12px;
	background: var(--ak-mist);
}

.ak-row__date {
	grid-area: date;
	margin: 0;
	padding-top: 2px;
	font-family: var(--ak-ui);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ak-muted);
}

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

.ak-row__text {
	grid-area: text;
}

.ak-row__media {
	grid-area: media;
}

.ak-row__title {
	font-family: var(--ak-display);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ak-ink);
}

.ak-row__text > .ak-row__title {
	margin-top: 8px;
}

.ak-row__text > .ak-row__excerpt {
	margin-top: 10px;
	max-width: 62ch;
}

.ak-row__byline {
	display: none;
}

/* Section fronts drop the kicker (every row is the same section): the title leads. */
.ak-row__text > .ak-row__title:first-child,
.ak-card__text > .ak-card__title:first-child {
	margin-top: 0;
}

/* Under a listing head the Oxford rule already opens the list. */
.ak-listing .ak-rows--plain .ak-rows__list {
	border-top: 0;
}

main.ak-listing--search > .ak-listing__head,
main.ak-listing--index > .ak-listing__head {
	margin-bottom: 32px;
}

/* Split feature: the first story on section fronts and contributor pages. */
.ak-rows--feature .ak-rows__list {
	border-top: 0;
}

.ak-rows--feature .ak-rows__list > li:first-child {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	grid-template-areas: "media text";
	gap: 48px;
	align-items: center;
	padding: 0 0 40px;
	margin-inline: 0;
	background: none;
}

.ak-rows--feature .ak-rows__list > li:first-child .ak-row__date {
	display: none;
}

.ak-rows--feature .ak-rows__list > li:first-child .ak-row__media img {
	max-height: 460px;
}

.ak-rows--feature .ak-rows__list > li:first-child .ak-row__title {
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.ak-rows--feature .ak-rows__list > li:first-child .ak-row__text > .ak-kicker + .ak-row__title {
	margin-top: 12px;
}

.ak-rows--feature .ak-rows__list > li:first-child .ak-row__excerpt {
	margin-top: 16px;
}

.ak-rows--feature .ak-rows__list > li:first-child .ak-row__excerpt p {
	font-size: 1.0625rem;
	color: var(--ak-text);
}

.ak-rows--feature .ak-rows__list > li:first-child .ak-row__byline {
	display: flex;
	margin-top: 20px;
}

/* ==========================================================================
   5. Articles and pages
   ========================================================================== */
.ak-single,
.ak-page,
.ak-listing {
	padding-bottom: var(--ak-gap);
}

.ak-single > *,
.ak-page > *,
.ak-listing > * {
	margin-block: 0;
}

.ak-crumbs {
	padding-top: 32px;
	font-family: var(--ak-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	color: var(--ak-muted);
}

.ak-crumbs > * {
	margin: 0;
}

/* A flex row drops the padding spaces the plugin leaves inside the current crumb,
   so every separator has the same air on both sides; a long title wraps whole. */
.ak-crumbs .aioseo-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
}

.ak-crumbs a {
	color: var(--ak-muted);
	text-decoration: none;
}

.ak-crumbs a:hover {
	color: var(--ak-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ak-crumbs .aioseo-breadcrumb-separator {
	margin-inline: .55em;
	color: var(--ak-rule);
}

.ak-crumbs .aioseo-breadcrumb:last-child {
	color: var(--ak-ink);
}

.ak-crumbs p {
	margin: 0;
}

.ak-single > .ak-entry-head,
.ak-page > .ak-entry-head {
	margin-top: 40px;
}

.ak-entry-head > * {
	margin: 0;
}

.ak-entry-title {
	font-family: var(--ak-display);
	font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.015em;
	color: var(--ak-ink);
	text-wrap: balance;
}

.ak-entry-head > .ak-entry-title {
	margin-top: 14px;
}

.ak-entry-head--page > .ak-entry-title {
	margin-top: 0;
}

.ak-entry-head > .ak-standfirst {
	margin-top: 20px;
}

.ak-standfirst p {
	max-width: 40em;
	margin: 0;
	font-family: var(--ak-display);
	font-size: clamp(1.1875rem, 1rem + .5vw, 1.375rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.45;
	color: var(--ak-text);
}

.ak-entry-head > .ak-oxford {
	margin-top: 28px;
}

.ak-entry-head > .ak-entry-byline {
	margin-top: 14px;
	gap: 8px 18px;
}

.ak-single > .ak-entry-media {
	margin-top: 40px;
	margin-bottom: 48px;
}

.ak-entry-media img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.ak-page > .ak-prose {
	margin-top: 40px;
}

/* Prose */
.ak-prose {
	font-family: var(--ak-serif);
	font-size: 1.1875rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--ak-text);
}

.ak-prose > * {
	margin-block: 0;
}

.ak-prose > * + * {
	margin-block-start: 1.15em;
}

.ak-prose strong,
.ak-prose b {
	font-weight: inherit;
}

.ak-prose em,
.ak-prose i {
	font-style: italic;
}

.ak-prose > h2 {
	margin-block: 2.2em .6em;
	font-family: var(--ak-display);
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--ak-ink);
	scroll-margin-top: 24px;
	text-wrap: balance;
}

.ak-prose > h3 {
	margin-block: 1.8em .5em;
	font-family: var(--ak-ui);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ak-ink);
	scroll-margin-top: 24px;
}

.ak-prose > h4 {
	margin-block: 1.8em .5em;
	font-family: var(--ak-ui);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ak-damson);
}

.ak-prose > :is(h2, h3, h4) + * {
	margin-block-start: 0;
}

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

.ak-prose a {
	color: var(--ak-ink);
	text-decoration-line: underline;
	text-decoration-color: var(--ak-damson);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
	transition: color .2s ease;
}

.ak-prose a:hover {
	color: var(--ak-damson);
	text-decoration-thickness: 2px;
}

.ak-prose ul,
.ak-prose ol {
	padding-inline-start: 1.4em;
}

.ak-prose ul {
	list-style: square;
}

.ak-prose li + li {
	margin-top: .5em;
}

.ak-prose li > ul,
.ak-prose li > ol {
	margin-top: .5em;
}

.ak-prose ul li::marker {
	color: var(--ak-damson);
}

.ak-prose ol li::marker {
	font-family: var(--ak-ui);
	font-weight: 700;
	color: var(--ak-damson);
}

/* Tables */
.ak-prose .wp-block-table {
	margin-inline: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ak-prose > .wp-block-table {
	margin-block-start: 1.6em;
}

.ak-prose > .wp-block-table + * {
	margin-block-start: 1.6em;
}

.ak-prose .wp-block-table table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	border-top: 3px solid var(--ak-ink);
	font-family: var(--ak-ui);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--ak-text);
}

.ak-prose .wp-block-table thead {
	border-bottom: 0;
}

.ak-prose .wp-block-table th,
.ak-prose .wp-block-table td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--ak-rule);
	text-align: start;
	vertical-align: top;
}

.ak-prose .wp-block-table th {
	background: var(--ak-nickel);
	border-bottom: 2px solid var(--ak-ink);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ak-ink);
}

.ak-prose .wp-block-table tbody tr:nth-child(even) {
	background: var(--ak-nickel-soft);
}

.ak-prose .wp-block-table tbody td:first-child {
	font-weight: 700;
	color: var(--ak-ink);
}

.ak-prose .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: transparent;
}

/* Figures and quotes */
.ak-prose figure {
	margin-inline: 0;
}

.ak-prose img {
	display: block;
	border-radius: 0;
}

.ak-prose .wp-block-image img {
	width: 100%;
}

.ak-prose figcaption,
.ak-prose .wp-element-caption {
	margin: 10px 0 0;
	font-family: var(--ak-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--ak-muted);
	text-align: start;
}

.ak-prose blockquote,
.ak-prose .wp-block-quote {
	margin-inline: 0;
	padding-inline-start: 24px;
	border-inline-start: 3px solid var(--ak-damson);
	font-family: var(--ak-display);
	font-size: 1.5rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ak-ink);
}

.ak-prose blockquote p {
	margin: 0;
}

.ak-prose blockquote cite,
.ak-prose .wp-block-pullquote cite {
	display: block;
	margin-top: 12px;
	font-family: var(--ak-ui);
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ak-muted);
}

.ak-prose .wp-block-pullquote {
	margin-inline: 0;
	padding: 22px 0 0;
	border: 0;
	text-align: start;
	background:
		linear-gradient(var(--ak-ink), var(--ak-ink)) 0 0 / 100% 3px no-repeat,
		linear-gradient(var(--ak-ink), var(--ak-ink)) 0 6px / 100% 1px no-repeat;
}

.ak-prose .wp-block-pullquote blockquote {
	padding: 0;
	border: 0;
	font-size: 1.875rem;
	line-height: 1.3;
	color: var(--ak-damson);
}

.ak-prose hr,
.ak-prose .wp-block-separator {
	width: 100%;
	height: 0;
	margin-block: 2.4em;
	border: 0;
	border-top: 1px solid var(--ak-rule);
}

/* Drop cap and end mark: single posts only. */
.single .ak-prose > p:first-of-type::first-letter {
	float: inline-start;
	margin: .06em .1em 0 0;
	font-family: var(--ak-display);
	font-size: 5.1em;
	font-style: normal;
	font-weight: 500;
	line-height: .8;
	color: var(--ak-damson);
}

@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
	.single .ak-prose > p:first-of-type::first-letter {
		float: none;
		margin: 0;
		margin-inline-end: .12em;
		font-size: inherit;
		line-height: inherit;
		-webkit-initial-letter: 3;
		initial-letter: 3;
	}
}

.single .ak-prose > p:last-child::after {
	content: "";
	display: inline-block;
	width: .5em;
	height: .5em;
	margin-inline-start: .35em;
	vertical-align: baseline;
	background: var(--ak-damson);
}

/* Author box */
.ak-single > .ak-author {
	margin-top: 56px;
}

.ak-author {
	padding: 32px;
	border-top: 3px solid var(--ak-ink);
	background: var(--ak-nickel);
}

.ak-author > * {
	margin: 0;
}

.ak-author__label {
	font-family: var(--ak-ui);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ak-damson);
}

.ak-author .mag-author-bio {
	margin-top: 10px;
}

.ak-author .mag-author-bio p,
.ak-listing__bio .mag-author-bio p {
	margin: 0;
}

.ak-author .mag-author-name {
	font-family: var(--ak-display);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ak-ink);
}

.ak-author .mag-author-name a {
	color: var(--ak-ink);
	text-decoration: none;
	text-decoration-color: var(--ak-damson);
	text-decoration-thickness: 2px;
	text-underline-offset: .16em;
}

.ak-author .mag-author-name a:hover {
	text-decoration-line: underline;
}

.ak-author .mag-author-bio .mag-author-text {
	margin-top: 8px;
	font-family: var(--ak-serif);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ak-text);
}

/* Read next / latest cards */
.ak-single > .ak-next {
	margin-top: 88px;
}

.ak-next > * {
	margin-block: 0;
}

.ak-next > .ak-label {
	margin-bottom: 28px;
}

.ak-cards__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.ak-card__text {
	margin-top: 16px;
}

.ak-card__title {
	font-family: var(--ak-display);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--ak-ink);
}

.ak-card__text > .ak-card__title {
	margin-top: 8px;
}

.ak-card__text > .ak-date {
	margin-top: 10px;
}

/* ==========================================================================
   6. Section fronts, contributors, search, 404
   ========================================================================== */
.ak-listing > .ak-listing__head {
	margin-top: 28px;
	margin-bottom: 56px;
}

.ak-404 > .ak-listing__head {
	margin-top: 72px;
}

.ak-listing__head > * {
	margin: 0;
}

.ak-section-title {
	font-family: var(--ak-display);
	font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -.01em;
	color: var(--ak-damson);
}

.ak-person-title {
	font-family: var(--ak-display);
	font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.02em;
	color: var(--ak-ink);
	text-wrap: balance;
}

.ak-404__title {
	max-width: 14em;
}

.ak-search-title {
	font-family: var(--ak-display);
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.015em;
	color: var(--ak-ink);
	text-wrap: balance;
}

.ak-eyebrow {
	font-family: var(--ak-ui);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ak-damson);
}

.ak-listing__head > .ak-eyebrow + * {
	margin-top: 12px;
}

.ak-listing__head > .ak-listing__lede {
	margin-top: 22px;
}

.ak-listing__lede {
	max-width: 64ch;
}

.ak-listing__lede,
.ak-listing__lede p,
.ak-listing__bio .mag-author-text {
	font-family: var(--ak-serif);
	font-size: 1.25rem;
	line-height: 1.6;
	color: var(--ak-text);
}

.ak-listing__lede p {
	margin: 0;
}

.ak-listing__head > .ak-oxford {
	margin-top: 40px;
}

.ak-listing__head > .ak-search {
	margin-top: 28px;
}

.ak-listing__head > .ak-empty__link {
	margin-top: 22px;
}

/* Search form */
.ak-search {
	max-width: 640px;
}

.ak-search .wp-block-search__inside-wrapper {
	gap: 0;
	padding: 0;
	border: 0;
}

.ak-search .wp-block-search__input {
	box-sizing: border-box;
	height: 52px;
	min-width: 0;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--ak-ink);
	border-radius: 0;
	background: var(--ak-nickel-soft);
	font-family: var(--ak-serif);
	font-size: 18px;
	color: var(--ak-ink);
}

.ak-search .wp-block-search__input::placeholder {
	color: var(--ak-muted);
	opacity: 1;
}

.ak-search .wp-block-search__input:focus-visible {
	outline: 2px solid var(--ak-damson);
	outline-offset: 3px;
}

.ak-search .wp-block-search__button {
	box-sizing: border-box;
	height: 52px;
	margin: 0;
	padding: 0 26px;
	border: 1px solid var(--ak-damson);
	border-radius: 0;
	background: var(--ak-damson);
	color: #fff;
	font-family: var(--ak-ui);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

.ak-search .wp-block-search__button:hover {
	background: var(--ak-night);
	border-color: var(--ak-night);
}

.ak-search .wp-block-search__button:focus-visible {
	outline: 2px solid var(--ak-damson);
	outline-offset: 3px;
}

/* Pagination */
.ak-rows > .ak-pager {
	margin-top: 48px;
}

.ak-pager {
	gap: 8px;
	font-family: var(--ak-ui);
	font-size: 15px;
	font-weight: 700;
}

.ak-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border: 1px solid var(--ak-rule);
	color: var(--ak-ink);
	text-decoration: none;
}

.ak-pager .wp-block-query-pagination-numbers {
	display: inline-flex;
	gap: 8px;
}

.ak-pager a.page-numbers:hover {
	border-color: var(--ak-damson);
	color: var(--ak-damson);
}

.ak-pager .page-numbers.current {
	border-color: var(--ak-damson);
	background: var(--ak-damson);
	color: #fff;
}

.ak-pager .page-numbers.dots {
	border: 0;
}

.ak-pager .wp-block-query-pagination-previous,
.ak-pager .wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding-inline: 8px;
	color: var(--ak-ink);
	text-decoration: none;
	text-decoration-color: var(--ak-damson);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.ak-pager .wp-block-query-pagination-previous:hover,
.ak-pager .wp-block-query-pagination-next:hover {
	text-decoration-line: underline;
}

/* Empty states */
.ak-empty {
	margin: 0;
	font-family: var(--ak-serif);
	font-size: 1.25rem;
	line-height: 1.6;
	color: var(--ak-text);
}

.ak-empty__link {
	margin: 12px 0 0;
	font-family: var(--ak-serif);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--ak-text);
}

.ak-empty__link a,
.ak-empty a {
	color: var(--ak-ink);
	text-decoration-color: var(--ak-damson);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

.ak-empty__link a:hover {
	color: var(--ak-damson);
	text-decoration-thickness: 2px;
}

.ak-404 > .ak-next {
	margin-top: 24px;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.ak-footer {
	padding-block: 72px 32px;
	background: var(--ak-nickel);
}

.ak-footer__inner > * {
	margin-block: 0;
}

.ak-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
	gap: 48px;
}

.ak-footer__grid > *,
.ak-footer__brand > *,
.ak-footer__col > * {
	margin: 0;
}

.ak-nameplate--footer {
	font-size: 2.25rem;
}

.ak-footer__brand > .ak-footer__tagline {
	max-width: 32ch;
	margin-top: 12px;
	font-family: var(--ak-serif);
	font-size: 18px;
	font-style: italic;
	line-height: 1.5;
	color: var(--ak-text);
}

.ak-footer__col > .ak-footer__label {
	margin-bottom: 10px;
	font-family: var(--ak-ui);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ak-damson);
}

.ak-footer__link {
	font-family: var(--ak-serif);
	font-size: 17px;
	line-height: 2;
}

.ak-footer__link a {
	color: var(--ak-ink);
	text-decoration: none;
	text-decoration-color: var(--ak-damson);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.ak-footer__link a:hover {
	color: var(--ak-damson);
	text-decoration-line: underline;
}

.ak-footer__inner > .ak-footer__rule {
	margin-top: 48px;
}

.ak-footer__inner > .ak-footer__copy {
	margin-top: 16px;
	font-family: var(--ak-ui);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--ak-muted);
	text-align: start;
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

/* Two-row masthead: nameplate, then the six links. */
@media (max-width: 1179px) {
	.ak-masthead__row.ak-masthead__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.ak-nav.wp-block-navigation,
	.ak-nav .wp-block-navigation__container {
		gap: 22px;
	}

	.ak-features__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.ak-features__list > li {
		grid-template-columns: minmax(0, min(40%, 300px)) minmax(0, 1fr);
		gap: 28px;
	}

	.ak-features__title {
		font-size: 1.75rem;
	}

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

	.ak-depts > .ak-dept:nth-child(odd) {
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.ak-depts > .ak-dept:nth-child(odd)::before {
		inset-inline-start: -12px;
	}

	.ak-dept__name {
		font-size: clamp(1.5rem, 1rem + 1.4vw, 1.875rem);
	}

	.ak-depts > .ak-dept:nth-child(n+3) {
		border-top: 1px solid var(--ak-rule);
	}
}

@media (min-width: 1024px) {
	/* The cover-story title column below (7 of 12, same 48px gutter): the grid lines
	   agree and the line stays near 72 characters at 20px. */
	.ak-intro p {
		max-width: calc((100% - 48px) * 7 / 12);
	}

	.ak-listing__lede {
		max-width: calc((100% - 48px) * 7 / 12);
	}
}

@media (max-width: 1023px) {
	.ak-cover__head {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.ak-cover__standfirst p {
		max-width: 40em;
	}

	.ak-issue__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 32px;
	}

	.ak-issue .wp-block-post:first-child {
		grid-column: 1 / -1;
	}

	.ak-rows__list > li {
		grid-template-columns: minmax(0, 1fr) 200px;
		grid-template-areas:
			"date media"
			"text media";
		gap: 8px 28px;
	}

	.ak-row__date {
		padding-top: 0;
	}

	.ak-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 24px;
	}

	.ak-footer__brand {
		grid-column: 1 / -1;
	}
}

/* Tablet compositions (600-1023px): landscape pictures and split leads instead of
   page-tall stacks. */
@media (min-width: 600px) and (max-width: 1023px) {
	/* In this issue: the lead story splits picture | text; the two companions sit
	   side by side in landscape 3:2. */
	.ak-issue .wp-block-post:first-child {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 28px;
		align-items: center;
	}

	.ak-issue .wp-block-post:first-child .ak-issue__media {
		margin-bottom: 0;
	}

	.ak-issue .wp-block-post:first-child .ak-issue__title {
		font-size: 1.625rem;
		line-height: 1.12;
	}

	.ak-issue .wp-block-post:first-child .ak-issue__excerpt p {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__media,
	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__media img {
		aspect-ratio: 3 / 2 !important;
	}

	/* Section fronts and contributors: the first story stays a split feature. */
	.ak-rows--feature .ak-rows__list > li:first-child {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}

	.ak-rows--feature .ak-rows__list > li:first-child .ak-row__title {
		font-size: 1.75rem;
	}

	/* Read next / latest cards: three columns with headlines sized to the column. */
	.ak-cards__list {
		gap: 28px;
	}

	.ak-card__title {
		font-size: 1.1875rem;
		line-height: 1.22;
	}
}

/* Hamburger below 782px: force the core overlay. */
@media (max-width: 781px) {
	.ak-masthead__row.ak-masthead__row {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		padding: 18px 0 16px;
	}

	.ak-masthead .ak-nameplate {
		font-size: 26px;
	}

	.ak-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-inline-end: -10px;
	}

	.ak-nav .wp-block-navigation__responsive-container-open svg {
		width: 28px;
		height: 28px;
	}

	.ak-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Phone compositions */
@media (max-width: 599px) {
	.ak-intro h1 {
		font-size: 32px;
		line-height: 1.06;
		margin-bottom: 22px;
	}

	.ak-intro p {
		font-size: 18px;
		line-height: 1.6;
	}

	.ak-section > .ak-label,
	.ak-next > .ak-label {
		margin-bottom: 24px;
	}

	/* Cover */
	.ak-cover__title {
		font-size: 30px;
		line-height: 1.06;
	}

	.ak-cover__standfirst p {
		font-size: 19px;
	}

	.ak-cover .ak-cover__media img {
		aspect-ratio: 4 / 3 !important;
		max-height: none;
	}

	.ak-cover__item > .ak-cover__head {
		margin-top: 22px;
	}

	/* In this issue */
	.ak-issue__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ak-issue .wp-block-post:first-child {
		padding-bottom: 24px;
	}

	.ak-issue .wp-block-post:first-child .ak-issue__title {
		font-size: 24px;
	}

	.ak-issue .wp-block-post:nth-child(n+2) {
		display: grid;
		grid-template-columns: 38% minmax(0, 1fr);
		gap: 16px;
		align-items: start;
		padding: 18px 0;
		border-top: 1px solid var(--ak-rule);
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__media {
		margin: 0;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__media,
	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__media img {
		aspect-ratio: 4 / 3 !important;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__title {
		font-size: 19px;
		line-height: 1.2;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__title {
		margin-top: 6px;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-issue__excerpt {
		display: none;
	}

	.ak-issue .wp-block-post:nth-child(n+2) .ak-date {
		margin-top: 8px;
	}

	/* Features band */
	.ak-band {
		padding-block: 56px;
	}

	.ak-band .ak-label {
		margin-bottom: 24px;
	}

	.ak-features__list {
		gap: 24px;
	}

	.ak-features__list > li {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 20px;
	}

	.ak-features__media,
	.ak-features__media img {
		aspect-ratio: 1 !important;
	}

	.ak-features__title {
		font-size: 19px;
	}

	.ak-features__text > .ak-features__title {
		margin-top: 6px;
	}

	.ak-features__excerpt {
		display: none;
	}

	.ak-features__text > .ak-date {
		margin-top: 8px;
	}

	/* Departments */
	.ak-depts {
		grid-template-columns: minmax(0, 1fr);
		border-bottom: 0;
	}

	.ak-depts > .ak-dept,
	.ak-depts > .ak-dept + .ak-dept {
		padding: 22px 0;
		border-inline-start: 0;
		border-top: 0;
		border-bottom: 1px solid var(--ak-rule);
	}

	.ak-depts > .ak-dept:hover::before {
		opacity: 0;
	}

	.ak-depts > .ak-dept::before,
	.ak-depts > .ak-dept:nth-child(odd)::before {
		inset-inline: -8px;
	}

	.ak-dept__name {
		font-size: 26px;
	}

	.ak-depts > .ak-dept {
		row-gap: 8px;
	}

	/* Ruled rows */
	.ak-rows__list > li {
		grid-template-columns: minmax(0, 1fr) 96px;
		gap: 6px 16px;
		padding: 18px 0;
	}

	.ak-rows__list > li:hover {
		margin-inline: 0;
		padding-inline: 0;
		background: none;
	}

	.ak-row__date {
		font-size: 13px;
	}

	.ak-row__media,
	.ak-row__media img {
		aspect-ratio: 1 !important;
	}

	.ak-row__title {
		font-size: 20px;
		line-height: 1.2;
	}

	.ak-row__text > .ak-row__title {
		margin-top: 6px;
	}

	.ak-row__excerpt {
		display: none;
	}

	.ak-rows--feature .ak-rows__list > li:first-child {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"media"
			"text";
		gap: 22px;
		padding-bottom: 32px;
	}

	.ak-rows--feature .ak-rows__list > li:first-child .ak-row__media,
	.ak-rows--feature .ak-rows__list > li:first-child .ak-row__media img {
		aspect-ratio: 3 / 2 !important;
	}

	.ak-rows--feature .ak-rows__list > li:first-child .ak-row__excerpt {
		display: block;
	}

	/* Articles */
	.ak-crumbs {
		padding-top: 24px;
	}

	.ak-single > .ak-entry-head,
	.ak-page > .ak-entry-head {
		margin-top: 28px;
	}

	.ak-entry-title {
		font-size: 34px;
		line-height: 1.08;
	}

	.ak-standfirst p {
		font-size: 19px;
	}

	.ak-single > .ak-entry-media {
		margin-top: 28px;
		margin-bottom: 36px;
	}

	.ak-entry-media img {
		aspect-ratio: 3 / 2 !important;
	}

	.ak-prose {
		font-size: 18px;
		line-height: 1.68;
	}

	.ak-prose > h2 {
		font-size: 28px;
	}

	.ak-prose .wp-block-table {
		-webkit-mask-image: linear-gradient(to left, transparent 0, #000 28px);
		mask-image: linear-gradient(to left, transparent 0, #000 28px);
	}

	.ak-author {
		padding: 24px;
	}

	.ak-single > .ak-next {
		margin-top: 64px;
	}

	.ak-cards__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ak-cards__list > li {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 16px;
		align-items: start;
		padding: 16px 0;
		border-bottom: 1px solid var(--ak-rule);
	}

	.ak-cards__list > li:first-child {
		padding-top: 0;
	}

	.ak-card__media,
	.ak-card__media img {
		aspect-ratio: 1 !important;
	}

	.ak-card__text {
		margin-top: 0;
	}

	.ak-card__title {
		font-size: 19px;
	}

	/* Listings */
	.ak-section-title,
	.ak-person-title {
		font-size: 40px;
	}

	.ak-search-title {
		font-size: 32px;
	}

	.ak-listing__lede,
	.ak-listing__lede p,
	.ak-listing__bio .mag-author-text {
		font-size: 18px;
	}

	.ak-listing > .ak-listing__head {
		margin-bottom: 40px;
	}

	.ak-listing__head > .ak-oxford {
		margin-top: 32px;
	}

	.ak-404 > .ak-listing__head {
		margin-top: 40px;
	}

	.ak-search .wp-block-search__button {
		padding: 0 18px;
	}

	.ak-pager .page-numbers {
		min-width: 44px;
		height: 44px;
	}

	.ak-pager .wp-block-query-pagination-previous,
	.ak-pager .wp-block-query-pagination-next {
		min-height: 44px;
	}

	/* Footer */
	.ak-footer {
		padding-block: 56px 28px;
	}

	.ak-nameplate--footer {
		font-size: 2rem;
	}

	.ak-footer__link a {
		display: inline-block;
		padding-block: 5px;
		line-height: 1.6;
	}

	.ak-footer__inner > .ak-footer__rule {
		margin-top: 40px;
	}
}

/* ==========================================================================
   9. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}

	.wp-block-post:hover .ak-media img {
		transform: none;
	}
}

/* ===== Article cover inside the page width + compact heading rhythm (owner request 2026-11-23) ===== */
body.single-post .wp-block-post-featured-image:not(.wp-block-query *) {
	width: auto !important;
	max-width: min(1000px, 100%, calc(100vw - 40px)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body.single-post .wp-block-post-featured-image:not(.wp-block-query *) img {
	width: 100% !important;
	max-height: 520px !important;
	object-fit: cover !important;
}
body.single-post .wp-block-post-content > h2 { margin-block-start: 2.4rem !important; }
body.single-post .wp-block-post-content > h3 { margin-block-start: 1.6rem !important; }
@media (max-width: 600px) {
	body.single-post .wp-block-post-featured-image:not(.wp-block-query *) img { max-height: 300px !important; }
	body.single-post .wp-block-post-content > h2 { margin-block-start: 2rem !important; }
	body.single-post .wp-block-post-content > h3 { margin-block-start: 1.35rem !important; }
}
