/* ====================================================================
   MAP Alert Press — main.css
   White + gold-accent brand system. Inter (UI/body) + Merriweather (headlines).
   ==================================================================== */


/* ── PALETTE + FONTS ──────────────────────────────────────────────── */
:root {
  --map-bg:              #FFFFFF;
  --map-bg-soft:         #F7F7F5;
  --map-text:            #000000;
  --map-muted:           #444444;
  --map-muted-2:         #888888; /* meta/secondary text — 5.32:1 on --map-bg/--map-bg-soft (WCAG AA 4.5:1) */
  --map-accent:          #C89636; /* bright gold — fills/dividers/borders/badges/large (18px+/bold) text only. 2.67:1 on white — FAILS AA for normal text, do not use for small body-readable text */
  --map-accent-text:     #8A6D00; /* AA-safe gold for links/labels/rubrics (small readable text) — 4.92:1 on white, clears WCAG AA 4.5:1 */
  --map-accent-hover:    #AA7F2E; /* darkened accent for hover fills (chip hover) — keeps --map-accent-contrast (black) text well above AA on hover */
  --map-accent-contrast: #000000; /* ink for text/icons sitting ON solid --map-accent fills (badges/chips) — 7.87:1 black-on-gold; white-on-gold only hits 2.67:1 and fails */
  --map-border:          #E5E5E5;
  --map-search-bg:       #F7F7F5;
  --map-search-border:   #E5E5E5;
  --map-cta-bg:          #FFFFFF;
  --map-cta-text:        #000000;
  --map-cta-hover:       #C89636; /* solid gold fill on hover (outlined CTA system) */

  /* Signal-bar states (map_verified_feed / render_card()) — semantic status
     colors, distinct from the gold brand accent above. */
  --map-verified-bg:     #ECFDF5;
  --map-verified:        #065F46;
  --map-review-bg:       #FFFBEB;
  --map-review:          #92400E;
  --map-signals-bg:      #FEF2F2;
  --map-signals:         #991B1B;

  /* legacy aliases used throughout this file */
  --black:      #000;
  --white:      #fff;
  --off-white:  #f7f7f5;
  --border:     #e5e5e5;
  --mid:        #888;
  --dark:       #333;
  --gold:       #c89636;
  --gold-dark:  #8a6d00;
  --ink:        var(--map-text);
  --body-text:  var(--map-muted);
  --meta:       var(--map-muted-2);

  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 4px;
  --t: 150ms ease;
}


/* ── BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

/* ── ACCESSIBILITY: visually-hidden labels, skip link, focus rings ──── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.map-skip-link {
  position: absolute;
  top: -48px; left: 8px;
  z-index: 2000;
  background: var(--map-accent);
  color: var(--map-accent-contrast);
  font-family: var(--sans);
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 18px;
  border-radius: 3px;
  text-decoration: none;
  transition: top var(--t);
}
.map-skip-link:focus {
  top: 8px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.map-signal-bar:focus-visible {
  outline: 2px solid var(--map-accent-text);
  outline-offset: 2px;
  border-radius: 2px;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--map-muted);
  background: var(--map-bg);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--map-accent-text); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--map-text); }


/* ── GLOBAL TYPOGRAPHY COMPONENTS ────────────────────────────────── */

.map-section-rule { border-top: 2px solid var(--map-accent); padding-top: 10px; margin-bottom: 18px; }
.map-section-rule--with-link { display: flex; align-items: baseline; justify-content: space-between; }

.map-river-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; padding-bottom: 40px; }

.map-section-title {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--map-text);
}
.map-section-title--left { text-align: left; }

.map-section-more {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--map-muted-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.map-section-more:hover { color: var(--map-accent-text); }

.map-rubric {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--map-accent-text);
  margin-bottom: 5px;
}
.map-rubric--cover { color: var(--map-accent-text); }
.map-rubric--sm    { font-size: 10px; }

.map-byline {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--map-muted-2);
  margin-top: 6px;
}
.map-byline--light { color: rgba(255,255,255,.65); }

.map-label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--map-accent-text);
  margin-bottom: 8px;
}
.map-label--gold { color: var(--map-accent-text); }

