/* ============================================================================
   Accra Posts — main stylesheet
   Modernist design system, self-hosted. Tokens are the source of truth: never
   hard-code a hex, font name, spacing or radius the tokens already carry.

   Layer order:
     1. Tokens (:root)
     2. Reset + base elements
     3. Base typography
     4. WordPress core / block base (alignments, captions, galleries)
     5. Component layer (buttons, forms, cards, tags, nav, table, hr, media)
     6. Layout scaffold (container, skip link, a11y helpers)
   ========================================================================= */

/* ─────────────────────────────────────────────────────────────────────────
   1. TOKENS
   ───────────────────────────────────────────────────────────────────────── */
:root {
	/* core roles */
	--ap-bg:       #f3f2f2; /* page background */
	--ap-surface:  #eae9e9; /* cards, article surface */
	--ap-text:     #201e1d; /* primary text */
	--ap-accent:   #ec3013; /* the single accent — links, kickers, breaking */
	--ap-accent-2: #e15b47;
	--ap-divider:  color-mix(in srgb, #201e1d 40%, transparent);

	/* neutral ramp (OKLCH-derived, shared lightness scale) */
	--ap-neutral-100: #f8f4f4;
	--ap-neutral-200: #eae7e7;
	--ap-neutral-300: #d7d3d3;
	--ap-neutral-400: #bab6b6;
	--ap-neutral-500: #9b9797;
	--ap-neutral-600: #7d7979;
	--ap-neutral-700: #605d5d;
	--ap-neutral-800: #444141;
	--ap-neutral-900: #2d2b2b;

	/* accent ramp */
	--ap-accent-100: #fff2ef;
	--ap-accent-200: #ffe0d9;
	--ap-accent-300: #ffc4b8;
	--ap-accent-400: #ff9783;
	--ap-accent-500: #ff563c;
	--ap-accent-600: #dd2b0f;
	--ap-accent-700: #ae1800;
	--ap-accent-800: #7c1405;
	--ap-accent-900: #4d170e;

	/* status roles (traffic severity, market deltas) */
	--ap-success: #1f8a3b;
	--ap-warning: #b06b0c;
	--ap-breaking: var(--ap-accent);

	/* type */
	--ap-font-heading: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ap-font-body:    "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ap-heading-weight: 800;

	/* spacing scale (4 8 12 16 24 32 48 64) */
	--ap-space-1: 4px;
	--ap-space-2: 8px;
	--ap-space-3: 12px;
	--ap-space-4: 16px;
	--ap-space-6: 24px;
	--ap-space-8: 32px;
	--ap-space-12: 48px;
	--ap-space-16: 64px;

	/* radius: flat by design */
	--ap-radius-sm: 0px;
	--ap-radius-md: 0px;
	--ap-radius-lg: 0px;

	/* elevation */
	--ap-shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
	--ap-shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
	--ap-shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);

	/* layout */
	--ap-container: 1320px;
	--ap-measure: 760px;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. RESET + BASE ELEMENTS
   ───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
	margin: 0;
	background: var(--ap-bg);
	color: var(--ap-text);
	font-family: var(--ap-font-body);
	font-size: 15px;
	line-height: 1.55;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul, ol { margin: 0 0 var(--ap-space-3); padding-left: 1.25em; }
hr { border: 0; height: 2px; background: var(--ap-divider); margin: var(--ap-space-4) 0; }

/* focus + selection are themed, never browser defaults */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--ap-accent) 30%, transparent); }

/* ─────────────────────────────────────────────────────────────────────────
   3. BASE TYPOGRAPHY
   Fluid headings via clamp(), anchored to the design-system desktop sizes.
   ───────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ap-font-heading);
	font-weight: var(--ap-heading-weight);
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 var(--ap-space-2);
	color: var(--ap-text);
}
h1 { font-size: clamp(28px, 1.4rem + 2.6vw, 42px); }
h2 { font-size: clamp(21px, 1.2rem + 1.6vw, 32px); }
h3 { font-size: clamp(20px, 1.1rem + 1vw, 25px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

p { margin: 0 0 var(--ap-space-3); }
a { color: var(--ap-link); text-underline-offset: 3px; }
a:hover { color: var(--ap-accent); }
strong, b { font-weight: 700; }
small { font-size: 0.85em; }

blockquote {
	margin: var(--ap-space-8) 0;
	padding-left: var(--ap-space-6);
	border-left: 3px solid var(--ap-accent);
	font-family: var(--ap-font-heading);
	font-weight: var(--ap-heading-weight);
	font-size: clamp(19px, 1rem + 0.6vw, 22px);
	line-height: 1.4;
	letter-spacing: -0.01em;
}
blockquote p { margin-bottom: var(--ap-space-2); }
blockquote cite { display: block; font-family: var(--ap-font-body); font-weight: 600; font-size: 13px; font-style: normal; color: var(--ap-neutral-700); }

code, kbd, samp, pre {
	font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.9em;
}
code { background: var(--ap-neutral-200); padding: 2px 6px; }
pre {
	background: var(--ap-neutral-900);
	color: var(--ap-neutral-100);
	padding: var(--ap-space-4);
	overflow: auto;
	margin: 0 0 var(--ap-space-4);
}
pre code { background: none; padding: 0; color: inherit; }

figcaption, .wp-caption-text {
	font-size: 12.5px;
	margin-top: var(--ap-space-1);
	color: color-mix(in srgb, var(--ap-text) 55%, transparent);
}

.text-muted { color: color-mix(in srgb, var(--ap-text) 55%, transparent); }

/* ─────────────────────────────────────────────────────────────────────────
   4. WORDPRESS CORE / BLOCK BASE
   ───────────────────────────────────────────────────────────────────────── */
