/* ============================================================
   Kairos Irakleio — main.css
   kairosirakleio.com — Deep Ocean Dark theme
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --abyss: #060a11;
  --deep: #0a1019;
  --ocean: #0e1622;
  --ocean-mid: #131e30;
  --ocean-light: #1a2940;
  --ocean-surface: #213350;
  --teal: #2dd4bf;
  --teal-dim: #1a9e90;
  --teal-ghost: rgba(45,212,191,0.06);
  --teal-glow: rgba(45,212,191,0.12);
  --teal-border: rgba(45,212,191,0.15);
  --amber: #fbbf24;
  --amber-dim: #d4a020;
  --amber-ghost: rgba(251,191,36,0.06);
  --moon: #94a3b8;
  --foam: #cbd5e1;
  --mist: #64748b;
  --slate: #475569;
  --ink: #334155;
  --txt: #e2e8f0;
  --txt-2: #94a3b8;
  --txt-3: #64748b;
  --txt-4: #475569;
  --card: rgba(14,22,34,0.7);
  --card-solid: #0e1622;
  --card-hover: #131e30;
  --border: rgba(255,255,255,0.04);
  --border-strong: rgba(255,255,255,0.07);
  --r: 12px;
  --r-lg: 16px;
  --glow-sm: 0 0 20px rgba(45,212,191,0.04);
  --glow-md: 0 0 40px rgba(45,212,191,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --radius: var(--r);
  --transition: .18s ease;

  /* Legacy aliases (used by sub-page CSS files) */
  --forest: var(--teal);
  --forest-light: var(--teal);
  --forest-dark: var(--ocean);
  --greek-blue: var(--teal);
  --greek-blue-dark: var(--ocean);
  --greek-blue-deep: var(--deep);
  --greek-blue-light: var(--teal);
  --greek-foam: var(--ocean-mid);
  --gold: var(--amber);
  --stone: var(--ocean);
  --stone-dark: var(--ocean-mid);
  --text: var(--txt);
  --subtle: var(--txt-3);
  --muted-bg: var(--abyss);
  --white: var(--txt);
  --amber-light: #fcd34d;
  --amber-dark: var(--amber-dim);
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  background: var(--abyss);
  color: var(--txt);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: var(--abyss);
  padding: 8px 16px; z-index: 9999; border-radius: 0 0 6px 0; font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ══════════════════════════════════════
   SITE HEADER — single row
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(6,10,17,0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.hdr-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
}

/* Logo */
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 18px;
  border-right: 1px solid var(--border-strong);
  flex-shrink: 0;
  text-decoration: none;
}
.hdr-logo-img { height: 52px; width: auto; display: block; }
.hdr-logo-ic {
  width: 30px; height: 30px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hdr-logo-ic svg { width: 16px; height: 16px; color: var(--abyss); }
.hdr-logo-text { line-height: 1; }
.hdr-logo-name { font-size: 14px; font-weight: 900; color: var(--txt); letter-spacing: .04em; }
.hdr-logo-city { font-size: 7.5px; font-weight: 700; color: var(--teal); letter-spacing: .18em; text-transform: uppercase; margin-top: 1px; }

/* Centre nav */
.hdr-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0;
}
.hdr-nav-link {
  padding: 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--txt-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.hdr-nav-link:hover { color: var(--txt); }
.hdr-nav-link.on { color: var(--teal); border-bottom-color: var(--teal); }

/* Dropdown */
.hdr-dropdown {
  display: flex;
  align-items: stretch;
  position: relative;
}
.hdr-dropdown .hdr-nav-link {
  display: flex;
  align-items: center;
}
.hdr-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ocean);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 6px 0;
  z-index: 600;
  margin-top: 3px;
}
.hdr-dropdown:hover .hdr-dropdown-menu,
.hdr-dropdown:focus-within .hdr-dropdown-menu,
.hdr-dropdown.open .hdr-dropdown-menu {
  display: block;
}
.hdr-dropdown-menu .hdr-dd-item {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-2);
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  height: auto;
  border-bottom: none;
  margin-bottom: 0;
  white-space: normal;
  transition: background .14s, color .14s;
}
.hdr-dropdown-menu .hdr-dd-item:hover { background: var(--ocean-mid); color: var(--teal); }
.hdr-dd-all { font-weight: 700; color: var(--teal); }
.hdr-dd-sep { height: 1px; background: var(--border-strong); margin: 5px 0; }

/* Right side */
.hdr-right {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--border-strong);
  flex-shrink: 0;
}
.hdr-live {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hdr-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: hdr-pulse 2s ease-in-out infinite;
}
@keyframes hdr-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hdr-live-lbl { font-size: 7px; font-weight: 900; letter-spacing: .16em; color: var(--txt-4); }
.hdr-live-temp { font-size: 20px; font-weight: 700; color: var(--txt); line-height: 1; }
.hdr-live-icon { line-height: 1; color: var(--txt-2); }
.hdr-live-icon svg { width: 20px; height: 20px; vertical-align: middle; fill: var(--txt-2); }

/* Unit toggle */
.unit-toggle {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.unit-btn {
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  color: var(--txt-3);
  border: none;
  cursor: pointer;
  transition: .15s;
  font-family: inherit;
}
.unit-btn.on, .unit-btn.active {
  background: var(--teal);
  color: var(--abyss);
}

/* Hamburger */
.hdr-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hdr-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--txt-3);
  border-radius: 1px;
  transition: .2s;
}

@media (max-width: 960px) {
  .hdr-nav { display: none; }
  .hdr-hamburger { display: flex; }
  .hdr-right { margin-left: auto; }
}

