/*
Theme Name: The Expenditure
Theme URI: https://theexpenditure.com
Author: Miguel del Riego Gómez
Author URI: https://theexpenditure.com
Description: Editorial financial publication theme. Tracks the world's biggest budgets, capital expenditures, and financial records with rigorous editorial framing. Typographic design, no images. Every record has a price tag.
Version: 20.19
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expenditure
Tags: editorial, news, magazine, serif, financial, two-columns, custom-colors, custom-menu
*/

:root {
  --paper: #F2EDE1;
  --paper-deep: #EAE4D4;
  --ink: #1A1A1A;
  --ink-soft: #2B2B2B;
  --bottle: #1B3A2F;
  --bottle-deep: #122922;
  --gold: #FFFFFF;
  --red: #C8302C;
  --rule: rgba(26, 26, 26, 0.18);
  --rule-strong: rgba(26, 26, 26, 0.45);

  --display: "Merriweather", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", "Courier New", monospace;
  --label: "Archivo", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* TICKER */
.ticker {
  background: var(--bottle-deep);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--gold);
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.ticker-item { display: inline-flex; gap: 10px; align-items: center; }
.ticker-item strong { color: var(--paper); font-weight: 500; letter-spacing: 0.12em; }
.ticker-item span { color: var(--gold); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* MASTHEAD */
.masthead {
  background: var(--paper);
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule-strong);
}
.masthead-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.masthead-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--bottle);
  line-height: 1;
}
.masthead-title a { color: inherit; }
.masthead-tagline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bottle);
  text-align: center;
  margin-top: 6px;
}
.masthead-cta { justify-self: end; }
.btn-subscribe {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 22px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-subscribe:hover { background: var(--bottle); border-color: var(--bottle); }

/* MAIN NAV */
.main-nav {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: 0 32px;
}
.main-nav-inner { display: flex; gap: 0; justify-content: center; }
.main-nav ul { list-style: none; display: flex; gap: 0; }
.main-nav a {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 7px 28px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: inline-block;
  transition: all 0.2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a { color: var(--bottle); border-bottom-color: var(--bottle); }

/* HERO POST */
.hero-post {
  background: var(--paper);
  color: var(--ink);
  padding: 56px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  position: relative;
  border-bottom: 1px solid var(--rule-strong);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bottle);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before { content: "▲"; font-size: 8px; }
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  max-width: 900px;
  color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--bottle); font-weight: 900; }
.hero-title a { color: inherit; }
.hero-lead {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  padding: 0;
  margin-bottom: 0;
}

/* TODAY'S RECORDS sidebar (sidebar widget) */
.todays-records {
  background: var(--paper-deep);
  padding: 24px;
  border: 1px solid var(--ink);
}
.todays-records-header {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 16px;
}
.record-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.record-item:last-child { border-bottom: none; }
.record-item .num { font-family: var(--mono); font-size: 10px; color: var(--bottle); margin-bottom: 4px; }
.record-item .cat {
  font-family: var(--label);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.record-item .title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 6px;
}
.record-item .title a { color: inherit; }
.record-item .figure {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  color: var(--bottle);
}

/* SECTION HEADER */
.section-header {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--gold);
}
.section-header h2 {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
}
.section-header .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* ARTICLES GRID */
.articles-grid {
  background: var(--paper);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}
