:root {
  --accent: #c1592f;
  --accent-ink: #ffffff;
  --ink: #211a15;
  --ink-soft: #736358;
  --bg: #faf7f3;
  --surface: #ffffff;
  --surface-2: #f5efe8;
  --border: rgba(60,40,20,0.09);
  --shadow: 0 1px 2px rgba(60,30,10,0.05), 0 8px 24px rgba(60,30,10,0.07);
  --shadow-lg: 0 4px 12px rgba(60,30,10,0.07), 0 20px 48px rgba(60,30,10,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

html.dark-mode {
  --ink: #f3efe9;
  --ink-soft: #ab9f93;
  --bg: #14100d;
  --surface: #1e1815;
  --surface-2: #26201b;
  --border: rgba(255,240,220,0.08);
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.5), 0 20px 48px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Heebo', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* Ticker */
.weather-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 16px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.weather-bar:hover { color: var(--accent); }
.weather-now { display: inline-flex; align-items: center; gap: 4px; }

.ticker {
  background: var(--surface);
  color: var(--ink-soft);
  padding: 5px 0;
  font-weight: 500;
  font-size: 0.78rem;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.ticker-move {
  display: inline-block;
  padding-right: 100%;
  animation: ticker 110s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
html.dark-mode .site-header {
  background: rgba(24,25,28,0.85);
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.categories a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.categories a.active,
.categories a:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.nav-video {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-toggle {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.search-toggle:hover { background: var(--border); }

.search-drawer {
  max-height: 0;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: max-height 0.25s ease, border-color 0.25s ease;
}
.search-drawer.open {
  max-height: 80px;
  border-bottom-color: var(--border);
}
.search-drawer .search-form {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  gap: 10px;
}
.search-drawer input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.search-drawer input:focus { border-color: var(--accent); }
.search-drawer button {
  padding: 11px 22px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* Layout */
.grid, .static-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* Unmissable disclosure - required, not decorative; sits above everything
   else on a sponsored article page */
.sponsored-banner {
  background: #6b5a2e;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: inline-block;
}

/* Hero */
.hero {
  position: relative;
  /* fixed height floor: slides are absolutely positioned (for the crossfade)
     so, unlike a normal flex row, they no longer stretch the parent to fit
     long headlines - sized generously so 3-4 line titles don't clip */
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
/* Each slide fully overlaps the others (crossfade carousel); only .active
   is visible/clickable at a time - assets/search.js swaps the class every 5s */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-img-wrap {
  flex: 0 0 52%;
  position: relative;
  min-height: 320px;
  background: var(--surface-2);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-slide:hover .hero-img { transform: scale(1.04); }
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 100px;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.active { background: #fff; transform: scale(1.35); }
.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px 32px 28px 0;
  min-width: 0;
}
.hero-text h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 4px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-dek {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.page-title {
  grid-column: 1 / -1;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 4px;
}

/* Page shell with sticky side ad rails - only shows on very wide viewports */
.page-shell {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
}
.page-shell-content {
  flex: 1;
  min-width: 0;
  max-width: 1120px;
}
.side-rail {
  display: none;
  flex-shrink: 0;
  width: 200px;
}
@media (min-width: 1500px) {
  .side-rail { display: block; }
  .side-rail .ad-slot {
    position: sticky;
    top: 90px;
    height: 500px;
    margin: 32px 0 0;
    writing-mode: initial;
  }
}

.sort-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.sort-bar select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
}

.load-more-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 0 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.load-more-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: load-more-spin 0.7s linear infinite;
}
@keyframes load-more-spin { to { transform: rotate(360deg); } }

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.quick-section, .recent-section, .cat-section {
  margin-bottom: 40px;
}

.cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cat-section-head .section-title { margin-bottom: 0; }

.view-all-btn {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: background 0.2s ease;
}
.view-all-btn:hover { background: var(--surface-2); }

.ad-slot {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 36px;
  min-height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
}
.ad-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.25);
  padding: 3px 9px;
  border-radius: 5px;
  z-index: 2;
}
.ad-creative {
  position: relative;
  z-index: 2;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}
.ad-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.ad-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 2px 0;
}
.ad-body {
  font-size: 0.88rem;
  margin: 0 0 6px;
  opacity: 0.92;
  max-width: 480px;
}
.ad-cta {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}
.ad-slot:hover .ad-cta { background: rgba(255,255,255,0.3); }

/* Real photo background with a slow Ken Burns zoom, tinted per creative
   so the overlaid text stays readable */
.ad-slot-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: ad-zoom 14s ease-in-out infinite alternate;
}
@keyframes ad-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}
.ad-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: multiply;
}
.ad-fin::before { background: linear-gradient(120deg, rgba(15,32,39,0.85), rgba(44,83,100,0.55)); }
.ad-travel::before { background: linear-gradient(120deg, rgba(30,60,114,0.85), rgba(79,172,254,0.5)); }
.ad-tech::before { background: linear-gradient(120deg, rgba(20,20,22,0.88), rgba(10,108,214,0.55)); }
.ad-food::before { background: linear-gradient(120deg, rgba(22,34,42,0.85), rgba(106,133,50,0.5)); }

/* Diagonal shine sweep - a subtle "premium ad" cue that repeats periodically */
.ad-slot-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60%;
  z-index: 1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.18) 48%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.18) 52%, transparent 70%);
  transform: translateX(-140%);
  animation: ad-shine 5s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes ad-shine {
  0%, 60% { transform: translateX(-140%); }
  85% { transform: translateX(140%); }
  100% { transform: translateX(140%); }
}

