/* ============================================================
   EastNet Media — professional theme
   Single source of truth for all public + admin templates.
   ============================================================ */

:root {
  --ink: #17202a;
  --ink-soft: #55606b;
  --ink-faint: #7d8994;
  --paper: #ffffff;
  --paper-warm: #f7f6f2;
  --paper-dim: #efede8;
  --line: #e5e1d8;
  --line-strong: #d5cfc2;

  --brand: #b2212e;
  --brand-dark: #901b26;
  --brand-wash: #f9ecec;

  --gold: #c9973a;
  --gold-deep: #a87a26;
  --gold-hi: #e0b253;
  --teal: #1f6f6b;
  --teal-dark: #18534f;
  --ok: #2e7d4f;
  --ok-wash: #e9f5ee;
  --danger: #b3402f;
  --danger-wash: #fbece9;

  --star: #17202a;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 32, 42, .06);
  --shadow: 0 1px 2px rgba(23, 32, 42, .06), 0 10px 28px rgba(23, 32, 42, .08);
  --shadow-lg: 0 2px 8px rgba(23, 32, 42, .10), 0 22px 48px rgba(23, 32, 42, .14);

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --maxw: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper-warm);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.container { width: min(var(--maxw), 92%); margin: 0 auto; }
.wrap { width: min(var(--maxw), 92%); margin: 0 auto; }

.site-main { padding: 30px 0 60px; }

.ta-r { text-align: right; }
.strong { font-weight: 700; color: var(--ink); }
.muted { color: var(--ink-soft); font-size: .88rem; }
.required { color: var(--danger); }

/* ============================================================
   Top bar
   ============================================================ */