.map-btn {
  display: inline-block;
  background: var(--map-cta-bg);
  color: var(--map-cta-text) !important;
  border: 2px solid var(--map-accent);
  padding: 10px 20px;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  transition: background var(--t), color var(--t);
}
.map-btn:hover { background: var(--map-cta-hover); color: var(--map-cta-text) !important; }

/* Shared hover affordance for outlined gold CTAs that are hardcoded with
   inline style="" in shortcode-generated markup (class-map-intelligence.php,
   map-institutional-fix.php, and page content:encoded blocks) — inline
   styles can't express :hover, so those buttons/links carry this class
   alongside their inline base styling. */
.map-outline-cta:hover { background: var(--map-accent) !important; color: #000 !important; }

/* Category chip (new system) */
.map-cat-label {
  display: inline-block;
  background: var(--map-accent);
  color: var(--map-accent-contrast);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 7px;
  text-decoration: none;
  margin-bottom: 8px;
}
.map-cat-label:hover { background: var(--map-accent-hover); color: var(--map-accent-contrast); }

/* Section head: label + border-bottom rule + "see more" link */
.map-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--map-accent);
  margin: 42px 0 24px;
  padding-bottom: 10px;
}
.map-section-head > span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--map-accent-text);
}


/* ── LAYOUT CONTAINERS ───────────────────────────────────────────── */
.map-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.map-container--narrow { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.map-main { display: block; width: 100%; }
#map-homepage { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* Two-column wire layout: main + rail */
.map-two-col { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.map-two-col__main { min-width: 0; }


/* ── HEADER ───────────────────────────────────────────────────────── */

.map-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--map-bg);
  color: var(--map-text);
  width: 100%;
  transition: transform .25s ease;
}
.map-header--hidden { transform: translateY(-100%); }
body.admin-bar .map-header { top: 32px; }

/* Utility bar */
.map-header__utility { background: var(--map-bg); border-bottom: 1px solid var(--map-border); height: 32px; display: flex; align-items: center; padding: 0 24px; }
.map-header__utility-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.map-header__date { font-family: var(--sans); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--map-muted-2); }
.map-header__util-nav { display: flex; align-items: center; gap: 18px; }
.map-header__util-link { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--map-muted); transition: color var(--t); }
.map-header__util-link:hover { color: var(--map-accent-text); }
.map-header__util-link--cta { color: var(--map-cta-text); background: var(--map-cta-bg); border: 1px solid var(--map-accent); padding: 2px 9px; border-radius: 3px; font-weight: 700; }
.map-header__util-link--cta:hover { background: var(--map-cta-hover); color: var(--map-cta-text); }

/* Logo row — its own row, logo centered, hamburger left / CTA right */
.map-header__logo-row { min-height: 88px; display: flex; align-items: center; border-bottom: 1px solid var(--map-border); padding: 0 32px; }
.map-header__logo-row-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; width: 100%; max-width: 1400px; margin: 0 auto; }
.map-header__logo-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; line-height: 1; grid-column: 2; }
.map-header__logo-shield { height: 58px; width: auto; flex-shrink: 0; max-height: 58px; }
.map-header__logo-text { display: block; font-family: var(--sans); font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: var(--map-text); text-transform: uppercase; }
.map-header__logo-map { color: var(--map-accent-text); }
.map-header__logo-press { color: var(--map-text); }

/* Nav row — directly below the logo row */
.map-header__nav-wrap { min-height: 54px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--map-border); padding: 0 32px; background: var(--map-bg-soft); }
.map-header__nav-inner { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1400px; margin: 0 auto; }
.map-header__nav-list { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; }
.map-header__nav-list li a {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--map-text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  padding: 14px 0;
  display: inline-block;
  transition: color var(--t), border-color var(--t);
}
.map-header__nav-list li a:hover,
.map-header__nav-list li a.is-active { color: var(--map-accent-text); border-bottom-color: var(--map-accent-text); }
.map-header__cta-btn { background: var(--map-cta-bg) !important; color: var(--map-cta-text) !important; font-weight: 700 !important; padding: 7px 15px !important; border-radius: 3px !important; border: 2px solid var(--map-accent) !important; border-bottom: 2px solid var(--map-accent) !important; grid-column: 3; justify-self: end; }
.map-header__cta-btn:hover { background: var(--map-cta-hover) !important; }
.map-header__hamburger-wrap { grid-column: 1; }