/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: -300px; bottom: 0;
  width: 300px;
  background: var(--deep);
  border-left: 1px solid var(--border-strong);
  z-index: 700;
  transition: right .3s ease;
  overflow-y: auto;
}
.mobile-drawer.open { right: 0; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-logo {
  font-size: 15px; font-weight: 900; color: var(--txt); text-decoration: none;
}
.drawer-logo span { color: var(--teal); font-size: 13px; }
.drawer-close {
  background: none; border: none; color: var(--txt-3);
  font-size: 18px; cursor: pointer; padding: 4px;
  transition: color .15s;
}
.drawer-close:hover { color: var(--txt); }
.drawer-body { padding: 12px 0; }
.drawer-group { padding: 8px 0; border-bottom: 1px solid var(--border); }
.drawer-group-label {
  font-size: 8px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .16em; color: var(--txt-4);
  padding: 6px 20px 8px;
}
.drawer-item {
  display: block; padding: 8px 20px;
  font-size: 13px; font-weight: 500;
  color: var(--txt-3);
  transition: all .15s;
}
.drawer-item:hover { color: var(--teal); background: var(--teal-ghost); }
.drawer-item.on { color: var(--teal); }

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.page-breadcrumb {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 32px 0;
  font-size: 12px; color: var(--txt-3);
}
.page-breadcrumb ol {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.page-breadcrumb li { display: inline-flex; align-items: center; }
.page-breadcrumb a { color: var(--teal); font-weight: 600; text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb li > span[aria-hidden] { margin: 0 2px; }
/* Dark variant for hero sections */
.kairos-breadcrumb-dark {
  color: var(--txt-4);
  padding: 0 0 14px;
}
.kairos-breadcrumb-dark a { color: var(--txt-3); }
.kairos-breadcrumb-dark a:hover { color: var(--txt-2); }

/* ══════════════════════════════════════
   PAGE TITLE (H1)
══════════════════════════════════════ */
.forecast-page-title,
.page-hero h1,
.pa-page-title {
  max-width: 1200px; margin: 18px auto 6px; padding: 0 32px;
  font-size: 32px !important; font-weight: 900; letter-spacing: -.02em; line-height: 1.2;
  color: var(--teal) !important;
}
.forecast-page-desc {
  max-width: 1200px; margin: 0 auto 14px; padding: 0 32px;
  font-size: 14px; color: var(--txt-3); line-height: 1.5;
}
@media (max-width: 600px) {
  .forecast-page-title, .page-hero h1, .pa-page-title { font-size: 24px; padding: 0 20px; }
  .forecast-page-desc { padding: 0 20px; }
  .page-breadcrumb { padding: 12px 20px 0; }
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.site-main { min-height: 60vh; }

/* ══════════════════════════════════════
   SECTION COMPONENTS (shared)
══════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .12em; color: var(--txt-3);
}
.update-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--txt-3);
}
.update-dot {
  width: 6px; height: 6px; background: var(--teal);
  border-radius: 50%; animation: hdr-pulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--deep);
  color: var(--txt-3);
  border-top: 1px solid var(--border);
}
.footer-top {
  max-width: 1200px; margin: 0 auto;
  padding: 44px 32px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}

/* Brand col */
.footer-logo-wrap { display: block; margin-bottom: 14px; text-decoration: none; }
.footer-logo-img { max-width: 180px; height: auto; display: block; }
.footer-about { font-size: 12px; line-height: 1.65; color: var(--txt-4); margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ocean-mid); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--txt-3); text-decoration: none;
  transition: all .15s;
}
.social-btn:hover { background: var(--teal); color: var(--abyss); border-color: var(--teal); }

/* Nav cols */
.footer-col h4 {
  font-size: 8px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .18em; color: var(--txt-4); margin-bottom: 14px;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0; }
.footer-col a, .footer-col li a {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--txt-4); margin-bottom: 9px; transition: color .15s;
}
.footer-col a:hover, .footer-col li a:hover { color: var(--teal); }
.footer-col li { list-style: none; }

/* Bottom bar */
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 32px 24px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 11px; color: var(--txt-4); }
.footer-copy a { color: var(--txt-3); } .footer-copy a:hover { color: var(--teal); }
.footer-legal-links, .footer-legal { display: flex; gap: 14px; }
.footer-legal-links a, .footer-legal a { font-size: 11px; color: var(--txt-4); transition: color .15s; }
.footer-legal-links a:hover, .footer-legal a:hover { color: var(--teal); }

/* ══════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ocean); color: var(--txt-2);
  border-top: 1px solid var(--border-strong);
  padding: 14px 24px; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 30px rgba(0,0,0,.4);
  transform: translateY(100%);
  transition: transform .3s;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 13px; flex: 1; min-width: 200px; }
.cookie-text a { color: var(--teal); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.btn-cookie-accept {
  padding: 8px 20px; background: var(--teal); color: var(--abyss);
  border: none; border-radius: 6px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.btn-cookie-accept:hover { background: var(--teal-dim); }
.btn-cookie-decline {
  padding: 8px 20px; background: var(--ocean-mid); color: var(--txt-3);
  border: 1px solid var(--border-strong); border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.btn-cookie-decline:hover { background: var(--ocean-light); color: var(--txt-2); }

/* ══════════════════════════════════════
   NIGHT MODE (now a no-op since base is dark)
══════════════════════════════════════ */
body.is-night { background: var(--abyss); color: var(--txt); }

/* ══════════════════════════════════════
   25-DAY FORECAST PAGE (f25-)
══════════════════════════════════════ */

/* Page Title */
.f25-title-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.5rem;
}
.f25-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--txt);
}
.f25-page-subtitle {
  font-size: 0.85rem;
  color: var(--txt-3);
  margin-top: 0.25rem;
}

/* Main Content */
.f25-main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card */
.f25-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.f25-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.f25-card-header h2 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-3);
}

/* Week Label */
.f25-week-label {
  padding: 0.6rem 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--txt-4);
  background: var(--ocean-mid);
  border-bottom: 1px solid var(--border);
}

/* Summary Strip */
.f25-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-strong);
}
.f25-stat {
  background: var(--card-solid);
  text-align: center;
  padding: 1.25rem 1rem;
}
.f25-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  margin-bottom: 0.35rem;
}
.f25-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--txt);
}
.f25-stat-value.f25-green { color: var(--teal); }

/* Temperature Chart */
.f25-temp-chart {
  padding: 1.5rem 1.25rem;
}

/* Forecast Row */
.f25-forecast-row {
  display: grid;
  grid-template-columns: 140px 40px 1fr 100px;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
  gap: 0.75rem;
}
.f25-forecast-row:last-child { border-bottom: none; }
.f25-forecast-row:hover { background: var(--teal-ghost); }
.f25-forecast-row.f25-today { background: rgba(251,191,36,0.04); }

