/* ============================================
   weather.capetown — Design System
   ============================================ */

:root {
  /* Colour system — Cape Town coastal palette
     Source: colorhunt.co/palette/aaffc767c090215b63124170 */
  --bg: #F2FBF5;             /* Page background — soft mint tint */
  --bg-warm: #E5F6EC;         /* Card/section backgrounds */
  --bg-deep: #C8EAD3;         /* Footer / deeper surfaces */
  --bg-accent: #AAFFC6;       /* Pale mint — answer blocks, highlights */
  --ink: #124170;             /* Deep navy — primary text */
  --ink-soft: #215B63;        /* Deep teal — secondary text, sub-heads */
  --ink-mute: #4A7080;        /* Muted text */
  --line: #B0D9C4;            /* Strong borders */
  --line-soft: #D4ECDD;       /* Soft borders */
  --accent: #67C090;          /* Sage green — interactive accent */
  --accent-soft: #4FA877;     /* Darker sage — hover */
  --accent-deep: #215B63;     /* Deep teal — high-contrast accent */
  --ocean: #215B63;           /* Same as ink-soft */
  --ocean-deep: #124170;      /* Same as ink */
  --sky: #AAFFC6;             /* Same as bg-accent */
  --sun: #67C090;             /* Replaced — green not yellow now */
  --good: #2D7A4F;            /* Verdict: go */
  --warn: #B8860B;            /* Verdict: maybe (kept warm for contrast) */
  --bad: #A02C1A;             /* Verdict: skip (kept warm for contrast) */

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Container */
  --container: 1180px;
  --container-narrow: 760px;

  /* Borders */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
}

/* ============================================
   Reset & base
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

::selection { background: var(--ink); color: var(--bg); }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  font-variation-settings: 'SOFT' 50, 'opsz' 144;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-variation-settings: 'SOFT' 30, 'opsz' 60;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  font-weight: 400;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.mono { font-family: var(--font-mono); }

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

section { padding: var(--s-8) 0; }

@media (max-width: 640px) {
  section { padding: var(--s-7) 0; }
  .container, .container-narrow { padding: 0 var(--s-4); }
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(242, 251, 245, 0.92);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: 'SOFT' 100, 'opsz' 60;
}

.nav-logo .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line-soft);
    width: 100%;
  }
  .nav-toggle { display: flex; }
}

/* ============================================
   Hero / Current weather
   ============================================ */

.hero {
  padding: var(--s-7) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 255, 198, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: end;
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

.hero-now h1 {
  margin-top: var(--s-3);
  margin-bottom: var(--s-4);
}

.hero-now h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.weather-card {
  background: var(--bg-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  position: relative;
}

.weather-temp {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}

.weather-temp .deg {
  font-size: 0.4em;
  margin-top: 0.5em;
  color: var(--ink-mute);
}

.weather-condition {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.weather-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.weather-meta-item .eyebrow {
  display: block;
  margin-bottom: var(--s-1);
}

.weather-meta-item .val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--ink);
}

/* ============================================
   Activity verdicts
   ============================================ */

.verdicts {
  background: var(--bg-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
}

.verdict {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: var(--s-5);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.verdict:hover {
  transform: translateY(-2px);
  border-color: var(--line);
}

.verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}

.verdict-emoji {
  font-size: 1.8rem;
}

.verdict-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verdict-status.good {
  background: rgba(45, 106, 63, 0.1);
  color: var(--good);
}

.verdict-status.warn {
  background: rgba(184, 134, 11, 0.12);
  color: var(--warn);
}

.verdict-status.bad {
  background: rgba(160, 44, 26, 0.1);
  color: var(--bad);
}

.verdict-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.verdict h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}

.verdict p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ============================================
   7-day forecast
   ============================================ */

.forecast-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--bg-warm);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

.forecast-day {
  text-align: center;
  padding: var(--s-3) var(--s-1);
  border-right: 1px solid var(--line-soft);
}

.forecast-day:last-child { border-right: none; }

.forecast-day .day-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: var(--s-2);
}