/* Mobile hamburger */
.map-header__toggle { display: none; flex-direction: column; align-items: center; gap: 4px; padding: 8px; color: var(--map-text); }
.map-header__toggle span:not(.map-header__toggle-label) { display: block; width: 22px; height: 2px; background: currentColor; transition: transform var(--t), opacity var(--t); }
.map-header__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.map-header__toggle.is-open span:nth-child(2) { opacity: 0; }
.map-header__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.map-header__toggle-label { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Mobile drawer */
.map-header__mobile-menu { background: var(--map-bg); border-top: 1px solid var(--map-border); padding: 12px 0 24px; }
.map-header__mobile-list li a { display: block; padding: 12px 24px; font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--map-muted); border-bottom: 1px solid var(--map-border); transition: color var(--t), background var(--t); }
.map-header__mobile-list li a:hover { color: var(--map-accent-text); background: var(--map-bg-soft); }
.map-header__mobile-sep { height: 1px; background: var(--map-border); margin: 6px 0; }

/* Search box (header) */
.map-header__search { display: flex; align-items: center; background: var(--map-search-bg); border: 1px solid var(--map-search-border); border-radius: 3px; padding: 6px 12px; gap: 8px; }
.map-header__search input { background: transparent; border: none; outline: none; color: var(--map-text); font-family: var(--sans); font-size: .85rem; width: 160px; }
.map-header__search input::placeholder { color: var(--map-muted-2); }
.map-header__search:focus-within { border-color: var(--map-accent-text); }

/* Breaking/trending ticker */
.map-ticker { background: var(--map-bg-soft); border-top: 1px solid var(--map-border); }
.map-ticker__inner { display: flex; align-items: center; gap: 24px; padding: 14px 24px; max-width: 1400px; margin: 0 auto; }
.map-ticker__live { display: inline-flex; align-items: center; gap: 6px; background: var(--map-accent); color: var(--map-accent-contrast); font-size: .78rem; font-weight: 800; letter-spacing: .07em; padding: 5px 11px; border-radius: 3px; flex-shrink: 0; animation: map-ticker-pulse 1.6s ease-in-out infinite; }
.map-ticker__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--map-accent-contrast); }
.map-ticker__viewport { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.map-ticker__track { display: flex; align-items: center; gap: 48px; width: max-content; animation: map-ticker-scroll 34s linear infinite; }
.map-ticker__viewport:hover .map-ticker__track { animation-play-state: paused; }
.map-ticker__track a { font-family: var(--sans); font-size: .96rem; font-weight: 600; color: var(--map-muted); white-space: nowrap; transition: color var(--t); }
.map-ticker__track a:hover { color: var(--map-accent-text); }

@keyframes map-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes map-ticker-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .map-ticker__track { animation: none; }
  .map-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
  .map-ticker__live { animation: none; }
}


/* ══════════════════════════════════════════════════════════════════
   HERO  (front-page.php)
   ══════════════════════════════════════════════════════════════════ */