.f25-forecast-day { display: flex; flex-direction: column; }
.f25-day-name { font-weight: 600; font-size: 0.9rem; color: var(--txt); font-family: 'Instrument Sans', system-ui, sans-serif; }
.f25-day-date { font-size: 0.72rem; color: var(--txt-3); }

.f25-forecast-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.f25-forecast-icon svg { width: 28px; height: 28px; }

.f25-forecast-desc { display: flex; flex-direction: column; gap: 0.15rem; }
.f25-condition { font-size: 0.85rem; color: var(--txt-2); }
.f25-rain {
  font-size: 0.72rem;
  color: #5b9bd5;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.f25-forecast-temps { text-align: right; white-space: nowrap; }
.f25-high { font-weight: 700; font-size: 1rem; color: var(--txt); }
.f25-low { font-weight: 500; font-size: 0.85rem; color: var(--txt-3); margin-left: 0.35rem; }

/* Related Links */
.f25-related-links {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.f25-related-links h3 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  margin-bottom: 0.75rem;
}
.f25-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.f25-related-grid a {
  background: var(--ocean-mid);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--txt-3);
  transition: background 0.2s, color 0.2s;
}
.f25-related-grid a:hover {
  background: var(--teal);
  color: var(--abyss);
  border-color: var(--teal);
}

/* Info Section */
.f25-info-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.f25-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.f25-info-card h3 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  margin-bottom: 0.75rem;
}
.f25-info-card p {
  font-size: 0.85rem;
  color: var(--txt-3);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.f25-info-card a { color: var(--teal); font-weight: 500; }
.f25-info-card a:hover { text-decoration: underline; }

/* CTA Banner */
.f25-cta-banner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.f25-cta-inner {
  background: var(--ocean-mid);
  border: 1px solid var(--teal-border);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--glow-sm);
}
.f25-cta-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.35rem;
}
.f25-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
}
.f25-cta-desc {
  font-size: 0.8rem;
  color: var(--txt-3);
  margin-top: 0.15rem;
}
.f25-cta-btn {
  background: var(--amber);
  color: var(--abyss);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s;
}
.f25-cta-btn:hover { background: var(--amber-dim); }

/* Night mode — 25-day (no-ops, base is already dark) */
body.is-night .f25-page-title { color: var(--txt); }
body.is-night .f25-page-subtitle { color: var(--txt-3); }
body.is-night .f25-card { background: var(--card); }
body.is-night .f25-card-header { border-color: var(--border); }
body.is-night .f25-card-header h2 { color: var(--txt-3); }
body.is-night .f25-week-label { background: var(--ocean-mid); border-color: var(--border); color: var(--txt-4); }
body.is-night .f25-summary-strip { background: var(--border-strong); }
body.is-night .f25-stat { background: var(--card-solid); }
body.is-night .f25-stat-label { color: var(--txt-3); }
body.is-night .f25-stat-value { color: var(--txt); }
body.is-night .f25-forecast-row { border-color: var(--border); }
body.is-night .f25-forecast-row:hover { background: var(--teal-ghost); }
body.is-night .f25-forecast-row.f25-today { background: rgba(251,191,36,0.04); }
body.is-night .f25-day-name,
body.is-night .f25-condition,
body.is-night .f25-high { color: var(--txt); }
body.is-night .f25-day-date,
body.is-night .f25-low { color: var(--txt-3); }
body.is-night .f25-info-card { background: var(--card); }
body.is-night .f25-info-card h3 { color: var(--txt-3); }
body.is-night .f25-info-card p { color: var(--txt-3); }
body.is-night .f25-info-card a { color: var(--teal); }
body.is-night .f25-related-grid a { background: var(--ocean-mid); color: var(--txt-3); }
body.is-night .f25-related-grid a:hover { background: var(--teal); color: var(--abyss); }
body.is-night .f25-related-links h3 { color: var(--txt-3); }
body.is-night .f25-cta-inner { background: var(--ocean-mid); }
body.is-night .f25-cta-title { color: var(--txt); }
body.is-night .f25-cta-desc { color: var(--txt-3); }

/* 25-day responsive */
@media (max-width: 768px) {
  .f25-page-title { font-size: 1.25rem; }
  .f25-forecast-row {
    grid-template-columns: 100px 32px 1fr 70px;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .f25-day-name { font-size: 0.82rem; }
  .f25-high { font-size: 0.9rem; }
  .f25-summary-strip { grid-template-columns: repeat(2, 1fr); }
  .f25-cta-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
  .f25-forecast-row {
    grid-template-columns: 80px 28px 1fr 60px;
    padding: 0.65rem 0.75rem;
  }
  .f25-summary-strip { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   PERIOCHES PAGE (per-)
══════════════════════════════════════ */

/* Page Title */
.per-title-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.5rem;
}
.per-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--txt);
}
.per-page-subtitle {
  font-size: 0.85rem;
  color: var(--txt-3);
  margin-top: 0.25rem;
}

/* Main Content */
.per-main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

/* Areas Grid */
.per-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Area Card */
.per-area-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.per-area-card:hover {
  box-shadow: var(--glow-sm);
  border-color: var(--teal-border);
}

.per-area-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.per-area-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--txt);
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.per-area-subtitle {
  font-size: 0.72rem;
  color: var(--txt-3);
  margin-top: 0.1rem;
}
.per-area-temp { text-align: right; }
.per-area-current {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--txt);
  line-height: 1;
}
.per-area-range {
  font-size: 0.72rem;
  color: var(--txt-3);
  margin-top: 0.2rem;
}

.per-area-card-mid {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.per-area-icon { font-size: 1.5rem; }
.per-area-icon svg { width: 28px; height: 28px; }
.per-area-condition {
  font-size: 0.82rem;
  color: var(--txt-3);
}

.per-area-card-bottom {
  display: flex;
  gap: 1px;
  background: var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.25rem;
}
.per-area-stat {
  flex: 1;
  background: var(--ocean-mid);
  text-align: center;
  padding: 0.5rem 0.25rem;
}
.per-area-stat-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--txt-4);
  margin-bottom: 0.15rem;
}
.per-area-stat-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--txt);
}
.per-area-card-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  margin-top: auto;
}
.per-area-card:hover .per-area-card-link { text-decoration: underline; }

