/*
Theme Name: USNA News
Theme URI: https://usnewsamerica.com
Author: US News America
Author URI: https://usnewsamerica.com
Description: A classic-meets-modern American broadsheet theme for US News America. Serif display headlines, thin rules, small-caps section kickers, a live breaking ticker, and a front page built from real WordPress queries so new stories surface the moment they publish. Comments are closed; the reading experience is the product.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usna-news
*/

/* ============================================================= tokens */
:root {
  --paper: #f7f2e6;
  --paper-2: #fffdf6;
  --ink: #17150f;
  --ink-soft: #55503f;
  --ink-faint: #8a8371;
  --navy: #14264e;
  --navy-deep: #0d1a38;
  --navy-soft: #33507e;
  --red: #a31621;
  --red-deep: #7d1019;
  --brass: #9a741f;
  --rule: #d8d0ba;
  --rule-strong: #17150f;
  --up: #1c7a3f;
  --down: #b3232e;
  --shadow: 0 14px 34px rgba(23, 21, 15, 0.13);
  --shadow-sm: 0 4px 14px rgba(23, 21, 15, 0.1);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================= base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
::selection { background: var(--navy); color: var(--paper); }

/* reveal on scroll (JS adds .in; visible by default without JS) */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================= utility bar */
.utility {
  background: var(--navy-deep);
  color: #e9e2cd;
  font-size: 12.5px;
  border-bottom: 3px double rgba(233, 226, 205, 0.35);
}
.utility .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 7px; padding-bottom: 7px;
}
.utility .date-line { font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.utility .clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.utility .clock .tz { color: #b8ac8c; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; }
.utility .weather { display: flex; gap: 8px; margin-left: auto; }
.utility .chip {
  border: 1px solid rgba(233, 226, 205, 0.35); border-radius: 999px;
  padding: 2px 10px; white-space: nowrap; font-size: 11.5px;
}
.utility .chip b { color: #fff; }
.utility .chip .cond { color: #b8ac8c; }
.btn-subscribe {
  background: var(--red); color: #fff !important; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px;
  padding: 7px 16px; border-radius: 2px; white-space: nowrap;
}
.btn-subscribe:hover { background: var(--red-deep); color: #fff; }

/* ============================================================= masthead */
.masthead { text-align: center; padding: 18px 0 14px; border-bottom: 1px solid var(--rule); }
.edition-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 10px;
}
.site-title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  line-height: 1.02; margin: 6px 0 2px; letter-spacing: 0.01em; text-transform: uppercase;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--navy); }
.site-logo img { margin: 6px auto 2px; max-height: 110px; width: auto; }
.tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--ink-soft); margin: 4px 0 2px;
}