.map-hero { margin-top: 24px; }
.map-hero-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 480px;
  background-size: cover;
  background-position: top;
  background-color: var(--map-bg-soft);
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
}
.map-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  padding: 60px 36px 32px;
}
.map-hero-title { margin: 6px 0 10px; line-height: 1.2; }
.map-hero-title a { color: var(--map-text); font-size: 42px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.map-hero-title a:hover { color: var(--map-accent-text); }
.map-hero-excerpt { color: var(--map-muted); font-family: var(--sans); font-size: 17px; margin: 0 0 10px; line-height: 1.7; }
.map-hero-meta { color: rgba(255,255,255,.65); font-family: var(--sans); font-size: 13px; }


/* ══════════════════════════════════════════════════════════════════
   4-COLUMN FEATURE GRID
   (classes renamed map-card* → map-feat-card* — the MAP Verified
   plugin already owns .map-card/.map-card-title for its shield-badge
   widget; reusing that name here would silently inherit its
   text-align:center/padding/min-height rules.)
   ══════════════════════════════════════════════════════════════════ */

.map-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.map-feat-card { display: flex; flex-direction: column; }
.map-feat-img-wrap { display: block; overflow: hidden; border-radius: 4px; background: var(--map-bg-soft); }
.map-feat-img-wrap img { width: 100%; height: 180px; object-fit: cover; object-position: top; display: block; transition: transform .3s ease; }
.map-feat-img-wrap:hover img { transform: scale(1.04); }
.map-feat-body { padding: 12px 0 0; }
.map-feat-title { margin: 4px 0 6px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.map-feat-title a { color: var(--map-text); text-decoration: none; }
.map-feat-title a:hover { color: var(--map-accent-text); }
.map-feat-meta { font-family: var(--sans); font-size: 12px; color: var(--map-muted-2); }


/* ── Category strip (smaller 4-up grid) ──────────────────────────── */

.map-strip-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.map-strip-card { display: flex; flex-direction: column; }
.map-strip-img-wrap { display: block; overflow: hidden; border-radius: 4px; background: var(--map-bg-soft); }
.map-strip-img-wrap img { width: 100%; height: 140px; object-fit: cover; object-position: top; display: block; transition: transform .3s ease; }
.map-strip-img-wrap:hover img { transform: scale(1.04); }
.map-strip-title { font-size: 18px; font-weight: 700; margin: 8px 0 4px; line-height: 1.3; }
.map-strip-title a { color: var(--map-text); text-decoration: none; }
.map-strip-title a:hover { color: var(--map-accent-text); }
.map-strip-meta { font-family: var(--sans); font-size: 12px; color: var(--map-muted-2); }


/* ══════════════════════════════════════════════════════════════════
   BOTTOM: 2-col list + sidebar
   ══════════════════════════════════════════════════════════════════ */

.map-bottom-section { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-bottom: 60px; }

.map-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.map-list-item { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--map-border); padding-bottom: 16px; }
.map-list-img-wrap { flex-shrink: 0; }
.map-list-img-wrap img { width: 90px; height: 68px; object-fit: cover; object-position: top; display: block; border-radius: 4px; }
.map-list-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.map-list-title a { color: var(--map-text); text-decoration: none; }
.map-list-title a:hover { color: var(--map-accent-text); }
.map-list-meta { font-family: var(--sans); font-size: 12px; color: var(--map-muted-2); }

/* Sidebar */
.map-sidebar { padding-top: 10px; }
.map-most-read { list-style: none; margin: 0; padding: 0; }
.map-most-read-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--map-border); }
.map-rank { font-family: var(--serif); font-size: 28px; font-weight: 900; color: var(--map-accent-text); line-height: 1; min-width: 24px; flex-shrink: 0; }
.map-most-read-item a { font-size: 15px; font-weight: 700; color: var(--map-text); text-decoration: none; line-height: 1.4; }
.map-most-read-item a:hover { color: var(--map-accent-text); }

.map-sidebar-badge { margin-top: 28px; background: var(--map-bg-soft); border: 1px solid var(--map-accent); padding: 24px; text-align: center; border-radius: 8px; }
.map-sidebar-badge img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--map-accent); margin-bottom: 12px; }
.map-sidebar-badge p { color: var(--map-muted); font-family: var(--sans); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }


/* ══════════════════════════════════════════════════════════════════
   DENSE ROW / RAIL COMPONENTS  (category rivers, related posts, search)
   ══════════════════════════════════════════════════════════════════ */

.map-rail-header { border-top: 2px solid var(--map-accent); padding-top: 10px; margin-bottom: 4px; }
.map-rail-title { font-family: var(--sans); font-size: .82rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--map-text); }