/* Comparison Section */
.per-comparison-section { margin-bottom: 2rem; }
.per-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  margin-bottom: 0.75rem;
}

/* Comparison Table */
.per-comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.per-comparison-table thead th {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--txt-4);
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--ocean-mid);
}
.per-comparison-table thead th:last-child,
.per-comparison-table tbody td:last-child { text-align: right; }
.per-comparison-table tbody tr {
  transition: background 0.15s;
  cursor: pointer;
}
.per-comparison-table tbody tr:hover { background: var(--teal-ghost); }
.per-comparison-table tbody td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--txt-2);
}
.per-comparison-table tbody tr:last-child td { border-bottom: none; }
.per-name-cell { font-weight: 600; color: var(--txt); }
.per-icon-cell { font-size: 1.2rem; text-align: center; width: 40px; }
.per-icon-cell svg { width: 22px; height: 22px; }
.per-temp-cell { font-weight: 700; color: var(--txt); }
.per-temp-cell .per-low { font-weight: 500; color: var(--txt-3); margin-left: 0.25rem; }
.per-rain-cell { color: #5b9bd5; font-size: 0.78rem; }
.per-wind-cell { font-size: 0.78rem; color: var(--txt-3); }

/* Map Section */
.per-map-section { margin-bottom: 2rem; }
.per-map-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.per-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.per-map-header h2 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-3);
}
.per-map-toggle { display: flex; gap: 0.5rem; }
.per-map-toggle button {
  background: var(--ocean-mid);
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--txt-3);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.per-map-toggle button.active {
  background: var(--teal);
  color: var(--abyss);
  border-color: var(--teal);
}
.per-map-body {
  height: 400px;
  position: relative;
  z-index: 1;
}
.per-map-body #per-map {
  width: 100%;
  height: 100%;
}

/* Map popups */
.per-popup-name { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.per-popup-temp { font-size: 22px; font-weight: 700; color: var(--txt); }
.per-popup-condition { color: var(--txt-3); font-size: 12px; }

/* Related Links */
.per-related-links { margin-bottom: 2rem; }
.per-related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.per-related-grid a {
  background: var(--ocean-mid);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--txt-3);
  transition: background 0.2s, color 0.2s;
}
.per-related-grid a:hover {
  background: var(--teal);
  color: var(--abyss);
  border-color: var(--teal);
}

/* Info Section */
.per-info-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.per-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.per-info-card h3 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txt-3);
  margin-bottom: 0.75rem;
}
.per-info-card p {
  font-size: 0.85rem;
  color: var(--txt-3);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.per-info-card a { color: var(--teal); font-weight: 500; }
.per-info-card a:hover { text-decoration: underline; }

/* CTA Banner */
.per-cta-banner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.per-cta-inner {
  background: var(--ocean-mid);
  border: 1px solid var(--teal-border);
  border-radius: var(--r);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--glow-sm);
}
.per-cta-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.35rem;
}
.per-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
}
.per-cta-desc {
  font-size: 0.8rem;
  color: var(--txt-3);
  margin-top: 0.15rem;
}
.per-cta-btn {
  background: var(--amber);
  color: var(--abyss);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s;
}
.per-cta-btn:hover { background: var(--amber-dim); }

/* Night mode — perioches (no-ops) */
body.is-night .per-page-title { color: var(--txt); }
body.is-night .per-page-subtitle { color: var(--txt-3); }
body.is-night .per-area-card { background: var(--card); }
body.is-night .per-area-name,
body.is-night .per-area-current,
body.is-night .per-area-stat-value { color: var(--txt); }
body.is-night .per-area-subtitle,
body.is-night .per-area-range,
body.is-night .per-area-stat-label { color: var(--txt-3); }
body.is-night .per-area-condition { color: var(--txt-3); }
body.is-night .per-area-card-bottom { background: var(--border-strong); }
body.is-night .per-area-stat { background: var(--ocean-mid); }
body.is-night .per-area-card-link { color: var(--teal); }
body.is-night .per-comparison-table { background: var(--card); }
body.is-night .per-comparison-table thead th { background: var(--ocean-mid); border-color: var(--border); color: var(--txt-4); }
body.is-night .per-comparison-table tbody td { border-color: var(--border); color: var(--txt-2); }
body.is-night .per-comparison-table tbody tr:hover { background: var(--teal-ghost); }
body.is-night .per-temp-cell .per-low { color: var(--txt-3); }
body.is-night .per-wind-cell { color: var(--txt-3); }
body.is-night .per-map-card { background: var(--card); }
body.is-night .per-map-header { border-color: var(--border); }
body.is-night .per-map-header h2 { color: var(--txt-3); }
body.is-night .per-map-toggle button { background: var(--ocean-mid); border-color: var(--border-strong); color: var(--txt-3); }
body.is-night .per-map-toggle button.active { background: var(--teal); color: var(--abyss); border-color: var(--teal); }
body.is-night .per-related-grid a { background: var(--ocean-mid); color: var(--txt-3); }
body.is-night .per-related-grid a:hover { background: var(--teal); color: var(--abyss); }
body.is-night .per-section-label { color: var(--txt-3); }
body.is-night .per-info-card { background: var(--card); }
body.is-night .per-info-card h3 { color: var(--txt-3); }
body.is-night .per-info-card p { color: var(--txt-3); }
body.is-night .per-info-card a { color: var(--teal); }
body.is-night .per-cta-inner { background: var(--ocean-mid); }
body.is-night .per-cta-title { color: var(--txt); }
body.is-night .per-cta-desc { color: var(--txt-3); }

