/*
Theme Name: Scoop Earth Wire
Theme URI: https://scoopearthbreakingnews.com/
Author: Scoop Earth Breaking News
Description: A hand-built wire-desk theme for Scoop Earth Breaking News. A slim utility rail with the live wire clock, a masthead that carries the latest headlines beside the logo, a timestamped news river on the homepage, a desk-index rail, and single stories set in a narrow measure with a left-hand filing gutter. Newsprint paper, ink black and wire orange; Libre Franklin headlines, Source Sans body, IBM Plex Mono for wire times and data.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scoop-earth-wire
Tags: news, blog, magazine, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   Scoop Earth Wire — the wire room
   Paper #faf7f1 · Ink #17140f · Wire orange #e4572e
   Hairline #e4ddd0 · Soft panel #f3eee3
   ============================================================ */

:root {
	--sew-paper: #faf7f1;
	--sew-panel: #f3eee3;
	--sew-ink: #17140f;
	--sew-ink-soft: #3d382f;
	--sew-muted: #7a7263;
	--sew-line: #e4ddd0;
	--sew-line-dark: #c9c0ab;
	--sew-wire: #e4572e;
	--sew-wire-dark: #c2431f;
	--sew-flash-bg: #17140f;
	--sew-max: 1240px;
	--sew-measure: 728px;
	--font-display: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--sew-paper);
	color: var(--sew-ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--sew-ink);
	text-decoration: underline;
	text-decoration-color: var(--sew-line-dark);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--sew-wire-dark);
	text-decoration-color: var(--sew-wire);
}

::selection {
	background: var(--sew-wire);
	color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.sew-wrap {
	max-width: var(--sew-max);
	margin: 0 auto;
	padding: 0 20px;
	min-width: 0;
}

/* ---------- Utility rail : the wire clock ---------- */

.sew-utility {
	background: var(--sew-ink);
	color: #efe9dc;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sew-utility-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 22px;
	padding-top: 7px;
	padding-bottom: 7px;
	min-width: 0;
}

.sew-utility .sew-wire-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sew-wire);
	margin-right: 8px;
	vertical-align: 1px;
}

.sew-utility nav {
	margin-left: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}

.sew-utility a {
	color: #efe9dc;
	text-decoration: none;
}

.sew-utility a:hover {
	color: var(--sew-wire);
}

/* ---------- Masthead : logo + headlines on the wire ---------- */

.sew-masthead {
	border-bottom: 3px double var(--sew-ink);
}

.sew-masthead-inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 14px 44px;
	align-items: center;
	padding-top: 20px;
	padding-bottom: 18px;
}

.sew-brand {
	min-width: 0;
}

.sew-brand a {
	text-decoration: none;
}

.sew-brand img.custom-logo {
	max-height: 74px;
	width: auto;
	max-width: 100%;
}

.sew-wordmark {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(30px, 4.6vw, 46px);
	line-height: 0.98;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.sew-wordmark .sew-wordmark-earth {
	color: var(--sew-wire);
}

.sew-tagline {
	margin: 6px 0 0;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sew-muted);
}

.sew-masthead-wire {
	min-width: 0;
	border-left: 1px solid var(--sew-line);
	padding-left: 26px;
}

.sew-masthead-wire-title {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sew-wire-dark);
	margin: 0 0 8px;
}

.sew-masthead-wire ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sew-masthead-wire li {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 5px 0;
	border-top: 1px dotted var(--sew-line-dark);
	min-width: 0;
}

.sew-masthead-wire li:first-child {
	border-top: 0;
	padding-top: 0;
}

.sew-masthead-wire time {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--sew-muted);
	flex: 0 0 auto;
}

.sew-masthead-wire a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15.5px;
	line-height: 1.25;
	text-decoration: none;
	min-width: 0;
	overflow-wrap: break-word;
}

/* ---------- Desk nav ---------- */

.sew-nav {
	border-bottom: 1px solid var(--sew-ink);
	background: var(--sew-paper);
	position: relative;
	z-index: 40;
}

.sew-nav-inner {
	display: flex;
	align-items: stretch;
	gap: 10px;
	min-width: 0;
}

.sew-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
}

.sew-nav-menu li {
	position: relative;
}