.map-row-list { display: flex; flex-direction: column; }
.map-row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--map-border); align-items: start; }
.map-row:last-child { border-bottom: none; }
.map-row--no-thumb { grid-template-columns: 1fr; }
.map-row__thumb { display: block; width: 120px; height: 90px; border-radius: 3px; overflow: hidden; background: var(--map-bg-soft); flex-shrink: 0; }
.map-row__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.map-row__thumb--placeholder { background: var(--map-bg); }
.map-row__thumb--placeholder img { object-fit: contain; padding: 14px; }
.map-row__body { min-width: 0; }
.map-row__rubric { font-family: var(--sans); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--map-accent-text); margin-bottom: 3px; display: block; }
.map-row__headline { font-family: var(--sans); font-size: .92rem; font-weight: 700; line-height: 1.3; color: var(--map-text); margin-bottom: 4px; }
.map-row__headline a:hover { color: var(--map-accent-text); }
.map-row__excerpt { font-family: var(--sans); font-size: .82rem; line-height: 1.45; color: var(--map-muted); margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-row__meta { font-family: var(--sans); font-size: .7rem; color: var(--map-muted-2); }

.map-plain-list { display: flex; flex-direction: column; }
.map-plain-row { padding: 10px 0; border-bottom: 1px solid var(--map-border); }
.map-plain-row:last-child { border-bottom: none; }
.map-plain-row__headline { font-family: var(--sans); font-size: .92rem; font-weight: 700; line-height: 1.35; color: var(--map-text); }
.map-plain-row__headline a:hover { color: var(--map-accent-text); }
.map-plain-row__meta { font-family: var(--sans); font-size: .7rem; color: var(--map-muted-2); margin-top: 5px; display: flex; gap: 10px; }

.map-lead__rubric { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--map-accent-text); margin-bottom: 8px; }
.map-lead__headline { font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.12; margin-bottom: 10px; }
.map-lead__headline a:hover { color: var(--map-accent-text); }
.map-lead__dek { font-family: var(--sans); font-size: .92rem; line-height: 1.55; color: var(--map-muted); margin-bottom: 10px; }
.map-lead__img-link { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 16/9; background: var(--map-bg-soft); margin: 14px 0; }
.map-lead__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.map-lead__byline { font-family: var(--sans); font-size: .72rem; font-weight: 600; color: var(--map-muted-2); }

.map-cluster { padding: 30px 0; border-bottom: 1px solid var(--map-border); }
.map-cluster:first-child { padding-top: 0; }
.map-cluster__more-label { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--map-text); border-top: 1px solid var(--map-border); padding-top: 14px; margin: 18px 0 4px; }

.map-photo-block { margin: 8px 0 28px; }
.map-photo-block__img-link { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 16/9; background: var(--map-bg-soft); }
.map-photo-block__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.map-photo-block__caption { font-family: var(--sans); font-size: .74rem; color: var(--map-muted-2); margin-top: 8px; }


/* ══════════════════════════════════════════════════════════════════
   FEED CARDS  ([map_verified_feed] shortcode → class-map-intelligence.php
   render_card() / sc_feed() — .map-page/.map-hero-grid/.map-card* markup)
   ══════════════════════════════════════════════════════════════════ */

.map-page { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.map-section-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--map-accent); padding: 28px 0 10px; margin-bottom: 24px; }
.map-section-link { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--map-muted-2); white-space: nowrap; }
.map-section-link:hover { color: var(--map-accent-text); }
.map-divider { height: 1px; background: var(--map-border); margin: 32px 0; }
.map-no-posts { padding: 48px 0; text-align: center; color: var(--map-muted-2); font-family: var(--sans); }

.map-hero-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 24px; margin-bottom: 40px; }
.map-hero-primary { grid-column: 1; grid-row: 1 / 3; }
.map-hero-sec-1 { grid-column: 2; grid-row: 1; }
.map-hero-sec-2 { grid-column: 2; grid-row: 2; }
.map-feed-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.map-card { display: flex; flex-direction: column; height: 100%; background: var(--map-bg); border: 1px solid var(--map-border); border-radius: 8px; overflow: hidden; transition: box-shadow var(--t), border-color var(--t), transform var(--t); }
.map-card:hover { border-color: var(--map-accent); box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.map-card-hero { display: flex; flex-direction: column; height: 100%; }

.map-card-image-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--map-bg-soft); }
.map-card-hero .map-card-image-wrap { aspect-ratio: 3/2; }
.map-card-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s ease; }
.map-card:hover .map-card-image-wrap img { transform: scale(1.03); }