.alignleft  { float: left;  margin: 0 var(--ap-space-6) var(--ap-space-4) 0; }
.alignright { float: right; margin: 0 0 var(--ap-space-4) var(--ap-space-6); }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption img { width: 100%; }

/* wide / full alignments inside a constrained article measure */
.entry-content > .alignwide {
	width: min(100%, 1040px);
	margin-inline: calc(50% - min(50%, 520px));
}
.entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.sticky, .bypostauthor { /* required by Theme Check; no visual override needed */ }

/* Content photographs render in full colour. (The .grayscale wrapper is kept
   as a hook — restore the B&W treatment by re-adding:
   filter: grayscale(1) contrast(1.08); ) */
.grayscale, .grayscale img { filter: none; }

/* ─────────────────────────────────────────────────────────────────────────
   5. COMPONENT LAYER  (ported from the bundle's design system, on --ap tokens)
   ───────────────────────────────────────────────────────────────────────── */

/* — strong 2px rule — */
.hr { height: 2px; border: 0; margin: var(--ap-space-4) 0; background: var(--ap-divider); }

/* — buttons — flush-left labels, accent primary — */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	cursor: pointer; text-decoration: none;
	font-family: var(--ap-font-heading); font-weight: var(--ap-heading-weight);
	font-size: 14px; line-height: 1.2; color: var(--ap-text);
	background: transparent; border: 1px solid transparent;
	padding: var(--ap-space-2) calc(var(--ap-space-3) * 1.2);
	border-radius: var(--ap-radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--ap-accent); color: var(--ap-bg); }
.btn-primary:hover { background: var(--ap-accent-600); color: var(--ap-bg); }
.btn-primary:active { background: var(--ap-accent-700); }
.btn-secondary { border-color: var(--ap-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ap-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--ap-text) 14%, transparent); }
.btn-ghost { color: var(--ap-link); padding-inline: var(--ap-space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ap-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--ap-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; justify-content: flex-start; text-align: left; }

/* — forms — native controls, no script — */
.field > label { display: block; font-size: 12px; margin-bottom: 5px; color: color-mix(in srgb, var(--ap-text) 70%, transparent); }
.input {
	width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
	font-size: 14px; color: var(--ap-text); caret-color: var(--ap-accent);
	background: var(--ap-surface);
	border: 1px solid var(--ap-divider); border-radius: var(--ap-radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--ap-text) 45%, transparent); }
.input:focus-visible { border-color: var(--ap-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.radio input, .seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.radio .dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--ap-divider); }
.radio:hover .dot { border-color: var(--ap-accent); }
.radio input:checked + .dot { border-color: var(--ap-accent); background: var(--ap-accent); box-shadow: inset 0 0 0 4px var(--ap-bg); }
.radio input:focus-visible + .dot { outline: 2px solid var(--ap-accent); outline-offset: 2px; }
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--ap-divider); border-radius: var(--ap-radius-md); }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--ap-divider); }
.seg-opt:has(input:checked) { background: var(--ap-accent); color: var(--ap-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--ap-text) 7%, transparent); }

/* — the one reusable card — */
.card {
	display: flex; flex-direction: column; gap: var(--ap-space-2);
	background: transparent;
	text-decoration: none; color: var(--ap-text);
}
.card--filled { padding: var(--ap-space-3); background: var(--ap-surface); }
.card__media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ap-neutral-300); margin-bottom: var(--ap-space-1); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card-kicker,
.card__kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ap-link); font-weight: 700; }
.card-title,
.card__title { font-family: var(--ap-font-heading); font-weight: var(--ap-heading-weight); font-size: 17px; line-height: 1.2; margin: 0; }
.card__title a { color: inherit; text-decoration: none; }
.card:hover .card__title a, .card__title a:hover { color: var(--ap-accent); }
.card-body,
.card__excerpt { margin: 0; font-size: 13px; opacity: 0.8; }
.card-meta,
.card__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: color-mix(in srgb, var(--ap-text) 55%, transparent); }
.elev-sm { box-shadow: var(--ap-shadow-sm); }
.elev-md { box-shadow: var(--ap-shadow-md); }
.elev-lg { box-shadow: var(--ap-shadow-lg); }

/* — the accent category eyebrow (shared with cards) — */
.ap-eyebrow {
	display: inline-flex; align-items: center;
	font-family: var(--ap-font-heading); font-weight: 700;
	font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--ap-link);
}

/* — tags — */
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px; border-radius: calc(var(--ap-radius-md) * 0.75); text-decoration: none; }
.tag-accent { background: var(--ap-accent-100); color: var(--ap-accent-800); }
.tag-neutral { background: var(--ap-neutral-100); color: var(--ap-neutral-800); }
.tag-outline { border: 1px solid var(--ap-accent); color: var(--ap-accent); }

/* — inline nav bar (design-system pattern; the site masthead is built in Phase 2) — */
.nav { display: flex; align-items: center; gap: var(--ap-space-4); padding: var(--ap-space-3) var(--ap-space-4); border-bottom: 2px solid var(--ap-divider); }
.nav-brand { font-family: var(--ap-font-heading); font-weight: var(--ap-heading-weight); font-size: 18px; margin-right: auto; }
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ap-accent); }