.sew-nav-menu a {
	display: block;
	padding: 11px 13px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 13.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.sew-nav-menu a:hover {
	background: var(--sew-ink);
	color: var(--sew-paper);
}

.sew-nav-menu .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	background: var(--sew-paper);
	border: 1px solid var(--sew-ink);
	min-width: 210px;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 50;
}

.sew-nav-menu li:hover > .sub-menu,
.sew-nav-menu li:focus-within > .sub-menu {
	display: block;
}

.sew-nav-menu .sub-menu a {
	padding: 8px 14px;
	white-space: normal;
}

.sew-nav-desk {
	margin-left: auto;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

.sew-nav-desk a {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sew-wire-dark);
	text-decoration: none;
	border: 1px solid var(--sew-wire);
	padding: 5px 10px;
	white-space: nowrap;
}

.sew-nav-desk a:hover {
	background: var(--sew-wire);
	color: #fff;
}

.sew-nav-toggle {
	display: none;
	margin-left: auto;
	background: var(--sew-ink);
	color: var(--sew-paper);
	border: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 10px 14px;
	cursor: pointer;
}

/* ---------- Flash : the top story ---------- */

.sew-flash {
	background: var(--sew-flash-bg);
	color: #f4efe4;
	margin-top: 22px;
}

.sew-flash-inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 0 40px;
	padding-top: 30px;
	padding-bottom: 30px;
	align-items: center;
}

.sew-flash-text {
	min-width: 0;
	padding: 6px 0;
}

.sew-kicker {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sew-wire);
	margin: 0 0 12px;
}

.sew-flash .sew-kicker {
	color: #ff8a5f;
}

.sew-flash h1,
.sew-flash h2 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(30px, 4.4vw, 52px);
	line-height: 1.04;
	letter-spacing: -0.015em;
	margin: 0 0 14px;
	overflow-wrap: break-word;
}

.sew-flash h1 a,
.sew-flash h2 a {
	color: #f4efe4;
	text-decoration: none;
}

.sew-flash h1 a:hover,
.sew-flash h2 a:hover {
	color: #ffb59d;
}

.sew-standfirst {
	font-size: 19px;
	line-height: 1.5;
	color: #d9d2c0;
	margin: 0 0 16px;
}

.sew-byline {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a89e86;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.sew-flash-media {
	min-width: 0;
}

.sew-flash-media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border: 1px solid #3a352b;
}

.sew-flash-media figcaption {
	font-family: var(--font-mono);
	font-size: 11px;
	color: #a89e86;
	margin-top: 7px;
	letter-spacing: 0.04em;
}

/* ---------- Homepage body : river + desk index ---------- */

.sew-home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 0 44px;
	margin-top: 34px;
	align-items: start;
}

.sew-section-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	border-bottom: 2px solid var(--sew-ink);
	padding-bottom: 8px;
	margin-bottom: 6px;
	min-width: 0;
}

.sew-section-head h2 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 21px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0;
}

.sew-section-head .sew-section-note {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sew-muted);
	margin-left: auto;
	text-align: right;
}

/* The wire river : timestamped story rows */

.sew-river {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sew-river-item {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	gap: 0 16px;
	padding: 15px 0 14px;
	border-bottom: 1px solid var(--sew-line);
	min-width: 0;
}

.sew-river-time {
	font-family: var(--font-mono);
	font-size: 12.5px;
	font-weight: 600;
	color: var(--sew-wire-dark);
	padding-top: 4px;
	white-space: nowrap;
}

.sew-river-time .sew-river-day {
	display: block;
	font-weight: 400;
	font-size: 10.5px;
	color: var(--sew-muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-top: 2px;
}

.sew-river-body {
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 132px;
	gap: 0 18px;
	align-items: start;
}

.sew-river-main {
	min-width: 0;
}

.sew-desk-tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sew-ink);
	text-decoration: none;
	margin-bottom: 5px;
}

.sew-desk-tag::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background: var(--sew-wire);
	margin-right: 7px;
	vertical-align: 1px;
}

.sew-river-item h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 20px;
	line-height: 1.22;
	margin: 0 0 6px;
	overflow-wrap: break-word;
}

.sew-river-item h3 a {
	text-decoration: none;
}

.sew-river-item p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--sew-ink-soft);
}