.article-card {
  padding: 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s ease;
}
.article-card:last-child { border-right: none; }
.article-card:hover { background: var(--paper-deep); }
.article-card .tags { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.article-card .tag {
  font-family: var(--label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.article-card .tag-line { width: 28px; height: 3px; background: var(--bottle); }
.article-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.22;
  color: var(--ink);
  margin-bottom: 10px;
}
.article-card h3 a { color: inherit; }
.article-card .excerpt {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.5;
}
.article-card .meta-line {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.article-card .footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.article-card .read-more {
  color: var(--bottle);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* SINGLE POST */
.article-hero {
  background: var(--paper);
  padding: 64px 32px 26px;
  border-bottom: 1px solid var(--rule-strong);
}
.article-breadcrumbs {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.article-breadcrumbs span { color: var(--bottle); margin: 0 8px; }
.article-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 72px;
  line-height: 1.07;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 980px;
  margin: 0 auto 28px;
}
.article-title em { font-style: italic; color: var(--bottle); font-weight: 900; }
.article-deck {
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 auto 14px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.article-byline {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.article-byline .by { color: var(--ink); font-weight: 500; }
.article-byline .by strong { color: var(--bottle); }

/* ── Article lead (featured) image ───────────────────────── */
.article-lead-image {
  background: var(--paper);
  padding: 40px 32px 0;
}
.article-lead-figure {
  max-width: 980px;
  margin: 0 auto;
}
.article-lead-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.article-lead-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
}
@media (max-width: 768px) {
  .article-lead-image { padding: 24px 16px 0; }
}

.article-body {
  background: var(--paper);
  padding: 20px 32px 56px;
  border-bottom: 1px solid var(--rule);
}
.article-body-inner { max-width: 720px; margin: 0 auto; }
.article-body p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 900;
  font-size: 72px;
  line-height: 0.85;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--bottle);
}
.article-body p {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 24px;
}
.article-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.25;
  color: var(--ink);
  margin: 48px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.article-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  margin: 32px 0 14px;
  color: var(--ink);
}
.article-body blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--bottle);
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
}
.article-body ul, .article-body ol {
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 24px;
  padding-left: 28px;
}
.article-body li { margin-bottom: 8px; }
.article-body a {
  color: var(--bottle);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body img { max-width: 100%; height: auto; }

/* NEWSLETTER */
.newsletter {
  background: var(--paper);
  padding: 56px 32px;
  text-align: center;
  border-top: 8px solid var(--bottle-deep);
  border-bottom: 1px solid var(--rule);
}
.newsletter h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 14px;
}
.newsletter h2 em { font-style: italic; color: var(--bottle); font-weight: 900; }
.newsletter p {
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 28px;
}
.newsletter-form { display: inline-flex; border: 1px solid var(--ink); background: var(--paper); }
.newsletter-form input {
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  width: 320px;
  outline: none;
}
.newsletter-form button {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 14px 24px;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.newsletter-form button:hover { background: var(--bottle); }

/* FOOTER */
.site-footer { background: var(--paper); padding: 48px 32px 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
}
.footer-brand h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-brand .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bottle);
  margin-bottom: 16px;
}
.footer-brand p {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.footer-col a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--bottle); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* PAGE TEMPLATE (legal, about, etc) */
.page-header {
  background: var(--bottle);
  color: var(--paper);
  padding: 44px 32px 36px;
  border-bottom: 4px solid var(--bottle-deep);
}
.page-header-inner { max-width: 980px; margin: 0 auto; }
.page-header .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.page-header h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 48px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.page-header h1 em { font-style: italic; color: var(--gold); font-weight: 900; }