.forecast-day .day-icon {
  font-size: 1.6rem;
  margin: var(--s-2) 0;
}

.forecast-day .day-hi {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

.forecast-day .day-lo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-mute);
}

@media (max-width: 640px) {
  .forecast-strip { grid-template-columns: repeat(7, minmax(48px, 1fr)); overflow-x: auto; padding: var(--s-3); }
  .forecast-day { padding: var(--s-2) 2px; }
  .forecast-day .day-icon { font-size: 1.3rem; }
}

/* ============================================
   Neighbourhood grid
   ============================================ */

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: var(--s-6);
  gap: var(--s-4);
  flex-wrap: wrap;
}

.section-head h2 {
  max-width: 600px;
}

.section-head p {
  color: var(--ink-mute);
  max-width: 360px;
}

.neighbourhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
}

.neighbourhood {
  display: block;
  padding: var(--s-5);
  background: var(--bg-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.neighbourhood::after {
  content: '→';
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  font-size: 1.2rem;
  color: var(--ink-mute);
  transition: transform 0.2s, color 0.2s;
}

.neighbourhood:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.neighbourhood:hover::after {
  transform: translateX(4px);
  color: var(--accent);
}

.neighbourhood h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: var(--s-2);
  font-variation-settings: 'SOFT' 50, 'opsz' 30;
}

.neighbourhood-meta {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.neighbourhood-meta span::before {
  margin-right: 4px;
  opacity: 0.6;
}

.neighbourhood p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ============================================
   Content prose (long-form)
   ============================================ */

.prose {
  max-width: var(--container-narrow);
  margin: 0 auto;
  font-size: 1.05rem;
}

.prose p {
  margin-bottom: var(--s-5);
}

.prose h2 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-4);
}

.prose h3 {
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}

.prose ul, .prose ol {
  margin-bottom: var(--s-5);
  padding-left: var(--s-5);
}

.prose ul li, .prose ol li {
  margin-bottom: var(--s-2);
  list-style: revert;
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-soft);
  font-variation-settings: 'SOFT' 80, 'opsz' 60;
}

.prose .answer-block {
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  padding: var(--s-5);
  margin: var(--s-6) 0;
  font-size: 1.05rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose .answer-block .eyebrow {
  display: block;
  margin-bottom: var(--s-2);
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  margin-top: var(--s-6);
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: var(--s-5) 0;
}

.faq-item:first-child { border-top: 1px solid var(--line-soft); }

.faq-q {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: var(--s-3);
  font-variation-settings: 'SOFT' 50, 'opsz' 24;
}

.faq-a {
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ============================================
   Article header (interior pages)
   ============================================ */

.article-head {
  padding: var(--s-7) 0 var(--s-6);
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-5);
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

.article-head h1 {
  max-width: 920px;
  margin-bottom: var(--s-4);
}

.article-head .lead {
  max-width: 700px;
}

.article-meta {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-5);
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.byline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.byline-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

.byline-name { color: var(--ink); font-weight: 500; }

/* ============================================
   Ad slots (placeholder until live ads)
   ============================================ */

.ad-slot {
  margin: var(--s-7) auto;
  text-align: center;
  max-width: 100%;
  min-height: 90px;
}

.ad-slot-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  margin-bottom: var(--s-2);
  display: block;
}

.ad-placeholder {
  background: var(--bg-warm);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  color: var(--ink-mute);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.ad-in-content {
  margin: var(--s-7) 0;
}

/* ============================================
   CTA / Newsletter
   ============================================ */

.cta-band {
  background: var(--ink);
  color: var(--bg);
  padding: var(--s-8) 0;
  margin-top: var(--s-8);
}

.cta-band h2 { color: var(--bg); margin-bottom: var(--s-3); }
.cta-band .lead { color: var(--bg-deep); }

.cta-form {
  display: flex;
  gap: var(--s-3);
  max-width: 480px;
  margin-top: var(--s-5);
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1;
  min-width: 240px;
  padding: var(--s-3) var(--s-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.cta-form input::placeholder { color: rgba(242, 251, 245, 0.5); }

.cta-form button {
  padding: var(--s-3) var(--s-5);
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.cta-form button:hover { background: var(--accent-soft); }

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-deep);
  padding: var(--s-7) 0 var(--s-5);
  margin-top: var(--s-8);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
  font-variation-settings: 'SOFT' 100, 'opsz' 60;
}

.footer-brand .dot { color: var(--accent); }

.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.footer ul li {
  margin-bottom: var(--s-2);
}

.footer ul a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

/* ============================================
   Buttons & links
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.link-arrow:hover { border-color: var(--accent); }
.link-arrow::after { content: '→'; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ============================================
   Tables (climate data)
   ============================================ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: var(--s-5) 0;
}

.data-table th, .data-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.data-table th {
  background: var(--bg-warm);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

.data-table tr:hover { background: var(--bg-warm); }

/* ============================================
   Tag pills
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--bg-warm);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ============================================
   Hero images
   ============================================ */

.hero-image {
  margin: 0 0 var(--s-7) 0;
  position: relative;
}

.hero-image picture,
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-deep);
}

@media (max-width: 600px) {
  .hero-image picture,
  .hero-image img {
    aspect-ratio: 4/3;
  }
}

.hero-image figcaption {
  margin-top: var(--s-2);
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-align: right;
}

.hero-image figcaption a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.2s;
}

