/*
Theme Name: African Meridian
Theme URI: https://theafricanmeridian.example
Author: The African Meridian
Author URI: https://theafricanmeridian.example
Description: The official WordPress theme for The African Meridian — a Pan-African news homepage with a live breaking ticker, category-based navigation, and full support for the African Meridian News Feed plugin. Contact: media@africanmedia.com
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: african-meridian
*/

/* ─── VARIABLES ─── */
:root {
  --ink: #14120F;
  --paper: #FAF6EF;
  --paper-dim: #F1EAD9;
  --terra: #E2572B;
  --terra-dark: #B8431E;
  --ochre: #E8A73A;
  --teal: #1F6F63;
  --line: #DDD3BC;
  --text: #221F1A;
  --muted: #746A5B;
  --white: #FFFFFF;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ─── TOP UTILITY BAR ─── */
.utility-bar { background: var(--ink); color: rgba(255,255,255,0.55); padding: 9px 0; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; }
.utility-date { font-family: 'Space Grotesk', sans-serif; font-size: 12px; letter-spacing: 0.05em; }
.utility-date strong { color: var(--ochre); font-weight: 600; }
.utility-links { display: flex; gap: 22px; list-style: none; }
.utility-links a { font-size: 12px; font-weight: 500; text-decoration: none; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.utility-links a:hover { color: var(--white); }

/* ─── BREAKING TICKER ─── */
.ticker-bar { background: var(--terra); color: var(--white); display: flex; align-items: center; overflow: hidden; }
.ticker-flag {
  background: var(--terra-dark); font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 10px 18px; white-space: nowrap; flex-shrink: 0;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track { display: flex; gap: 56px; white-space: nowrap; animation: scroll-ticker 38s linear infinite; padding: 10px 0; }
.ticker-track span { font-size: 13px; font-weight: 500; }
.ticker-track span::before { content: "\25CF"; font-size: 6px; vertical-align: middle; margin-right: 10px; opacity: 0.7; }
@keyframes scroll-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── STICKY NAV ─── */
.main-nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 200; }
.main-nav .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; background: var(--ink); border-radius: 50%; position: relative; flex-shrink: 0; }
.brand-mark::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 1px; height: 30px; background: var(--terra); }
.brand-mark::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border: 1px solid var(--ochre); border-radius: 50%; }
.brand-word { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.1; color: var(--ink); letter-spacing: -0.01em; }
.brand-word span { color: var(--terra); }
.brand-sub { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; list-style: none; gap: 4px; flex-wrap: wrap; }
.nav-links li { list-style: none; }
.nav-links a {
  display: block; padding: 10px 14px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--text); text-decoration: none; border-radius: 999px; transition: all 0.2s;
}
.nav-links a:hover { background: var(--paper-dim); color: var(--terra-dark); }
.nav-links li.current-menu-item > a,
.nav-links li.current-menu-parent > a,
.nav-links li.active a { background: var(--ink); color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); flex-shrink: 0; text-decoration: none;
}
.icon-btn:hover { border-color: var(--terra); color: var(--terra); }
.mobile-menu-toggle { display: none; font-size: 16px; }
.btn-subscribe {
  background: var(--terra); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em; padding: 11px 22px; border-radius: 999px; border: none; cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: background 0.2s; display: inline-block;
}
.btn-subscribe:hover { background: var(--terra-dark); }

/* ─── SUB-NAV / TRENDING STRIP ─── */
.sub-nav { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.08); }
.sub-nav .container { display: flex; align-items: center; gap: 18px; padding: 9px 28px; overflow-x: auto; scrollbar-width: none; }
.sub-nav .container::-webkit-scrollbar { display: none; }
.sub-nav .sub-nav-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ochre); flex-shrink: 0;
}
.sub-nav a {
  font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.65);
  text-decoration: none; white-space: nowrap; transition: color 0.2s;
}
.sub-nav a:hover { color: var(--white); }