/* Perioches responsive */
@media (max-width: 768px) {
  .per-page-title { font-size: 1.25rem; }
  .per-areas-grid { grid-template-columns: repeat(2, 1fr); }
  .per-comparison-table { font-size: 0.8rem; }
  .per-comparison-table thead th,
  .per-comparison-table tbody td { padding: 0.6rem 0.75rem; }
  .per-map-body { height: 250px; }
  .per-cta-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
@media (max-width: 480px) {
  .per-areas-grid { grid-template-columns: 1fr; }
  .per-wind-cell,
  .per-comparison-table thead th:nth-child(5) { display: none; }
}

/* ══════════════════════════════════════
   BLOG ARCHIVE PAGE (blg-)
══════════════════════════════════════ */

/* Page Title */
.blg-title-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.5rem;
}
.blg-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--txt);
}
.blg-page-subtitle {
  font-size: 0.85rem;
  color: var(--txt-3);
  margin-top: 0.25rem;
}

/* Breaking News */
.blg-breaking-bar {
  background: #b71c1c;
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 1rem;
}
.blg-breaking-label {
  background: #d32f2f;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.blg-breaking-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: blg-pulse 1.5s infinite;
}
@keyframes blg-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.blg-breaking-text {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blg-breaking-text a { color: white; }
.blg-breaking-text a:hover { text-decoration: underline; }

/* Category Tabs */
.blg-category-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blg-category-tabs::-webkit-scrollbar { display: none; }
.blg-cat-tab {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--txt-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.blg-cat-tab:hover { color: var(--teal); }
.blg-cat-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* Main Content */
.blg-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* Hero Section */
.blg-hero-section {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.blg-hero-main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s;
  display: block;
}
.blg-hero-main:hover { box-shadow: var(--glow-sm); border-color: var(--teal-border); }
.blg-hero-main-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.blg-hero-main-img-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--ocean-mid) 0%, var(--ocean-surface) 60%, var(--ocean-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-4);
  font-size: 3rem;
}
.blg-hero-main-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.blg-post-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 0.4rem;
  display: block;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.blg-hero-main-body .blg-post-category { font-size: 0.7rem; margin-bottom: 0.5rem; }
.blg-hero-main-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--txt);
  margin-bottom: 0.6rem;
}
.blg-hero-main-body h2:hover { color: var(--teal); }
.blg-post-excerpt {
  font-size: 0.85rem;
  color: var(--txt-3);
  line-height: 1.6;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blg-hero-main-body .blg-post-excerpt { font-size: 0.9rem; margin-bottom: 0.75rem; }
.blg-post-meta {
  font-size: 0.72rem;
  color: var(--txt-4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.blg-author { font-weight: 600; color: var(--txt-3); }

/* Hero Sidebar */
.blg-hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blg-hero-side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s;
  flex: 1;
}
.blg-hero-side-card:hover { box-shadow: var(--glow-sm); border-color: var(--teal-border); }
.blg-hero-side-img {
  width: 100%;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
}
.blg-hero-side-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-4);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-surface));
}
.blg-hero-side-body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blg-hero-side-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--txt);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blg-hero-side-body h3:hover { color: var(--teal); }
.blg-hero-side-body .blg-post-meta { margin-top: 0.3rem; font-size: 0.7rem; }

/* Section Label */
.blg-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--teal-border);
  display: inline-block;
  margin: 0;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.blg-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.blg-see-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
}
.blg-see-all:hover { text-decoration: underline; }

/* Two Column Layout */
.blg-two-col-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  margin-top: 0.5rem;
}

/* Article List */
.blg-article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blg-article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s;
}
.blg-article-card:hover { box-shadow: var(--glow-sm); border-color: var(--teal-border); }
.blg-article-card-img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}
.blg-article-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-4);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-surface));
}
.blg-article-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blg-article-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--txt);
  margin-bottom: 0.5rem;
}
.blg-article-card-body h3:hover { color: var(--teal); }
.blg-article-card-body .blg-post-excerpt {
  -webkit-line-clamp: 2;
}

/* Sidebar */
.blg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blg-sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.blg-sidebar-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--teal-border);
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.blg-trending-list {
  list-style: none;
}
.blg-trending-item {
  border-bottom: 1px solid var(--border);
}
.blg-trending-item:last-child { border-bottom: none; }
.blg-trending-item a {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  transition: background 0.2s ease;
}
.blg-trending-item a:hover { background: var(--teal-ghost); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 8px; }
.blg-trending-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  min-width: 28px;
  padding-top: 0.1rem;
}
.blg-trending-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--txt);
}

/* Weather Alert Box */
.blg-weather-alert-box {
  background: linear-gradient(135deg, var(--ocean-light), var(--ocean-surface));
  border: 1px solid var(--teal-border);
  border-radius: var(--r);
  padding: 1.5rem;
  color: var(--txt);
}
.blg-alert-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.blg-weather-alert-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.blg-weather-alert-box p {
  font-size: 0.82rem;
  color: var(--txt-2);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.blg-alert-btn {
  display: inline-block;
  background: var(--teal);
  color: var(--abyss);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: 0.2s ease;
}
.blg-alert-btn:hover { background: var(--teal-dim); }

/* Newsletter */
.blg-newsletter-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
}
.blg-newsletter-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.3rem;
}
.blg-newsletter-box p {
  font-size: 0.8rem;
  color: var(--txt-3);
  margin-bottom: 1rem;
}
.blg-newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.blg-newsletter-form input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-strong);
  background: var(--ocean-mid);
  color: var(--txt);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: 0.2s ease;
}
.blg-newsletter-form input::placeholder { color: var(--txt-4); }
.blg-newsletter-form input:focus { border-color: var(--teal); }
.blg-newsletter-form button {
  background: var(--teal);
  color: var(--abyss);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
}
.blg-newsletter-form button:hover { background: var(--teal-dim); }

/* Topic Grid */
.blg-topic-grid-section { margin-top: 2.5rem; }
.blg-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.blg-topic-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}
.blg-topic-card:hover { box-shadow: var(--glow-sm); border-color: var(--teal-border); }
.blg-topic-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.blg-topic-card-img-placeholder {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt-4);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-surface));
}
.blg-topic-card-body {
  padding: 0.9rem 1rem;
}
.blg-topic-card-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--txt);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blg-topic-card-body h4:hover { color: var(--teal); }
.blg-topic-card-body .blg-post-meta {
  font-size: 0.68rem;
  margin-top: 0.35rem;
}