/* — tables — */
.table, .entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .entry-content table th {
	text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
	color: color-mix(in srgb, var(--ap-text) 60%, transparent);
	padding: var(--ap-space-2); border-bottom: 2px solid var(--ap-divider);
}
.table td, .entry-content table td { padding: var(--ap-space-2); border-bottom: 1px solid var(--ap-divider); }
.table tbody tr:hover { background: color-mix(in srgb, var(--ap-text) 4%, transparent); }

/* ─────────────────────────────────────────────────────────────────────────
   6. LAYOUT SCAFFOLD + A11Y
   ───────────────────────────────────────────────────────────────────────── */
.ap-container { max-width: var(--ap-container); margin-inline: auto; padding-inline: var(--ap-space-6); }
@media (max-width: 700px) { .ap-container { padding-inline: var(--ap-space-4); } }

.ap-loop {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--ap-space-6);
	padding-block: var(--ap-space-8);
}

/* numbered pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: var(--ap-space-2); padding-block: var(--ap-space-8); }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px;
	font-family: var(--ap-font-heading); font-weight: 700; font-size: 14px;
	text-decoration: none; color: var(--ap-text);
	border: 2px solid var(--ap-divider);
}
.page-numbers:hover { border-color: var(--ap-accent); color: var(--ap-accent); }
.page-numbers.current { background: var(--ap-accent); color: var(--ap-bg); border-color: var(--ap-accent); }
.page-numbers.dots { border-color: transparent; }

/* skip link + sr-only */
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	padding: var(--ap-space-2) var(--ap-space-4);
	background: var(--ap-text); color: var(--ap-bg);
	font-family: var(--ap-font-heading); font-weight: 800;
}
.skip-link:focus { left: var(--ap-space-2); top: var(--ap-space-2); color: var(--ap-bg); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--ap-surface); clip: auto; clip-path: none;
	height: auto; width: auto; padding: var(--ap-space-2) var(--ap-space-4);
	z-index: 100000; top: 5px; left: 5px;
}

/* ═════════════════════════════════════════════════════════════════════════
   PHASE 2 — Header, navigation, breaking ticker, footer, dark mode
   ═════════════════════════════════════════════════════════════════════════ */

:root {
	/* muted text that flips with the colour scheme */
	--ap-muted: color-mix(in srgb, var(--ap-text) 58%, transparent);
	/* accent for TEXT — a deep ramp step that clears WCAG AA on the light
	   ground (the base accent is only ~4:1, fine for icons/large text, not
	   for small copy). Flips lighter in dark mode. */
	--ap-link: var(--ap-accent-700);
	/* utility bar is always dark, independent of scheme */
	--ap-utility-bg: #201e1d;
	--ap-utility-fg: #f3f2f2;
}

/* ── Dark mode: retune the tokens; every component reads from them ── */
html[data-theme="dark"] {
	--ap-bg:      #2d2b2b;
	--ap-surface: #3c3939;
	--ap-text:    #f8f4f4;
	--ap-divider: color-mix(in srgb, #f8f4f4 22%, transparent);
	--ap-link:    var(--ap-accent-400);
	--ap-utility-bg: #171615;
}

/* ── Icons ── */
.ap-icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; flex: none; }

/* ── Sticky header shell ── */
.ap-header { position: sticky; top: 0; z-index: 50; background: var(--ap-bg); }

/* ── Utility bar ── */
.ap-utility { background: var(--ap-utility-bg); color: var(--ap-utility-fg); font-size: 12px; }
.ap-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--ap-space-3); padding-block: 6px; }
.ap-utility__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ap-utility__date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-utility__dot { width: 4px; height: 4px; background: var(--ap-accent); flex: none; }
.ap-utility__weather { opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-utility__weather p { margin: 0; }
.ap-utility__right { display: flex; align-items: center; gap: 14px; }
.ap-social { display: flex; align-items: center; gap: 12px; }
.ap-social__link { color: inherit; opacity: 0.85; display: flex; }
.ap-social__link:hover { opacity: 1; color: inherit; }
.ap-utility__divider { width: 1px; height: 14px; background: color-mix(in srgb, var(--ap-utility-fg) 30%, transparent); }
.ap-utility__link { color: inherit; text-decoration: none; }
.ap-utility__link:hover { color: var(--ap-accent); }
.ap-darktoggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
.ap-darktoggle__sun { display: none; }
html[data-theme="dark"] .ap-darktoggle__moon { display: none; }
html[data-theme="dark"] .ap-darktoggle__sun { display: block; }

/* ── Masthead ── */
.ap-masthead { background: var(--ap-bg); border-bottom: 2px solid var(--ap-divider); }
.ap-masthead__inner { display: flex; align-items: center; gap: var(--ap-space-8); padding-block: var(--ap-space-4); }
.ap-brand { margin-right: auto; flex: 0 0 auto; }
.ap-brand__word { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ap-font-heading); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--ap-text); }
.ap-brand__mark { width: 13px; height: 13px; background: var(--ap-accent); flex: none; }
.ap-brand__accent { color: var(--ap-accent); }
.ap-tagline { margin: 3px 0 0; font-size: 12px; color: var(--ap-muted); }
.custom-logo-link { display: inline-flex; flex: none; }
/* Fixed height, width follows the image's real aspect ratio. object-fit +
   width:auto guard against any distortion if the row constrains the logo. */
