/*
Theme Name: Southern Cross
Theme URI: https://southerncross.news/
Author: Mahutonga Media Limited
Author URI: https://southerncross.news/
Description: Custom news theme for Southern Cross News, Aotearoa New Zealand. Phone-first, fast and accessible (WCAG 2.2 AA). Broadsheet header with sticky compact bar, breaking-news bar, ad widget areas, and a one-click switch back to the legacy theme.
Version: 1.0.2
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: All rights reserved (licence to be confirmed by Mahutonga Media Limited)
Text Domain: southern-cross

Copyright (c) 2026 Mahutonga Media Limited. All rights reserved.
Written from scratch for Mahutonga Media Limited. No code from any other theme is included.
Bundled font: Newsreader, SIL Open Font License 1.1 (see assets/fonts/OFL.txt).
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/newsreader-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
	--scn-navy: #13294B;
	--scn-navy-deep: #0E1F3A;
	--scn-red: #B8152A;
	--scn-ink: #16181D;
	--scn-ink-soft: #3A3F47;
	--scn-slate: #5B6B7C;
	--scn-paper: #FAF8F3;
	--scn-white: #FFFFFF;
	--scn-rule: #DDD8CC;
	--scn-rule-strong: #C9C3B5;
	--scn-mist: #AFC0D4;
	--scn-placeholder: #E9E5DA;
	--scn-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--scn-sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
	--scn-wrap: 1296px;
	--scn-gutter: clamp(16px, 4vw, 72px);
	--scn-desk: 1024px;

	/* Header colours (style A by default) */
	--h-bg: var(--scn-paper);
	--h-fg: var(--scn-navy);
	--h-muted: var(--scn-slate);
	--h-line: var(--scn-rule);
	--h-link: var(--scn-ink);
	--h-mark: var(--scn-red);
	--h-focus: var(--scn-red);
	--page-bg: var(--scn-paper);
}
.header-style-b {
	--h-bg: var(--scn-navy);
	--h-fg: #FFFFFF;
	--h-muted: var(--scn-mist);
	--h-line: rgba(255, 255, 255, 0.16);
	--h-link: #DCE4EE;
	--h-mark: #FFFFFF;
	--h-focus: #FFFFFF;
}
.header-style-c {
	--h-bg: #FFFFFF;
	--page-bg: #FFFFFF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--page-bg);
	color: var(--scn-ink);
	font: 16px/1.5 var(--scn-sans);
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--scn-navy); }
a:hover { color: var(--scn-red); }
:focus-visible { outline: 3px solid var(--scn-red); outline-offset: 2px; }
button { font: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }

.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;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 2000;
	padding: 12px 16px;
	background: #FFFFFF;
	color: var(--scn-navy);
	font-weight: 700;
}
.wrap {
	width: 100%;
	max-width: calc(var(--scn-wrap) + 2 * var(--scn-gutter));
	margin: 0 auto;
	padding: 0 var(--scn-gutter);
}

/* ---------- Header ---------- */
.site-header { background: var(--h-bg); color: var(--h-fg); }
.site-header :focus-visible, .compact-bar :focus-visible { outline-color: var(--h-focus); }