.sew-river-thumb {
	min-width: 0;
}

.sew-river-thumb img {
	width: 132px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.sew-more-wire {
	margin: 20px 0 0;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sew-more-wire a {
	text-decoration: none;
	border-bottom: 2px solid var(--sew-wire);
	padding-bottom: 2px;
}

/* Desk index rail */

.sew-rail {
	min-width: 0;
	border-left: 1px solid var(--sew-line);
	padding-left: 26px;
}

.sew-rail > section {
	margin-bottom: 30px;
}

.sew-rail h2,
.sew-rail .widget-title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--sew-ink);
}

.sew-desk-index {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 22px;
}

.sew-desk-index li {
	break-inside: avoid;
	border-bottom: 1px dotted var(--sew-line-dark);
}

.sew-desk-index a {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	min-width: 0;
}

.sew-desk-index .sew-count {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--sew-muted);
}

.sew-most-read {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: sew-mr;
}

.sew-most-read li {
	counter-increment: sew-mr;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 0 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--sew-line);
	align-items: start;
}

.sew-most-read li::before {
	content: counter(sew-mr);
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 22px;
	line-height: 1;
	color: var(--sew-wire);
}

.sew-most-read a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
	min-width: 0;
	overflow-wrap: break-word;
}

.sew-nw-panel {
	background: var(--sew-panel);
	border-top: 3px solid var(--sew-wire);
	padding: 16px 16px 10px;
}

.sew-nw-panel h2 {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 8px;
}

.sew-nw-panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sew-nw-panel li {
	padding: 7px 0;
	border-top: 1px dotted var(--sew-line-dark);
}

.sew-nw-panel a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
}

.sew-nw-panel .sew-panel-more {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 8px 0 6px;
}

.sew-about-box p {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--sew-ink-soft);
	margin: 0;
}

/* Desk sections on the homepage */

.sew-desk-section {
	margin-top: 38px;
}

.sew-desk-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 44px;
	margin-top: 14px;
}

.sew-desk-lead {
	min-width: 0;
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 0 18px;
	align-items: start;
}

.sew-desk-lead img {
	width: 168px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.sew-desk-lead h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 19px;
	line-height: 1.25;
	margin: 0 0 6px;
	overflow-wrap: break-word;
}

.sew-desk-lead h3 a {
	text-decoration: none;
}

.sew-desk-lead p {
	margin: 0;
	font-size: 15px;
	color: var(--sew-ink-soft);
}

.sew-desk-list {
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.sew-desk-list li {
	padding: 8px 0 8px 16px;
	border-bottom: 1px solid var(--sew-line);
	position: relative;
}

.sew-desk-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 16px;
	width: 6px;
	height: 6px;
	background: var(--sew-wire);
}

.sew-desk-list a {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: break-word;
}

.sew-desk-list time {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--sew-muted);
	margin-top: 2px;
	letter-spacing: 0.05em;
}

/* ---------- Single story ---------- */

.sew-single-grid {
	display: grid;
	grid-template-columns: 148px minmax(0, var(--sew-measure));
	gap: 0 40px;
	justify-content: center;
	margin-top: 30px;
	align-items: start;
}

.sew-gutter {
	position: sticky;
	top: 18px;
	font-family: var(--font-mono);
	font-size: 12px;
	min-width: 0;
}

.sew-gutter dl {
	margin: 0;
	border-top: 2px solid var(--sew-ink);
}

.sew-gutter dt {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 10.5px;
	color: var(--sew-muted);
	margin-top: 13px;
}

.sew-gutter dd {
	margin: 3px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--sew-ink);
	overflow-wrap: break-word;
}

.sew-gutter dd a {
	text-decoration: none;
	font-weight: 600;
}

.sew-gutter .sew-gutter-desk {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sew-story {
	min-width: 0;
}

.sew-story-head .sew-kicker {
	margin-bottom: 10px;
}

.sew-story-head h1 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(29px, 4.2vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.012em;
	margin: 0 0 14px;
	overflow-wrap: break-word;
}

.sew-story-standfirst {
	font-size: 19.5px;
	line-height: 1.5;
	color: var(--sew-ink-soft);
	border-left: 3px solid var(--sew-wire);
	padding-left: 16px;
	margin: 0 0 20px;
}

.sew-story-meta {
	display: none;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sew-muted);
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-bottom: 16px;
}