.custom-logo {
	height: 44px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

/* ── Primary nav (desktop) ── */
.ap-menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.ap-menu li { position: relative; }
.ap-menu a { display: block; padding: 4px 0; font-size: 14px; color: var(--ap-text); text-decoration: none; white-space: nowrap; }
.ap-menu > li > a:hover,
.ap-menu a[aria-current="page"],
.ap-menu .current-menu-item > a { color: var(--ap-accent); }
.ap-subtoggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; margin-left: 2px; background: none; border: 0; color: inherit; cursor: pointer; vertical-align: middle; }
.ap-subtoggle svg { transition: transform 0.15s ease; }
.menu-item-has-children.is-open > .ap-subtoggle svg { transform: rotate(180deg); }
.ap-menu .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
	min-width: 210px; list-style: none; margin: 0; padding: 6px 0;
	background: var(--ap-surface); border: 2px solid var(--ap-divider); box-shadow: var(--ap-shadow-lg);
	display: none;
}
.menu-item-has-children.is-open > .sub-menu { display: block; }
.ap-menu .sub-menu a { padding: 9px 16px; font-size: 13.5px; white-space: normal; }
.ap-menu .sub-menu a:hover { background: color-mix(in srgb, var(--ap-text) 6%, transparent); color: var(--ap-accent); }

/* ── Header actions + icon buttons ── */
.ap-header-actions { display: flex; align-items: center; gap: 6px; }
.ap-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; background: none; border: 0; color: var(--ap-text); cursor: pointer; }
.ap-iconbtn:hover { color: var(--ap-accent); }
.ap-nav-toggle { display: none; }
.ap-nav-toggle__close { display: none; }
.ap-nav-toggle[aria-expanded="true"] .ap-nav-toggle__open { display: none; }
.ap-nav-toggle[aria-expanded="true"] .ap-nav-toggle__close { display: block; }

/* ── Search bar ── */
.ap-searchbar { background: var(--ap-surface); border-bottom: 2px solid var(--ap-divider); }
.ap-searchbar__inner { display: flex; align-items: center; gap: var(--ap-space-3); padding-block: var(--ap-space-3); }
.ap-searchbar .ap-searchform { flex: 1; }
.ap-searchbar__cancel { background: none; border: 0; color: var(--ap-link); font-family: var(--ap-font-heading); font-weight: 800; font-size: 13px; cursor: pointer; flex: none; }

/* ── Search form ── */
.ap-searchform { display: flex; align-items: center; gap: var(--ap-space-2); }
.ap-searchform__icon { display: flex; color: var(--ap-muted); flex: none; }
.ap-searchform__input { flex: 1; min-height: 40px; padding: 0 10px; font: inherit; font-size: 15px; color: var(--ap-text); background: var(--ap-bg); border: 1px solid var(--ap-divider); }
.ap-searchform__input:focus-visible { border-color: var(--ap-accent); outline-offset: 0; }
.ap-searchform__submit { flex: none; min-height: 40px; }