.site-topbar {
  background: #121920;
  color: #c8d0d8;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 30px;
}
.site-topbar a { color: #c8d0d8; }
.site-topbar a:hover { color: #fff; }
.site-topbar .topbar-right { display: flex; align-items: center; gap: 2px; }
.site-topbar .topbar-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 7px;
  border-radius: var(--radius);
}
.site-topbar .topbar-right a:hover { background: rgba(255, 255, 255, .08); }
.site-topbar .social-ico { display: block; }
.topbar-tagline { color: #7d8a97; }
.topbar-user { color: var(--gold-hi); font-weight: 700; letter-spacing: .06em; }
.topbar-left { display: flex; align-items: center; gap: 16px; }

/* ============================================================
   Masthead
   ============================================================ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-lockup img {
  height: 52px;
  width: auto;
  max-width: 190px;
}
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.word-east { color: var(--brand); }
.word-media { color: var(--ink); letter-spacing: .04em; }
.tagline {
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

.search-form { display: flex; flex: 1 1 240px; max-width: 340px; }
.search-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--paper-warm);
  font-family: inherit;
  font-size: .86rem;
  color: var(--ink);
  outline: none;
}
.search-form input:focus { border-color: var(--teal); background: #fff; }
.search-form button {
  padding: 8px 15px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: .84rem;
}
.search-form button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

/* ============================================================
   Main nav
   ============================================================ */
.site-nav {
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}
.site-nav .container { display: flex; align-items: center; flex-wrap: wrap; }
.site-nav a {
  padding: 9px 12px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); border-bottom-color: var(--gold); }
.site-nav a.nav-cta { margin-left: auto; color: var(--brand); }
.site-nav a.nav-cta:hover { border-bottom-color: var(--brand); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  min-height: 34px;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle .bars { position: relative; width: 18px; height: 14px; flex-shrink: 0; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 18px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Flash / alerts
   ============================================================ */
.flash-area { margin-top: 18px; }
.alert {
  border-radius: var(--radius);
  padding: 13px 18px;
  margin: 12px 0;
  font-size: .94rem;
  border: 1px solid transparent;
}
.alert p { margin: .25rem 0; }
.alert-success { background: var(--ok-wash); color: #1f6b45; border-color: #c3e3d1; }
.alert-error { background: var(--danger-wash); color: #93402f; border-color: #efcfc9; }
.alert-warn { background: #fdf6e8; color: #8a6a1f; border-color: #eedeb4; }
.flash { font-weight: 600; }

/* ============================================================
   Home — hero
   ============================================================ */
.home-hero { margin-bottom: 34px; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.hero-lead {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: #1c2733;
  box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide > a { position: absolute; inset: 0; z-index: 0; }
.hero-slide > a img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active > a img { animation: hb-zoom 5s ease-out; }
@keyframes hb-zoom {
  from { transform: scale(1.2); }
  to { transform: scale(1); }
}
.mini-card:hover > a img { transform: scale(1.04); }
.mini-card > a img,
.story-thumb img { transition: transform .5s ease; }
.hero-lead .cat-pill { z-index: 2; }
.hero-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 15, 20, .82) 0%, rgba(10, 15, 20, .28) 55%, rgba(10, 15, 20, 0) 100%);
}
.hero-lead h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.65rem);
  margin: 10px 24px 0;
  max-width: 32ch;
}
.hero-lead h1 a { color: #fff; }
.hero-lead h1 a:hover { color: #ffd9a0; }
.hero-lead p {
  position: relative;
  z-index: 2;
  color: #e6ebef;
  font-size: .98rem;
  margin: 8px 24px 0;
  max-width: 56ch;
}
.hero-lead time {
  position: relative;
  z-index: 2;
  color: #f4c26e;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 10px 24px 20px;
  display: block;
}

.hero-flank { display: grid; grid-template-rows: repeat(2, 1fr); gap: 22px; }
.mini-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: #1c2733;
  box-shadow: var(--shadow-sm);
}
.mini-card > a { position: absolute; inset: 0; z-index: 0; }
.mini-card > a img { width: 100%; height: 100%; object-fit: cover; }
.mini-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 15, 20, .78) 0%, rgba(10, 15, 20, .15) 70%);
}
.mini-card .cat-pill { z-index: 2; margin: 0 16px 8px; }
.mini-card h3 {
  position: relative; z-index: 2;
  color: #fff; font-size: 1.12rem;
  margin: 0 16px 0;
  max-width: 30ch;
}
.mini-card h3 a { color: #fff; }
.mini-card h3 a:hover { color: #ffd9a0; }
.mini-card time {
  position: relative; z-index: 2;
  color: #f4c26e;
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 8px 16px 16px;
}

/* Breaking ticker */
.ticker {
  display: flex;
  align-items: stretch;
  background: #121920;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ticker-tag {
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ticker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  flex: 1;
  height: 38px;
  overflow: hidden;
}
.ticker-list li {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 26px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
}
.ticker-list li:first-child { opacity: 1; transform: none; pointer-events: auto; }
.ticker-list.is-rotating li { opacity: 0; transform: translateY(12px); }
.ticker-list.is-rotating li.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 1; }
.ticker-list a { color: #e9eef2; font-size: .9rem; }
.ticker-list a:hover { color: #ffd9a0; }

/* Exclusive news marquee */
.news-marquee {
  display: flex;
  align-items: stretch;
  background: #121920;
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.marquee-label {
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-track { flex: 1; overflow: hidden; }
.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding: 9px 0;
  white-space: nowrap;
  animation: mq-scroll 20s linear infinite;
  will-change: transform;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 9px; }
.mq-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); flex-shrink: 0; }
.marquee-item a { color: #e9eef2; font-size: .9rem; white-space: nowrap; }
.marquee-item a:hover { color: var(--gold-hi); }
@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Home — grid + story feed
   ============================================================ */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.blk-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}
.blk-title h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: .02em;
}
.blk-title i { flex: 1; height: 2px; background: var(--line-strong); position: relative; }
.blk-title i::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 52px; height: 2px; background: var(--gold);
}

.story-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.story-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.story-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.story-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-dim);
}
.story-thumb:hover img { transform: scale(1.03); }
.story-info { display: flex; flex-direction: column; justify-content: center; }
.story-info h3 { font-size: 1.28rem; margin: 8px 0 6px; }
.story-info h3 a { color: var(--ink); }
.story-info h3 a:hover { color: var(--teal-dark); }
.story-info p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 10px; }
.story-info time {
  font-size: .78rem;
  color: var(--ink-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cat-pill {
  display: inline-block;
  width: fit-content;
  position: relative;
  z-index: 2;
  background: var(--brand);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
}
.cat-pill.sm { background: var(--gold-deep); }

/* ============================================================
   Sidebar widgets
   ============================================================ */
.side-widgets { display: flex; flex-direction: column; gap: 22px; }

.swidget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.sw-head {
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
  padding-bottom: 4px;
}
.sw-head h2 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sw-head h2::after { content: ""; flex: 1; height: 2px; background: var(--gold); }

.sw-ranked { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.sw-item { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.sw-item:last-child { border-bottom: 0; }
.sw-rank {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-deep);
  min-width: 22px;
}
.sw-title a { color: var(--ink); font-size: .92rem; line-height: 1.35; }
.sw-title a:hover { color: var(--teal-dark); }
.sw-item time { display: block; font-size: .74rem; color: var(--ink-faint); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }

.sw-plain, .sw-cats { list-style: none; margin: 0; padding: 0; }
.sw-plain li, .sw-cats li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sw-plain li:last-child, .sw-cats li:last-child { border-bottom: 0; }
.sw-plain a { color: var(--ink); font-size: .93rem; }
.sw-plain a:hover { color: var(--teal-dark); }
.sw-cats a { display: inline-flex; justify-content: space-between; align-items: center; width: 100%; color: var(--ink); font-size: .93rem; }
.sw-cats a:hover { color: var(--teal-dark); }
.sw-count {
  background: var(--brand-wash);
  color: var(--brand);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
}

.sw-newsletter { background: linear-gradient(160deg, #1c2733, #24384d); border-color: #2c4053; }
.sw-newsletter .sw-head h2 { color: #fff; }
.sw-newsletter p { color: #c8d0d8; font-size: .88rem; margin-top: 0; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-form input {
  padding: 10px 14px;
  border: 1px solid #3a4d60;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: inherit;
}
.nl-form input::placeholder { color: #93a1ad; }
.nl-form button {
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: #241a05;
  font-weight: 700;
  cursor: pointer;
}
.nl-form button:hover { background: var(--gold-deep); color: #fff; }

/* ============================================================
   Page headers / article layout
   ============================================================ */
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 2rem; margin-bottom: 4px; }
.page-head p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.count-badge {
  display: inline-block;
  background: var(--brand-wash);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  margin-top: 10px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }

/* Article detail */
.article-detail { max-width: 820px; }
.article-head { margin-bottom: 18px; }
.cat-badge a {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.article-head h1 { font-size: 2.35rem; line-height: 1.15; margin-bottom: 12px; }
.article-head .lede { color: var(--ink-soft); font-size: 1.06rem; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-faint);
  font-size: .84rem;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.article-figure { margin: 24px 0; }
.article-figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--paper-dim);
}
.article-figure figcaption { color: var(--ink-faint); font-size: .84rem; margin-top: 8px; }
.article-body {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.8;
  color: #26303a;
  max-width: 70ch;
}
.article-body p { margin: 0 0 1.15em; }

.article-foot {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
}
.share-label {
  display: block;
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 12px;
}
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
}
.share-row a:hover { color: #fff; opacity: .9; }
.share-fb { background: #1877f2; }
.share-x { background: #111; }
.share-wa { background: #25d366; }
.share-tg { background: #2aabee; }
.share-li { background: #0a66c2; }
.share-em { background: var(--ink-soft); }

.breadcrumb { font-size: .86rem; color: var(--ink-soft); margin: 0 0 14px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb .current { color: var(--ink-faint); }
.meta-sep { color: var(--line-strong); }
.related { margin-top: 40px; }

/* Related / more stories */
.related-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 14px; }
.mini-story { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.mini-story img { height: 130px; width: 100%; object-fit: cover; background: var(--paper-dim); }
.mini-story .mini-body { padding: 14px 16px 16px; }
.mini-story h3 { font-size: 1.02rem; margin: 6px 0; }
.mini-story h3 a { color: var(--ink); }
.mini-story h3 a:hover { color: var(--teal-dark); }
.mini-story time { font-size: .74rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   Category listing
   ============================================================ */
.feed-listing { display: flex; flex-direction: column; gap: 22px; }
.feed-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.feed-thumb img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; background: var(--paper-dim); }
.feed-body { padding: 22px 24px 20px 0; display: flex; flex-direction: column; justify-content: center; }
.feed-body time { font-size: .76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }
.feed-body h2 { font-family: var(--font-serif); font-size: 1.45rem; margin: 8px 0 8px; }
.feed-body h2 a { color: var(--ink); }
.feed-body h2 a:hover { color: var(--teal-dark); }
.feed-body p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
.empty-note {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 34px;
  color: var(--ink-soft);
}

/* ============================================================
   Search
   ============================================================ */
.page-search {
  display: flex;
  margin-bottom: 26px;
  max-width: 620px;
}
.page-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: inherit;
  font-size: .95rem;
}
.page-search input:focus { outline: none; border-color: var(--teal); }
.page-search button {
  padding: 12px 22px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  cursor: pointer;
}
.search-meta { color: var(--ink-soft); font-size: .9rem; margin: 0 0 18px; }

.story-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.story-row .story-thumb img { height: 140px; width: 100%; max-width: 220px; }
.story-body h2 { font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 6px; }
.story-body h2 a { color: var(--ink); }
.story-body h2 a:hover { color: var(--teal-dark); }
.story-body p { color: var(--ink-soft); font-size: .93rem; margin: 0 0 8px; }
.story-body time { font-size: .76rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }

.empty-box {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-box h2 { font-family: var(--font-serif); color: var(--ink); }

/* ============================================================
   Forms (public)
   ============================================================ */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  max-width: 720px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-soft); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
   background: var(--paper);
   color: var(--ink);

  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 111, 107, .12);
}
.form-row textarea { min-height: 130px; }
.form-row-inline { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-row-inline .check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.form-row-inline input[type="checkbox"] { width: auto; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }
.req { color: var(--danger); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: #1a5f5b; color: #fff; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #241a05; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-danger { background: #fff; color: var(--danger); border-color: #eccfc9; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-xs { padding: 5px 12px; font-size: .8rem; }

/* ============================================================
   Prose (about)
   ============================================================ */
.prose { max-width: 780px; font-size: 1.04rem; line-height: 1.8; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--font-serif); font-size: 1.4rem; margin: 1.6em 0 .5em; }
.page-media { display: grid; gap: 18px; margin: 0 0 28px; }
.page-media figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-dim); box-shadow: var(--shadow-sm); }
.page-media img, .page-media video { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.page-media video { background: #111820; }
.page-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-upload-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-warm); }
.media-upload-card > strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: .9rem; }
.media-upload-card input[type="file"] { width: 100%; padding: 9px; border: 1px dashed var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--ink-soft); font-size: .78rem; }
.media-upload-card small { display: block; margin-top: 7px; color: var(--ink-faint); font-size: .72rem; line-height: 1.35; }
.media-preview { margin-bottom: 10px; overflow: hidden; border-radius: 6px; background: var(--paper-dim); }
.media-preview img, .media-preview video { display: block; width: 100%; max-height: 170px; object-fit: cover; }
.media-remove { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: var(--danger); font-size: .76rem; font-weight: 600; }
.page-blocks { display: grid; gap: 24px; }
.page-blocks .prose { margin: 0; }
.page-blocks .page-media { display: block; margin: 0; }
.page-media figcaption { padding: 10px 14px; color: var(--ink-soft); background: var(--paper); font-size: .84rem; }
.builder-hint { margin: 5px 0 12px; color: var(--ink-soft); font-size: .84rem; }
.page-block-builder { display: grid; gap: 12px; }
.page-block { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: var(--shadow-sm); }
.page-block.is-dragging { opacity: .45; border-color: var(--gold); }
.page-block-head { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.block-drag-handle { padding: 0 4px; border: 0; background: transparent; color: var(--ink-faint); cursor: grab; font-size: 1.05rem; letter-spacing: -3px; }
.block-drag-handle:active { cursor: grabbing; }
.block-type-label { color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.block-remove { margin-left: auto; padding: 3px 0; border: 0; background: transparent; color: var(--danger); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700; }
.page-block-body { display: grid; gap: 10px; padding: 13px; }
.page-block-body textarea, .page-block-body input[type="text"], .page-block-body input[type="file"] { width: 100%; }
.page-block-body textarea { min-height: 120px; }
.block-preview { overflow: hidden; border-radius: 6px; background: var(--paper-dim); }
.block-preview img, .block-preview video { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.page-builder-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ============================================================
   Auth (admin login)
   ============================================================ */
.auth-box {
  max-width: 460px;
  margin: 20px auto 0;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}
.auth-card .page-head h1 { font-size: 1.5rem; }
.auth-alt { text-align: center; font-size: .88rem; margin-top: 20px; color: var(--ink-soft); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #121920;
  color: #9faab5;
  border-top: 4px solid var(--brand);
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding: 22px 24px;
  margin-bottom: 36px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
}
.fn-text h4 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fn-text p { margin: 0; color: #9faab5; font-size: .9rem; }
.nl-form-inline { flex-direction: row; flex: 1 1 340px; max-width: 460px; }
.nl-form-inline input { flex: 1; min-width: 0; }
.col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.col-brand img { max-width: 220px; height: auto; }
.footer-about { font-size: .9rem; color: #9faab5; margin: 14px 0 18px; max-width: 40ch; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  color: #d5dce2;
  font-size: .82rem;
}
.footer-social a:hover { background: var(--brand); color: #fff; }
.social-ico { display: block; }

/* Social media icons — official brand colours */
.s-fb .social-ico { color: #1877f2; }
.s-x  .social-ico { color: #e7e9ea; }
.s-ig .social-ico { color: #e1306c; }
.s-tg .social-ico { color: #26a5e4; }
.s-yt .social-ico { color: #ff0000; }
.share-fb .social-ico { color: #1877f2; }
.share-x  .social-ico { color: #1d9bf0; }
.footer-social a:hover .social-ico,
.site-topbar a:hover .social-ico,
.share-row a:hover .social-ico { color: #fff; }

.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #a9b4bf; }
.footer-links a:hover { color: #fff; }
.footer-contact li { margin-bottom: 11px; }
.footer-contact a { color: #a9b4bf; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  padding: 18px 0;
  font-size: .82rem;
  color: #7c8794;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: inherit; font: inherit; }
.footer-legal a:hover { color: #a9b4bf; }

/* ============================================================
   Admin console
   ============================================================ */
.admin-nav {
  background: #1c2733;
  border-bottom: 3px solid var(--brand);
}
.admin-nav .container { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.admin-nav a {
  padding: 9px 12px;
  color: #c8d0d8;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.admin-nav a:hover { color: #fff; }
.admin-nav a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.admin-nav a.admin-nav-right { margin-left: auto; color: var(--gold); }
.admin-nav .badge {
  background: var(--brand);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 4px;
}

.admin-dashboard .dashboard-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding: 30px 32px;
  border: 1px solid #2f4652;
  border-radius: 14px;
  background: linear-gradient(120deg, #1c2733 0%, #294653 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(28, 39, 51, .18);
}
.admin-dashboard .dashboard-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -50px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, .025), 0 0 0 52px rgba(255, 255, 255, .018);
  pointer-events: none;
}
.dashboard-hero-copy { position: relative; z-index: 1; max-width: 680px; }
.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #b9d2d4;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dashboard-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(224, 178, 83, .14); }
.dashboard-hero h1 { margin: 0 0 8px; color: #fff; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.dashboard-hero p { max-width: 600px; margin: 0; color: #c4d0d4; font-size: .96rem; }
.dashboard-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: #94aab0; font-size: .8rem; }
.dashboard-meta-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.dashboard-hero-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-dashboard-ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-dashboard-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-dashboard-ghost span { margin-left: 3px; }

.dashboard-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card-link { display: flex; align-items: center; gap: 13px; min-height: 98px; padding: 16px 17px; color: var(--ink); }
.stat-card-link:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--line-strong); }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.stat-copy { display: flex; flex-direction: column; min-width: 0; }
.stat-card-link .stat-num { color: var(--teal); font-family: var(--font-sans); font-size: 1.65rem; }
.stat-card-link .stat-lbl { margin-top: 3px; font-size: .7rem; letter-spacing: .07em; }
.stat-teal .stat-icon { background: rgba(31, 111, 107, .12); color: var(--teal); }
.stat-ok .stat-icon { background: var(--ok-wash); color: var(--ok); }
.stat-slate .stat-icon { background: #edf0f4; color: #566271; }
.stat-gold .stat-icon { background: #fbf1dc; color: var(--gold-deep); }
.stat-brand .stat-icon { background: var(--brand-wash); color: var(--brand); }

.panel-kicker { margin-bottom: 3px; color: var(--gold-deep); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.dashboard-latest { margin-bottom: 24px; }
.dashboard-latest .panel-head h2, .dashboard-lower .panel-head h2 { font-size: 1.25rem; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(230px, .75fr) minmax(240px, .8fr); gap: 18px; align-items: stretch; }
.dashboard-lower .panel { margin-bottom: 0; min-width: 0; }
.dashboard-empty { padding: 34px 22px; color: var(--ink-soft); text-align: center; }
.dashboard-empty-cell { padding: 28px 22px !important; color: var(--ink-soft); text-align: center; }
.dashboard-attention { display: flex; align-items: baseline; gap: 9px; margin-bottom: 16px; padding: 13px 14px; border-radius: 8px; background: var(--brand-wash); color: var(--brand); }
.dashboard-attention strong { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1; }
.dashboard-attention span { font-size: .78rem; font-weight: 700; line-height: 1.3; }
.dashboard-quick-list { display: flex; flex-direction: column; }
.dashboard-quick-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .87rem; font-weight: 600; }
.dashboard-quick-list a:last-child { border-bottom: 0; }
.dashboard-quick-list a:hover { color: var(--teal); }
.dashboard-quick-list b { color: var(--gold-deep); font-size: 1rem; }

@media (max-width: 1100px) {
  .dashboard-lower { grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); }
  .dashboard-quick-panel { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .admin-dashboard .dashboard-hero { align-items: flex-start; flex-direction: column; padding: 24px 22px; }
  .dashboard-hero-actions { width: 100%; }
  .dashboard-hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-lower { grid-template-columns: 1fr; }
  .dashboard-quick-panel { grid-column: auto; }
  .page-media-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dashboard-stats { gap: 10px; }
  .stat-card-link { min-height: 90px; padding: 13px; gap: 10px; }
  .stat-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: .6rem; }
  .stat-card-link .stat-num { font-size: 1.4rem; }
  .stat-card-link .stat-lbl { font-size: .64rem; }
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.admin-bar h1 { margin: 0; font-family: var(--font-serif); }
.admin-bar .hint { color: var(--ink-soft); font-size: .9rem; margin: 2px 0 0; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: var(--teal); line-height: 1.1; font-family: var(--font-serif); }
.stat-card .stat-lbl {
  font-size: .76rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 6px;
  font-weight: 600;
}
.stat-card.stat-brand .stat-num { color: var(--brand); }
.stat-card.stat-gold .stat-num { color: var(--gold-deep); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  overflow: hidden;
}
.panel-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.panel-head h2 { margin: 0; font-family: var(--font-serif); font-size: 1.1rem; }
.panel-head .hint { font-size: .82rem; color: var(--ink-faint); }
.panel-body { padding: 20px 22px; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-faint);
  background: var(--paper-warm);
  font-weight: 700;
}
.admin-table tbody tr:hover { background: #fbfaf6; }
.admin-table a { color: var(--teal); }
.admin-table a:hover { color: var(--teal-dark); }

.status, .pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-published { background: var(--ok-wash); color: var(--ok); }
.status-draft { background: #edf0f4; color: #566271; }
.status-archived { background: var(--danger-wash); color: var(--danger); }
.pill-feat { background: var(--brand-wash); color: var(--brand); }
.status-new { background: var(--brand-wash); color: var(--brand); }
.status-read { background: #edf0f4; color: #566271; }

.row-actions { white-space: nowrap; }
.row-actions a { margin-right: 12px; font-size: .86rem; font-weight: 600; }
.row-actions a.danger { color: var(--danger); }
.row-actions a.danger:hover { color: var(--brand-dark); }

/* ============================================================
   Admin auth
   ============================================================ */
.auth-form .form-row { margin-bottom: 16px; }
.auth-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-soft); }
.auth-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
}
.auth-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 111, 107, .12); }
.auth-form .form-actions { margin-top: 20px; }

/* ============================================================
   Admin utilities
   ============================================================ */
.inline-form { display: inline-block; margin: 0; }
.hidden-form { display: none; }
.nowrap { white-space: nowrap; }
.row-new td { background: #fbf6ea; }
.admin-table .row-new td { background: #fbf6ea; }
.link-btn, .link-danger {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 12px 0 0;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--teal);
}
.link-danger { color: var(--danger); margin-right: 0; }
.link-btn:hover { color: var(--brand); }
.link-danger:hover { color: var(--brand-dark); }
.role-popover {
  display: none;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  padding: 9px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.role-popover.show { display: inline-flex; }
.role-popover select {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .84rem;
}
.msg-sender { min-width: 170px; }
.msg-sender .muted { font-size: .78rem; }
.msg-preview { color: var(--ink-soft); font-size: .9rem; max-width: 300px; }
code {
  font-family: Consolas, Monaco, monospace;
  font-size: .82em;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .home-grid, .layout, .content-layout { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story-card { grid-template-columns: 240px minmax(0, 1fr); }
  .feed-card { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .wrap, .container { width: 94%; }

  .site-main { padding: 22px 0 46px; }

  /* Masthead: brand left, menu button right, search on its own row */
  .site-header .container.masthead-inner {
    justify-content: space-between;
    text-align: left;
    gap: 12px 12px;
    padding: 8px 0;
  }
  .brand-lockup { flex-direction: row; text-align: left; }
  .brand-lockup img { height: 44px; }
  .brand-lockup .tagline.motto { display: none; }
  .nav-toggle { display: inline-flex; }
  .search-form { order: 3; flex-basis: 100%; max-width: 100%; margin-top: 2px; }
  .search-form input { font-size: 16px; padding: 10px 12px; }
  .search-form input::placeholder { font-size: .9rem; }
  .search-form button { padding: 10px 16px; }

  /* Main nav folds into a hidden panel behind the toggle */
  .site-nav { display: none; }
  .site-nav.open { display: block; border-top: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .site-nav.open a { display: block; padding: 12px 14px; font-size: .92rem; border-bottom: 1px solid var(--line); margin-bottom: 0; }
  .site-nav.open a:last-child { border-bottom: 0; }
  .site-nav a.nav-cta { margin-left: 0; }
  .site-nav a.nav-cta:hover { border-bottom-color: transparent; }
  .site-nav.open a:hover, .site-nav.open a.active { background: var(--paper-warm); }

  .topbar-tagline { display: none; }
  .site-topbar { letter-spacing: .06em; }

  /* Hero */
  .home-hero { margin-bottom: 26px; }
  .hero-split { gap: 16px; }
  .hero-lead { min-height: 300px; }
  .hero-lead h1 { font-size: 1.5rem; margin-left: 18px; margin-right: 18px; }
  .hero-lead p { margin-left: 18px; margin-right: 18px; }
  .hero-lead time { margin-left: 18px; margin-right: 18px; }
  .hero-flank { gap: 16px; }
  .mini-card { min-height: 172px; }

  /* Grids & cards */
  .home-grid, .layout { gap: 30px; }
  .hero-split, .story-card, .feed-card, .story-row { grid-template-columns: 1fr; }
  .story-card { gap: 14px; padding: 14px; margin-bottom: 16px; }
  .story-thumb img, .story-row .story-thumb img { height: auto; max-height: 220px; width: 100%; max-width: none; }
  .feed-body { padding: 16px 18px; }
  .feed-thumb img { min-height: 170px; }

  /* Ticker + marquee */
  .ticker { align-items: flex-start; flex-direction: column; }
  .ticker-tag { padding: 8px 16px; }
  .news-marquee .marquee-label { padding: 9px 12px; font-size: .66rem; letter-spacing: .1em; }
  .marquee-inner { gap: 34px; }

  /* Share row -> 2-up buttons */
  .share-row a { flex: 1 1 calc(50% - 5px); justify-content: center; padding: 11px 12px; }
  .share-row a .social-ico { width: 18px; height: 18px; }

  /* Forms: 16px inputs prevent iOS zoom */
  .form-panel { padding: 22px; }
  .form-row input[type="text"],
  .form-row input[type="email"],
  .form-row input[type="password"],
  .form-row input[type="search"],
  .form-row select,
  .form-row textarea { font-size: 16px; }
  .form-row textarea { min-height: 150px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { min-height: 44px; }
   .page-search input { font-size: 16px; }
   .contact-cards { grid-template-columns: 1fr; }
   .footer-newsletter { align-items: stretch; flex-direction: column; }
   .nl-form-inline { flex-direction: column; max-width: none; }
   .nl-form-inline button { width: 100%; }


  /* Admin */
  .admin-toolbar, .admin-bar { gap: 12px; }
   .admin-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: normal; }
   .admin-table th, .admin-table td { padding: 10px 12px; }
   .admin-table .row-actions { white-space: normal; }
   .admin-table .row-new td { white-space: normal; }

  .panel-head { padding: 14px 16px; }
  .admin-nav .container { overflow-x: auto; flex-wrap: nowrap; }
  .admin-nav a { padding: 12px 12px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .site-footer { padding-top: 36px; }
  .footer-social a { padding: 9px 12px; }
}

@media (max-width: 480px) {
  /* Topbar: keep social icons only, centred — the long date would overflow */
   .site-topbar .topbar-date { display: none; }
   .site-topbar .topbar-right a:nth-of-type(n+4) { display: none; }
   .site-topbar .container { justify-content: center; gap: 8px; }

  .site-topbar .container { min-height: 28px; }
  .site-topbar .topbar-right { gap: 10px; }

  /* Masthead: fixed two-row grid — brand | theme | menu, then full-width search */
  .site-header .container.masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px 8px;
  }
  .search-form { grid-column: 1 / -1; max-width: 100%; }
   .brand-lockup { min-width: 0; max-width: 180px; overflow: hidden; }
   .brand-lockup img { height: 34px; max-width: 150px; }
   .brand-name { font-size: .9rem; gap: 4px; white-space: nowrap; }

  .theme-toggle { width: 34px; height: 34px; }
  .nav-toggle { min-height: 34px; padding: 7px 9px; font-size: .68rem; }
  .hero-lead { min-height: 260px; }
  .hero-lead h1 { font-size: 1.28rem; }
  .mini-card { min-height: 150px; }
  .story-thumb img { height: 200px; }
  .share-row a { flex-basis: 100%; }
  .feed-body h2 { font-size: 1.3rem; }
  .form-panel { padding: 18px; }
   .auth-card, .auth-box { padding: 22px; }

  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-social a { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   Theme toggle
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { color: var(--gold-deep); border-color: var(--gold); }
.theme-toggle { position: relative; }
.theme-toggle svg {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: transform .4s ease, opacity .25s ease;
  opacity: 0;
}
.theme-toggle .ico-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .ico-moon { transform: rotate(90deg) scale(.5); }
html[data-theme="dark"] .theme-toggle .ico-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
html[data-theme="dark"] .theme-toggle .ico-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 30px 0 6px;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--teal);
  font-weight: 600;
  font-size: .9rem;
}
.page-link:hover { border-color: var(--teal); color: var(--teal-dark); }
.page-link.current,
.page-link.current:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  cursor: default;
}

/* ============================================================
   Tags
   ============================================================ */
.tag-pill {
  display: inline-block;
  padding: 4px 11px;
  margin: 0 6px 6px 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 600;
  transition: color .15s ease, border-color .15s ease;
}
.tag-pill:hover { color: var(--teal-dark); border-color: var(--teal); }
.story-tags { margin-bottom: 18px; }
.sw-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Scheduled badge + status variant */
.status-sched { background: var(--gold-hi); color: #3a2c0a; }

/* Honeypot field (hidden from humans, visible to naive bots) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Dark mode
   ============================================================ */
html[data-theme="dark"] {
  --ink: #e8edf2;
  --ink-soft: #a6b0be;
  --ink-faint: #7d8a99;
  --paper: #161d26;
  --paper-warm: #0f141a;
  --paper-dim: #212a35;
  --line: #2a3440;
  --line-strong: #3a4652;
  --star: #e8edf2;
  --brand-wash: rgba(178, 33, 46, .20);
  --ok-wash: rgba(46, 125, 79, .20);
  --danger-wash: rgba(179, 64, 47, .20);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .42);
  --shadow: 0 1px 3px rgba(0, 0, 0, .42), 0 12px 30px rgba(0, 0, 0, .46);
  --shadow-lg: 0 2px 10px rgba(0, 0, 0, .5), 0 26px 54px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] body { background: var(--paper-warm); color: var(--ink); }
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .swidget,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .page-link,
html[data-theme="dark"] .tag-pill { background: var(--paper); }
html[data-theme="dark"] .search-form input:focus,
html[data-theme="dark"] .form-row input:focus,
html[data-theme="dark"] .form-row select:focus,
html[data-theme="dark"] .form-row textarea:focus,
html[data-theme="dark"] .page-search input:focus { background: var(--paper); }
html[data-theme="dark"] .admin-table tbody tr:hover { background: #1d2630; }
html[data-theme="dark"] .stat-slate .stat-icon { background: #2a3440; color: #b5c0cc; }
html[data-theme="dark"] .stat-gold .stat-icon { background: rgba(201, 151, 58, .18); color: var(--gold-hi); }
html[data-theme="dark"] .dashboard-attention { color: #e3a59a; }
html[data-theme="dark"] .dashboard-quick-list a { color: var(--ink); }
html[data-theme="dark"] .status-draft,
html[data-theme="dark"] .status-read { background: #2a3440; color: #aeb8c4; }
html[data-theme="dark"] .alert-success { background: rgba(46, 125, 79, .20); color: #9ed3b1; border-color: #2c4a3b; }
html[data-theme="dark"] .alert-error { background: rgba(179, 64, 47, .20); color: #e3a59a; border-color: #5a2f27; }
html[data-theme="dark"] .alert-warn { background: rgba(201, 151, 58, .18); color: #e7c98a; border-color: #5a4a24; }
html[data-theme="dark"] code { color: var(--ink); }
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.active { color: var(--ink); }
html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .sw-head { border-bottom-color: var(--line-strong); }
html[data-theme="dark"] .hero-lead { background: #141b23; }

/* ============================================================
   Cookie consent banner
   ============================================================ */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.consent-banner.visible { transform: translateY(0); }
.consent-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.consent-text { flex: 1 1 420px; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.consent-text a { color: var(--teal); font-weight: 600; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 auto; min-height: 44px; }
}

/* ============================================================
   Modals
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 14, 18, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(10px);
  transition: transform .2s ease;
}
.modal-overlay.visible .modal { transform: translateY(0); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-family: var(--font-serif); font-size: 1.15rem; }
.modal-close {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: var(--radius);
}
.modal-close:hover { color: var(--brand); }
.modal-body { padding: 18px 22px; }
.modal-body h4 { margin: 16px 0 6px; font-size: .95rem; }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p, .modal-body li { color: var(--ink-soft); font-size: .92rem; }
.modal-body ul { margin: 6px 0 0; padding-left: 20px; }
.modal-body li { margin-bottom: 6px; }
.modal-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.dev-modal-body {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  align-items: center;
  gap: 24px;
}
.dev-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
.dev-details h4 { margin-top: 0; }
.dev-role {
  margin: 0 0 4px !important;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink) !important;
}
.dev-tagline { margin: 0 0 4px !important; }
.dev-note { margin: 0 0 8px !important; font-size: .84rem !important; }
.dev-note a { color: var(--teal); text-decoration: underline; }
.dev-contact { margin-bottom: 10px !important; }
.dev-contact a { color: var(--ink); font-weight: 600; }
.dev-contact a:hover { color: var(--teal); }
@media (max-width: 540px) {
  .dev-modal-body { grid-template-columns: 1fr; }
  .dev-photo { width: min(100%, 220px); margin: 0 auto; }
}
html[data-theme="dark"] .dev-note a,
html[data-theme="dark"] .dev-contact a:hover { color: #5cbdb7; }
.dev-credit { color: inherit; font: inherit; }
.dev-credit:hover { color: #a9b4bf; }

/* Contact detail cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.contact-card { padding: 18px 20px; margin-bottom: 0; }
.contact-card h3 {
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.contact-card p { margin: 0 0 6px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--teal); font-weight: 600; }

/* ============================================================
   Motion & effect layer
   ============================================================ */

/* 2. Sticky header with shadow on scroll */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header.is-stuck { box-shadow: var(--shadow); }
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 253, 248, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  html[data-theme="dark"] .site-header { background: rgba(22, 29, 38, .92); }
}

/* 3. Page entrance */
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
.site-main { animation: page-fade .28s ease-out; }

/* 1. Scroll reveal (class added by JS; harmless if JS is off) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease var(--d, 0s), transform .55s ease var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* 4. Card lifts */
.feed-card, .mini-card { transition: transform .18s ease, box-shadow .18s ease; }
.feed-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-story, .swidget, .stat-card, .panel { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mini-story:hover, .swidget:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-deep); }
.stat-card:hover, .panel:hover { box-shadow: var(--shadow); }
.stat-card:hover { transform: translateY(-2px); }

/* 5. Thumbnail zoom (story-card zoom already present) */
.feed-thumb img, .mini-story img { transition: transform .5s ease; }
.feed-card:hover .feed-thumb img, .mini-story:hover img { transform: scale(1.03); }

/* 6. Link underline slide */
.footer-links a, .footer-contact a, .prose a, .breadcrumb a, .consent-text a {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .25s ease, color .2s ease;
}
.footer-links a:hover, .footer-contact a:hover, .prose a:hover, .breadcrumb a:hover,
.footer-links a:focus-visible, .prose a:focus-visible, .breadcrumb a:focus-visible {
  background-size: 100% 2px;
}

/* 7. Button micro feedback */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }

/* 9. Hero leading elements rise in */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-lead .cat-pill { animation: rise .55s ease .12s both; }
.hero-lead h1 { animation: rise .55s ease .22s both; }
.hero-lead p  { animation: rise .55s ease .32s both; }
.hero-lead time { animation: rise .55s ease .42s both; }

/* 10. Marquee edge fade masks */
.marquee-track {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}

/* Motion safety: respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-lead .cat-pill, .hero-lead h1, .hero-lead p, .hero-lead time { animation: none; opacity: 1; }
}

/* ============================================================
   Reader comments
   ============================================================ */
.comments-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.comment-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.comment {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.comment-meta { font-size: .9rem; color: var(--ink-soft); margin-bottom: 6px; }
.comment-meta strong { color: var(--ink); }
.comment-body { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.comment-form { margin-top: 8px; }
.comment-form .hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ============================================================
   Admin helpers
   ============================================================ */
.btn.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.nl-compose textarea { min-height: 160px; }

/* ============================================================
   Story reactions
   ============================================================ */
.reactions {
  margin: 26px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-warm);
}
.reactions-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.reactions-title { font-weight: 600; font-size: .92rem; }
.reactions-total { color: var(--ink-faint); font-size: .8rem; }
.reactions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, transform .1s ease, background .15s ease, box-shadow .15s ease;
}
.reaction-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.reaction-btn:active { transform: translateY(0) scale(.97); }
.reaction-emoji { font-size: 1.15rem; line-height: 1; }
.reaction-count {
  min-width: 1.4em;
  text-align: center;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.reaction-btn.is-active {
  border-color: var(--gold);
  background: var(--brand-wash);
  color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent);
}
.reaction-btn.is-active .reaction-count { color: var(--gold-deep); }

@media (max-width: 720px) {
  .contact-cards { grid-template-columns: 1fr; }
  .footer-newsletter { align-items: stretch; flex-direction: column; }
  .nl-form-inline { flex-direction: column; max-width: none; }
  .nl-form-inline button { width: 100%; }
}
@media (max-width: 600px) {
  .site-header .container.masthead-inner { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  .site-topbar { overflow: hidden; }
  .site-topbar .topbar-date { display: none; }
  .site-topbar .topbar-right a:nth-of-type(n+3) { display: none; }
  .brand { flex: 1 1 auto; min-width: 0; max-width: 165px; }
  .brand-lockup { max-width: 165px; gap: 6px; overflow: hidden; }
  .brand-lockup img { max-width: 34px; }
  .brand-name { font-size: .72rem; gap: 3px; }
  .theme-toggle, .nav-toggle { order: 2; }
  .theme-toggle { margin-left: 0; }
  .nav-toggle { margin-left: 0; min-width: 0; }
  .auth-box { width: 100%; max-width: 100% !important; }
  .search-form { order: 3; flex: 1 1 100%; max-width: none; margin-top: 8px; }
  .hero-lead h1, .hero-lead p { width: calc(100% - 80px); max-width: calc(100% - 80px); margin-left: 16px; margin-right: 16px; overflow-wrap: anywhere; word-break: break-word; }
}