/* Load More */
.blg-load-more-section {
  text-align: center;
  margin-top: 2rem;
}
.blg-load-more-btn {
  display: inline-block;
  background: var(--teal);
  color: var(--abyss);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  border: none;
  font-family: inherit;
}
.blg-load-more-btn:hover { background: var(--teal-dim); }

/* CTA Banner */
.blg-cta-banner {
  background: var(--ocean-mid);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  text-align: center;
  color: var(--txt);
  margin-top: 2.5rem;
  box-shadow: var(--glow-sm);
}
.blg-cta-banner h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.blg-cta-banner p {
  font-size: 0.9rem;
  color: var(--txt-3);
  max-width: 500px;
  margin: 0 auto 1.25rem;
}
.blg-cta-btn {
  display: inline-block;
  background: var(--teal);
  color: var(--abyss);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  transition: 0.2s ease;
}
.blg-cta-btn:hover { background: var(--teal-dim); }

/* Night mode — blog (no-ops) */
body.is-night .blg-page-title { color: var(--txt); }
body.is-night .blg-page-subtitle { color: var(--txt-3); }
body.is-night .blg-cat-tab { color: var(--txt-3); }
body.is-night .blg-cat-tab:hover,
body.is-night .blg-cat-tab.active { color: var(--teal); }
body.is-night .blg-category-tabs { border-color: var(--border-strong); }
body.is-night .blg-hero-main,
body.is-night .blg-hero-side-card,
body.is-night .blg-article-card,
body.is-night .blg-sidebar-card,
body.is-night .blg-newsletter-box,
body.is-night .blg-topic-card { background: var(--card); }
body.is-night .blg-hero-main-body h2,
body.is-night .blg-hero-side-body h3,
body.is-night .blg-article-card-body h3,
body.is-night .blg-trending-content h4,
body.is-night .blg-topic-card-body h4,
body.is-night .blg-newsletter-box h4 { color: var(--txt); }
body.is-night .blg-post-excerpt,
body.is-night .blg-post-meta,
body.is-night .blg-author { color: var(--txt-3); }
body.is-night .blg-section-label,
body.is-night .blg-sidebar-card-title { color: var(--teal); }
body.is-night .blg-trending-item { border-color: var(--border); }
body.is-night .blg-newsletter-box p { color: var(--txt-3); }
body.is-night .blg-newsletter-form input {
  background: var(--ocean-mid);
  border-color: var(--border-strong);
  color: var(--txt);
}
body.is-night .blg-cta-banner { background: var(--ocean-mid); }

/* Blog responsive */
@media (max-width: 1024px) {
  .blg-hero-section { grid-template-columns: 1fr; }
  .blg-hero-sidebar { flex-direction: row; }
  .blg-hero-side-card { grid-template-columns: 120px 1fr; }
  .blg-two-col-layout { grid-template-columns: 1fr; }
  .blg-sidebar { flex-direction: row; flex-wrap: wrap; }
  .blg-sidebar > * { flex: 1; min-width: 280px; }
  .blg-topic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blg-hero-sidebar { flex-direction: column; }
  .blg-hero-side-card { grid-template-columns: 120px 1fr; }
  .blg-article-card { grid-template-columns: 140px 1fr; }
  .blg-article-card-body { padding: 0.75rem 1rem; }
  .blg-article-card-body h3 { font-size: 0.95rem; }
  .blg-cta-banner { padding: 2rem 1.5rem; }
  .blg-sidebar { flex-direction: column; }
}
@media (max-width: 480px) {
  .blg-page-title { font-size: 1.25rem; }
  .blg-hero-main-img,
  .blg-hero-main-img-placeholder { height: 200px; }
  .blg-hero-main-body h2 { font-size: 1.2rem; }
  .blg-article-card { grid-template-columns: 1fr; }
  .blg-article-card-img,
  .blg-article-card-img-placeholder { height: 180px; min-height: auto; }
  .blg-topic-grid { grid-template-columns: 1fr; }
  .blg-newsletter-form { flex-direction: column; }
  .blg-category-tabs { padding: 0 1rem; }
}

/* ══════════════════════════════════════
   SINGLE POST (sp-)
══════════════════════════════════════ */
.sp-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  z-index: 9999;
  transition: width .15s ease;
}
.sp-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}
.sp-header {
  text-align: left;
  padding: 2rem 0 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}
.sp-cats {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}
.sp-cat-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--ocean-mid);
  color: var(--teal);
  border: 1px solid var(--teal-border);
  transition: var(--transition);
}
.sp-cat-badge:hover { background: var(--teal); color: var(--abyss); }
.sp-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--txt);
  margin-bottom: 12px;
}
.sp-subtitle {
  font-size: 1.1rem;
  color: var(--txt-3);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 18px;
}
.sp-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.sp-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-meta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ocean-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}
.sp-meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp-meta-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}
.sp-meta-name:hover { text-decoration: underline; }
.sp-meta-date {
  font-size: 12px;
  color: var(--txt-3);
}
.sp-meta-sep { margin: 0 4px; }
.sp-meta-actions {
  display: flex;
  gap: 6px;
}
.sp-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--ocean-mid);
  color: var(--txt-3);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.sp-action-btn:hover { border-color: var(--teal); color: var(--teal); }

/* Hero Image */
.sp-hero-img {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  max-height: 380px;
}
.sp-hero-img img { width: 100%; display: block; height: 100%; object-fit: cover; }