/* ── Breaking ticker ── */
.ap-ticker { display: flex; align-items: stretch; background: var(--ap-accent); overflow: hidden; height: 34px; }
.ap-ticker__label { display: flex; align-items: center; padding: 0 14px; background: var(--ap-accent-700); color: #fff; font-family: var(--ap-font-heading); font-weight: 800; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; flex: none; }
.ap-ticker__viewport { flex: 1; overflow: hidden; position: relative; }
.ap-ticker__track { display: flex; align-items: center; gap: 48px; height: 100%; width: max-content; margin: 0; padding: 0 24px; list-style: none; white-space: nowrap; }
.ap-ticker.is-animated .ap-ticker__track { animation: ap-ticker-scroll 36s linear infinite; }
.ap-ticker.is-animated .ap-ticker__track:hover,
.ap-ticker.is-animated .ap-ticker__track:focus-within { animation-play-state: paused; }
.ap-ticker.is-static .ap-ticker__viewport { overflow-x: auto; }
.ap-ticker__item a { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.ap-ticker__item a:hover { text-decoration: underline; }
@keyframes ap-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ap-ticker.is-animated .ap-ticker__track { animation: none; }
	.ap-ticker__viewport { overflow-x: auto; }
}

/* ── Mobile nav (drawer) ── */
@media (max-width: 1023px) {
	.ap-masthead__inner { gap: var(--ap-space-4); }
	.ap-nav-toggle { display: inline-flex; }
	/* The drawer box lives on .ap-menu so nothing shows while it is closed. */
	.ap-nav { position: absolute; left: 0; right: 0; top: 100%; }
	.ap-masthead { position: relative; }
	.ap-nav .ap-menu { display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: 70vh; overflow-y: auto; padding: 4px 0; background: var(--ap-surface); border-bottom: 2px solid var(--ap-divider); box-shadow: var(--ap-shadow-md); }
	.ap-nav.is-open .ap-menu { display: flex; }
	.ap-menu li { position: static; }
	.ap-menu > li > a,
	.ap-menu .sub-menu a { padding: 13px 20px; font-size: 15px; border-top: 1px solid var(--ap-divider); }
	.ap-menu .sub-menu { position: static; display: none; min-width: 0; border: 0; box-shadow: none; padding: 0; background: color-mix(in srgb, var(--ap-text) 4%, transparent); }
	.menu-item-has-children.is-open > .sub-menu { display: block; }
	.ap-menu .sub-menu a { padding-left: 36px; }
	.ap-subtoggle { position: absolute; right: 12px; top: 8px; width: 34px; height: 34px; }
	.menu-item-has-children { position: relative; }
}

/* Small phones: keep the utility bar and masthead from crowding. */
@media (max-width: 560px) {
	.ap-utility { font-size: 11px; }
	.ap-utility__inner { gap: var(--ap-space-2); }
	.ap-utility__weather { display: none; }
	.ap-social { gap: 10px; }
	.ap-brand__word { font-size: 17px; }
	.custom-logo { height: 38px; max-width: 160px; }
	.ap-tagline { display: none; }
}

/* ═════════════════════════════════════════════════════════════════════════
   Footer — dark, editorial, organised. Its own colour scope so it reads
   confidently against the paper body; an accent top rule anchors it.
   ═════════════════════════════════════════════════════════════════════════ */
.ap-colophon {
	--ap-text: #f3f2f2;
	--ap-muted: color-mix(in srgb, #f3f2f2 55%, transparent);
	--ap-divider: color-mix(in srgb, #f3f2f2 16%, transparent);
	--ap-link: #f3f2f2;
	margin-top: var(--ap-space-16);
	background: #201e1d;
	color: var(--ap-text);
	border-top: 4px solid var(--ap-accent);
	padding-block: var(--ap-space-12) var(--ap-space-6);
}
html[data-theme="dark"] .ap-colophon { background: #171615; }

/* columns: brand is widest, then the link columns */
.ap-foot-cols {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: var(--ap-space-8) var(--ap-space-6);
	padding-bottom: var(--ap-space-8);
	border-bottom: 1px solid var(--ap-divider);
}

/* brand block */
.ap-foot-brand { display: flex; flex-direction: column; gap: var(--ap-space-4); max-width: 40ch; }
.ap-foot-brand .ap-brand__word { font-size: 20px; color: var(--ap-text); }
.ap-foot-brand .ap-brand__mark { width: 13px; height: 13px; }
.ap-foot-brand .custom-logo { height: 40px; width: auto; max-width: 200px; }
.ap-foot-brand__tagline { font-size: 14px; line-height: 1.5; color: var(--ap-muted); margin: 0; }

.ap-foot-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ap-foot-contact li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ap-foot-contact .ap-icon { color: var(--ap-accent); flex: none; }
.ap-foot-contact__ico { color: var(--ap-accent); width: 15px; text-align: center; flex: none; font-size: 15px; }
.ap-foot-contact a { color: var(--ap-text); text-decoration: none; }
.ap-foot-contact a:hover { color: var(--ap-accent); }

.ap-foot-social { display: flex; gap: 10px; margin-top: 2px; }
.ap-foot-social__link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--ap-divider); color: var(--ap-text); transition: background 0.15s ease, border-color 0.15s ease; }
.ap-foot-social__link:hover { background: var(--ap-accent); border-color: var(--ap-accent); color: #fff; }

/* link columns */
.ap-foot-col__title,
.ap-foot-colwrap .widget-title,
.ap-foot-colwrap h2 {
	font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--ap-accent); margin: 0 0 var(--ap-space-4); font-weight: 800;
	font-family: var(--ap-font-heading);
	position: relative; padding-bottom: 10px;
}
.ap-foot-col__title::after,
.ap-foot-colwrap h2::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 24px; height: 2px; background: var(--ap-accent);
}
.ap-foot-col ul,
.ap-foot-colwrap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ap-foot-col a,
.ap-foot-colwrap a { font-size: 14px; color: var(--ap-muted); text-decoration: none; transition: color 0.12s ease; }
.ap-foot-col a:hover,
.ap-foot-colwrap a:hover { color: var(--ap-text); }

/* bottom bar */
.ap-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ap-space-3); padding-top: var(--ap-space-6); font-size: 12.5px; color: var(--ap-muted); }
.ap-copyright { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ap-copyright__pub { color: var(--ap-muted); }
.ap-copyright__pub::before { content: "·"; margin-right: 10px; color: var(--ap-accent); }
.ap-foot-bottom__links { display: flex; gap: var(--ap-space-4); }
.ap-foot-bottom__links a { color: var(--ap-muted); text-decoration: none; }
.ap-foot-bottom__links a:hover { color: var(--ap-text); }
.ap-backtotop { display: inline-flex; align-items: center; gap: 6px; color: var(--ap-text); text-decoration: none; font-family: var(--ap-font-heading); font-weight: 700; }
.ap-backtotop:hover { color: var(--ap-accent); }

@media (max-width: 900px) {
	.ap-foot-cols { grid-template-columns: 1fr 1fr; gap: var(--ap-space-8) var(--ap-space-6); }
	.ap-foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 560px) {
	.ap-colophon { padding-block: var(--ap-space-8) var(--ap-space-6); }
	.ap-foot-cols { grid-template-columns: 1fr; }
	.ap-foot-bottom { flex-direction: column; align-items: flex-start; gap: var(--ap-space-4); }
}

/* ═════════════════════════════════════════════════════════════════════════
   PHASE 3 — Front page
   ═════════════════════════════════════════════════════════════════════════ */
.ap-front { padding-block: var(--ap-space-8) 0; }
.ap-empty { padding-block: var(--ap-space-12); }
.ap-empty__title { margin-bottom: var(--ap-space-3); }

/* card meta shared bits */
.card__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ap-muted); }
.card__meta-dot { width: 3px; height: 3px; background: currentColor; display: inline-block; flex: none; }

/* card variants */
.card--default .card__media,
.card--filled .card__media { aspect-ratio: 4 / 3; }
.card--lead .card__media { aspect-ratio: 16 / 9; margin-bottom: var(--ap-space-4); }
.card--lead .card__kicker { font-size: 11px; margin-bottom: 4px; }
.card--lead .card__title { font-size: clamp(24px, 1.2rem + 2.2vw, 38px); line-height: 1.1; }
.card--lead .card__excerpt { font-size: 16px; opacity: 0.8; max-width: 62ch; margin-top: 4px; }
.card--secondary .card__media { aspect-ratio: 16 / 10; }
.card--secondary .card__title { font-size: clamp(18px, 1rem + 0.8vw, 24px); }