/* ============================================================= sticky nav */
.catnav {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper); border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
}
.catnav .wrap { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.mini-brand {
  font-family: var(--serif); font-weight: 900; font-size: 1.05rem; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; display: none;
}
.catnav.scrolled .mini-brand { display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nav-list li a {
  display: block; padding: 13px 11px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink);
  border-bottom: 3px solid transparent;
}
.nav-list li a:hover, .nav-list li.current-menu-item a, .nav-list li.current_page_item a {
  color: var(--red); border-bottom-color: var(--red);
}
.nav-search { margin-left: auto; display: flex; align-items: stretch; }
.nav-search input {
  border: 1px solid var(--rule); background: var(--paper-2); color: var(--ink);
  padding: 7px 10px; font: inherit; font-size: 13px; width: 150px; border-radius: 2px 0 0 2px;
}
.nav-search button {
  border: 1px solid var(--navy-deep); background: var(--navy-deep); color: #fff;
  padding: 0 10px; cursor: pointer; border-radius: 0 2px 2px 0; font-size: 13px;
}
.hamburger {
  display: none; background: none; border: 1px solid var(--rule-strong); color: var(--ink);
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 8px 12px; cursor: pointer; border-radius: 2px; align-items: center; gap: 8px;
}
.hamburger .bars, .hamburger .bars::before, .hamburger .bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.hamburger .bars::before, .hamburger .bars::after { content: ""; position: absolute; left: 0; }
.hamburger .bars::before { top: -5px; }
.hamburger .bars::after { top: 5px; }

/* ============================================================= ticker */
.ticker {
  display: flex; align-items: stretch; background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--rule-strong); overflow: hidden;
}
.ticker-label {
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 9px 14px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.ticker-label .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: usna-pulse 1.6s infinite; }
@keyframes usna-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.marquee { display: flex; white-space: nowrap; animation: usna-marquee 55s linear infinite; }
.ticker-track:hover .marquee { animation-play-state: paused; }
.marquee-set a { color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: 14.5px; padding: 0 4px; }
.marquee-set a:hover { color: #f0c75e; }
.marquee-set .sep { color: var(--red); padding: 0 10px; font-size: 11px; }
@keyframes usna-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================= shared bits */
.kicker {
  font-family: var(--sans); font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
}
.kicker-lg { font-size: 12px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px;
  border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
  padding: 10px 0 8px; margin: 34px 0 18px;
}
.section-head h2 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 800; margin: 0;
}
.head-note { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.byline, .card-meta { font-size: 12.5px; color: var(--ink-faint); margin: 6px 0 0; }
.dot-sep { padding: 0 2px; }
.empty-note { color: var(--ink-soft); font-style: italic; padding: 18px 0; }
.load-row { text-align: center; margin: 26px 0 6px; }
.btn-more {
  display: inline-block; border: 1.5px solid var(--rule-strong); color: var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 26px; border-radius: 2px; background: var(--paper-2);
}
.btn-more:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.thumb-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
  color: #e9e2cd; font-family: var(--serif); font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; font-size: 0.95rem; text-align: center; padding: 12px;
}

/* ============================================================= hero */
.hero { padding-top: 22px; }
.hero-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 28px; }
.hero-main .hero-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--rule); margin-bottom: 14px; }
.hero-main .hero-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hero-main:hover .hero-thumb img { transform: scale(1.03); }
.hero-title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; margin: 8px 0 10px; }
.hero-title a { color: var(--ink); }
.hero-title a:hover { color: var(--navy); }
.hero-deck { font-family: var(--serif); font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 8px; line-height: 1.5; }
.hero-side { border-left: 1px solid var(--rule); padding-left: 22px; display: flex; flex-direction: column; }
.hero-side-item { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.hero-side-item:first-child { padding-top: 0; }
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; line-height: 1.28; margin: 4px 0 2px; }
.hero-side-item h3 a { color: var(--ink); }
.hero-side-item h3 a:hover { color: var(--red); }
.empty-panel { border: 1px solid var(--rule); background: var(--paper-2); padding: 34px 30px; }