/* Fallback shown by render_card() when a post has neither a real thumbnail nor a
   remote image yet (mid-backfill-cycle) — a source-colored monogram, not a blank box. */
.map-card-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--map-bg-soft), var(--map-bg)); }
.map-card-image-placeholder-mark { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; color: var(--map-source-color, var(--map-muted-2)); opacity: .4; }
.map-card-hero .map-card-image-placeholder-mark { font-size: 56px; }

.map-source-badge { position: absolute; top: 12px; left: 12px; font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 3px 9px; border-radius: 100px; background: var(--map-source-color, var(--map-text)); }

.map-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px; }
.map-card-hero .map-card-body { padding: 22px; gap: 10px; }
.map-card-category { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--map-accent-text); }
.map-card-headline { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--map-text); }
.map-card-hero .map-card-headline { font-size: 1.6rem; line-height: 1.2; }
.map-card-headline a { color: inherit; text-decoration: none; }
.map-card-headline a:hover { color: var(--map-accent-text); }
.map-card-excerpt { font-family: var(--sans); font-size: .85rem; line-height: 1.6; color: var(--map-muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.map-card-hero .map-card-excerpt { -webkit-line-clamp: 4; font-size: .92rem; }
.map-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; margin-top: auto; border-top: 1px solid var(--map-border); }
.map-card-byline { font-family: var(--sans); font-size: .68rem; color: var(--map-muted-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-card-time { font-family: var(--sans); font-size: .68rem; color: var(--map-muted-2); white-space: nowrap; }

/* Signal bar — click-to-verify state indicator (verified/review/signals/pending) */
.map-signal-bar { display: flex; align-items: center; gap: 8px; width: 100%; border-radius: 4px; padding: 7px 10px; cursor: pointer; border: 1px solid rgba(6,95,70,.2); background: var(--map-verified-bg); transition: filter var(--t), transform var(--t); }
.map-signal-bar:hover { filter: brightness(.97); transform: translateY(-1px); }
.map-signal-bar.review  { background: var(--map-review-bg);  border-color: rgba(146,64,14,.2); }
.map-signal-bar.signals { background: var(--map-signals-bg); border-color: rgba(153,27,27,.2); }
.map-signal-bar.pending { background: var(--map-bg-soft);    border-color: var(--map-border); }
.map-signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--map-verified); flex-shrink: 0; }
.map-signal-bar.review  .map-signal-dot { background: var(--map-review); }
.map-signal-bar.signals .map-signal-dot { background: var(--map-signals); }
.map-signal-bar.pending .map-signal-dot { background: var(--map-muted-2); }
.map-signal-score { font-family: var(--sans); font-size: .74rem; font-weight: 700; color: var(--map-verified); }
.map-signal-bar.review  .map-signal-score { color: var(--map-review); }
.map-signal-bar.signals .map-signal-score { color: var(--map-signals); }
.map-signal-bar.pending .map-signal-score { color: var(--map-muted-2); }
.map-signal-label { flex: 1; text-align: left; font-family: var(--sans); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--map-verified); }
.map-signal-bar.review  .map-signal-label { color: var(--map-review); }
.map-signal-bar.signals .map-signal-label { color: var(--map-signals); }
.map-signal-bar.pending .map-signal-label { color: var(--map-muted-2); }
.map-signal-action { font-family: var(--sans); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; color: inherit; opacity: .7; }

@media (max-width: 1024px) {
  .map-hero-grid { grid-template-columns: 1fr 1fr; }
  .map-hero-primary { grid-column: 1 / 3; grid-row: 1; }
  .map-hero-sec-1 { grid-column: 1; grid-row: 2; }
  .map-hero-sec-2 { grid-column: 2; grid-row: 2; }
  .map-feed-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .map-hero-grid, .map-feed-grid-3 { grid-template-columns: 1fr; }
  .map-hero-primary, .map-hero-sec-1, .map-hero-sec-2 { grid-column: 1; grid-row: auto; }
}


/* ══════════════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY / TAG  (archive.php)
   ══════════════════════════════════════════════════════════════════ */