.sew-hero {
	margin: 0 0 24px;
}

.sew-hero img {
	width: 100%;
}

.sew-hero figcaption {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--sew-muted);
	margin-top: 7px;
	letter-spacing: 0.03em;
}

/* Story body + the in-article tables (The Scoop File et al.) */

.entry-content {
	font-size: 18px;
	line-height: 1.68;
	overflow-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1.15em;
}

.entry-content h2 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 25px;
	line-height: 1.2;
	margin: 1.5em 0 0.55em;
	padding-top: 0.7em;
	border-top: 1px solid var(--sew-line);
	overflow-wrap: break-word;
}

.entry-content h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1.25;
	margin: 1.4em 0 0.5em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.15em;
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--sew-ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.4;
}

.entry-content a {
	color: var(--sew-wire-dark);
	text-decoration-color: var(--sew-wire);
}

.entry-content img {
	margin: 1.2em 0;
}

.entry-content figure {
	margin: 1.2em 0;
}

.entry-content figcaption {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--sew-muted);
	margin-top: 6px;
}

/* In-article data tables — wire data panels. On narrow screens the
   table scrolls inside its own box; the page never scrolls sideways. */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: 15.5px;
	line-height: 1.45;
	margin: 1.4em 0;
	background: #fff;
	border: 1px solid var(--sew-line-dark);
	border-top: 3px solid var(--sew-ink);
}

.entry-content table th,
.entry-content table td {
	text-align: left;
	padding: 9px 12px;
	border-bottom: 1px solid var(--sew-line);
	vertical-align: top;
	overflow-wrap: break-word;
}

.entry-content table thead th,
.entry-content table tr:first-child th {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: var(--sew-panel);
	border-bottom: 2px solid var(--sew-ink);
}

.entry-content table tr th:first-child,
.entry-content table tr td:first-child {
	font-weight: 600;
	width: 34%;
}

.entry-content table tbody tr:nth-child(even),
.entry-content table tr:nth-child(even) {
	background: #fdfbf7;
}

.sew-tags {
	margin: 26px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--sew-line);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sew-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
}

.sew-tags a {
	text-decoration: none;
	border: 1px solid var(--sew-line-dark);
	padding: 3px 8px;
	color: var(--sew-ink);
}

.sew-author-box {
	display: flex;
	gap: 16px;
	margin-top: 26px;
	padding: 16px;
	background: var(--sew-panel);
	align-items: flex-start;
	min-width: 0;
}

.sew-author-box img {
	border-radius: 50%;
	flex: 0 0 auto;
}

.sew-author-box h3 {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sew-muted);
	margin: 0 0 4px;
}

.sew-author-box .sew-author-name {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 17px;
	margin: 0 0 4px;
}

.sew-author-box p {
	margin: 0;
	font-size: 14.5px;
	color: var(--sew-ink-soft);
}

/* Earlier / later on the wire */

.sew-wire-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 28px;
	margin-top: 30px;
	border-top: 2px solid var(--sew-ink);
	padding-top: 16px;
}

.sew-wire-nav div {
	min-width: 0;
}

.sew-wire-nav .sew-wire-nav-next {
	text-align: right;
}

.sew-wire-nav span {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sew-wire-dark);
	margin-bottom: 5px;
}

.sew-wire-nav a {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16.5px;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: break-word;
}

/* More from the desk */

.sew-related {
	margin-top: 34px;
}

.sew-related-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sew-related-list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--sew-line);
	align-items: center;
	min-width: 0;
}

.sew-related-list li.sew-has-thumb {
	grid-template-columns: 96px minmax(0, 1fr);
}

.sew-related-list img {
	width: 96px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.sew-related-list a {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: break-word;
}

.sew-related-list time {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--sew-muted);
	margin-top: 3px;
}

/* ---------- Archive / category / search ---------- */

.sew-archive-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 0 44px;
	margin-top: 30px;
	align-items: start;
}

.sew-desk-head {
	border-bottom: 3px double var(--sew-ink);
	padding-bottom: 14px;
	margin-bottom: 4px;
}