/* Layout */
.sp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* Article Body */
.sp-body { min-width: 0; }
.sp-content {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--txt-2);
}
.sp-content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--txt);
  margin: 2.2rem 0 0.8rem;
  line-height: 1.25;
}
.sp-content h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--txt);
  margin: 1.8rem 0 0.6rem;
}
.sp-content p { margin-bottom: 1.2rem; }
.sp-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.sp-content a:hover { color: var(--amber); }
.sp-content ul, .sp-content ol {
  margin: 0 0 1.2rem 1.5rem;
  padding: 0;
}
.sp-content ul { list-style: disc; }
.sp-content ol { list-style: decimal; }
.sp-content li { margin-bottom: 0.5rem; }
.sp-content blockquote {
  border-left: 4px solid var(--teal);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--teal-ghost);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--txt-2);
}
.sp-content figure {
  margin: 1.8rem 0;
  border-radius: 10px;
  overflow: hidden;
}
.sp-content figure img { width: 100%; height: auto; }
.sp-content figcaption {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 12px;
  color: var(--txt-3);
  text-align: center;
  padding: 8px 12px;
  background: var(--ocean-mid);
}
.sp-content .wp-block-table table,
.sp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 0.9rem;
}
.sp-content table th,
.sp-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-strong);
  text-align: left;
}
.sp-content table th {
  background: var(--ocean-mid);
  font-weight: 700;
  color: var(--teal);
}
.sp-content pre, .sp-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}
.sp-content pre {
  background: var(--deep);
  color: var(--txt);
  padding: 1.2rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.2rem 0;
  border: 1px solid var(--border);
}
.sp-content code {
  background: var(--ocean-mid);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--teal);
}
.sp-content pre code { background: none; color: inherit; padding: 0; }

/* Data highlight box */
.sp-content .wp-block-group {
  background: var(--teal-ghost);
  border: 1px solid var(--teal-border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

/* ── PAGE CONTENT (legal / static pages) ── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px 60px;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--txt-2);
}
.page-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--txt);
  margin: 2rem 0 0.7rem;
  line-height: 1.25;
}
.page-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--txt);
  margin: 1.6rem 0 0.5rem;
}
.page-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin: 1.2rem 0 0.4rem;
}
.page-content p { margin-bottom: 1.1rem; }
.page-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--amber); }
.page-content ul, .page-content ol {
  margin: 0 0 1.2rem 1.5rem;
  padding: 0;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.45rem; }
.page-content blockquote {
  border-left: 4px solid var(--teal);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--teal-ghost);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--txt-2);
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.9rem;
}
.page-content table th,
.page-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-strong);
  text-align: left;
}
.page-content table th {
  background: var(--ocean-mid);
  font-weight: 700;
  color: var(--teal);
}
.page-content strong { color: var(--txt); }
.page-content .wp-block-group {
  background: var(--teal-ghost);
  border: 1px solid var(--teal-border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
@media (max-width: 600px) {
  .page-content { padding: 18px 20px 48px; }
}

/* Tags */
.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-strong);
  margin-top: 2rem;
}
.sp-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--ocean-mid);
  color: var(--txt-3);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.sp-tag:hover { background: var(--ocean-light); color: var(--teal); border-color: var(--teal-border); }

/* Share Bar */
.sp-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-strong);
}
.sp-share-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt-3);
  margin-right: 4px;
}
.sp-share-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.sp-share-fb { background: #1877F2; color: #fff; }
.sp-share-fb:hover { background: #0d65d9; color: #fff; }
.sp-share-x { background: #fff; color: #111; }
.sp-share-x:hover { background: #e2e8f0; color: #111; }
.sp-share-copy {
  background: var(--ocean-mid);
  color: var(--teal);
  border: 1px solid var(--border-strong);
}
.sp-share-copy:hover { background: var(--ocean-light); }

/* Author Bio Box */
.sp-author-box {
  display: flex;
  gap: 16px;
  padding: 24px;
  margin-top: 24px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.sp-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ocean-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}
.sp-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sp-author-info { flex: 1; }
.sp-author-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--txt-3);
  margin-bottom: 2px;
}
.sp-author-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}
.sp-author-name:hover { text-decoration: underline; }
.sp-author-bio {
  font-size: 13px;
  color: var(--txt-3);
  line-height: 1.5;
}

/* Sidebar */
.sp-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sp-sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sp-sidebar-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-family: 'Instrument Sans', system-ui, sans-serif;
}
.sp-toc-link {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--txt-3);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.sp-toc-link:hover { color: var(--teal); background: var(--teal-ghost); }
.sp-toc-link.active {
  color: var(--teal);
  border-left: 3px solid var(--teal);
  padding-left: 13px;
  background: var(--teal-ghost);
}
.sp-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.sp-sidebar-link:hover { background: var(--teal-ghost); }
.sp-sidebar-link-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.3;
  flex: 1;
}
.sp-sidebar-link-arrow {
  font-size: 16px;
  color: var(--txt-3);
  margin-left: 8px;
}

/* Related Articles */
.sp-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-strong);
}
.sp-related-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 1.25rem;
}
.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.sp-related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.sp-related-card:hover { transform: translateY(-3px); box-shadow: var(--glow-sm); border-color: var(--teal-border); }
.sp-related-img {
  height: 160px;
  overflow: hidden;
  background: var(--ocean-mid);
}
.sp-related-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-related-body { padding: 14px 16px; }
.sp-related-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--amber);
  margin-bottom: 6px;
}
.sp-related-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-related-date {
  font-size: 11px;
  color: var(--txt-4);
}

/* CTA Banner */
.sp-cta-banner {
  background: var(--ocean-mid);
  border: 1px solid var(--teal-border);
  color: var(--txt);
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--r-lg);
  margin-top: 3rem;
  box-shadow: var(--glow-sm);
}
.sp-cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.sp-cta-desc {
  font-size: 0.95rem;
  color: var(--txt-3);
  margin-bottom: 1.25rem;
}
.sp-cta-btn {
  display: inline-block;
  background: var(--teal);
  color: var(--abyss);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  transition: var(--transition);
}
.sp-cta-btn:hover { background: var(--teal-dim); }