/* ─── HOMEPAGE HERO: text-over-image lead card + headlines rail ─── */
.am-hero { background: var(--paper); padding: 36px 0 0; }
.am-hero-top { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.live-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--terra); position: relative; flex-shrink: 0; display: inline-block; }
.live-pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--terra); animation: pulse-ring 2.2s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.am-hero-top .eyebrow { color: var(--terra-dark); }

.am-hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; padding-bottom: 56px; align-items: stretch; }

.am-hero-lead { position: relative; display: block; }
.am-hero-lead-media {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  width: 100%; height: 560px; border-radius: 24px; overflow: hidden; text-decoration: none;
  background: linear-gradient(160deg, var(--ink) 0%, var(--terra-dark) 45%, var(--ochre) 100%);
  box-shadow: 0 30px 60px -22px rgba(20,18,15,0.4);
}
.am-hero-lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; z-index: 0; }
.am-hero-lead-media:hover img { transform: scale(1.045); }
.am-hero-lead-media:hover h1 { color: var(--ochre); }
.am-hero-lead-overlay {
  position: relative; z-index: 1; padding: 44px 40px 34px;
  background: linear-gradient(0deg, rgba(10,9,7,0.94) 0%, rgba(10,9,7,0.72) 40%, rgba(10,9,7,0.05) 85%, transparent 100%);
}
.am-hero-tag {
  display: inline-block; background: var(--terra); color: var(--white); font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 7px 14px;
  border-radius: 999px; margin-bottom: 18px;
}
.am-hero-lead h1 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; color: var(--white); margin-bottom: 14px; transition: color 0.2s; }
.am-hero-deck { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,0.82); max-width: 640px; margin-bottom: 16px; line-height: 1.6; }
.am-byline.on-dark span { color: rgba(255,255,255,0.6); }
.am-byline.on-dark .dot { color: rgba(255,255,255,0.3); }

.am-hero-rail { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 4px 26px; }
.am-hero-rail-title { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 24px 0 16px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.am-hero-rail-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.am-hero-rail-item:last-child { border-bottom: none; }
.am-hero-rail-media { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, var(--terra), var(--terra-dark)); }
.am-hero-rail-media img { width: 100%; height: 100%; object-fit: cover; }
.am-hero-rail-item .eyebrow { color: var(--terra-dark); font-size: 10px; }
.am-hero-rail-item h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.3; margin: 6px 0; }
.am-hero-rail-item h4 a { color: var(--ink); text-decoration: none; }
.am-hero-rail-item h4 a:hover { color: var(--terra); }