.sew-desk-head h1 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(28px, 4vw, 42px);
	text-transform: uppercase;
	letter-spacing: -0.01em;
	margin: 0 0 6px;
	overflow-wrap: break-word;
}

.sew-desk-head p {
	margin: 0;
	font-size: 16.5px;
	color: var(--sew-ink-soft);
	max-width: 62ch;
}

.sew-desk-head .sew-desk-count {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sew-wire-dark);
	margin-bottom: 8px;
}

.sew-pagination {
	margin: 26px 0 6px;
	font-family: var(--font-mono);
	font-size: 13px;
}

.sew-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sew-pagination a,
.sew-pagination span {
	display: inline-block;
	padding: 6px 11px;
	border: 1px solid var(--sew-line-dark);
	text-decoration: none;
}

.sew-pagination .current {
	background: var(--sew-ink);
	color: var(--sew-paper);
	border-color: var(--sew-ink);
}

/* ---------- Sidebar (classic widget areas) ---------- */

.sew-sidebar {
	min-width: 0;
	border-left: 1px solid var(--sew-line);
	padding-left: 26px;
}

.sew-sidebar .widget {
	margin-bottom: 30px;
}

.sew-sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sew-sidebar .widget li {
	padding: 6px 0;
	border-bottom: 1px dotted var(--sew-line-dark);
	font-size: 15px;
}

.sew-sidebar .widget a {
	text-decoration: none;
}

/* ---------- Page ---------- */

.sew-page-grid {
	max-width: var(--sew-measure);
	margin: 30px auto 0;
	min-width: 0;
}

.sew-page-grid h1 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.1;
	margin: 0 0 18px;
	overflow-wrap: break-word;
}

/* ---------- Search ---------- */

.sew-search-form {
	display: flex;
	gap: 0;
	max-width: 560px;
	margin: 18px 0 6px;
	min-width: 0;
}

.sew-search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	font-family: var(--font-body);
	font-size: 16px;
	padding: 10px 12px;
	border: 1px solid var(--sew-ink);
	border-right: 0;
	background: #fff;
	color: var(--sew-ink);
}

.sew-search-form button {
	flex: 0 0 auto;
	background: var(--sew-ink);
	color: var(--sew-paper);
	border: 1px solid var(--sew-ink);
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 10px 16px;
	cursor: pointer;
}

.sew-search-panel {
	display: none;
	border-bottom: 1px solid var(--sew-ink);
	padding: 14px 0 18px;
}

.sew-search-panel.is-open {
	display: block;
}

/* ---------- 404 ---------- */

.sew-404 {
	max-width: var(--sew-measure);
	margin: 44px auto 0;
	min-width: 0;
}

.sew-404 h1 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.05;
	margin: 0 0 12px;
}

.sew-404 .sew-404-code {
	font-family: var(--font-mono);
	color: var(--sew-wire-dark);
	letter-spacing: 0.16em;
	font-size: 13px;
	text-transform: uppercase;
}

/* ---------- Comments ---------- */

.sew-comments {
	margin-top: 36px;
	border-top: 2px solid var(--sew-ink);
	padding-top: 18px;
}

.sew-comments h2,
.sew-comments h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 20px;
	margin: 0 0 14px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment {
	border-bottom: 1px solid var(--sew-line);
	padding: 14px 0;
}

.comment-list .children {
	list-style: none;
	margin: 10px 0 0;
	padding-left: 22px;
	border-left: 2px solid var(--sew-line);
}

.comment-author {
	font-family: var(--font-display);
	font-weight: 700;
}

.comment-metadata {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--sew-muted);
}

.comment-content p {
	margin: 8px 0;
	font-size: 16px;
}

.comment-form label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sew-muted);
	margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: 16px;
	padding: 9px 11px;
	border: 1px solid var(--sew-line-dark);
	background: #fff;
	color: var(--sew-ink);
}

.comment-form .submit {
	background: var(--sew-ink);
	color: var(--sew-paper);
	border: 0;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 11px 18px;
	cursor: pointer;
}

/* ---------- Footer ---------- */

.sew-footer {
	background: var(--sew-ink);
	color: #e9e2d2;
	margin-top: 54px;
}

.sew-footer-main {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr);
	gap: 0 40px;
	padding-top: 38px;
	padding-bottom: 30px;
}