/* hero + trending rail */
.ap-hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--ap-space-12); }
.ap-trending { border-left: 2px solid var(--ap-divider); padding-left: var(--ap-space-8); }
.ap-rail-head { font-family: var(--ap-font-heading); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-link); font-weight: 700; margin: 0 0 14px; }
.ap-trending__list { list-style: none; margin: 0; padding: 0; }
.ap-trending__item { display: flex; }
.ap-trending__link { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ap-divider); text-decoration: none; color: var(--ap-text); width: 100%; }
.ap-trending__item:first-child .ap-trending__link { border-top: 0; }
.ap-trending__rank { font-family: var(--ap-font-heading); font-weight: 800; font-size: 20px; color: var(--ap-accent); line-height: 1; flex: none; min-width: 22px; }
.ap-trending__cat { display: block; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ap-muted); }
.ap-trending__title { display: block; font-size: 14.5px; line-height: 1.35; margin-top: 4px; font-weight: 600; }
.ap-trending__link:hover .ap-trending__title { color: var(--ap-accent); }

/* main + sidebar grid */
.ap-front-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: var(--ap-space-12); padding-bottom: var(--ap-space-12); }
.ap-front-main { min-width: 0; }
.ap-section + .ap-section { margin-top: var(--ap-space-8); }
.ap-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ap-space-4); margin-bottom: 18px; }
.ap-section-title { font-size: clamp(21px, 1.1rem + 1vw, 25px); margin: 0; letter-spacing: -0.01em; }
.ap-viewall { font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.ap-cardgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ap-space-6); }
.ap-loadmore { margin-top: var(--ap-space-6); }

/* per-beat block: featured + list */
.ap-beat-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--ap-space-8); }
.ap-beat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ap-beat-list__item a { display: block; padding: 14px 0; border-top: 1px solid var(--ap-divider); font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--ap-text); text-decoration: none; }
.ap-beat-list__item:first-child a { border-top: 0; }
.ap-beat-list__item a:hover { color: var(--ap-accent); }

/* communities chips */
.ap-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ap-chip { padding: 7px 14px; font-size: 13px; }

/* front sidebar */
.ap-front-sidebar { display: flex; flex-direction: column; gap: var(--ap-space-8); position: sticky; top: 150px; align-self: start; }
.ap-widget { padding-bottom: var(--ap-space-6); border-bottom: 2px solid var(--ap-divider); }
.ap-widget:last-child { border-bottom: 0; }
.ap-widget__title { font-family: var(--ap-font-heading); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ap-link); font-weight: 700; margin: 0 0 14px; }
.ap-mostread__list { list-style: none; margin: 0; padding: 0; }
.ap-mostread__item { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ap-divider); }
.ap-mostread__item:first-child { border-top: 0; }
.ap-mostread__rank { font-family: var(--ap-font-heading); font-weight: 800; color: var(--ap-link); font-size: 16px; flex: none; min-width: 18px; }
.ap-mostread__item a { font-size: 13.5px; line-height: 1.35; color: var(--ap-text); text-decoration: none; }
.ap-mostread__item a:hover { color: var(--ap-accent); }
/* generic widgets dropped into the front sidebar */
.ap-front-sidebar .widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ap-front-sidebar .widget a { color: var(--ap-text); text-decoration: none; }
.ap-front-sidebar .widget a:hover { color: var(--ap-accent); }

@media (max-width: 1023px) {
	.ap-front-grid { grid-template-columns: 1fr; gap: var(--ap-space-8); }
	.ap-front-sidebar { position: static; }
}
@media (max-width: 900px) {
	.ap-hero-grid { grid-template-columns: 1fr; gap: var(--ap-space-6); }
	.ap-trending { border-left: 0; padding-left: 0; border-top: 2px solid var(--ap-divider); padding-top: var(--ap-space-6); }
	.ap-cardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ap-beat-grid { grid-template-columns: 1fr; gap: var(--ap-space-6); }
}
@media (max-width: 560px) {
	.ap-cardgrid { grid-template-columns: 1fr; }
	.ap-loadmore { width: 100%; }
}

/* ═════════════════════════════════════════════════════════════════════════
   PHASE 4 — Single article
   ═════════════════════════════════════════════════════════════════════════ */
.ap-single { max-width: 880px; padding-block: var(--ap-space-6) var(--ap-space-12); }

/* breadcrumb */
.ap-crumbs { font-size: 12.5px; color: var(--ap-muted); margin: 0 0 var(--ap-space-4); }
.ap-crumbs a { color: var(--ap-text); text-decoration: none; }
.ap-crumbs a:hover { color: var(--ap-accent); }
.ap-crumbs__sep { color: var(--ap-muted); margin: 0 2px; }
.ap-crumbs [aria-current="page"] { color: var(--ap-muted); }