.topbar { display: none; font-size: 13px; color: var(--h-muted); border-bottom: 1px solid var(--h-line); }
.header-style-b .topbar { background: var(--scn-navy-deep); border-bottom: 0; }
.header-style-c .topbar { background: var(--scn-paper); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
.topbar p { margin: 0; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.topbar a { color: inherit; text-decoration: none; }
.header-style-b .topbar a { color: var(--h-link); }
.topbar a:hover { color: inherit; text-decoration: underline; }

.masthead .wrap { padding: 0; }
.masthead__inner {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 56px;
	grid-template-areas: "menu brand search";
	align-items: center;
	min-height: 56px;
}
.header-style-a .masthead { border-bottom: 4px double var(--scn-navy); }
.header-style-b .masthead { border-bottom: 3px solid var(--scn-red); }
.header-style-c .masthead { border-bottom: 3px solid var(--scn-navy); }

.icon-btn {
	width: 56px;
	height: 56px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	background: transparent;
	color: var(--h-fg);
	cursor: pointer;
}
.icon-btn svg { width: 24px; height: 24px; flex: none; }
.menu-toggle { grid-area: menu; }
.search-toggle { grid-area: search; justify-self: end; }
.search-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.brand { grid-area: brand; justify-self: center; min-width: 0; }
.brand__link { display: flex; align-items: center; gap: 10px; color: var(--h-fg); text-decoration: none; }
.brand__link:hover { color: var(--h-fg); }
.brand__mark { width: 24px; height: 24px; flex: none; color: var(--h-mark); }
.brand__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand__name {
	font-family: var(--scn-serif);
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
	letter-spacing: -0.015em;
	white-space: nowrap;
}
.brand__tagline { display: none; }
.custom-logo { max-height: 40px; width: auto; }

.masthead__search { grid-area: searchform; display: none; }
.primary-nav { grid-area: nav; display: none; }

.header-style-c .masthead__inner { grid-template-columns: minmax(0, 1fr) 52px 56px; grid-template-areas: "brand search menu"; }
.header-style-c .brand { justify-self: start; padding-left: 16px; }

/* Search form */
.search-form {
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 560px;
	height: 44px;
	border: 1px solid var(--scn-rule-strong);
	background: #FFFFFF;
}
.search-form:focus-within { outline: 3px solid var(--scn-red); outline-offset: 2px; }
.search-form__field {
	flex: 1;
	min-width: 0;
	border: 0;
	padding: 0 12px;
	background: transparent;
	color: var(--scn-ink);
	font: inherit;
	font-size: 16px;
}
.search-form__field:focus { outline: none; }
.search-form__field::placeholder { color: var(--scn-slate); opacity: 1; }
.search-form__submit {
	width: 44px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-left: 1px solid var(--scn-rule-strong);
	background: transparent;
	color: var(--scn-navy);
	cursor: pointer;
}
.search-form__submit svg { width: 20px; height: 20px; }
.header-style-b .site-header .search-form { background: var(--scn-navy-deep); border-color: #3A5277; }
.header-style-b .site-header .search-form:focus-within { outline-color: #FFFFFF; }
.header-style-b .site-header .search-form__field { color: #FFFFFF; }
.header-style-b .site-header .search-form__field::placeholder { color: var(--scn-mist); }
.header-style-b .site-header .search-form__submit { color: #FFFFFF; border-color: #3A5277; }

.search-drawer { border-bottom: 1px solid var(--h-line); background: var(--h-bg); }
.search-drawer[hidden] { display: none; }
.search-drawer__inner { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.search-drawer .icon-btn { width: 44px; height: 44px; }

/* Breaking-news bar */
.breaking { background: var(--scn-red); color: #FFFFFF; }
.breaking__inner { display: flex; align-items: center; gap: 12px; min-height: 44px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.breaking__label {
	flex: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding-right: 12px;
	border-right: 1px solid rgba(255, 255, 255, 0.5);
}
@media (max-width: 767px) {
	.breaking__inner { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; line-height: 1.35; }
	.breaking__label { padding-right: 0; border-right: 0; }
}
.breaking a { color: #FFFFFF; text-underline-offset: 3px; }
.breaking a:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.breaking :focus-visible { outline-color: #FFFFFF; }
.header-style-c .breaking { background: #FBEDEE; color: var(--scn-ink); border-bottom: 1px solid #F0C9CE; }
.header-style-c .breaking__label { background: var(--scn-red); color: #FFFFFF; padding: 4px 10px; border: 0; }
.header-style-c .breaking a { color: var(--scn-ink); font-weight: 600; text-decoration: none; }
.header-style-c .breaking :focus-visible { outline-color: var(--scn-red); }

/* Desktop header */
@media (min-width: 1024px) {
	.topbar { display: block; }
	.masthead .wrap { padding: 0 var(--scn-gutter); }
	.menu-toggle { display: none; }
	.brand__mark { width: 40px; height: 40px; }
	.brand__tagline { display: block; font-size: 15px; color: var(--h-muted); }
	.custom-logo { max-height: 96px; }
	.primary-nav { display: block; }
	.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 36px; }
	.primary-nav a {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding-top: 3px;
		border-bottom: 3px solid transparent;
		color: var(--h-link);
		font-size: 15px;
		font-weight: 600;
		text-decoration: none;
	}
	.primary-nav a:hover { color: var(--scn-red); border-bottom-color: currentColor; }
	.primary-nav .current-menu-item > a,
	.primary-nav .current-menu-ancestor > a,
	.primary-nav .current-post-ancestor > a,
	.primary-nav .current-category-ancestor > a,
	.primary-nav a[aria-current="page"] { color: var(--scn-red); border-bottom-color: var(--scn-red); }

	/* A: Broadsheet */
	.header-style-a .masthead { border-bottom: 0; }
	.header-style-a .masthead__inner {
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas: ". brand searchform" "nav nav nav";
		column-gap: 24px;
		padding-top: 28px;
	}
	.header-style-a .brand__link { gap: 16px; }
	.header-style-a .brand__text { align-items: center; gap: 8px; }
	.header-style-a .brand__name { font-size: 64px; letter-spacing: -0.02em; }
	.header-style-a .brand__tagline { font-family: var(--scn-serif); font-size: 17px; }
	.header-style-a .masthead__search { display: flex; justify-content: flex-end; }
	.header-style-a .masthead__search .search-form { width: 260px; }
	.header-style-a .search-toggle { display: none; }
	.header-style-a .primary-nav { margin-top: 22px; border-top: 5px double var(--scn-navy); border-bottom: 1px solid var(--scn-rule); }
	.header-style-a .primary-nav ul { justify-content: center; gap: 0 44px; }

	/* B: Night sky */
	.header-style-b .masthead { border-bottom: 0; }
	.header-style-b .masthead__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "brand searchform" "nav nav";
		column-gap: 32px;
		padding-top: 24px;
	}
	.header-style-b .brand { justify-self: start; }
	.header-style-b .brand__link { gap: 18px; }
	.header-style-b .brand__mark { width: 60px; height: 60px; }
	.header-style-b .brand__name { font-size: 50px; font-weight: 600; }
	.header-style-b .brand__tagline { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
	.header-style-b .masthead__search { display: flex; }
	.header-style-b .masthead__search .search-form { width: 280px; }
	.header-style-b .search-toggle { display: none; }
	.header-style-b .primary-nav { margin-top: 24px; border-top: 1px solid var(--h-line); }
	.header-style-b .primary-nav ul { gap: 0 4px; margin-left: -16px; }
	.header-style-b .primary-nav a { padding: 4px 16px 0; border-bottom-width: 4px; }
	.header-style-b .primary-nav a:hover { color: #FFFFFF; border-bottom-color: var(--scn-red); }
	.header-style-b .primary-nav .current-menu-item > a,
	.header-style-b .primary-nav .current-menu-ancestor > a,
	.header-style-b .primary-nav .current-post-ancestor > a,
	.header-style-b .primary-nav .current-category-ancestor > a,
	.header-style-b .primary-nav a[aria-current="page"] { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); border-bottom-color: var(--scn-red); }

	/* C: Front-page strip */
	.header-style-c .masthead__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "brand nav search";
		column-gap: 48px;
		min-height: 80px;
		align-items: stretch;
	}
	.header-style-c .brand { padding-left: 0; align-self: center; }
	.header-style-c .brand__mark { width: 30px; height: 30px; }
	.header-style-c .brand__name { font-size: 36px; letter-spacing: -0.02em; }
	.header-style-c .brand__tagline { display: none; }
	.header-style-c .primary-nav { display: flex; }
	.header-style-c .primary-nav ul { gap: 0 28px; }
	.header-style-c .primary-nav a { min-height: 77px; margin-bottom: -3px; border-bottom-width: 4px; padding-top: 4px; }
	.header-style-c .search-toggle {
		align-self: center;
		width: auto;
		height: 44px;
		padding: 0 16px;
		border: 1px solid var(--scn-navy);
		font-size: 15px;
		font-weight: 600;
	}
	.header-style-c .search-toggle svg { width: 18px; height: 18px; }
	.header-style-c .search-toggle__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* Compact sticky bar: fixed, so it never shifts the page */
.compact-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 900;
	background: var(--h-bg);
	color: var(--h-fg);
	border-bottom: 1px solid var(--h-line);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transform: translateY(-110%);
	visibility: hidden;
	transition: transform 0.2s ease, visibility 0s linear 0.2s;
}
.compact-bar.is-visible { transform: none; visibility: visible; transition: transform 0.2s ease, visibility 0s; }
.compact-bar__inner { display: flex; align-items: center; min-height: 56px; padding-left: 0; padding-right: 0; }
.compact-bar .brand__link { flex: 1; justify-content: center; }
.compact-bar .brand__name { font-size: 22px; }
.admin-bar .compact-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .compact-bar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .compact-bar { top: 0; } }

/* Full-height menu panel */
.menu-panel {
	position: fixed;
	inset: 0;
	z-index: 1000;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--scn-paper);
	color: var(--scn-ink);
	--p-line: var(--scn-rule);
	--p-muted: var(--scn-slate);
}
.menu-panel[hidden] { display: none; }
.header-style-b .menu-panel { background: var(--scn-navy); color: #FFFFFF; --p-line: rgba(255, 255, 255, 0.16); --p-muted: var(--scn-mist); }
.header-style-b .menu-panel :focus-visible { outline-color: #FFFFFF; }
.header-style-c .menu-panel { background: #FFFFFF; }
.menu-panel__bar { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--p-line); color: var(--scn-navy); }
.header-style-b .menu-panel__bar { color: #FFFFFF; }
.menu-panel__bar .icon-btn { color: inherit; }
.menu-panel__inner { max-width: 600px; margin: 0 auto; padding: 16px 16px 40px; }
.menu-panel .search-form { max-width: none; height: 48px; margin-bottom: 8px; }
.panel-nav ul { list-style: none; margin: 0; padding: 0; }
.panel-nav--sections a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	border-bottom: 1px solid var(--p-line);
	color: inherit;
	font-family: var(--scn-serif);
	font-size: 22px;
	font-weight: 600;
	text-decoration: none;
}
.panel-nav--sections .current-menu-item > a,
.panel-nav--sections a[aria-current="page"] { color: var(--scn-red); }
.panel-nav--sections .current-menu-item > a::after,
.panel-nav--sections a[aria-current="page"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.header-style-b .panel-nav--sections .current-menu-item > a,
.header-style-b .panel-nav--sections a[aria-current="page"] { color: #FFFFFF; }
.header-style-b .panel-nav--sections .current-menu-item > a::after,
.header-style-b .panel-nav--sections a[aria-current="page"]::after { background: var(--scn-red); }
.panel-nav--info { margin-top: 24px; }
.panel-nav--info a { display: flex; align-items: center; min-height: 44px; color: var(--p-muted); font-size: 16px; text-decoration: none; }
.menu-panel__date { margin: 24px 0 0; font-size: 13px; color: var(--p-muted); }
.header-style-c .panel-nav--sections ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.header-style-c .panel-nav--sections a { min-height: 64px; padding: 0 14px; border: 0; background: #F3F1EC; font-family: var(--scn-sans); font-size: 17px; }
.header-style-c .panel-nav--sections .current-menu-item > a,
.header-style-c .panel-nav--sections a[aria-current="page"] { background: var(--scn-red); color: #FFFFFF; }
body.scn-panel-open { overflow: hidden; }

/* ---------- Ads ---------- */
.ad-slot { margin: 20px auto; text-align: center; overflow: hidden; }
.ad-slot__label { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--scn-slate); }
.ad-slot--header { min-height: 50px; }
@media (min-width: 1024px) { .ad-slot--header { min-height: 90px; } }
.ad-slot--inline { margin: 32px 0; font-family: var(--scn-sans); }
.ad-slot .widget_ad .ad-slot__label { display: none; }
.widget_ad { text-align: center; }
.widget_ad .ad-slot__label { margin: 0 0 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--scn-slate); }
.widget_ad img { margin: 0 auto; }
.site-footer .widget_ad .ad-slot__label { color: var(--scn-mist); }
.ad-slot--side { display: none; margin: 0; }
@media (min-width: 1024px) {
	.home-top.has-side-ad { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
	.home-top__main { min-width: 0; }
	.ad-slot--side { display: block; max-width: 300px; position: sticky; top: 72px; }
	.sidebar .widget_ad:last-child { position: sticky; top: 72px; }
}
.home-sidebar { margin-top: 32px; }
.ad-slot img, .ad-slot iframe { margin: 0 auto; }

/* ---------- Shared content pieces ---------- */
.site-main { padding: 24px 0 48px; }
.kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--scn-red);
	text-decoration: none;
}
.kicker:hover { color: var(--scn-navy); text-decoration: underline; }
.meta { margin: 0; font-size: 13px; color: var(--scn-slate); }
.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 40px 0 20px;
	padding-top: 10px;
	border-top: 3px solid var(--scn-navy);
}
.section-head h2 { margin: 0; font-family: var(--scn-serif); font-size: 26px; font-weight: 700; color: var(--scn-navy); }
.section-head h2 a { color: inherit; text-decoration: none; }
.section-head h2 a:hover { color: var(--scn-red); }
.section-head__more { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }

.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--scn-placeholder); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__title { margin: 0; font-family: var(--scn-serif); font-size: 20px; font-weight: 600; line-height: 1.2; text-wrap: pretty; }
.card__title a, .row-item__title a, .story-list a { color: var(--scn-ink); text-decoration: none; }
.card__title a:hover, .row-item__title a:hover, .story-list a:hover { color: var(--scn-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card__excerpt { margin: 0; color: var(--scn-ink-soft); font-size: 15px; }

.card--lead .card__title { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.01em; }
.card--lead .card__excerpt { font-family: var(--scn-serif); font-size: 19px; line-height: 1.45; }
@media (min-width: 768px) {
	.card--lead { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
	.card--lead .card__body { gap: 12px; }
}
.card--feature .card__title { font-size: 26px; }

.grid { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li { padding: 12px 0; border-bottom: 1px solid var(--scn-rule); }
.story-list li:first-child { padding-top: 0; }
.story-list h3 { margin: 0 0 4px; font-family: var(--scn-serif); font-size: 18px; font-weight: 600; line-height: 1.25; }

.row-item { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--scn-rule); }
.row-item:not(.has-post-thumbnail) { grid-template-columns: minmax(0, 1fr); }
.row-item__body { display: flex; flex-direction: column; gap: 6px; }
.row-item__title { margin: 0; font-family: var(--scn-serif); font-size: 20px; font-weight: 600; line-height: 1.2; }
.row-item__excerpt { display: none; margin: 0; color: var(--scn-ink-soft); font-size: 15px; }
.row-item .card__media { order: 2; }
@media (min-width: 768px) {
	.row-item { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
	.row-item__title { font-size: 24px; }
	.row-item__excerpt { display: block; }
}

/* ---------- Homepage ---------- */
.home-lead { padding-bottom: 8px; }
.home-columns { display: grid; gap: 8px 48px; }
@media (min-width: 1024px) { .home-columns { grid-template-columns: minmax(0, 1fr) 320px; } }
.section-block__body { display: grid; gap: 24px; }
@media (min-width: 768px) { .section-block__body { grid-template-columns: 3fr 2fr; } }
.story-list--latest time { display: block; font-size: 12px; font-weight: 600; color: var(--scn-slate); margin-bottom: 2px; }

/* ---------- Sidebar and widgets ---------- */
.sidebar { min-width: 0; }
.sidebar .widget { margin: 0 0 32px; }
.widget-title {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--scn-rule);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--scn-slate);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; }

/* ---------- Article ---------- */
.article-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .article-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 300px; } }
.article { min-width: 0; }
.article-header { max-width: 780px; }
.entry-title {
	margin: 8px 0 12px;
	font-family: var(--scn-serif);
	font-weight: 600;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.06;
	letter-spacing: -0.015em;
}
.standfirst { margin: 0 0 16px; font-family: var(--scn-serif); font-size: 21px; line-height: 1.45; color: var(--scn-ink-soft); }
.byline {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--scn-rule);
	border-bottom: 1px solid var(--scn-rule);
	font-size: 14px;
	color: var(--scn-slate);
}
.byline a { color: var(--scn-ink); font-weight: 600; text-decoration: none; }
.byline a:hover { color: var(--scn-red); text-decoration: underline; }
.featured { margin: 24px 0; }
.featured img { width: 100%; }
.featured figcaption, .wp-caption-text, .wp-element-caption, figure figcaption {
	padding: 8px 0;
	font-family: var(--scn-sans);
	font-size: 14px;
	line-height: 1.45;
	color: var(--scn-slate);
}
.entry-content { max-width: 68ch; font-family: var(--scn-serif); font-size: 19px; line-height: 1.6; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; margin-bottom: 0.5em; line-height: 1.2; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 23px; }
.entry-content a { color: var(--scn-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--scn-red); }
.entry-content blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--scn-red); font-size: 22px; font-style: italic; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.5em 0; }
.entry-content iframe, .entry-content embed, .entry-content object { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--scn-sans); font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 8px; border-bottom: 1px solid var(--scn-rule); text-align: left; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.gallery-caption, .sticky, .bypostauthor { /* WordPress core classes */ }
.page-links { margin: 24px 0; font-family: var(--scn-sans); }

.article-footer { max-width: 68ch; margin-top: 32px; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; font-size: 14px; }
.tags__label { font-weight: 700; color: var(--scn-slate); margin-right: 4px; }
.tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--scn-rule-strong); color: var(--scn-ink); text-decoration: none; }
.tags a:hover { border-color: var(--scn-red); color: var(--scn-red); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font-size: 14px; font-weight: 700; color: var(--scn-slate); margin-right: 4px; }
.share a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--scn-rule-strong);
	color: var(--scn-navy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.share a:hover { border-color: var(--scn-navy); background: var(--scn-navy); color: #FFFFFF; }

/* ---------- Archives, search, pages ---------- */
.archive-header { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 3px solid var(--scn-navy); }
.archive-title { margin: 0; font-family: var(--scn-serif); font-size: clamp(32px, 5vw, 44px); font-weight: 700; color: var(--scn-navy); line-height: 1.1; }
.archive-description { margin-top: 8px; color: var(--scn-ink-soft); max-width: 68ch; }
.archive-description p { margin: 0; }
.archive-lead { padding-bottom: 24px; border-bottom: 1px solid var(--scn-rule); }
.search-again { margin: 16px 0 8px; }
.page-content { max-width: 780px; }
.no-results { padding: 24px 0; }

.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--scn-rule-strong);
	color: var(--scn-navy);
	font-weight: 600;
	text-decoration: none;
}
.page-numbers.current { background: var(--scn-navy); border-color: var(--scn-navy); color: #FFFFFF; }
.page-numbers.dots { border: 0; }
a.page-numbers:hover { border-color: var(--scn-navy); }

/* ---------- Comments ---------- */
.comments-area { max-width: 68ch; margin-top: 48px; }
.comments-title, .comment-reply-title { font-family: var(--scn-serif); font-size: 26px; color: var(--scn-navy); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--scn-rule); }
.comment-meta { font-size: 14px; color: var(--scn-slate); }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--scn-rule-strong);
	background: #FFFFFF;
	font: inherit;
}
.comment-form .submit, .button {
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	background: var(--scn-navy);
	color: #FFFFFF;
	font-weight: 700;
	cursor: pointer;
}
.comment-form .submit:hover, .button:hover { background: var(--scn-red); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; padding: 40px 0 24px; background: var(--scn-navy); color: #DCE4EE; font-size: 15px; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.footer-brand .brand__link { color: #FFFFFF; }
.footer-brand .brand__mark { color: #FFFFFF; width: 32px; height: 32px; }
.footer-brand .brand__name { font-size: 28px; }
.footer-brand p { margin: 12px 0 0; color: var(--scn-mist); }
.footer-title, .site-footer .widget-title { margin: 0 0 12px; padding: 0; border: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--scn-mist); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 13px;
	color: var(--scn-mist);
}
.footer-bottom p { margin: 0; }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .masthead__search, .search-toggle, .menu-toggle, .primary-nav, .compact-bar, .menu-panel, .search-drawer, .ad-slot, .sidebar, .share, .site-footer, .breaking { display: none !important; }
	body { background: #FFFFFF; }
}