.sew-footer-main > div {
	min-width: 0;
}

.sew-footer-brand .sew-wordmark {
	font-size: 27px;
	color: #f4efe4;
}

.sew-footer-brand img.custom-logo {
	max-height: 52px;
	width: auto;
	background: var(--sew-paper);
	padding: 6px 8px;
}

.sew-footer-brand p {
	font-size: 14.5px;
	line-height: 1.55;
	color: #b6ac94;
	margin: 12px 0 0;
	max-width: 34ch;
}

.sew-footer h2 {
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #ff8a5f;
	margin: 4px 0 13px;
}

.sew-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sew-footer li {
	padding: 5px 0;
}

.sew-footer a {
	color: #e9e2d2;
	text-decoration: none;
	font-size: 15px;
}

.sew-footer a:hover {
	color: #ffb59d;
}

.sew-footer .widget {
	margin-bottom: 22px;
}

.sew-footer-contact p {
	font-size: 14.5px;
	line-height: 1.55;
	color: #b6ac94;
	margin: 0 0 10px;
}

.sew-footer-desks {
	columns: 2;
	column-gap: 24px;
}

.sew-footer-desks li {
	break-inside: avoid;
}

.sew-copyright {
	border-top: 1px solid #38332a;
	padding: 15px 0 17px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: #a89e86;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.sew-copyright .sew-copyright-note {
	margin-left: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
	.sew-home-grid,
	.sew-archive-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px 0;
	}

	.sew-rail,
	.sew-sidebar {
		border-left: 0;
		padding-left: 0;
		border-top: 2px solid var(--sew-ink);
		padding-top: 22px;
	}

	.sew-desk-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px 0;
	}
}

@media (max-width: 860px) {
	.sew-masthead-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px 0;
	}

	.sew-masthead-wire {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--sew-line);
		padding-top: 12px;
	}

	.sew-flash-inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px 0;
		padding-top: 24px;
		padding-bottom: 24px;
	}

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

	.sew-gutter {
		display: none;
	}

	.sew-story-meta {
		display: flex;
	}

	.sew-footer-main {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 26px 30px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.sew-wrap {
		padding: 0 14px;
	}

	.sew-nav-menu {
		display: none;
		width: 100%;
		flex-direction: column;
		padding: 6px 0 10px;
	}

	.sew-nav.is-open .sew-nav-menu {
		display: flex;
	}

	.sew-nav-menu a {
		white-space: normal;
		padding: 9px 4px;
		border-bottom: 1px dotted var(--sew-line-dark);
	}

	.sew-nav-menu .sub-menu {
		position: static;
		display: block;
		border: 0;
		padding-left: 14px;
	}

	.sew-nav-toggle {
		display: block;
	}

	.sew-nav-desk {
		display: none;
	}

	.sew-nav-inner {
		flex-wrap: wrap;
		align-items: center;
		padding: 6px 0;
	}

	.sew-river-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px 0;
		padding: 13px 0 12px;
	}

	.sew-river-time .sew-river-day {
		display: inline;
		margin-left: 6px;
	}

	.sew-river-body {
		grid-template-columns: minmax(0, 1fr) 92px;
		gap: 0 12px;
	}

	.sew-river-thumb img {
		width: 92px;
	}

	.sew-river-item h3 {
		font-size: 18px;
	}

	.sew-desk-lead {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px 0;
	}

	.sew-desk-lead img {
		width: 100%;
		max-width: 320px;
	}

	.sew-wire-nav {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px 0;
	}

	.sew-wire-nav .sew-wire-nav-next {
		text-align: left;
	}

	.sew-related-list li.sew-has-thumb {
		grid-template-columns: 76px minmax(0, 1fr);
	}

	.sew-related-list img {
		width: 76px;
	}

	.entry-content {
		font-size: 17px;
	}

	/* Data tables scroll inside their own frame on small screens. */
	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.entry-content table tbody,
	.entry-content table thead {
		display: table;
		width: 100%;
	}

	.sew-footer-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px 0;
		padding-top: 30px;
	}

	.sew-copyright .sew-copyright-note {
		margin-left: 0;
	}

	.sew-utility nav {
		margin-left: 0;
	}
}