/* ─── SECTION STRIPS (Jeune Afrique / BBC-style topic blocks) ─── */
.home-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; padding: 8px 0 56px; }
.section-strip { padding-bottom: 44px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.section-strip:last-child { border-bottom: none; margin-bottom: 0; }
.section-strip .am-card-grid { grid-template-columns: repeat(4, 1fr); }

/* Sidebar: Just In */
.sidebar-block { margin-bottom: 44px; }
.sidebar-block h3 { font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.numbered-list { list-style: none; }
.numbered-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.numbered-list li:last-child { border-bottom: none; }
.list-num { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--line); line-height: 1; flex-shrink: 0; width: 30px; }
.list-content h4 { font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.list-content h4 a { color: var(--ink); text-decoration: none; }
.list-content h4 a:hover { color: var(--terra); }
.list-content span { font-size: 12px; color: var(--muted); }

/* Sidebar: Opinion box */
.opinion-mini { background: var(--paper-dim); border-top: 3px solid var(--ochre); border-radius: 4px; padding: 22px; margin-bottom: 16px; }
.opinion-mini blockquote { font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.5; color: var(--ink); margin-bottom: 14px; }
.opinion-mini-author { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

/* ─── LIVE MARKETS TICKER (TradingView widget) ─── */
.markets-live { background: var(--paper-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; }

/* ─── MARKETS STRIP (legacy — no longer used on the homepage, kept for reference) ─── */
.markets { background: var(--ink); padding: 26px 0; }
.markets-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.markets-head .eyebrow { color: rgba(255,255,255,0.4); }
.markets-head .updated { font-size: 12px; color: rgba(255,255,255,0.3); }
.markets-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; }
.market-cell { background: #1B1916; padding: 16px 20px; }
.market-cell .name { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); margin-bottom: 8px; }
.market-cell .value { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.market-cell .change { font-size: 12px; font-weight: 600; }
.up { color: #6FCF97; }
.down { color: #EB5757; }
.sample-tag {
  display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ochre); border: 1px solid rgba(232,167,58,0.4); border-radius: 999px; padding: 3px 10px; margin-left: 10px;
}

/* ─── SECTION HEADERS ─── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 12px; }
.section-head .eyebrow { color: var(--terra-dark); margin-bottom: 8px; display: block; }
.section-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.section-head a { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--terra); padding-bottom: 3px; white-space: nowrap; }
.feed-section { background: var(--paper); padding: 72px 0; }
.feed-fallback { border: 2px dashed var(--line); border-radius: 20px; background: var(--paper-dim); padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }

/* ─── NEWSLETTER (legacy — section removed from homepage, kept for reference) ─── */
.newsletter { background: linear-gradient(135deg, var(--terra) 0%, var(--terra-dark) 55%, var(--ink) 100%); padding: 76px 0; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; top: -20%; right: -10%; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); }
.newsletter-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; position: relative; z-index: 1; }
.newsletter h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; color: var(--white); margin-bottom: 10px; letter-spacing: -0.01em; }
.newsletter p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 460px; }
.newsletter-form { display: flex; gap: 10px; min-width: 420px; }
.newsletter-form input { flex: 1; padding: 15px 18px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; color: var(--white); font-family: 'Inter', sans-serif; font-size: 14px; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter-form button { background: var(--ink); color: var(--white); border: none; padding: 15px 26px; border-radius: 999px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.newsletter-form button:hover { background: #000; }

/* ─── FOOTER (fully designed) ─── */
.am-footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 64px 0 0; }
.am-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.am-footer-brand { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.am-footer-mark { width: 40px; height: 40px; background: var(--white); border-radius: 50%; position: relative; flex-shrink: 0; }
.am-footer-mark::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 1px; height: 30px; background: var(--terra); }
.am-footer-mark::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border: 1px solid var(--ochre); border-radius: 50%; }
.am-footer-brand h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); line-height: 1.2; }
.am-footer-brand h3 span { color: var(--terra); }
.am-footer-brand .am-tagline { font-size: 13px; color: var(--ochre); margin-top: 2px; }
.am-footer-desc { font-size: 14px; line-height: 1.7; max-width: 300px; margin-bottom: 20px; }
.am-footer-contact { font-size: 14px; margin-bottom: 20px; }
.am-footer-contact a { color: var(--white); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.25); }
.am-footer-contact a:hover { color: var(--ochre); border-color: var(--ochre); }
.am-footer-social { display: flex; gap: 10px; }
.am-social-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); text-decoration: none; transition: all 0.2s; border-radius: 50%; }
.am-social-btn:hover { background: var(--terra); color: var(--white); border-color: var(--terra); }
.am-footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(232,167,58,0.25); }
.am-footer-col ul { list-style: none; }
.am-footer-col ul li { font-size: 14px; padding: 6px 0; }
.am-footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.am-footer-col ul li a:hover { color: var(--white); }
.am-footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.am-footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.am-footer-bottom a:hover { color: var(--white); }
.am-footer-legal { display: flex; gap: 18px; }