.map-archive__header { padding: 32px 0 20px; border-bottom: 2px solid var(--map-accent); margin-bottom: 24px; }
.map-archive__title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 4px 0 10px; }
.map-archive__desc { font-family: var(--sans); font-size: .9rem; line-height: 1.6; color: var(--map-muted-2); max-width: 640px; }

.map-content-none { padding: 64px 0; text-align: center; }
.map-content-none p { margin-bottom: 18px; color: var(--map-muted); }

nav.pagination, .map-archive .nav-links {
  display: flex; justify-content: space-between; padding: 24px 0 64px; border-top: 1px solid var(--map-border);
  font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.map-archive .nav-links a:hover { color: var(--map-accent-text); }


/* ══════════════════════════════════════════════════════════════════
   SINGLE ARTICLE  (single.php)
   ══════════════════════════════════════════════════════════════════ */

.map-article__header { padding: 32px 0 20px; text-align: left; }
.map-article__headline { font-size: clamp(1.5rem, 3.4vw, 2.15rem); line-height: 1.16; margin-bottom: 14px; }
.map-article__meta {
  font-family: var(--sans); font-size: .78rem; color: var(--map-muted-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding-top: 12px; border-top: 1px solid var(--map-border);
}
.map-article__author { font-weight: 700; color: var(--map-text); }
.map-article__source-link { text-decoration: underline; text-underline-offset: 2px; }

.map-article__hero-image { margin: 0 0 28px; background: var(--map-bg-soft); }
.map-article__hero-img { width: 100%; height: auto; max-height: 520px; object-fit: cover; object-position: top; }

.map-article__body { font-family: var(--serif); font-size: 1.1rem; line-height: 1.8; color: var(--map-muted); padding-bottom: 32px; }
.map-article__body p { margin-bottom: 20px; }
.map-article__body h2 { font-size: 1.4rem; margin: 32px 0 14px; }
.map-article__body h3 { font-size: 1.18rem; margin: 26px 0 12px; }
.map-article__body a { text-decoration: underline; text-underline-offset: 2px; }
.map-article__body a:hover { color: var(--map-accent-text); }
.map-article__body img { border-radius: 4px; margin: 22px 0; }
.map-article__body blockquote { border-left: 3px solid var(--map-accent); padding-left: 18px; margin: 26px 0; font-style: italic; color: var(--map-muted); }
.map-article__body ul, .map-article__body ol { font-family: var(--sans); font-size: .98rem; margin: 0 0 20px 22px; list-style: revert; }

.map-article__attribution { padding: 20px 0 40px; border-top: 1px solid var(--map-border); font-family: var(--sans); font-size: .84rem; color: var(--map-muted-2); }
.map-article__attribution p:last-child { color: var(--map-muted); line-height: 1.6; }
.map-article__attribution a { text-decoration: underline; }

.map-related { padding: 8px 0 24px; }


/* ══════════════════════════════════════════════════════════════════
   PAGE  (page.php)
   ══════════════════════════════════════════════════════════════════ */

.map-page__wrap { padding: 0; }
.map-page__header { padding: 40px 0 20px; border-bottom: 2px solid var(--map-accent); margin-bottom: 28px; }
.map-page__title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.map-page__content { font-family: var(--sans); font-size: 1rem; line-height: 1.7; color: var(--map-muted); padding-bottom: 64px; }
.map-page__content h1, .map-page__content h2, .map-page__content h3 { color: var(--map-text); margin: 32px 0 14px; }
.map-page__content p { margin-bottom: 18px; }
.map-page__content a { text-decoration: underline; text-underline-offset: 2px; }
.map-page__content img { border-radius: 4px; margin: 20px 0; }
.map-page__content ul, .map-page__content ol { margin: 0 0 18px 22px; list-style: revert; }


/* ══════════════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════════════ */

.map-404 { padding: 88px 0; text-align: center; }
.map-404__headline { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 8px 0 16px; }
.map-404__text { font-family: var(--sans); color: var(--map-muted); margin-bottom: 28px; }


/* ══════════════════════════════════════════════════════════════════
   HOMEPAGE  (front-page.php)
   ══════════════════════════════════════════════════════════════════ */

.map-homepage { display: block; }

.map-newsletter { background: var(--map-bg-soft); color: var(--map-text); padding: 56px 0; margin-top: 8px; border-top: 1px solid var(--map-border); }
.map-newsletter__inner { max-width: 600px; text-align: center; }
.map-newsletter__hed { font-size: clamp(1.4rem, 2.8vw, 1.9rem); color: var(--map-text); margin-bottom: 12px; }
.map-newsletter__dek { font-family: var(--sans); font-size: .92rem; line-height: 1.6; color: var(--map-muted); margin-bottom: 26px; }
.map-newsletter__fields { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.map-newsletter__input { flex: 1; padding: 12px 16px; border: 1px solid var(--map-search-border); border-radius: 3px; background: var(--map-search-bg); color: var(--map-text); font-family: var(--sans); font-size: .9rem; outline: none; }
.map-newsletter__input::placeholder { color: var(--map-muted-2); }
.map-newsletter__input:focus { border-color: var(--map-accent-text); }
.map-newsletter__btn { background: var(--map-cta-bg); color: var(--map-cta-text); border: 2px solid var(--map-accent); padding: 10px 18px; border-radius: 3px; font-weight: 800; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.map-newsletter__btn:hover { background: var(--map-cta-hover); }
.map-newsletter__disclaimer { font-family: var(--sans); font-size: .72rem; color: var(--map-muted-2); margin-top: 14px; }
.map-newsletter__disclaimer a { color: var(--map-accent-text); text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */

.map-footer { background: var(--map-bg); color: var(--map-muted-2); padding: 48px 0 24px; margin-top: 8px; border-top: 2px solid var(--map-accent); }
.map-footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--map-border); }
.map-footer__col-title { font-family: var(--sans); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--map-accent-text); margin-bottom: 14px; }
.map-footer__col ul li { margin-bottom: 9px; }
.map-footer__col ul li a { font-family: var(--sans); font-size: .84rem; color: var(--map-muted-2); transition: color var(--t); }
.map-footer__col ul li a:hover { color: var(--map-accent-text); }

.map-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 20px; }
.map-footer__copyright { font-family: var(--sans); font-size: .76rem; color: var(--map-muted-2); }
.map-footer__legal { display: flex; gap: 18px; }
.map-footer__legal a { font-family: var(--sans); font-size: .76rem; color: var(--map-muted-2); }
.map-footer__legal a:hover { color: var(--map-accent-text); }


/* ══════════════════════════════════════════════════════════════════
   SIDEBAR / WIDGETS
   ══════════════════════════════════════════════════════════════════ */

.map-widget { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--map-border); }
.map-widget__title { font-family: var(--sans); font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; color: var(--map-text); }