.longform { background: var(--paper); padding: 40px 32px; }
.longform-inner { max-width: 760px; margin: 0 auto; }
.longform h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
  margin: 48px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  line-height: 1.25;
}
.longform h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.longform h3 {
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bottle);
  margin: 28px 0 12px;
}
.longform p {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.longform ul, .longform ol {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 24px;
  padding-left: 28px;
}
.longform li { margin-bottom: 8px; }
.longform a {
  color: var(--bottle);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* SEARCH / ARCHIVE */
.archive-header {
  background: var(--paper);
  padding: 18px 32px 28px;
  border-bottom: 1px solid var(--rule);
}
.archive-header-inner { max-width: 1100px; margin: 0 auto; }
.archive-header .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.archive-header h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 56px;
  color: var(--ink);
  line-height: 1.05;
}
.archive-header h1 em { font-style: italic; color: var(--bottle); font-weight: 900; }

/* COMMENTS DISABLED notice (theme-level reminder) */
.no-comments { display: none; }

/* PAGINATION */
.pagination {
  padding: 40px 32px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pagination a, .pagination .current {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  margin: 0 2px;
  color: var(--ink);
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-post { grid-template-columns: 1fr; }
  .articles-grid, .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-title, .article-title, .page-header h1 { font-size: 48px; }
  .newsletter h2 { font-size: 36px; }
  .masthead { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .masthead-date, .masthead-cta { justify-self: center; }
  .main-nav-inner { overflow-x: auto; }
  .main-nav a { padding: 12px 16px; }
}
@media (max-width: 600px) {
  .articles-grid, .footer-top { grid-template-columns: 1fr; }
  .article-card { border-right: none; }
  .hero-title, .article-title, .page-header h1 { font-size: 38px; }
  .article-body p { font-size: 17px; }
}

/* ============================================================
   CUSTOM BLOCKS — PULL STAT & PULL QUOTE
   ============================================================ */

/* Pull Stat */
.pull-stat {
  background: var(--paper-deep);
  border-left: 4px solid var(--bottle);
  padding: 24px 28px;
  margin: 32px 0;
}
.pull-stat .num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 48px;
  color: var(--bottle);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.pull-stat .desc {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
  line-height: 1.4;
}

/* Pull Quote */
.pull-quote {
  margin: 40px 0;
  padding: 0;
}
.pull-quote .pq-text {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--bottle);
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 28px;
  margin: 0;
}
.pull-quote .pq-attribution {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-style: normal;
  margin-top: 14px;
  padding-left: 32px;
}
.pull-quote .pq-attribution::before {
  content: "— ";
  color: var(--bottle);
}

/* When inside article-body, override the generic blockquote rule from before */
.article-body .pull-quote .pq-text { margin: 0; }

/* Editor preview tweaks */
.pull-stat-editor, .pull-quote-editor { display: block; }

/* ── Breaking News Bar ─────────────────────────────────────── */
.breaking-bar {
    background: var(--ink, #1a1a1a);
    color: var(--paper, #f5f0e8);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono, monospace);
    font-size: 12px;
    letter-spacing: 0.05em;
}
.breaking-label {
    background: #c0392b;
    color: #fff;
    padding: 3px 8px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}
.breaking-text {
    color: var(--paper, #f5f0e8);
    text-decoration: none;
    font-style: italic;
}
a.breaking-text:hover { text-decoration: underline; }

/* ── Banners de Anuncios ─────────────────────────────────────── */
.expenditure-banner {
    margin: 20px 0;
    width: 100%;
}

.expenditure-banner-header {
    margin-top: 0;
}

.expenditure-banner-footer {
    margin-bottom: 0;
}

.banner-placeholder {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-weight: bold;
}

/* Ad container - placeholder for real ads */
.ad-container {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   THE EXPENDITURE v5 — COMPLETE STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── Featured Bar ─────────────────────────────────────────── */
.featured-bar {
    background: var(--paper);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--rule-strong);
}
.featured-cell { padding: 22px 28px; border-right: 1px solid var(--rule); }
.featured-cell:last-child { border-right: none; }
.featured-cell .cat {
    font-family: var(--label, "Archivo", sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bottle, #1B3A2F);
    margin-bottom: 10px;
}
.featured-cell .fig {
    font-family: var(--display, "Merriweather", serif);
    font-weight: 900;
    font-size: 42px;
    line-height: 1;
    color: var(--ink, #1A1A1A);
    margin-bottom: 8px;
}
.featured-cell .desc {
    font-size: 13px;
    color: var(--ink-soft, #2B2B2B);
    margin-bottom: 10px;
    line-height: 1.4;
}
.featured-cell .desc a { color: inherit; text-decoration: none; }
.featured-cell .desc a:hover { color: var(--bottle); }
.featured-cell .badge {
    display: inline-block;
    border: 1px solid var(--bottle, #1B3A2F);
    padding: 3px 8px;
    font-family: var(--label, sans-serif);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bottle, #1B3A2F);
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
    background: var(--ink, #1A1A1A);
    color: var(--paper, #F2EDE1);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--gold, #FFFFFF);
}
.section-header h2 {
    font-family: var(--label, sans-serif);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper, #F2EDE1);
    margin: 0;
}
.section-header .subtopics {
    font-family: var(--label, sans-serif);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242,237,225,0.6);
    display: flex;
    gap: 16px;
}
.section-header .subtopics span:not(:last-child)::after {
    content: " · ";
    margin-left: 16px;
    color: var(--gold, #FFFFFF);
}
.section-header .count {
    margin-left: auto;
    font-family: var(--mono, monospace);
    font-size: 11px;
    color: var(--gold, #FFFFFF);
    letter-spacing: 0.1em;
}

/* ── Article Grid ─────────────────────────────────────────── */
.articles-grid {
    background: var(--paper, #F2EDE1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--rule, rgba(26,26,26,0.18));
}
.article-card {
    padding: 28px;
    border-right: 1px solid var(--rule, rgba(26,26,26,0.18));
    border-bottom: 1px solid var(--rule, rgba(26,26,26,0.18));
    transition: background 0.15s;
    display: flex;
    flex-direction: column;
}
.article-card:hover { background: var(--paper-deep, #EAE4D4); }
.article-card .tags { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.article-card .tag {
    font-family: var(--label, sans-serif);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink, #1A1A1A);
}
.article-card .tag-line { width: 28px; height: 3px; background: var(--bottle, #1B3A2F); flex-shrink: 0; }
.article-card h3 {
    font-family: var(--display, "Merriweather", serif);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.22;
    color: var(--ink, #1A1A1A);
    margin-bottom: 10px;
}
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a:hover { color: var(--bottle); }
.article-card .excerpt {
    font-size: 14px;
    color: var(--ink-soft, #2B2B2B);
    margin-bottom: 28px;
    line-height: 1.5;
}
.article-card .figure {
    font-family: var(--display, "Merriweather", serif);
    font-weight: 900;
    font-size: 42px;
    line-height: 1;
    color: var(--bottle, #1B3A2F);
    margin-bottom: 6px;
}
.article-card .meta-line {
    font-family: var(--mono, monospace);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}
.article-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-family: var(--mono, monospace);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--ink-soft);
}
.article-card .read-more {
    color: var(--bottle, #1B3A2F);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
}


/* ── Newsletter fix — same color as section headers ────────── */
.newsletter {
    background: var(--paper, #F2EDE1);
    padding: 56px 32px;
    text-align: center;
    border-top: 8px solid var(--bottle-deep, #122922);
    border-bottom: 1px solid var(--rule);
}
.newsletter h2 {
    font-family: var(--display, "Merriweather", serif);
    font-weight: 900;
    font-size: 52px;
    line-height: 1;
    color: var(--ink, #1A1A1A);
    margin-bottom: 14px;
}
.newsletter h2 em { font-style: italic; color: var(--bottle, #1B3A2F); font-weight: 900; }
.newsletter p {
    font-size: 15px;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto 28px;
}
.newsletter-form {
    display: inline-flex;
    border: 1px solid var(--ink, #1A1A1A);
    background: var(--paper, #F2EDE1);
}
.newsletter-form input {
    padding: 14px 18px;
    border: none;
    background: transparent;
    font-family: var(--mono, monospace);
    font-size: 13px;
    color: var(--ink);
    width: 320px;
    outline: none;
}
/* SUBSCRIBE BUTTON — same as section header (ink bg, paper text) */
.newsletter-form button, .btn-subscribe {
    background: var(--ink, #1A1A1A) !important;
    color: var(--paper, #F2EDE1) !important;
    border: none;
    padding: 14px 24px;
    font-family: var(--label, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}
.newsletter-form button:hover, .btn-subscribe:hover {
    background: var(--bottle, #1B3A2F) !important;
}
.newsletter-sub-tagline {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 16px;
}

/* ── Hero context & data grid ─────────────────────────────── */
.hero-context {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.hero-context .label {
    font-family: var(--label, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.hero-context .lines { display: flex; flex-direction: column; gap: 10px; }
.hero-context .line { display: flex; gap: 16px; align-items: baseline; font-size: 15px; }
.hero-context .marker {
    font-family: var(--mono, monospace);
    font-size: 11px;
    color: var(--bottle, #1B3A2F);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Data Sheet (single article) ─────────────────────────── */
.data-sheet { background: var(--paper); padding: 0 32px 40px; border-bottom: 1px solid var(--rule); }
.data-sheet-inner { max-width: 980px; margin: 0 auto; }
.data-sheet h3 {
    font-family: var(--label, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bottle, #1B3A2F);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 24px;
}
.data-sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.data-cell .label {
    font-family: var(--label, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.data-cell .value {
    font-family: var(--display, "Merriweather", serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.data-cell .value.large { font-size: 32px; font-weight: 900; color: var(--bottle); }
.data-cell .value em { font-style: italic; color: var(--bottle); }

/* ── Today's Records sidebar ──────────────────────────────── */
.todays-records { min-width: 280px; max-width: 320px; border-left: 1px solid var(--rule); padding-left: 24px; }
.todays-records-header {
    font-family: var(--label, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 16px;
}
.record-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.record-item:last-child { border-bottom: none; }
.record-item .num {
    font-family: var(--mono, monospace);
    font-size: 10px;
    color: var(--bottle);
    font-weight: 700;
    margin-bottom: 4px;
}
.record-item .cat {
    font-family: var(--label, sans-serif);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.record-item .title {
    font-family: var(--display, serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 8px;
}
.record-item .title a { color: inherit; text-decoration: none; }
.record-item .title a:hover { color: var(--bottle); }
.record-item .figure {
    font-family: var(--display, serif);
    font-weight: 900;
    font-size: 28px;
    color: var(--bottle);
    line-height: 1;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .articles-grid, .featured-bar, .data-sheet-grid { grid-template-columns: 1fr 1fr; }
    .hero { flex-direction: column; }
    .todays-records { max-width: 100%; border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 24px; }
}
@media (max-width: 600px) {
    .articles-grid, .data-sheet-grid { grid-template-columns: 1fr; }
    .featured-bar { grid-template-columns: 1fr 1fr; }
}

/* Article grid: close the lattice (no stray outer line) on the last column
   at every breakpoint, matching the home news grid. */
@media (min-width: 901px) {
    .articles-grid > .article-card:nth-child(3n) { border-right: none; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .articles-grid > .article-card { border-right: 1px solid var(--rule); }
    .articles-grid > .article-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
    .articles-grid > .article-card { border-right: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE FIX v8 — Mobile symmetric layout
   ═══════════════════════════════════════════════════════════ */

/* Base fix — prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

/* ── Tablet (max 900px) ───────────────────────────────────── */
@media (max-width: 900px) {
    /* General padding reduction */
    .masthead,
    .breaking,
    .hero-post,
    .featured-bar,
    .section-header,
    .articles-grid,
    .newsletter,
    .data-sheet,
    .article-hero,
    .article-body,
    .archive-header,
    .footer { padding-left: 20px; padding-right: 20px; }

    /* Grids to 2 columns */
    .featured-bar,
    .articles-grid,
    .data-sheet-grid,
    .footer-top { grid-template-columns: 1fr 1fr; }

    /* Hero stacks vertically */
    .hero-post { grid-template-columns: 1fr; gap: 32px; }
    .todays-records {
        max-width: 100%;
        min-width: unset;
        border-left: none;
        border-top: 1px solid var(--rule);
        padding-left: 0;
        padding-top: 24px;
    }

    /* Newsletter form wraps */
    .newsletter-form { flex-direction: column; width: 100%; max-width: 400px; }
    .newsletter-form input { width: 100%; }
    .newsletter-form button { width: 100%; }

    /* Hero data grid */
}

/* ── Mobile (max 600px) ───────────────────────────────────── */
@media (max-width: 600px) {
    /* Padding */
    .masthead,
    .breaking,
    .hero-post,
    .section-header,
    .articles-grid,
    .newsletter,
    .data-sheet,
    .article-hero,
    .article-body,
    .archive-header,
    .footer { padding-left: 16px; padding-right: 16px; }

    /* Single column */
    .articles-grid,
    .data-sheet-grid,
    .footer-top { grid-template-columns: 1fr; }

    /* Featured bar 1 col */
    .featured-bar { grid-template-columns: 1fr; }
    .featured-cell { border-right: none; border-bottom: 1px solid var(--rule); }
    .featured-cell:last-child { border-bottom: none; }

    /* Borders */
    .article-card { border-right: none; }

    /* Typography */
    .hero-title, .article-title { font-size: 34px; }
    .newsletter h2 { font-size: 30px; }
    .featured-cell .fig { font-size: 32px; }
    .article-card .figure { font-size: 32px; }
    .masthead-title { font-size: 28px; }

    /* Masthead */
    .masthead { padding: 14px 16px; gap: 8px; }
    .masthead-date { display: none; }

    /* Nav scrollable */
    .main-nav-inner { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .main-nav a { padding: 10px 14px; font-size: 11px; }

    /* Hero data grid stacks */

    /* Data sheet */
    .data-sheet { padding: 24px 16px; }
    .data-sheet-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

    /* Article body */
    .article-body { padding: 24px 16px; }
    .article-body p { font-size: 16px; }

    /* Section header */
    .section-header { flex-wrap: wrap; gap: 8px; }
    .section-header .count { margin-left: 0; }

    /* Footer */
    .footer-top { gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Newsletter */
    .newsletter { padding: 40px 16px; }
    .newsletter-form { width: 100%; }

    /* Ticker */
    .ticker { padding: 8px 0; }
}

/* ── Extra small (max 380px) ──────────────────────────────── */
@media (max-width: 380px) {
    .hero-title, .article-title { font-size: 28px; }
    .masthead-title { font-size: 22px; }
    .featured-cell .fig { font-size: 28px; }
    .article-card .figure { font-size: 28px; }
}

/* ── Share Buttons ──────────────────────────────────────── */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    border-top: 1px solid var(--rule);
    margin-top: 32px;
    flex-wrap: wrap;
}
.share-label {
    font-family: var(--label, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--rule-strong, rgba(26,26,26,0.35));
    background: var(--paper);
    color: var(--ink);
    font-family: var(--label, sans-serif);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.share-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.share-twitter:hover  { background: #000;     color: #fff; border-color: #000; }
.share-linkedin:hover { background: #0077b5;  color: #fff; border-color: #0077b5; }
.share-facebook:hover { background: #1877f2;  color: #fff; border-color: #1877f2; }

/* ── Search Toggle Button ───────────────────────────────── */
.search-toggle {
    background: none;
    border: 1px solid var(--rule-strong, rgba(26,26,26,0.35));
    color: var(--ink);
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 8px;
    transition: background 0.15s, color 0.15s;
}
.search-toggle:hover { background: var(--ink); color: var(--paper); }

/* Search bar form */
#exp-search .search-form { display: flex; }
#exp-search input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono, monospace);
    font-size: 14px;
    outline: none;
    max-width: 500px;
}
#exp-search button[type="submit"] {
    padding: 10px 20px;
    background: var(--bottle, #1B3A2F);
    color: var(--paper);
    border: none;
    font-family: var(--label, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
}

/* ── Nav horizontal scroll — no X overflow ──────────────── */
body { overflow-x: hidden; }
.main-nav { overflow: hidden; }
.main-nav-inner {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
}
.main-nav-inner::-webkit-scrollbar { display: none; }
.main-nav-inner a { display: inline-block; flex-shrink: 0; }

/* ── Tamaños de texto fijos — v16 ─────────────────────────
   Estos anulan cualquier cambio accidental del Customizer
   ──────────────────────────────────────────────────────── */
.hero-title          { font-size: 76px !important; }
.hero-lead           { font-size: 17px !important; line-height: 1.6 !important; }
.hero-eyebrow        { font-size: 11px !important; }
.article-title       { font-size: 72px !important; }
.article-deck        { font-size: 18px !important; line-height: 1.6 !important; }
.article-body p      { font-size: 18px !important; line-height: 1.75 !important; }
.article-card h3     { font-size: 22px !important; }
.article-card .excerpt { font-size: 14px !important; }
.article-card .figure  { font-size: 42px !important; }
.record-item .figure   { font-size: 20px !important; }
.record-item .title    { font-size: 13px !important; }
.section-header h2     { font-size: 13px !important; }
.masthead-title        { font-size: 32px !important; }
.todays-records-header { font-size: 10px !important; }
.btn-subscribe         { font-size: 11px !important; }

/* ── Buscador en negro/blanco ──────────────────────────── */
.search-toggle {
    background: var(--ink, #1A1A1A) !important;
    color: var(--paper, #F2EDE1) !important;
    border-color: var(--ink, #1A1A1A) !important;
}
.search-toggle:hover {
    background: var(--paper, #F2EDE1) !important;
    color: var(--ink, #1A1A1A) !important;
}
#exp-search input[type="search"]:focus { outline: none !important; box-shadow: none !important; }

/* ── Móvil — tamaños reducidos ─────────────────────────── */
@media (max-width: 600px) {
    .hero-title        { font-size: 36px !important; }
    .article-title     { font-size: 32px !important; }
    .article-body p    { font-size: 16px !important; }
    .article-card h3   { font-size: 18px !important; }
    .masthead-title    { font-size: 20px !important; }
}

/* ═══════════════════════════════════════════════════════════
   V17 — Hero redesign: image slot + horizontal Today's Records
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: text left, image right (desktop) ──────────────── */
.hero-post {
    display: grid !important;
    grid-template-columns: 1fr 480px !important;
    gap: 48px !important;
    padding: 44px 32px 16px !important;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
    align-items: start;
}
.hero-main { display: flex; flex-direction: column; justify-content: flex-start; }
.hero-post--no-image { grid-template-columns: 1fr !important; }

/* ── Featured Image Slot ─────────────────────────────────── */
.hero-image-slot {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--paper-deep, #EAE4D4);
    border: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
}
.placeholder-icon { font-size: 32px; opacity: 0.3; }
.placeholder-text {
    font-family: var(--label, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.4;
}

/* ── Today's Records — Horizontal Bar ───────────────────── */
.todays-records-bar {
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 0 32px;
}
.todays-records-label {
    font-family: var(--label, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 8px 0 12px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 0;
}
.todays-records-items {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.todays-records-items::-webkit-scrollbar { display: none; }
.tr-item {
    flex: 0 0 50%;
    scroll-snap-align: start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 20px 0;
    border-right: 1px solid var(--rule);
    text-decoration: none;
    color: var(--ink);
    transition: opacity 0.15s;
}
.tr-item:last-child { border-right: none; }
.tr-item:hover { opacity: 0.75; }
.tr-num,
.tr-date {
    font-family: var(--mono, monospace);
    font-size: 10px;
    font-weight: 700;
    color: var(--bottle, #1B3A2F);
    margin-bottom: 4px;
}
.tr-cat {
    font-family: var(--label, sans-serif);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
.tr-title {
    font-family: var(--display, serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 8px;
}
.tr-figure {
    font-family: var(--display, serif);
    font-size: 22px;
    font-weight: 900;
    color: var(--bottle);
    line-height: 1;
    white-space: nowrap;
    margin-top: auto;
}

/* ── Mobile: stack vertically, records in 2-col grid ─────── */
@media (max-width: 768px) {
    /* Hero stacks. Remove side padding so the image is true full width;
       the text keeps its inset via .hero-main padding. */
    .hero-post {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 24px 0 0 !important;
    }
    .hero-main { padding: 0 16px 24px !important; }

    /* Image full width (no vw / no negative margins — Safari-safe) */
    .hero-image-slot {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        aspect-ratio: 16/9;
        border-left: none;
        border-right: none;
    }

    /* Today's Records — swipe strip (2 visible) */
    .todays-records-bar { padding: 0 16px; }
    .tr-item {
        padding: 16px 14px 16px 0;
    }
    .tr-figure { font-size: 12px !important; }
    .tr-title { font-size: 13px !important; }

    /* Hero title smaller on mobile */
    .hero-title { font-size: 36px !important; line-height: 1.1 !important; }
    .hero-lead { font-size: 15px !important; }
}

@media (max-width: 400px) {
    .tr-item { padding-right: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   V18 — Mobile layout fix + proportional sizes
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── General ─────────────────────────────────────────── */
    body { overflow-x: hidden; font-size: 15px; }

    /* ── Header ──────────────────────────────────────────── */
    .masthead {
        padding: 14px 16px !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .masthead-title { font-size: 18px !important; line-height: 1.1; }
    .masthead-tagline { display: none; }
    .masthead-date { display: none; }
    .masthead-cta { display: flex; align-items: center; gap: 6px; }
    .btn-subscribe { font-size: 10px !important; padding: 7px 12px !important; }
    .search-toggle { width: 28px !important; height: 28px !important; font-size: 14px !important; }

    /* ── Nav ─────────────────────────────────────────────── */
    .main-nav-inner { padding: 0 16px; }
    .main-nav a { font-size: 11px !important; padding: 10px 12px !important; }

    /* ── Hero ────────────────────────────────────────────── */
    .hero-post {
        grid-template-columns: 1fr !important;
        padding: 16px 0 0 !important;
        gap: 0 !important;
    }
    .hero-main { padding: 0 16px 0 !important; }
    .hero-eyebrow { font-size: 10px !important; margin-bottom: 10px; }
    .hero-title { font-size: 32px !important; line-height: 1.1 !important; margin-bottom: 10px; }
    .hero-lead { font-size: 15px !important; line-height: 1.6 !important; margin-bottom: 6px !important; }

    /* ── Image slot (full width, no vw / no negative margins — Safari-safe) ─ */
    .hero-image-slot {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        aspect-ratio: 16/9 !important;
        border-radius: 0;
        border-left: none !important;
        border-right: none !important;
    }
    .hero-image-placeholder { min-height: 180px; }

    /* ── Today's Records bar ─────────────────────────────── */
    .todays-records-bar { padding: 0 16px !important; }
    .todays-records-label { font-size: 9px !important; padding: 12px 0 10px !important; }
    .tr-item { padding: 14px 14px 14px 0 !important; }
    .tr-num, .tr-date { font-size: 9px !important; }
    .tr-cat { font-size: 8px !important; }
    .tr-title { font-size: 12px !important; line-height: 1.3 !important; }
    .tr-figure { font-size: 12px !important; }

    /* ── Section headers ─────────────────────────────────── */
    .section-header { padding: 10px 16px !important; flex-wrap: wrap; gap: 6px; }
    .section-header h2 { font-size: 11px !important; }
    .section-header .subtopics { display: none; }
    .section-header .count { margin-left: auto; font-size: 10px !important; }

    /* ── Article cards ───────────────────────────────────── */
    .articles-grid { grid-template-columns: 1fr !important; }
    .article-card { padding: 16px !important; border-right: none !important; }
    .article-card h3 { font-size: 16px !important; line-height: 1.3 !important; }
    .article-card .excerpt { font-size: 13px !important; }
    .article-card .figure { font-size: 26px !important; }
    .article-card .meta-line { font-size: 9px !important; }
    .article-card .footer { font-size: 9px !important; }

    /* ── Article single ──────────────────────────────────── */
    .article-hero { padding: 20px 16px !important; }
    .article-title { font-size: 28px !important; line-height: 1.15 !important; }
    .article-deck { font-size: 15px !important; }
    .article-body { padding: 20px 16px !important; }
    .article-body p { font-size: 16px !important; line-height: 1.75 !important; }
    .data-sheet { padding: 20px 16px !important; }
    .data-sheet-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
    .data-cell .value { font-size: 15px !important; }
    .data-cell .value.large { font-size: 22px !important; }

    /* ── Newsletter ──────────────────────────────────────── */
    .newsletter { padding: 32px 16px !important; }
    .newsletter h2 { font-size: 28px !important; }
    .newsletter-form { flex-direction: column !important; width: 100% !important; }
    .newsletter-form input { width: 100% !important; }
    .newsletter-form button { width: 100% !important; }

    /* ── Footer ──────────────────────────────────────────── */
    .footer-top { grid-template-columns: 1fr !important; gap: 24px !important; padding: 32px 16px !important; }
    .footer-bottom { padding: 16px !important; flex-direction: column !important; gap: 8px !important; text-align: center !important; }

    /* ── Share buttons ───────────────────────────────────── */
    .share-buttons { padding: 16px 0 !important; }
    .share-btn { width: 32px !important; height: 32px !important; font-size: 11px !important; }

    /* ── Related posts ───────────────────────────────────── */
    .related-grid { grid-template-columns: 1fr !important; }
    .related-posts { padding: 24px 16px !important; }
}

/* ═══════════════════════════════════════════════════════════
   V19.5 — WSJ-style news river (section blocks below the hero)
   Replaces the rigid 3-card grid with a dense newspaper river:
   hairline column rules, mixed photo / text-only stories, and a
   spanning photo lead. Photo visibility is per-article
   (_show_card_image) and only applies if a featured image exists.
   ═══════════════════════════════════════════════════════════ */
.wsj-section {
    background: var(--paper);
    padding: 0 32px;
}
.wsj-section-head {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 14px 0 10px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 0;
}
.wsj-subtopics { display: flex; gap: 14px; flex-wrap: wrap; }
.wsj-subtopics span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* River: grid lattice. Rows align so the hairlines close into a clean grid
   (horizontal and vertical rules meet at the corners) and columns fill in
   order. The date / Full Report row pins to the bottom of every cell, so the
   gap from the last content to the closing line is identical in every story. */
.wsj-river {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
}
.wsj-river > .wsj-story {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}
.wsj-river > .wsj-story .wsj-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.wsj-river > .wsj-story .wsj-foot { margin-top: 10px; }

.wsj-kicker {
    display: inline-block;
    font-family: var(--label);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bottle);
    margin-bottom: 7px;
}
.wsj-story h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.24;
    color: var(--ink);
    margin-bottom: 7px;
}
.wsj-story h3 a { color: inherit; }
.wsj-story h3 a:hover { color: var(--bottle); }
.wsj-dek {
    font-family: var(--body);
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-soft);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wsj-figure {
    font-family: var(--display);
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
    color: var(--bottle);
    margin-bottom: 9px;
}
.wsj-foot {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.wsj-more {
    margin-left: auto;
    color: var(--bottle);
    font-weight: 700;
    letter-spacing: 0.14em;
}

/* Photo stories (in-column): image sits on top of the item */
.wsj-media {
    display: block;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--paper-deep);
    border: 1px solid var(--rule);
}
.wsj-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    transition: transform 0.4s ease;
}
.wsj-media:hover .wsj-img { transform: scale(1.03); }
.wsj-story.has-photo h3 { font-size: 18px; }

/* LEAD story: full-width block above the grid, big photo beside headline */
.wsj-story.is-lead {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 30px;
    align-items: start;
    padding: 14px 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--rule);
}
.wsj-story.is-lead .wsj-body { order: 1; }
.wsj-story.is-lead .wsj-media { order: 2; margin-bottom: 0; align-self: stretch; }
.wsj-story.is-lead .wsj-img { aspect-ratio: 4 / 3; height: 100%; }
.wsj-story.is-lead h3 { font-size: 30px; line-height: 1.12; margin-bottom: 12px; }
.wsj-story.is-lead .wsj-dek { font-size: 15px; -webkit-line-clamp: 5; }
.wsj-story.is-lead .wsj-figure { font-size: 30px; }

/* ── Responsive grid ─────────────────────────────────────── */
@media (min-width: 601px) and (max-width: 980px) {
    .wsj-river { grid-template-columns: repeat(2, 1fr); }
    .wsj-river > .wsj-story { padding: 16px 26px; border-right: 1px solid var(--rule); }
    .wsj-river > .wsj-story:nth-child(2n) { border-right: none; padding-right: 0; }
    .wsj-river > .wsj-story:nth-child(2n+1) { padding-left: 0; }
}
@media (min-width: 981px) {
    .wsj-river { grid-template-columns: repeat(3, 1fr); }
    .wsj-river > .wsj-story { padding: 16px 26px; border-right: 1px solid var(--rule); }
    .wsj-river > .wsj-story:nth-child(3n) { border-right: none; padding-right: 0; }
    .wsj-river > .wsj-story:nth-child(3n+1) { padding-left: 0; }
}
@media (max-width: 980px) {
    /* Lead stacks on tablet and mobile */
    .wsj-story.is-lead { grid-template-columns: 1fr; gap: 18px; }
    .wsj-story.is-lead .wsj-body { order: 2; }
    .wsj-story.is-lead .wsj-media { order: 1; }
    .wsj-story.is-lead .wsj-img { aspect-ratio: 16 / 9; }
    .wsj-story.is-lead h3 { font-size: 27px; }
}
@media (max-width: 600px) {
    .wsj-section { padding: 0 16px; }
    .wsj-section-head { padding: 14px 0 10px; gap: 10px; flex-wrap: wrap; }
    .wsj-subtopics { display: none; }
    .wsj-story h3, .wsj-story.has-photo h3 { font-size: 16px; }
    .wsj-story.is-lead h3 { font-size: 23px; }
    .wsj-figure, .wsj-story.is-lead .wsj-figure { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   V20.3 — Footer: Sections / The Paper / Legal en horizontal,
   con los enlaces desplegados en vertical (menos espacio en blanco)
   ═══════════════════════════════════════════════════════════ */
.footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
}
.footer-brand { grid-column: 1 / -1; }
.footer-col h4 { margin-bottom: 10px; }
.footer-col ul { list-style: none; display: block; }
.footer-col li { margin-bottom: 6px; }
@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px 12px !important;
        padding: 28px 16px 24px !important;
    }
    .footer-col h4 { font-size: 11px !important; }
    .footer-col a { font-size: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════
   V20.5 — Budget War (escritorio): acortar el ancho, centrar y
   dar respiro lateral. En movil se mantiene como estaba (50%).
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    .tr-item { flex: 1 1 0; }
    .tr-item:last-child { border-right: none; padding-right: 0; }
}

/* ═══════════════════════════════════════════════════════════
   V20.14 — Solo movil: tarjetas con foto del rio en horizontal
   (foto a la izquierda, texto a la derecha). Escritorio y tableta
   se quedan apiladas.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .wsj-river > .wsj-story.has-photo {
        flex-direction: row;
        gap: 14px;
        align-items: stretch;
    }
    .wsj-river > .wsj-story.has-photo .wsj-media {
        flex: 0 0 40%;
        margin-bottom: 0;
        align-self: stretch;
    }
    .wsj-river > .wsj-story.has-photo .wsj-img {
        height: 100%;
        aspect-ratio: auto;
    }
    .wsj-river > .wsj-story.has-photo .wsj-body {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   V20.17 — Cabecera escritorio: titulo un poco mas grande,
   botones de busqueda y Subscribe un poco mas pequeños.
   Solo cabecera y solo escritorio; el movil no cambia.
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 601px) {
    .masthead-title { font-size: 38px !important; }
    .masthead .search-toggle,
    .search-toggle {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .masthead .btn-subscribe {
        padding: 10px 18px !important;
        font-size: 10px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   V20.18 — Cabecera: escritorio (Subscribe mas ancho, lupa
   centrada en vertical con Subscribe) y movil (titulo un poco
   mas grande, lupa y Subscribe un poco mas pequeños).
   ═══════════════════════════════════════════════════════════ */
.masthead-cta {
    display: flex;
    align-items: center;
}
@media (min-width: 601px) {
    .masthead .btn-subscribe { padding: 10px 30px !important; }
}
@media (max-width: 600px) {
    .masthead-title { font-size: 19px !important; white-space: nowrap; }
    .masthead .search-toggle {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
    }
    .masthead .btn-subscribe {
        font-size: 9px !important;
        padding: 6px 10px !important;
    }
}