/* ─── CATEGORY / ARCHIVE PAGE ─── */
.archive-header { background: var(--ink); padding: 56px 0; }
.archive-header .eyebrow { color: var(--ochre); margin-bottom: 10px; display: block; }
.archive-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.archive-header p { color: rgba(255,255,255,0.6); margin-top: 12px; max-width: 560px; }
.archive-section { padding: 56px 0; }
.am-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.am-card { display: flex; flex-direction: column; }
.am-card-media { display: block; width: 100%; height: 190px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: linear-gradient(135deg, var(--terra), var(--terra-dark)); }
.am-card-media img { width: 100%; height: 100%; object-fit: cover; }
.am-card .eyebrow { color: var(--terra-dark); margin-bottom: 8px; display: block; }
.am-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.am-card h3 a { color: var(--ink); text-decoration: none; }
.am-card h3 a:hover { color: var(--terra); }
.am-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.am-byline { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }
.am-byline .dot { margin: 0 8px; color: var(--line); }
.am-empty { font-size: 14px; color: var(--muted); padding: 40px 0; text-align: center; }

.cat-featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.cat-featured-media { width: 100%; height: 340px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--terra), var(--terra-dark)); }
.cat-featured-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-featured h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.cat-featured h2 a { color: var(--ink); text-decoration: none; }
.cat-featured h2 a:hover { color: var(--terra); }
.cat-featured p { font-family: var(--font-serif); color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
@media (max-width: 860px) { .cat-featured { grid-template-columns: 1fr; } .cat-featured-media { height: 220px; } }

.am-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.am-pagination a, .am-pagination span {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.am-pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.am-pagination a:hover { border-color: var(--terra); color: var(--terra-dark); }

/* ─── SINGLE ARTICLE ─── */
.single-article-header { background: var(--white); padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.single-article-header .eyebrow { color: var(--terra-dark); margin-bottom: 14px; display: block; text-decoration: none; }
.single-article-header h1 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; color: var(--ink); line-height: 1.1; margin-bottom: 18px; max-width: 900px; }
.single-article-deck { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--muted); max-width: 720px; margin-bottom: 22px; line-height: 1.5; }
.single-article-media { width: 100%; max-height: 560px; overflow: hidden; border-radius: 16px; margin: 32px 0 8px; }
.single-article-media img { width: 100%; object-fit: cover; }
.single-article-caption { font-family: var(--font-body); font-size: 13px; color: var(--muted); padding-bottom: 8px; }

.single-article-body {
  max-width: 720px; margin: 0 auto; padding: 44px 0 8px;
  font-family: var(--font-serif); font-size: 20px; line-height: 1.75; color: var(--text);
}
.single-article-body p { margin-bottom: 24px; }
.single-article-body > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 76px; line-height: 0.78;
  float: left; padding: 6px 10px 0 0; color: var(--terra);
}
.single-article-body h2, .single-article-body h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 36px 0 16px; line-height: 1.25; }
.single-article-body blockquote {
  font-family: var(--font-serif); font-style: italic; font-size: 26px; line-height: 1.5; color: var(--ink);
  border-left: 3px solid var(--terra); padding: 4px 0 4px 28px; margin: 36px 0;
}
.single-article-body img { border-radius: 12px; margin: 24px 0; }
.single-article-body a { color: var(--terra-dark); text-decoration-thickness: 1px; }

.single-article-meta-row {
  max-width: 720px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding: 0 0 32px;
}
.share-bar { display: flex; align-items: center; gap: 8px; }
.share-bar span.label { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink); text-decoration: none; transition: all 0.2s; }
.share-btn:hover { border-color: var(--terra); color: var(--terra); }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { font-family: var(--font-display); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: var(--paper-dim); color: var(--text); text-decoration: none; }
.tag-pill:hover { background: var(--ochre); color: var(--ink); }

.author-box {
  max-width: 720px; margin: 0 auto 8px; display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--paper-dim); border-radius: 16px;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--terra), var(--ochre));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 18px;
}
.author-box h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.author-box p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.related-strip { background: var(--paper-dim); padding: 56px 0; margin-top: 24px; }