/* Night mode — single post (no-ops) */
body.is-night .sp-title { color: var(--txt); }
body.is-night .sp-subtitle { color: var(--txt-3); }
body.is-night .sp-meta-bar { border-color: var(--border-strong); }
body.is-night .sp-meta-name { color: var(--teal); }
body.is-night .sp-meta-date { color: var(--txt-3); }
body.is-night .sp-action-btn { background: var(--ocean-mid); border-color: var(--border-strong); color: var(--txt-3); }
body.is-night .sp-action-btn:hover { border-color: var(--teal); color: var(--teal); }
body.is-night .sp-hero-img { box-shadow: var(--shadow); }
body.is-night .sp-content { color: var(--txt-2); }
body.is-night .sp-content h2,
body.is-night .sp-content h3 { color: var(--txt); }
body.is-night .sp-content a { color: var(--teal); }
body.is-night .sp-content blockquote { background: var(--teal-ghost); border-color: var(--teal); color: var(--txt-2); }
body.is-night .sp-content figcaption { background: var(--ocean-mid); color: var(--txt-3); }
body.is-night .sp-content table th { background: var(--ocean-mid); color: var(--teal); }
body.is-night .sp-content table td { border-color: var(--border-strong); }
body.is-night .sp-content .wp-block-group { background: var(--teal-ghost); border-color: var(--teal-border); }
body.is-night .sp-content code { background: var(--ocean-mid); color: var(--teal); }
body.is-night .page-content { color: var(--txt-2); }
body.is-night .page-content h2,
body.is-night .page-content h3,
body.is-night .page-content h4 { color: var(--txt); }
body.is-night .page-content strong { color: var(--txt); }
body.is-night .page-content a { color: var(--teal); }
body.is-night .page-content blockquote { background: var(--teal-ghost); border-color: var(--teal); color: var(--txt-2); }
body.is-night .page-content table th { background: var(--ocean-mid); color: var(--teal); }
body.is-night .page-content table td { border-color: var(--border-strong); }
body.is-night .page-content .wp-block-group { background: var(--teal-ghost); border-color: var(--teal-border); }
body.is-night .sp-tags { border-color: var(--border-strong); }
body.is-night .sp-tag { background: var(--ocean-mid); color: var(--txt-3); }
body.is-night .sp-tag:hover { background: var(--ocean-light); color: var(--teal); }
body.is-night .sp-share-bar { border-color: var(--border-strong); }
body.is-night .sp-share-copy { background: var(--ocean-mid); border-color: var(--border-strong); color: var(--teal); }
body.is-night .sp-author-box { background: var(--card); border-color: var(--border); }
body.is-night .sp-author-name { color: var(--teal); }
body.is-night .sp-author-bio { color: var(--txt-3); }
body.is-night .sp-sidebar-card { background: var(--card); }
body.is-night .sp-sidebar-title { color: var(--teal); border-color: var(--border); }
body.is-night .sp-toc-link { color: var(--txt-3); border-color: var(--border); }
body.is-night .sp-toc-link:hover,
body.is-night .sp-toc-link.active { color: var(--teal); }
body.is-night .sp-sidebar-link { border-color: var(--border); }
body.is-night .sp-sidebar-link-text { color: var(--txt); }
body.is-night .sp-related { border-color: var(--border-strong); }
body.is-night .sp-related-heading { color: var(--txt); }
body.is-night .sp-related-card { background: var(--card); }
body.is-night .sp-related-title { color: var(--txt); }
body.is-night .sp-related-date { color: var(--txt-4); }
body.is-night .sp-related-cat { color: var(--amber); }
body.is-night .sp-cta-banner { background: var(--ocean-mid); }
body.is-night .sp-cat-badge { background: var(--ocean-mid); color: var(--teal); }

/* Night mode — cards & sidebar (no-ops for homepage components) */
body.is-night .ip-card,
body.is-night .ip-sc { background: var(--card); border-color: var(--border); box-shadow: var(--shadow); }
body.is-night .ip-card-head,
body.is-night .ip-sc-link { border-color: var(--border); }
body.is-night .ip-card-title,
body.is-night .ip-sc-head { color: var(--txt-3); }
body.is-night .ip-today-sum,
body.is-night .ip-cw-desc,
body.is-night .ip-cw-temp,
body.is-night .ip-fc-name,
body.is-night .ip-fc-hi,
body.is-night .ip-ht-time,
body.is-night .ip-ht-temp,
body.is-night .ip-sc-link-text,
body.is-night .ip-sc-link-temp { color: var(--txt); }
body.is-night .ip-today-sum strong { color: var(--amber); }
body.is-night .ip-cw-sub,
body.is-night .ip-cw-label,
body.is-night .ip-fc-date,
body.is-night .ip-fc-desc,
body.is-night .ip-fc-lo,
body.is-night .ip-fc-subdesc,
body.is-night .ip-ht-desc,
body.is-night .ip-ht-feels,
body.is-night .ip-ht-wind,
body.is-night .ip-ht-hum,
body.is-night .ip-sc-link-arrow,
body.is-night .ip-cw-deg { color: var(--txt-3); }
body.is-night .ip-fc { border-color: var(--border); }
body.is-night .ip-fc:hover,
body.is-night .ip-fc.open { background: var(--teal-ghost); }
body.is-night .ip-fc.today { background: rgba(251,191,36,0.04); }
body.is-night .ip-fc-bar { background: var(--ocean-mid); }
body.is-night .ip-fc-det-grid,
body.is-night .ip-ht-header,
body.is-night .ip-ht-sep { background: var(--ocean-mid); }
body.is-night .ip-fc-det-row { border-color: var(--border); }
body.is-night .ip-fc-det-label,
body.is-night .ip-ht-header { color: var(--txt-4); }
body.is-night .ip-fc-det-val { color: var(--txt); }
body.is-night .ip-sc-link:hover { background: var(--teal-ghost); }

/* Single post responsive */
@media (max-width: 1024px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    position: static !important;
  }
  .sp-sidebar > * { flex: 1; min-width: 260px; }
  .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sp-title { font-size: 1.6rem; }
  .sp-subtitle { font-size: 1rem; }
  .sp-meta-bar { flex-direction: column; align-items: flex-start; }
  .sp-content { font-size: 1rem; }
  .sp-author-box { flex-direction: column; text-align: center; align-items: center; }
  .sp-related-grid { grid-template-columns: 1fr 1fr; }
  .sp-sidebar { flex-direction: column; }
  .sp-cta-banner { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .sp-header { padding: 1.5rem 0 1rem; }
  .sp-title { font-size: 1.35rem; }
  .sp-related-grid { grid-template-columns: 1fr; }
  .sp-hero-img { border-radius: 8px; }
  .sp-cta-banner { border-radius: 10px; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; padding: 32px 20px 0; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 16px 20px 24px; }
  .footer-legal-links { justify-content: center; }
}

/* Hide WP admin bar spacing */
html { margin-top: 0 !important; }
#wpadminbar { display: none; }