/* article header */
.ap-article__eyebrow { display: inline-flex; margin-bottom: 14px; letter-spacing: 0.06em; font-size: 12px; text-decoration: none; }
.ap-article__title { font-size: clamp(28px, 1.3rem + 2.8vw, 42px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.015em; }
.ap-article__subtitle { font-size: clamp(16px, 1rem + 0.4vw, 19px); line-height: 1.5; color: var(--ap-muted); font-weight: 400; margin: 0 0 var(--ap-space-6); max-width: 62ch; }

.ap-article__byrow { display: flex; align-items: center; justify-content: space-between; gap: var(--ap-space-4); flex-wrap: wrap; padding-bottom: var(--ap-space-4); border-bottom: 2px solid var(--ap-divider); margin-bottom: var(--ap-space-6); }

/* byline */
.ap-byline { display: flex; align-items: center; gap: 12px; }
.ap-byline__avatar { display: inline-flex; flex: none; }
.ap-byline__avatar img { width: 40px; height: 40px; }
.ap-byline__author { font-weight: 700; font-size: 14px; }
.ap-byline__author a { color: var(--ap-text); text-decoration: none; }
.ap-byline__author a:hover { color: var(--ap-accent); }
.ap-byline__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ap-muted); margin-top: 2px; }
.ap-byline__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }

/* share */
.ap-share { display: flex; align-items: center; gap: 8px; }
.ap-share__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--ap-divider); background: none; color: var(--ap-text); cursor: pointer; text-decoration: none; }
.ap-share__native, .ap-share__copy { width: auto; padding: 0 12px; font-family: var(--ap-font-heading); font-weight: 800; font-size: 12px; }
.ap-share__btn:hover { border-color: var(--ap-accent); color: var(--ap-accent); }
.ap-share__copy.is-copied { border-color: var(--ap-success); color: var(--ap-success); }