/* ─── PAGE TEMPLATE (Editorial Standards, Advertise, Careers, Privacy, Terms, Cookie Policy) ─── */
.page-header { background: var(--ink); padding: 56px 0; }
.page-breadcrumb { font-family: var(--font-display); font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.page-breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--white); }
.page-breadcrumb .sep { margin: 0 8px; }
.page-header .eyebrow { color: var(--ochre); margin-bottom: 10px; display: block; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--white); }
.page-layout { max-width: 1180px; margin: 0 auto; padding: 56px 28px 72px; display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.page-content { font-family: var(--font-serif); font-size: 18px; line-height: 1.8; }
.page-content p { margin-bottom: 20px; }
.page-content h2, .page-content h3 { font-family: var(--font-display); color: var(--ink); margin: 32px 0 14px; }
.page-content h2:first-child, .page-content h3:first-child { margin-top: 0; }
.page-content em { color: var(--muted); font-size: 15px; }
.page-content strong { color: var(--terra-dark); }
.page-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.page-sidebar .sidebar-card { background: var(--paper-dim); border-radius: 16px; padding: 26px; }
.page-sidebar .sidebar-card h4 { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: 16px; }
.page-sidebar .sidebar-card ul { list-style: none; }
.page-sidebar .sidebar-card ul li { border-bottom: 1px solid var(--line); }
.page-sidebar .sidebar-card ul li:last-child { border-bottom: none; }
.page-sidebar .sidebar-card ul li a { display: block; padding: 10px 0; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.page-sidebar .sidebar-card ul li a:hover { color: var(--terra); }
.page-sidebar .sidebar-card ul li a.is-current { color: var(--terra-dark); }
.page-sidebar .sidebar-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.page-sidebar .sidebar-card.contact { background: var(--ink); }
.page-sidebar .sidebar-card.contact h4 { color: var(--ochre); }
.page-sidebar .sidebar-card.contact p { color: rgba(255,255,255,0.65); }
.page-sidebar .sidebar-card.contact a.btn-primary { background: var(--terra); font-size: 13px; padding: 12px 20px; }
.page-sidebar .sidebar-card.contact a.btn-primary:hover { background: var(--white); color: var(--ink); }

/* ─── RESPONSIVE ─── */

/* Small laptops / iPad landscape */
@media (max-width: 1024px) {
  .am-hero-grid { grid-template-columns: 1fr; padding-bottom: 40px; }
  .am-hero-lead-media { height: 420px; }
  .am-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .am-card-grid { grid-template-columns: repeat(2, 1fr); }
  .home-content-grid { grid-template-columns: 1fr; }
  .section-strip .am-card-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-featured { grid-template-columns: 1fr; }
  .cat-featured-media { height: 240px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .page-sidebar .sidebar-card { flex: 1 1 260px; }
}

/* iPad portrait and large phones — nav collapses into the ☰ menu toggle here */
@media (max-width: 860px) {
  .main-nav .container { height: 68px; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px;
    box-shadow: 0 12px 24px rgba(20,18,15,0.08); z-index: 300;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .utility-links { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* Phones */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .am-footer-grid { grid-template-columns: 1fr; }
  .am-card-grid { grid-template-columns: 1fr; }
  .section-strip .am-card-grid { grid-template-columns: 1fr; }
  .am-hero-lead-media { height: 280px; }
  .am-hero-lead-overlay { padding: 26px 22px 22px; }
  .brand-word { font-size: 16px; }
  .single-article-body { font-size: 18px; }
  .single-article-body > p:first-of-type::first-letter { font-size: 58px; }
  .author-box { flex-direction: column; }
  .page-sidebar { flex-direction: column; }
}

/* Small phones */
@media (max-width: 400px) {
  .utility-bar .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .am-footer-bottom { flex-direction: column; align-items: flex-start; }
}