.hero-image figcaption a:hover {
  border-color: var(--ink-soft);
}

/* Full-bleed band image (homepage) */
.image-band {
  margin: var(--s-7) 0;
  position: relative;
  overflow: hidden;
}

.image-band picture,
.image-band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21/9;
  object-fit: cover;
  background: var(--bg-deep);
}

@media (max-width: 768px) {
  .image-band picture,
  .image-band img {
    aspect-ratio: 16/9;
  }
}

.image-band figcaption {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-4);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  background: rgba(18, 65, 112, 0.4);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.image-band figcaption a {
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s;
}

.image-band figcaption a:hover {
  border-color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   Live feed (YouTube facade — click to load)
   ============================================ */

.live-feed {
  margin: var(--s-7) 0;
}

.live-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
  gap: var(--s-3);
}

.live-feed-head h2 {
  margin: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bad);
  font-weight: 500;
}

.live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--bad);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Facade — what the user sees first (instant load) */
.yt-facade {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  border: 1px solid var(--line-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.yt-facade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 65, 112, 0.15);
}

.yt-facade-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}

.yt-facade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(18, 65, 112, 0.15) 0%, rgba(18, 65, 112, 0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.yt-facade-play {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.yt-facade:hover .yt-facade-play {
  transform: scale(1.1);
  background: var(--accent);
}

.yt-facade-play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 22px solid var(--ink);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
  transition: border-left-color 0.2s;
}

.yt-facade:hover .yt-facade-play::after {
  border-left-color: var(--bg);
}

.yt-facade-label {
  position: absolute;
  bottom: var(--s-4);
  left: var(--s-4);
  right: var(--s-4);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.yt-facade-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

/* When the user clicks, the iframe replaces the facade */
.yt-facade.loaded .yt-facade-thumb,
.yt-facade.loaded .yt-facade-overlay,
.yt-facade.loaded .yt-facade-label {
  display: none;
}

.yt-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-credit {
  margin-top: var(--s-3);
  font-size: 0.85rem;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.live-credit a {
  color: var(--accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.live-credit a:hover {
  border-color: var(--accent-deep);
}

.live-fallback {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-2);
  font-size: 0.85rem;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.live-fallback:hover {
  border-color: var(--accent-deep);
}

.live-fallback::after {
  content: '↗';
  margin-left: 2px;
}

.live-alt-feeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.live-alt-feed {
  display: block;
  padding: var(--s-4);
  background: var(--bg-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.live-alt-feed:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.live-alt-feed strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: var(--s-1);
}

.live-alt-feed span {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* ============================================
   Utility
   ============================================ */

.text-mute { color: var(--ink-mute); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-5); }
.mt-5 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--s-5); }

.divider {
  height: 1px;
  background: var(--line-soft);
  margin: var(--s-7) 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