/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .map-grid-4, .map-strip-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .map-two-col { grid-template-columns: 1fr; }
  .map-bottom-section { grid-template-columns: 1fr; }
  .map-list-2col { grid-template-columns: 1fr; }
  .map-footer__inner { grid-template-columns: repeat(2, 1fr); }
  .map-river-grid { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .map-header__nav-list { gap: 18px; }
}

@media (max-width: 840px) {
  .map-header__nav-wrap { display: none; }
  .map-header__logo-text { font-size: 1rem; }
  .map-header__logo-shield { height: 42px; }
  .map-header__logo-row { min-height: 68px; padding: 0 20px; }

  .map-container, .map-container--narrow, #map-homepage { padding: 0 18px; }
  .map-newsletter__fields { flex-direction: column; }
  .map-hero-inner { height: 380px; }
  .map-hero-overlay { padding: 48px 24px 26px; }
  .map-hero-title a { font-size: 30px; }
  .map-hero-excerpt { font-size: 15px; }
}

@media (max-width: 640px) {
  .map-grid-4, .map-strip-4 { grid-template-columns: 1fr; }
  .map-row { grid-template-columns: 96px 1fr; }
  .map-row__thumb { width: 96px; height: 72px; }
  .map-river-grid { grid-template-columns: 1fr; }
  .map-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .map-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .map-header__date { display: none; }
}
