/*
Theme Name: RSE Editorial
Theme URI: https://realsocioeconomics.com/
Description: Publication theme for Real Socioeconomics — research library with subject and format filters, focus-area pages, article reading tools, ad slots and Jetpack-friendly social cards.
Version: 2.3.4
Author: Real Socioeconomics
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rse-editorial
*/

/* ------------------------------------------------------------------ Fonts (self-hosted, SIL OFL) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(assets/fonts/newsreader-latin-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(assets/fonts/newsreader-latin-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }

/* ------------------------------------------------------------------ Tokens */
:root {
	--ink: #152c3d;
	--ink-2: #22405a;
	--muted: #5d6b74;
	--paper: #faf9f6;
	--sand: #efeee7;
	--line: #d9dcd9;
	--line-strong: #b9bfbe;
	--gold: #9a7139;
	--gold-text: #85602e;
	--white: #fff;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 2px;
}

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b08a50; outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -0.02em; margin: 14px 0 22px; }
h2 { font-size: clamp(28px, 3vw, 36px); }
h3 { font-size: 24px; }
p { text-wrap: pretty; }
.icon { display: inline-block; vertical-align: -3px; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10000; background: var(--white); padding: 12px 16px; border: 2px solid var(--ink); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { min-height: 50vh; }

.eyebrow { margin: 0; font: 600 11px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow a { color: inherit; }
.meta { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.meta a { color: var(--ink); }
.lead, .lede { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 62ch; }
.action { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.action:hover { text-decoration: none; border-bottom-width: 2px; }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--ink); color: var(--white); font-size: 14px; font-weight: 500; border-radius: var(--radius); }
.button:hover { background: var(--ink-2); text-decoration: none; }
.empty { padding: 40px 0; color: var(--muted); }

/* ------------------------------------------------------------------ Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 50; }
.masthead { display: flex; align-items: center; gap: 32px; padding-block: 26px; }
.brand { display: flex; align-items: center; gap: 16px; flex: none; }
.brand:hover { text-decoration: none; }
.brand strong { font: 500 46px/1 var(--serif); letter-spacing: -0.06em; }
.brand span { font-size: 10px; line-height: 1.45; letter-spacing: .2em; text-transform: uppercase; border-left: 1px solid var(--gold); padding-left: 16px; }
.site-nav { margin-left: auto; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a, .site-nav .submenu-toggle:not(.submenu-chevron) { display: inline-block; padding: 6px 0; border: 0; background: none; border-bottom: 2px solid transparent; }
.site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a, .site-nav .current-menu-ancestor > .submenu-toggle, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav .submenu-toggle { display: inline-flex; align-items: center; gap: 8px; }
.site-nav .submenu-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.site-nav .is-open > .submenu-toggle::after { transform: translateY(1px) rotate(225deg); }
.site-nav .submenu-chevron { background: none; border: 0; padding: 6px 2px; margin-left: 2px; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: calc(100% + 8px); left: -18px; min-width: 240px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(21, 44, 61, .08); display: none; }
.site-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-nav .sub-menu a { display: block; padding: 9px 18px; }
.site-nav .sub-menu a:hover { background: var(--sand); text-decoration: none; }
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu,
.site-nav .is-open > .sub-menu { display: block; }

.masthead-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.header-search { position: relative; }
.header-search summary, .nav-toggle { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; cursor: pointer; }
.header-search summary::-webkit-details-marker { display: none; }
.header-search[open] summary { border-color: var(--ink); }
.header-search-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(420px, calc(100vw - 2 * var(--gutter))); background: var(--white); border: 1px solid var(--line); padding: 14px; box-shadow: 0 12px 30px rgba(21, 44, 61, .1); }
.nav-toggle { display: none; color: var(--ink); }
.nav-toggle .nav-toggle-close { display: none; }
.nav-open .nav-toggle .nav-toggle-open { display: none; }
.nav-open .nav-toggle .nav-toggle-close { display: block; }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); background: var(--white); padding: 10px 14px; border-radius: var(--radius); }
.search-form button, .filters button { border: 0; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: var(--radius); font-weight: 500; }
.search-form button:hover, .filters button:hover { background: var(--ink-2); }
.pagehead .search-form { margin-top: 22px; }

/* ------------------------------------------------------------------ Homepage */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: end; padding-block: 56px 40px; }
.intro-title { margin: 0; font-size: clamp(40px, 5vw, 60px); }
.intro-copy p { margin: 0 0 20px; color: var(--muted); font-size: 17px; max-width: 56ch; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 44px 52px; }
.feature-title { margin: 14px 0 18px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.feature-title a:hover { text-decoration-thickness: 1px; }
.feature .lead { margin: 0; }
.feature .action { margin-top: 22px; }
.feature-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-media:hover img { transform: scale(1.02); }

.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 64px; padding-block: 44px 64px; }
.sectionhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin-bottom: 4px; }
.sectionhead h2 { margin: 0; font-size: 28px; }
.sectionhead a { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

.reference { background: var(--sand); padding: 26px; }
.reference h2 { font-size: 28px; margin: 6px 0 4px; }
.reference small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.source-list { list-style: none; margin: 0; padding: 0; }
.source-list a { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #d6d7cf; font-size: 14px; }
.source-list a span { flex: 1; }
.source-list a em { font-style: normal; color: var(--muted); font-size: 12px; }
.source-list a:hover { text-decoration: none; }
.source-list a:hover span { text-decoration: underline; text-underline-offset: 4px; }

.focus-band { background: var(--ink); color: var(--white); padding-block: 52px 60px; }
.sectionhead-light { border-color: rgba(255, 255, 255, .35); }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.focus-card { display: flex; flex-direction: column; gap: 10px; padding: 24px 0 0; border-top: 1px solid var(--gold); }
.focus-card:hover { text-decoration: none; }
.focus-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.focus-card h3 { margin: 0; font-size: 28px; }
.focus-card p { margin: 0; color: #c4cdd1; font-size: 15px; flex: 1; }
.focus-count { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #d9b98a; font-weight: 600; }
.focus-card .action { align-self: flex-start; border-color: #d9b98a; margin-top: 6px; }

.subscribe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 52px; }
.subscribe h2 { margin: 8px 0 0; }

/* Rules that align with the content column, not the gutter */
.intro, .feature, .footer-base { position: relative; }
.intro::after, .feature::after, .footer-base::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.intro::after, .feature::after { bottom: 0; }
.footer-base::before { top: 0; }

/* ------------------------------------------------------------------ Cards */
.card { border-bottom: 1px solid var(--line); }
.card-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 28px; }
.card-compact { padding-block: 22px; }
.card-stack { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; border-bottom: 0; }
.card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-title { margin: 8px 0 10px; font-size: 26px; line-height: 1.15; }
.card-stack .card-title { font-size: 22px; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.card .meta { margin-top: 12px; font-size: 12px; }
.no-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 180px; background: var(--sand); color: #b8b2a2; font: 500 44px/1 var(--serif); letter-spacing: -0.05em; }

/* ------------------------------------------------------------------ Page heads, library */
.pagehead { padding-block: 60px 36px; }
.pagehead > * { max-width: 900px; }
.pagehead h1 { margin-bottom: 18px; }
.pagehead .lede { margin: 0; }
.pagehead .action { margin-top: 18px; }
.prose-intro { margin-top: 18px; font-size: 17px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.field { display: flex; align-items: center; position: relative; }
.field select, .field input { border: 1px solid var(--line-strong); background: var(--white); padding: 10px 14px; border-radius: var(--radius); min-height: 44px; }
.field select { padding-right: 34px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.field-search { flex: 1 1 260px; }
.field-search .icon { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.field-search input { width: 100%; padding-left: 40px; }
.results-bar { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 0; font-size: 13px; color: var(--muted); }
.results-bar a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.library { padding-bottom: 60px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.page-numbers, .post-page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; border: 1px solid var(--line-strong); text-align: center; font-size: 14px; }
.page-numbers.current, .post-page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.page-numbers.dots { border: 0; }
a.page-numbers:hover { text-decoration: none; border-color: var(--ink); }

/* ------------------------------------------------------------------ Focus areas, About */
.wideband { background: var(--ink); color: var(--white); padding: 48px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin: 0 0 48px; }
.wideband h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.wideband p { margin: 0; color: #c9d2d6; font-size: 18px; line-height: 1.75; }
.priorities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 18px 0 48px; }
.priorities section { border-top: 1px solid var(--gold); padding-top: 18px; }
.priorities h3 { margin: 0 0 8px; }
.priorities p { margin: 0; color: var(--muted); font-size: 15px; }
.page-prose { max-width: 760px; margin-bottom: 48px; }
.team { padding-bottom: 64px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px; margin-top: 28px; }
.person { scroll-margin-top: 30px; }
.person h3 { margin: 0 0 4px; font-size: 26px; }
.person-role { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.person-bio { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.person:target h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.team-headshot { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; margin: 0 0 20px; }
.initial { display: grid; place-items: center; width: min(100%, 320px); aspect-ratio: 4 / 5; background: var(--sand); color: var(--gold); font: 400 64px/1 var(--serif); margin-bottom: 20px; }
.rse-email { display: inline-block; margin-top: 10px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ Article */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.articlehead { max-width: 960px; padding-block: 44px 28px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--ink); }
.articlehead h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; margin: 12px 0 18px; }
.dek { font: 400 22px/1.5 var(--serif); color: var(--muted); margin: 0 0 8px; max-width: 46ch; }
.article-hero { margin: 0 0 12px; }
.article-hero img { width: 100%; max-height: 640px; object-fit: cover; display: block; }
.article-hero figcaption { font-size: 12px; color: var(--muted); padding-top: 8px; }

.reading { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding-block: 32px 64px; }
.article-aside { font-size: 13px; color: var(--muted); }
.aside-sticky { position: sticky; top: 28px; }
.aside-block { border-top: 1px solid var(--gold); padding-top: 14px; margin-bottom: 28px; }
.aside-title { font: 600 11px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 0 0 10px; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 8px; padding: 5px 0; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--gold-text); font-variant-numeric: tabular-nums; }
.toc a { color: var(--muted); }
.toc a[aria-current] { color: var(--ink); font-weight: 600; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 10px; justify-content: center; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); border-radius: 18px; font-size: 12px; }
.share-btn:hover { border-color: var(--ink); text-decoration: none; }
.share-btn.is-done { border-color: var(--gold); color: var(--gold-text); }

.prose { font: 400 20px/1.78 var(--serif); color: #1b2b36; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 32px; margin: 1.8em 0 .6em; scroll-margin-top: 24px; }
.prose h3 { font-size: 25px; margin: 1.6em 0 .5em; }
.prose h4 { font: 600 14px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 2em 0 .6em; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }
.prose img { height: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption, .prose .wp-element-caption { font: 13px/1.5 var(--sans); color: var(--muted); margin-top: 10px; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 24px; border-left: 2px solid var(--gold); font-style: italic; }
.prose blockquote cite { display: block; margin-top: 8px; font: normal 13px var(--sans); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font: 15px/1.5 var(--sans); }
.prose .wp-block-table { overflow-x: auto; margin: 2em 0; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
.prose pre { overflow: auto; background: var(--sand); padding: 16px; font-size: 14px; }
.prose code { font-size: .85em; background: var(--sand); padding: .1em .3em; }
.prose iframe, .prose embed, .prose video { max-width: 100%; }
.prose .alignwide { margin-inline: 0; max-width: 100%; }
.prose .alignfull { margin-inline: 0; max-width: 100%; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .wp-block-footnotes { font: 14px/1.6 var(--sans); color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; margin-top: 40px; }
.prose sup a { text-decoration: none; font-family: var(--sans); font-size: .7em; }

/* Editor block styles */
.is-style-rse-takeaway { background: var(--sand); border-left: 3px solid var(--gold); padding: 22px 26px; margin: 2em 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; }
.is-style-rse-takeaway > :first-child { margin-top: 0; }
.is-style-rse-takeaway > :last-child { margin-bottom: 0; }
.is-style-rse-data-note { border: 1px solid var(--line-strong); padding: 16px 20px; font: 14px/1.6 var(--sans); color: var(--muted); margin: 2em 0; }
.is-style-rse-data-note > :last-child { margin-bottom: 0; }
.is-style-rse-pull { border: 0 !important; padding: 0 !important; margin: 2em 0; font: italic 400 30px/1.3 var(--serif) !important; color: var(--ink); }
.is-style-rse-pull::before { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin-bottom: 18px; }
.is-style-rse-data table { font-variant-numeric: tabular-nums; }
.is-style-rse-data td:not(:first-child), .is-style-rse-data th:not(:first-child) { text-align: right; }
.is-style-rse-data tbody tr:nth-child(even) { background: rgba(239, 238, 231, .6); }

/* Jetpack sharing/likes/related inside articles: match the theme */
.prose .sharedaddy, .prose .jp-relatedposts, .prose #jp-post-flair { font-family: var(--sans); font-size: 14px; }
.prose .sd-title, .prose .jp-relatedposts-headline { font-family: var(--sans) !important; font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase; }
.prose .sharedaddy a, .prose .jp-relatedposts a { text-decoration: none; }

.ad-slot { margin: 2.2em 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-family: var(--sans); }
.ad-label { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ad-side { margin-top: 28px; }
.ad-slot .widget-title { display: none; }

.rse-signoff { display: flex; gap: 16px; align-items: center; margin: 44px 0 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.signoff-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.rse-signoff a:first-child { display: block; }
.rse-signoff a:hover { text-decoration: none; }
.rse-signoff a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.rse-signoff strong { display: block; font: 400 24px/1.2 var(--serif); }
.rse-signoff span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
.rse-signoff .rse-email { margin-top: 6px; }

.cite { border: 1px solid var(--line); background: var(--white); padding: 0 18px; margin: 0 0 24px; font-size: 14px; }
.cite summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.cite-text { margin: 0 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.text-btn { border: 0; background: none; padding: 0 0 14px; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 600; }
.text-btn.is-done { color: var(--gold-text); }

.related { padding-block: 8px 56px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 24px; }
.article-comments, .comments { max-width: 720px; margin-left: calc(220px + 64px); padding-bottom: 56px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--line-strong); padding: 10px; background: var(--white); }

/* ------------------------------------------------------------------ Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 0; padding-top: 48px; font-size: 14px; color: var(--muted); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 40px; }
.footbrand { font: 400 24px/1.2 var(--serif); color: var(--ink); }
.footer-brand p { margin: 10px 0 0; max-width: 36ch; }
.footer-col h2 { font: 600 11px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 6px 0 12px; }
.footerlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footerlinks a { color: var(--ink); }
.footer-subscribe form { margin: 0; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px 28px; font-size: 12px; }

/* Jetpack subscribe form */
.subscribe form, .footer-subscribe form { display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe form p, .footer-subscribe form p { margin: 0; }
.subscribe input[type="email"], .footer-subscribe input[type="email"] { flex: 1 1 220px; min-height: 44px; border: 1px solid var(--line-strong) !important; padding: 10px 14px !important; background: var(--white); border-radius: var(--radius) !important; width: 100%; }
.subscribe button, .subscribe input[type="submit"], .footer-subscribe button, .footer-subscribe input[type="submit"] { min-height: 44px; border: 0; background: var(--ink) !important; color: var(--white) !important; padding: 10px 18px !important; border-radius: var(--radius) !important; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1080px) {
	.reading { grid-template-columns: 190px minmax(0, 1fr); gap: 44px; }
	.article-comments, .comments { margin-left: calc(190px + 44px); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.masthead { flex-wrap: wrap; gap: 16px; padding-block: 18px; }
	.brand strong { font-size: 38px; }
	.masthead-tools { margin-left: auto; order: 2; }
	.nav-toggle { display: grid; }
	.site-nav { order: 3; width: 100%; margin: 0; }
	.js .site-nav { display: none; }
	.js .nav-open .site-nav { display: block; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; font-size: 17px; border-top: 1px solid var(--line); }
	.site-nav .menu > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.site-nav .menu > li > a, .site-nav .submenu-toggle:not(.submenu-chevron) { padding: 14px 0; border-bottom: 0; flex: 1; text-align: left; }
	.site-nav .current-menu-item > a, .site-nav a[aria-current="page"] { border-bottom: 0; color: var(--gold-text); }
	.site-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0 0 10px 14px; width: 100%; min-width: 0; }
	.site-nav .sub-menu::before { display: none; }
	.site-nav .sub-menu a { padding: 8px 0; }
	.site-nav .submenu-toggle::after, .site-nav .submenu-chevron { display: none; }

	.intro, .feature, .split, .subscribe, .wideband { grid-template-columns: 1fr; }
	.intro { gap: 20px; padding-block: 36px 32px; }
	.feature { gap: 24px; padding-block: 32px 40px; }
	.feature-media { order: -1; }
	.split { gap: 40px; padding-block: 32px 48px; }
	.focus-grid, .priorities, .related-grid { grid-template-columns: 1fr; }
	.wideband { padding: 30px 26px; gap: 18px; }
	.reading { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
	.article-aside { order: 2; margin-top: 32px; }
	.aside-sticky { position: static; }
	.article-aside .toc { display: none; }
	.article-comments, .comments { margin-left: 0; }
	.pagehead { padding-block: 40px 28px; }
}

@media (max-width: 640px) {
	.card-row { grid-template-columns: 1fr; gap: 16px; }
	.card-title { font-size: 23px; }
	.prose { font-size: 19px; line-height: 1.72; }
	.prose h2 { font-size: 28px; }
	.prose .alignleft, .prose .alignright { float: none; margin: 1.5em 0; max-width: 100%; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.filters .field:not(.field-search) { flex: 1 1 45%; }
	.filters .field select { width: 100%; }
	.filters button { width: 100%; }
	.brand span { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body.admin-bar .aside-sticky { top: 60px; }

/* Homepage data image and centered introduction. */
.intro.intro-visual { isolation: isolate; overflow: hidden; background: #071522; color: #fff; min-height: 380px; align-items: center; padding-block: 64px; margin-top: 28px; margin-bottom: 20px; }
.intro-visual .intro-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.intro-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,12,21,.6), rgba(3,12,21,.65)); z-index: -1; }
.intro-visual::after { display: none; }
.intro-visual .intro-title { align-self: center; text-align: center; color: #fff; line-height: 1.1; }
.intro-visual .intro-copy p { color: #fff; }
.intro-visual .button { background: #fff; color: #152c3d; }
@media (min-width: 901px) {
 .site-nav .submenu-toggle:not(.submenu-chevron) { display: inline-flex; gap: 12px; }
 .site-nav .submenu-chevron { margin-left: 10px; padding-inline: 5px; }
}
.rse-newsletter-details { margin-bottom: 24px; }
.subscribe .rse-newsletter-details form, .footer-subscribe .rse-newsletter-details form { display: block; }
.rse-newsletter-details label { display: block; margin-bottom: 6px; font-size: 14px; }
.rse-newsletter-details input[type="text"], .rse-newsletter-details input[type="email"], .rse-newsletter-details input[type="tel"] { box-sizing: border-box; width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.rse-newsletter-details .grunion-field-wrap { margin-bottom: 14px; }
.rse-newsletter-note { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
 .intro.intro-visual { min-height: 360px; padding-block: 40px; gap: 24px; }
 .intro-visual .intro-copy { text-align: center; }
 .intro-visual .intro-copy p { margin-inline: auto; }
}

/* Navy, warm white and restrained gold. */
:root { --ink: #142b43; --ink-2: #203e5b; }
.site-footer { background: var(--ink); color: #d6dfe7; border-top-color: var(--gold); }
.site-footer .footbrand, .site-footer .footer-col h2, .site-footer .footerlinks a, .site-footer .footer-base a { color: #faf9f6; }
.site-footer .footer-base::before { border-color: rgba(255,255,255,.18); }
.site-footer .rse-newsletter-details label, .site-footer .rse-newsletter-note { color: #d6dfe7; }
.site-footer button, .site-footer input[type="submit"] { background: #faf9f6 !important; color: var(--ink) !important; }
.site-nav .menu > li > a, .site-nav .submenu-toggle { color: var(--ink); }
.sectionhead h2, .prose h2, .pagehead h1 { color: var(--ink); }
.rse-newsletter-details input[type="checkbox"] { accent-color: var(--gold); }

/* Navy masthead with readable light-gold branding and navigation. */
.site-header { background: var(--ink); border-bottom-color: #9a7139; }
.site-header .brand, .site-header .brand strong, .site-header .brand span,
.site-header .site-nav .menu > li > a, .site-header .site-nav .submenu-toggle { color: #e0bd83; }
.site-header .site-nav .menu > li > a:hover, .site-header .site-nav .submenu-toggle:hover { color: #faf9f6; }
.site-header .site-nav .current-menu-item > a, .site-header .site-nav .current-menu-ancestor > a { border-bottom-color: #e0bd83; }
.site-header .site-nav .sub-menu { background: #faf9f6; }
.site-header .site-nav .sub-menu a { color: var(--ink); }
.site-header .header-search summary, .site-header .nav-toggle { background: transparent; color: #e0bd83; border-color: rgba(224,189,131,.5); }
.footer-signup-link { display: inline-flex; align-items: center; gap: 8px; color: #e0bd83; border-bottom: 1px solid #e0bd83; padding-bottom: 5px; }
.footer-signup-link:hover { color: #faf9f6; }
.newsletter-page { max-width: 700px; padding-bottom: 56px; }

/* Stronger desktop masthead typography. */
@media (min-width: 901px) {
 .site-header .site-nav .menu { font-size: 16px; font-weight: 600; gap: 28px; }
 .site-header .site-nav .menu > li > a, .site-header .site-nav .submenu-toggle { font-size: inherit; font-weight: 600; }
 .site-header .brand span { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .14em; }
}

/* Jetpack response navigation has no purpose in the newsletter signup. */
.rse-newsletter-details .contact-form-success .go-back-message,
.rse-newsletter-details .contact-form-submission .go-back-message { display: none; }

/* Maintain heading contrast inside navy editorial banners. */
.wideband h2, .editorial-band h2 { color: #faf9f6; }

/* Approved RSE logo in the masthead. */
.rse-brand-logo { display: block; width: 90px; height: auto; flex: none; }
@media (max-width: 900px) { .rse-brand-logo { width: 68px; } }