/* ============================================================= latest layout + cards */
.latest-layout { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip {
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: 6px 14px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
  background: var(--paper-2);
}
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.is-active { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card[hidden] { display: none; }
.card-thumb { display: block; aspect-ratio: 800 / 520; overflow: hidden; background: var(--navy-deep); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--serif); font-size: 1.14rem; font-weight: 700; line-height: 1.3; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-excerpt { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.card-meta { margin-top: auto; padding-top: 6px; }

/* pagination */
.pagination { margin: 30px 0 10px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  border: 1px solid var(--rule-strong); padding: 8px 13px; font-size: 12.5px; font-weight: 700;
  color: var(--ink); background: var(--paper-2); border-radius: 2px;
}
.pagination .page-numbers.current { background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ============================================================= sidebar widgets */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget { border: 1px solid var(--rule); background: var(--paper-2); border-radius: 3px; padding: 16px 18px 18px; }
.widget > header {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  border-bottom: 2px solid var(--rule-strong); padding-bottom: 8px; margin-bottom: 12px;
}
.widget h3 { font-family: var(--serif); font-size: 1.08rem; font-weight: 800; margin: 0; }
.widget .asof { font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; white-space: nowrap; }
.markets { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.markets td { padding: 7px 2px; border-bottom: 1px solid var(--rule); }
.markets tr:last-child td { border-bottom: none; }
.markets .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.markets .chg { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; width: 74px; }
.markets .up { color: var(--up); }
.markets .down { color: var(--down); }
.sample-note { font-size: 11px; color: var(--ink-faint); font-style: italic; margin: 10px 0 0; }
.most-read { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.most-read li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.most-read li:last-child { border-bottom: none; padding-bottom: 2px; }
.most-read .rank {
  font-family: var(--serif); font-weight: 900; font-size: 2rem; line-height: 0.9;
  color: var(--red); min-width: 34px;
}
.most-read .mr-title { font-family: var(--serif); font-weight: 700; font-size: 0.98rem; line-height: 1.3; color: var(--ink); display: block; margin-top: 2px; }
.most-read .mr-title:hover { color: var(--navy); }

/* ============================================================= opinion */
.opinion { margin-bottom: 8px; }
.opinion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.opinion-card {
  margin: 0; border-top: 3px solid var(--brass); background: var(--paper-2);
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 22px 22px 18px; border-radius: 0 0 3px 3px;
}
.opinion-quote { font-family: var(--serif); font-style: italic; font-size: 1.13rem; line-height: 1.45; margin: 0 0 16px; }
.opinion-title { font-family: var(--serif); font-weight: 800; font-size: 1rem; color: var(--ink); display: block; }
.opinion-title:hover { color: var(--navy); }
.opinion-author { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }

/* ============================================================= newsletter */
.newsletter { background: var(--navy-deep); color: #ece4cd; margin-top: 40px; }
.newsletter .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; padding-top: 40px; padding-bottom: 40px; align-items: center; }
.newsletter .kicker { color: #f0c75e; }
.newsletter h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; line-height: 1.15; margin: 8px 0 10px; color: #fff; }
.newsletter p { color: #c9c2ab; margin: 0; }
.nl-form { display: flex; gap: 10px; }
.nl-form input {
  flex: 1; padding: 13px 14px; border: 1px solid #33507e; background: #101f3f; color: #fff;
  border-radius: 2px; font: inherit; font-size: 15px; min-width: 0;
}
.nl-form input::placeholder { color: #7e8db0; }
.nl-form button {
  background: var(--red); color: #fff; border: none; padding: 13px 22px; border-radius: 2px;
  font: inherit; font-weight: 800; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.nl-form button:hover { background: var(--red-deep); }
.nl-error { color: #ff9d94; font-size: 13.5px; margin: 10px 0 0; }
.nl-success { color: #9fe8b8; font-size: 14.5px; margin: 12px 0 0; }

/* ============================================================= footer */
.site-footer { border-top: 3px double var(--rule-strong); margin-top: 44px; padding: 36px 0 22px; background: var(--paper-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.fbrand { font-family: var(--serif); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; margin: 0 0 8px; }
.site-footer .small { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 8px; }
.site-footer h5 {
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 4px 0 10px; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 6px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; font-size: 13.5px; }
.foot-base {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 14px;
  font-size: 12px; color: var(--ink-faint);
}
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--paper-2); color: var(--ink);
  box-shadow: var(--shadow-sm); font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(6px); transition: all 0.25s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; background: var(--navy-deep); color: #f5efdc; }

/* ============================================================= single post */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90;
  background: transparent; pointer-events: none;
}
.reading-progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width 0.08s linear; }
.single-article { padding-top: 26px; }
.single-head { border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 20px; }
.single-title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.07; margin: 10px 0 12px;
}
.single-deck { font-family: var(--serif); font-size: 1.18rem; font-style: italic; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.single-thumb { margin: 0 0 22px; }
.single-thumb img { width: 100%; border: 1px solid var(--rule); }
.single-thumb figcaption { font-size: 12px; color: var(--ink-faint); padding-top: 7px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.single-content { font-size: 1.06rem; line-height: 1.75; }
.single-content > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 900; font-size: 3.4em; float: left;
  line-height: 0.82; padding: 6px 10px 0 0; color: var(--navy-deep);
}
.single-content h2, .single-content h3 {
  font-family: var(--serif); font-weight: 800; line-height: 1.2; margin: 1.4em 0 0.5em;
}
.single-content h2 { font-size: 1.6rem; }
.single-content h3 { font-size: 1.3rem; }
.single-content a { text-decoration: underline; text-underline-offset: 3px; }
.single-content blockquote {
  border-left: 3px solid var(--red); margin: 1.4em 0; padding: 4px 0 4px 20px;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft);
}
.single-content ul, .single-content ol { padding-left: 1.4em; }
.single-content li { margin-bottom: 0.4em; }
.single-content figure { margin: 1.4em 0; }
.single-content figcaption { font-size: 12px; color: var(--ink-faint); padding-top: 6px; }
.single-tags { font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 26px; }
.single-tags a { font-weight: 600; }

.post-nav { display: flex; gap: 14px; margin-top: 30px; }
.post-nav-link {
  flex: 1; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 3px;
  padding: 14px 16px; transition: border-color 0.15s ease;
}
.post-nav-link:hover { border-color: var(--red); }
.post-nav-link.is-empty { background: none; border: none; }
.post-nav-link .dir {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); display: block; margin-bottom: 5px;
}
.post-nav-link .t { font-family: var(--serif); font-weight: 700; font-size: 1rem; line-height: 1.25; display: block; color: var(--ink); }
.post-nav-link.next { text-align: right; }
.related { margin-top: 12px; }

/* ============================================================= archive / search / 404 */
.archive-head { border-bottom: 2px solid var(--rule-strong); padding: 26px 0 14px; margin-bottom: 22px; }
.archive-title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; text-transform: capitalize; }
.archive-desc { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: 6px; }
.search-again { display: flex; gap: 10px; margin-top: 16px; max-width: 520px; }
.search-again input {
  flex: 1; padding: 11px 13px; border: 1px solid var(--rule-strong); background: var(--paper-2);
  border-radius: 2px; font: inherit; font-size: 15px; min-width: 0;
}
.search-again button {
  background: var(--navy-deep); color: #fff; border: none; padding: 11px 20px; border-radius: 2px;
  font: inherit; font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.search-again button:hover { background: var(--red); }
.not-found { padding-top: 40px; text-align: left; }
.not-found .kicker { font-size: 14px; }
.headline-list { list-style: none; margin: 0; padding: 0; }
.headline-list li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.headline-list li a { color: var(--ink); }
.headline-list li a:hover { color: var(--red); }
.headline-list .card-meta { font-family: var(--sans); font-weight: 400; margin-left: 8px; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0.4em 1.2em 0.8em 0; }
.alignright { float: right; margin: 0.4em 0 0.8em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--ink-faint); }

/* ============================================================= responsive */
@media (max-width: 1024px) {
  .latest-layout { grid-template-columns: 1fr 280px; gap: 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .utility .weather { display: none; }
  .utility .clock { margin-left: auto; }
}
@media (max-width: 820px) {
  .latest-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 8px; }
  .newsletter .wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .opinion-grid { grid-template-columns: 1fr; }
  .hamburger { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--rule-strong); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list li a { padding: 10px 4px; border-bottom: 1px solid var(--rule); }
  .nav-search { margin: 10px 0 0; }
  .nav-search input { flex: 1; width: auto; }
  .catnav .wrap { position: relative; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
  .mini-brand { display: inline-block; margin-right: auto; }
  .edition-row .est { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .post-nav-link.next { text-align: left; }
  .post-nav-link.is-empty { display: none; }
  .nl-form { flex-direction: column; }
  .utility .date-line { display: none; }
  .utility .clock { margin-left: 0; }
  .btn-subscribe { margin-left: auto; }
  .ticker-label { padding: 9px 10px; }
  body { font-size: 16px; }
}