/* share-card generator */
.ap-share__card span { font-family: var(--ap-font-heading); font-weight: 800; font-size: 12px; }
body.ap-modal-open { overflow: hidden; }
.ap-cardgen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--ap-space-4); }
.ap-cardgen[hidden] { display: none; }
.ap-cardgen__backdrop { position: fixed; inset: 0; background: color-mix(in srgb, #201e1d 62%, transparent); }
.ap-cardgen__panel { position: relative; z-index: 1; width: min(440px, 100%); max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: var(--ap-space-4); padding: var(--ap-space-6); background: var(--ap-bg); border: 2px solid var(--ap-divider); box-shadow: var(--ap-shadow-lg); }
.ap-cardgen__head { display: flex; align-items: center; justify-content: space-between; }
.ap-cardgen__title { margin: 0; font-size: 20px; }
.ap-cardgen__x { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; background: none; border: 0; color: var(--ap-text); cursor: pointer; }
.ap-cardgen__x:hover { color: var(--ap-accent); }
.ap-cardgen__seg-wrap { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--ap-divider); }
.ap-cardgen__seg { flex: 1 1 auto; padding: 8px 6px; font-family: var(--ap-font-heading); font-weight: 700; font-size: 12px; background: var(--ap-surface); color: var(--ap-text); border: 0; border-left: 1px solid var(--ap-divider); cursor: pointer; white-space: nowrap; }
.ap-cardgen__seg:first-child { border-left: 0; }
.ap-cardgen__seg:hover { background: color-mix(in srgb, var(--ap-text) 7%, transparent); }
.ap-cardgen__seg.is-active { background: var(--ap-accent); color: #fff; }
.ap-cardgen__preview { display: grid; place-items: center; padding: var(--ap-space-4); background: var(--ap-surface); border: 1px solid var(--ap-divider); min-height: 200px; }
.ap-cardgen__canvas { max-width: 100%; max-height: 52vh; height: auto; box-shadow: var(--ap-shadow-md); }
.ap-cardgen__status { margin: 0; font-size: 12.5px; color: var(--ap-muted); text-align: center; min-height: 1em; }
.ap-cardgen__status:empty { display: none; }
.ap-cardgen__actions { display: flex; gap: var(--ap-space-2); }
.ap-cardgen__actions .btn { flex: 1; justify-content: center; }

/* figure */
.ap-article__figure { margin: 0 0 var(--ap-space-8); }
.ap-article__figure img { width: 100%; }
.ap-article__figure figcaption { margin-top: var(--ap-space-2); }

/* article body */
.ap-article__body { font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.ap-article__body table { display: block; max-width: 100%; overflow-x: auto; }
.ap-article__body > p { margin: 0 0 22px; }
.ap-article__body > h2 { margin-top: 40px; }
.ap-article__body > h3 { margin-top: 32px; }
.ap-article__body a { color: var(--ap-link); text-decoration: underline; }
.ap-article__body a:hover { color: var(--ap-accent); }
.ap-article__body img { height: auto; }
.ap-article__body :where(figure, .wp-block-image, .wp-block-embed) { margin-block: var(--ap-space-6); }
.ap-article__body ul, .ap-article__body ol { margin: 0 0 22px; padding-left: 1.4em; }
.ap-article__body li { margin-bottom: 8px; }
.ap-page-links { display: flex; align-items: center; gap: 8px; margin: var(--ap-space-6) 0; font-family: var(--ap-font-heading); font-weight: 700; font-size: 14px; }

/* footer: tags + share */
.ap-article__footer { margin-top: var(--ap-space-8); padding-top: var(--ap-space-6); border-top: 2px solid var(--ap-divider); display: flex; flex-direction: column; gap: var(--ap-space-4); }
.ap-entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-entry-tags .ap-eyebrow { margin-right: 4px; }
.ap-article__sharebottom { display: flex; align-items: center; gap: 12px; }

/* author box */
.ap-authorbox { display: flex; gap: var(--ap-space-4); padding: var(--ap-space-4); background: var(--ap-surface); border: 2px solid var(--ap-divider); margin-top: var(--ap-space-8); }
.ap-authorbox__avatar { flex: none; display: inline-flex; }
.ap-authorbox__avatar img { width: 56px; height: 56px; }
.ap-authorbox__name { font-family: var(--ap-font-heading); font-weight: 800; font-size: 16px; color: var(--ap-text); text-decoration: none; }
.ap-authorbox__name:hover { color: var(--ap-accent); }
.ap-authorbox__bio { font-size: 13.5px; line-height: 1.5; color: var(--ap-muted); margin: 6px 0 8px; }
.ap-authorbox__more { font-family: var(--ap-font-heading); font-weight: 700; font-size: 13px; text-decoration: none; }

/* prev / next */
.ap-postnav { margin-top: var(--ap-space-8); }
.ap-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ap-space-4); }
.ap-postnav a { display: flex; flex-direction: column; gap: 6px; padding: var(--ap-space-4); border: 2px solid var(--ap-divider); text-decoration: none; color: var(--ap-text); font-family: var(--ap-font-heading); font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.ap-postnav a:hover { border-color: var(--ap-accent); }
.ap-postnav .nav-next { text-align: right; }
.ap-postnav__label { font-family: var(--ap-font-body); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ap-link); font-weight: 700; }

/* related */
.ap-related { margin-top: var(--ap-space-12); }
.ap-related__title { margin-bottom: 18px; }

/* comments */
.ap-comments { margin-top: var(--ap-space-12); padding-top: var(--ap-space-8); border-top: 2px solid var(--ap-divider); }
.ap-comments__title { font-size: 20px; margin: 0 0 var(--ap-space-4); }
.ap-comments__list { list-style: none; margin: 0 0 var(--ap-space-6); padding: 0; }
.ap-comments__list .children { list-style: none; margin: 0; padding-left: var(--ap-space-6); }
.ap-comments__list .comment-body { padding: var(--ap-space-4) 0; border-top: 1px solid var(--ap-divider); }
.ap-comments__list .comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ap-comments__list .comment-author .avatar { width: 32px; height: 32px; }
.ap-comments__list .comment-author .fn { font-weight: 700; font-size: 13.5px; font-style: normal; }
.ap-comments__list .comment-metadata { font-size: 12px; color: var(--ap-muted); }
.ap-comments__list .comment-metadata a { color: inherit; text-decoration: none; }
.ap-comments__list .comment-content { font-size: 14px; line-height: 1.55; }
.ap-comments__list .comment-content p { margin: 0 0 10px; }
.ap-comments__list .reply { font-size: 12.5px; }
.ap-comments__list .reply a { font-family: var(--ap-font-heading); font-weight: 700; color: var(--ap-accent); text-decoration: none; }
.ap-comments__closed { font-size: 13px; color: var(--ap-muted); }
.ap-comments__reply-title { font-size: 18px; margin: var(--ap-space-6) 0 var(--ap-space-3); }
.comment-form { display: flex; flex-direction: column; gap: var(--ap-space-3); }
.comment-form label { font-size: 12px; color: var(--ap-muted); display: block; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] { width: 100%; max-width: 360px; min-height: 40px; padding: 6px 10px; font: inherit; font-size: 14px; color: var(--ap-text); background: var(--ap-surface); border: 1px solid var(--ap-divider); }
.comment-form input:focus-visible,
.comment-form textarea:focus-visible { border-color: var(--ap-accent); outline-offset: 0; }
.comment-form .form-submit { margin-top: var(--ap-space-2); }
.comment-form .comment-notes,
.comment-form .comment-form-cookies-consent { font-size: 12.5px; color: var(--ap-muted); }

@media (max-width: 560px) {
	.ap-article__byrow { align-items: flex-start; }
	.ap-postnav .nav-links { grid-template-columns: 1fr; }
	.ap-postnav .nav-next { text-align: left; }
}

/* ═════════════════════════════════════════════════════════════════════════
   PHASE 5 — Archives, author, search, 404
   ═════════════════════════════════════════════════════════════════════════ */
.ap-archive { padding-block: var(--ap-space-6) var(--ap-space-12); }
.ap-archive-head { margin-bottom: var(--ap-space-8); padding-bottom: var(--ap-space-6); border-bottom: 2px solid var(--ap-divider); }
.ap-archive-head .ap-eyebrow { margin-bottom: 8px; }
.ap-archive-title { font-size: clamp(26px, 1.3rem + 2.4vw, 40px); margin: 0 0 8px; letter-spacing: -0.015em; }
.ap-archive-desc { font-size: 15px; line-height: 1.6; color: var(--ap-muted); max-width: 70ch; }
.ap-archive-desc p { margin: 0 0 8px; }

/* author header */
.ap-author-head { display: flex; align-items: center; gap: var(--ap-space-6); }
.ap-author-head__avatar { flex: none; }
.ap-author-head__avatar img { width: 72px; height: 72px; }
.ap-author-head__text { min-width: 0; }

/* search */
.ap-search-again { margin-top: var(--ap-space-4); max-width: 560px; }
.ap-search-again .ap-searchform { display: flex; gap: var(--ap-space-2); }

/* empty states */
.ap-noresults { padding-block: var(--ap-space-8); display: flex; flex-direction: column; align-items: flex-start; gap: var(--ap-space-4); }
.ap-noresults p { font-size: 16px; color: var(--ap-muted); margin: 0; }
.ap-beats-list { display: flex; flex-direction: column; gap: var(--ap-space-3); }

/* 404 */
.ap-404-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--ap-space-12); align-items: start; }
.ap-404 .ap-mostread { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 760px) {
	.ap-404-grid { grid-template-columns: 1fr; gap: var(--ap-space-8); }
	.ap-author-head { flex-direction: column; align-items: flex-start; gap: var(--ap-space-4); }
}