.ad-slot-compact .ad-slot-bg { animation-duration: 18s; }
.ad-slot-compact {
  align-items: flex-end;
}
.ad-slot-compact .ad-creative {
  width: 100%;
  padding: 20px 20px 26px;
  text-align: center;
  align-items: center;
}
.ad-slot-compact .ad-body {
  max-width: none;
}
.ad-slot-compact .ad-cta {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.92);
  color: #16171a;
  border: none;
  font-weight: 800;
}
.ad-slot-compact:hover .ad-cta { background: #fff; }

.quick-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
.quick-strip::-webkit-scrollbar { height: 6px; }
.quick-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.quick-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}
.quick-card:hover { transform: translateY(-3px); }
.quick-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  position: relative;
  height: 180px;
  background: var(--surface-2);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: auto;
}

.badge {
  position: absolute;
  bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.badge-video {
  left: 10px;
  background: rgba(0,0,0,0.72);
  color: #fff;
}
.badge-quick {
  right: 10px;
  background: var(--accent);
  color: #fff;
}
.badge-recipe {
  right: 10px;
  background: rgba(106,133,50,0.92);
  color: #fff;
}
.badge-sponsored {
  right: 10px;
  bottom: auto;
  top: 10px;
  background: #6b5a2e;
  color: #fff;
}
.card-recipe { border-color: rgba(106,133,50,0.35); }

.card-body { padding: 16px; }

.card-cat {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.5;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* Article */
.article h1 {
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 10px 0;
  letter-spacing: -0.01em;
}

.article-dek {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 4px 0 16px;
}

.article-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* Optional AI-generated "key takeaways" - deliberately styled as a distinct,
   clearly-labeled, scannable box so it reads as an add-on, never mistaken
   for the original reporting that follows it */
.ai-summary-box {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 4px 0 20px;
  box-shadow: var(--shadow);
}
.ai-summary-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.ai-summary-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ai-summary-box li {
  position: relative;
  padding-inline-start: 24px;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
}
.ai-summary-box li::before {
  content: "\2713";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.tag-chip {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tag-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.source-credit-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  margin: 24px 0;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.source-credit-box a { color: var(--accent); font-weight: 700; text-decoration: none; }
.source-credit-box a:hover { text-decoration: underline; }

.article-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.kk-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.kk-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.kk-player-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.kk-player-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s ease;
}
.kk-player-poster:hover::before { background: rgba(0,0,0,0.5); }
.kk-player-brand {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 5px 12px;
  border-radius: 6px;
  z-index: 2;
}
.kk-player-play {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.kk-player-play:hover { transform: scale(1.08); }
.kk-player-play svg { margin-right: -3px; }

.kk-player-endcard {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.kk-player-replay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
}
.kk-player-replay svg {
  width: 52px;
  height: 52px;
  padding: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}
.kk-player-replay:hover svg { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }
.kk-player-replay span { font-size: 0.85rem; font-weight: 700; }

.article-body p {
  font-size: 1.18rem;
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--ink);
}

.read-more-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--accent);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.read-more-btn:hover { background: var(--border); }

.engagement-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.like-btn, .share-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.like-btn:hover, .share-btn:hover { background: var(--surface-2); }
.like-btn.liked {
  color: #e0245e;
  border-color: #e0245e;
  background: rgba(224,36,94,0.08);
}
.like-btn.liked svg { fill: #e0245e; }

.related-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.weather-cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.weather-city-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.weather-city-card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.weather-current {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.weather-current-emoji { font-size: 2rem; }
.weather-current-temp { font-size: 2rem; font-weight: 800; }
.weather-current-desc { color: var(--ink-soft); font-size: 0.95rem; }
.weather-forecast { display: flex; flex-direction: column; gap: 6px; }
.weather-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 4px 0;
}
.weather-day-name { color: var(--ink-soft); flex: 1; }
.weather-day-emoji { flex: 0 0 30px; text-align: center; }
.weather-day-temps { font-weight: 700; }

.comments-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.comments-section .section-title { margin-bottom: 20px; }
.related-section .page-title {
  margin-bottom: 20px;
}

/* Static pages */
.static-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.static-page h1 span { color: var(--accent); }
.static-page .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}
.static-page h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 36px;
}
.static-page ul { list-style: none; padding: 0; }
.static-page ul li {
  padding-right: 22px;
  position: relative;
  margin-bottom: 14px;
  font-size: 1.08rem;
  line-height: 1.65;
  border-right: 3px solid var(--accent);
  padding-right: 16px;
}

.contact-form {
  max-width: 480px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button {
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.contact-form button:hover { opacity: 0.88; }

/* Footer */
.footer-promo {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.footer-promo-col h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.footer-promo-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-promo-col a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.4;
}
.footer-promo-col a:hover { color: var(--accent); text-decoration: underline; }

.site-footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--accent); }

/* Scroll-reveal: sections start faded/offset, JS flips .is-visible when
   they enter the viewport (IntersectionObserver). No-JS/reduced-motion
   users still see everything - this only ever adds polish, never hides
   content. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Bento/mosaic module - one large story + a stack of smaller ones,
   instead of dropping straight into a uniform grid under the hero */
.bento-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.bento-big {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.bento-big-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-big:hover .bento-big-img { transform: scale(1.05); }
.bento-big-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
.bento-big-body h2 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0;
}
.bento-big-body .card-meta { color: rgba(255,255,255,0.8); }
.bento-big-body .card-cat { color: #fff; opacity: 0.9; }

.bento-small-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bento-small {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  flex: 1;
}
.bento-small:hover { transform: translateY(-3px); }
.bento-small-img {
  flex: 0 0 96px;
  align-self: stretch;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}
.bento-small-body { padding: 10px 14px 10px 0; min-width: 0; }
.bento-small-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Per-category section: one lead article (this category's freshest) plus
   a 2x2 grid of the next 4 beside it, on the left */
.cat-lead-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.cat-lead-main {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.cat-lead-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cat-lead-main:hover .cat-lead-img { transform: scale(1.05); }
.cat-lead-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
.cat-lead-body h3 { color: #fff; font-size: 1.3rem; font-weight: 800; line-height: 1.35; margin: 0 0 6px; }
.cat-lead-dek { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin: 0 0 6px; }
.cat-lead-body .card-meta { color: rgba(255,255,255,0.75); }
.cat-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .bento-section { grid-template-columns: 1fr; }
  .bento-big { min-height: 260px; }
}

/* Magazine */
.magazine-intro {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 640px;
}
.magazine-issues-grid { grid-column: 1 / -1; }
.magazine-issue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.magazine-issue-card:hover { transform: translateY(-5px); }
.magazine-issue-cover {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}
.magazine-issue-info { padding: 16px; }
.magazine-issue-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.magazine-issue-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}

.magazine-issue-page { max-width: 1000px; }
.magazine-cover {
  position: relative;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
}
.magazine-cover-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.magazine-cover-overlay h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0 0;
  line-height: 1.35;
}
.magazine-section { margin-bottom: 40px; }
.magazine-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 6px;
  margin: 0 0 20px;
}
.magazine-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.magazine-article {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.magazine-article:hover { transform: translateY(-4px); }
.magazine-article-img {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-2);
}
.magazine-article-body { padding: 14px; }
.magazine-article-body h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.4;
}
.magazine-article-body p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 8px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding: 10px 16px; flex-wrap: wrap; }
  .categories { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .logo { font-size: 1.2rem; }
  .footer-promo { grid-template-columns: 1fr; gap: 24px; }
  .cat-lead-layout { grid-template-columns: 1fr; }
  .cat-lead-main { min-height: 240px; }
  .weather-bar { flex-wrap: wrap; gap: 6px; }
  .hero { flex-direction: column; }
  .hero-img-wrap { flex: none; height: 220px; }
  .hero-text { padding: 18px; }
  .hero-text h1 { font-size: 1.4rem; }
  .grid, .article, .static-page, .related-section { padding: 20px 16px 48px; }
  .cat-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .magazine-cover { height: 240px; }
  .magazine-cover-overlay h1 { font-size: 1.4rem; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* .cookie-banner sets its own display, which otherwise beats the browser's
   default [hidden]{display:none} at equal specificity - without this, JS
   setting the hidden attribute on accept/decline has no visual effect */
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.5;
}
.cookie-banner a { color: var(--accent); font-weight: 700; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border);
}
.cookie-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-btn-secondary { background: var(--surface); color: var(--ink); }

/* Consent checkbox on forms */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}
.consent-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.consent-checkbox a { color: var(--accent); font-weight: 700; }

/* Legal pages */
.legal-page h2 { margin-top: 32px; }
.legal-page ul { margin: 12px 0; }
.legal-updated {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Accessibility widget - a tab mounted flush to the left edge of the
   viewport (flat on the wall side, rounded facing the page), sitting high
   enough to clear the cookie banner's footprint so it's never covered by it */
.a11y-widget {
  position: fixed;
  bottom: 110px;
  left: 0;
  z-index: 400;
}
.a11y-toggle {
  width: 46px;
  height: 52px;
  border-radius: 0 26px 26px 0;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline-start: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: width 0.2s ease;
}
.a11y-toggle:hover { width: 54px; }

/* Accessibility drawer - slides in from the left edge (the wall the toggle
   tab is mounted on) as a full-height panel, rather than a small dropdown */
.a11y-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 300px;
  max-width: 86vw;
  background: var(--surface);
  border-inline-end: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 600;
  overflow-y: auto;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.a11y-drawer.open { transform: translateX(0); }
.a11y-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.a11y-drawer-head h2 { margin: 0; font-size: 1.2rem; }
.a11y-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.a11y-close:hover { background: var(--border); }
.a11y-group { margin-bottom: 20px; }
.a11y-group h3 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.a11y-row { display: flex; gap: 8px; margin-bottom: 8px; }
.a11y-step-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.a11y-step-btn:hover { background: var(--border); }
.a11y-toggle-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.a11y-toggle-btn:hover { background: var(--border); }
.a11y-toggle-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.a11y-reset-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.a11y-reset-btn:hover { background: var(--surface-2); }

/* Accessibility states applied to <html> */
html.a11y-contrast {
  --ink: #000000;
  --ink-soft: #000000;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --border: #000000;
  --accent: #0000cc;
}
html.a11y-contrast .card,
html.a11y-contrast .hero,
html.a11y-contrast .bento-big,
html.a11y-contrast .bento-small { border: 2px solid #000; }
html.a11y-stop-motion,
html.a11y-stop-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-stop-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-line-height p,
html.a11y-line-height li,
html.a11y-line-height .article-body,
html.a11y-line-height .hero-dek,
html.a11y-line-height .card-body { line-height: 1.9 !important; }
html.a11y-letter-spacing p,
html.a11y-letter-spacing li,
html.a11y-letter-spacing .article-body,
html.a11y-letter-spacing h1,
html.a11y-letter-spacing h2,
html.a11y-letter-spacing h3 { letter-spacing: 0.04em !important; word-spacing: 0.12em !important; }
html.a11y-readable-font,
html.a11y-readable-font * { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important; }
html.a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert .hero-img-wrap,
html.a11y-invert .card-img-wrap { filter: invert(1) hue-rotate(180deg); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path d="M4 2l16 8-6.5 2-2 6.5z" fill="black" stroke="white" stroke-width="1.5"/></svg>') 4 4, auto !important;
}
.a11y-reading-guide-bar {
  position: fixed;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(255, 205, 0, 0.22);
  border-top: 2px solid rgba(230, 160, 0, 0.85);
  border-bottom: 2px solid rgba(230, 160, 0, 0.85);
  pointer-events: none;
  z-index: 590;
  display: none;
}
html.a11y-reading-guide .a11y-reading-guide-bar { display: block; }

@media (max-width: 640px) {
  .a11y-drawer { width: 88vw; padding: 16px; }
}

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
  .a11y-widget { bottom: 200px; left: 0; }
}
