/* Migori County Today — home-page prototype */
:root {
  --night: #0b0c0b;
  --night-2: #151715;
  --ink-on-night: #f3efe6;
  --muted-on-night: #a9a59b;
  --line-on-night: rgba(243, 239, 230, .14);
  --paper: #f4f0e7;
  --paper-2: #ebe5d8;
  --ink: #161714;
  --muted: #5d5a52;
  --line: #d8d1c2;
  --accent: #d9432b;          /* signal red: the one accent */
  --accent-ink: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mast-h: 64px;
  --info-h: 196px;
  --max-w: 76vw;
  --frame-h: calc(100svh - var(--mast-h) - var(--info-h) - 24px);
}
@media (max-width: 720px) {
  :root { --mast-h: 58px; --info-h: 214px; --max-w: 90vw; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- masthead ---------- */
.mast {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  height: var(--mast-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(16px, 3vw, 40px);
  color: var(--ink-on-night);
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 700 clamp(19px, 2.1vw, 24px)/1.05 var(--serif); letter-spacing: -.01em; }
.brand__name em, .foot__brand em { font-style: italic; color: var(--accent); }
.brand__tag { font-size: 11.5px; letter-spacing: .04em; color: var(--muted-on-night); margin-top: 3px; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: 14px; }
.nav a { text-decoration: none; opacity: .82; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--accent); }
@media (max-width: 720px) {
  .nav a:not([aria-current]) { display: none; }
  .brand__tag { font-size: 10.5px; }
}

/* ---------- stage ---------- */
.stage {
  position: relative;
  height: 100svh; min-height: 560px;
  background: var(--night);
  color: var(--ink-on-night);
  overflow: hidden;
}
.stage__bg {
  position: absolute; inset: -60px;
  background: center / cover no-repeat;
  filter: blur(48px) saturate(1.1) brightness(.38);
  transform: scale(1.1);
  transition: background-image .6s ease;
}
.stage::after {               /* keeps the edges calm */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(11,12,11,0) 40%, rgba(11,12,11,.75) 100%);
}

.track {
  position: relative; z-index: 2;
  height: 100%;
  padding: var(--mast-h) 50vw 0;
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: stretch;
  opacity: .32; transform: scale(.9);
  transition: opacity .35s ease, transform .35s ease;
}
.slide.is-active { opacity: 1; transform: none; }

.frame {
  position: relative; overflow: hidden;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
/* the slide sets the width; headline and buttons wrap inside it */
.slide.is-h { width: min(var(--max-w), calc(var(--frame-h) * 16 / 9)); }
.slide.is-v { width: min(var(--max-w), max(calc(var(--frame-h) * 9 / 16), 360px)); }
.slide.is-h .frame { width: 100%; aspect-ratio: 16 / 9; }
.slide.is-v .frame { width: min(100%, calc(var(--frame-h) * 9 / 16)); aspect-ratio: 9 / 16; align-self: center; }
/* phones: photo posts go portrait (4:5, like Instagram) so captions and notes have room */
@media (max-width: 720px) {
  .slide.is-photo { width: min(var(--max-w), calc(var(--frame-h) * 4 / 5)); }
  .slide.is-photo .frame { aspect-ratio: 4 / 5; }
}

.frame > img, .frame > video, .frame > iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.frame > img { object-fit: cover; }
.frame > video { object-fit: cover; background: #000; }

.badge {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 8px; border-radius: 3px;
  background: rgba(0,0,0,.6); color: #fff;
  pointer-events: none;
}
.badge--video { background: var(--accent); }

/* overlay that captures swipes while the video previews muted */
.tap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 18px;
  background: transparent; border: 0; color: #fff;
}
.tap[hidden] { display: none; }
.tap__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--sans);
  padding: 11px 16px; border-radius: 999px;
  background: rgba(0,0,0,.66);
  border: 1px solid rgba(255,255,255,.25);
}
.tap__pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slide:not(.is-active) .tap__pill { visibility: hidden; }

.info {
  width: 100%; min-width: 0;
  height: var(--info-h);
  padding-top: 16px;
  transition: opacity .3s ease;
}
.slide:not(.is-active) .info { opacity: 0; pointer-events: none; }

.kicker {
  margin: 0 0 6px;
  font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-on-night);
}
.kicker b { color: var(--accent); font-weight: 700; }
.headline {
  margin: 0;
  font: 700 clamp(21px, 2.5vw, 32px)/1.15 var(--serif);
  letter-spacing: -.01em;
  text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.source { margin: 6px 0 0; font-size: 12.5px; color: var(--muted-on-night); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.act {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  font: 600 13.5px/1 var(--sans); text-decoration: none;
  color: var(--ink-on-night);
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-on-night);
  border-radius: 999px;
}
.act:hover { background: rgba(255,255,255,.16); }
.act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.act--wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.act--wa:hover { background: #18773f; }
.cover--blank {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--night-2); color: var(--muted-on-night);
  font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.act__n { opacity: .7; font-weight: 500; }
@media (max-width: 720px) {
  .act { height: 38px; padding: 0 12px; font-size: 13px; }
  .act--copy span { display: none; }
}

.arrow {
  position: absolute; z-index: 5;
  top: calc(var(--mast-h) + (100svh - var(--mast-h) - var(--info-h)) / 2 - 26px);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,.5); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.arrow:hover { background: rgba(0,0,0,.75); }
.arrow:disabled { opacity: .25; cursor: default; }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow--prev { left: clamp(10px, 2vw, 28px); }
.arrow--next { right: clamp(10px, 2vw, 28px); }
@media (max-width: 720px) {
  .arrow { width: 40px; height: 40px; background: rgba(0,0,0,.4); }
}
@media (hover: none) and (max-width: 720px) { .arrow { display: none; } }

.stage__count {
  position: absolute; z-index: 5; right: clamp(16px, 3vw, 40px); bottom: 18px;
  font: 600 12px/1 var(--sans); letter-spacing: .12em; color: var(--muted-on-night);
}
.stage__count b { color: var(--ink-on-night); }

/* ---------- bands below the stage ---------- */
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.band { padding: clamp(44px, 6vw, 80px) 0; }
.band--alt { background: var(--paper-2); }
.band__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.band__head h2, .election h2 { margin: 0; font: 700 clamp(26px, 3vw, 36px)/1.1 var(--serif); letter-spacing: -.01em; }
.band__head p { margin: 0; color: var(--muted); max-width: 52ch; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 16px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.card {
  scroll-snap-align: start;
  text-align: left; background: none; border: 0; padding: 0; color: inherit;
}
.card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #222; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.03); }
.card__img .badge { left: 8px; top: 8px; }
.card.is-current .card__img { outline: 3px solid var(--accent); outline-offset: 2px; }
.card__k { margin: 10px 0 2px; font: 600 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__t { margin: 0; font: 700 17px/1.25 var(--serif); }

.trylink { margin-top: 30px; padding: 16px; border: 1px dashed var(--line); border-radius: 6px; background: rgba(255,255,255,.4); }
.trylink label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.trylink__row { display: flex; flex-wrap: wrap; gap: 8px; }
.trylink input { flex: 1 1 240px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: #fff; }
.trylink button, .cform button {
  height: 42px; padding: 0 18px; border: 0; border-radius: 4px;
  background: var(--ink); color: #fff; font-weight: 600;
}
.trylink__msg { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); min-height: 1.2em; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.chips a:hover { background: var(--ink); color: var(--paper); }

.election { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.election p { max-width: 60ch; color: var(--muted); }
.eyebrow { margin: 0 0 8px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; }
.textlink { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.countdown { text-align: center; padding: 22px 30px; border: 1px solid var(--ink); border-radius: 6px; }
.countdown strong { display: block; font: 700 clamp(44px, 6vw, 68px)/1 var(--serif); }
.countdown span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) { .election { grid-template-columns: 1fr; gap: 20px; } .countdown { justify-self: start; } }

.foot { background: var(--night); color: var(--muted-on-night); padding: 40px 0 48px; font-size: 14px; }
.foot__brand { margin: 0 0 8px; font: 700 22px/1 var(--serif); color: var(--ink-on-night); }
.foot p { max-width: 75ch; }
.foot__credits { font-size: 12.5px; opacity: .8; }

/* ---------- comments drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5); }
.drawer {
  position: fixed; z-index: 41; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
  animation: slideIn .25s ease;
}
.drawer[hidden], .scrim[hidden] { display: none; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) {
  .drawer { top: auto; left: 0; width: 100%; max-height: 78svh; border-radius: 14px 14px 0 0; animation-name: sheetUp; }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.drawer__head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font: 700 22px/1.1 var(--serif); }
.drawer__on { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.drawer__close { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: none; display: grid; place-items: center; }
.drawer__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer__body { padding: 18px 20px 24px; overflow-y: auto; }
.drawer__empty { margin: 0 0 18px; color: var(--muted); }
.cform label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.cform input, .cform textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: #fff; }
.cform__note { font-size: 12.5px; color: var(--muted); margin: 10px 0 12px; }
.cform__msg { font-size: 13.5px; color: var(--muted); min-height: 1.2em; }

/* ---------- photo stories ---------- */
figure.frame, .story { margin: 0; }
.story { position: relative; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; }
.st-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .45s ease;
}
.st-img.is-on { opacity: 1; }
.st-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 22%, rgba(0,0,0,0) 46%),
    linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 18%);
}
.st-segs { position: absolute; z-index: 3; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; pointer-events: none; }
.st-segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.32); transition: background .3s; }
.st-segs i.is-on, .st-segs i.is-done { background: #fff; }
.st-segs ~ .badge { top: 22px; }

.st-zone { position: absolute; z-index: 1; top: 0; bottom: 0; padding: 0; border: 0; background: transparent; }
.st-zone--prev { left: 0; width: 34%; cursor: w-resize; }
.st-zone--next { right: 0; width: 66%; cursor: e-resize; }
.st-zone:disabled { cursor: default; }

/* the designed caption */
.st-cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 clamp(16px, 2.2vw, 26px) clamp(14px, 2vw, 22px);
  color: #fff; pointer-events: none;
}
.st-cap__n {
  display: inline-block; vertical-align: 3px; margin-right: 10px;
  font: 700 10.5px/1 var(--sans); letter-spacing: .12em;
  padding: 4px 6px; border: 1px solid rgba(255,255,255,.5); border-radius: 2px;
}
.st-cap__n:empty { display: none; }
.st-cap__text {
  font: italic 400 clamp(16px, 1.7vw, 22px)/1.35 var(--serif);
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
  max-width: 46ch;
}
.st-cap__credit {
  display: block; margin-top: 7px;
  font: 600 10px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  opacity: .72;
}

/* the context inset */
.st-ctx { position: absolute; z-index: 4; top: 12px; right: 12px; max-width: min(330px, 58%); }
.st-segs ~ .st-ctx { top: 22px; }
.st-ctx__btn {
  display: inline-flex; align-items: center; gap: 7px; float: right;
  height: 34px; padding: 0 13px; border-radius: 999px;
  font: 600 13px/1 var(--sans); color: #fff;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.3);
}
.st-ctx__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.st-ctx__card {
  display: none; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border-left: 3px solid var(--accent); border-radius: 3px;
  padding: 12px 15px 13px;
  font: 400 14px/1.5 var(--sans);
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.7);
  animation: ctxIn .25s ease;
}
.st-ctx__card p { margin: 0; }
.st-ctx.is-open .st-ctx__btn { display: none; }
.st-ctx.is-open .st-ctx__card { display: block; }
.st-ctx__label, .viewer__ctx .st-ctx__label {
  margin: 0 0 5px !important;
  display: flex; justify-content: space-between;
  font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.st-ctx__card .st-ctx__label::after { content: "×"; font-size: 17px; line-height: .6; color: var(--muted); letter-spacing: 0; }
@keyframes ctxIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .st-ctx { max-width: calc(100% - 24px); }
  .st-ctx__card { font-size: 13px; padding: 10px 12px; }
  .st-ctx__btn { height: 30px; font-size: 12px; padding: 0 10px; }
}

/* numbered notes pinned to the photo */
.st-notes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.st-note { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; }
.st-note__dot {
  width: 28px; height: 28px; border-radius: 50%; padding: 0;
  display: grid; place-items: center;
  font: 700 13px/1 var(--sans); color: #fff;
  background: rgba(0,0,0,.55); border: 2px solid #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,.16), 0 4px 14px rgba(0,0,0,.5);
  transition: background .2s, border-color .2s, transform .2s;
}
.st-note__dot:hover { transform: scale(1.08); }
.st-note.is-open { z-index: 2; }
.st-note.is-open .st-note__dot { background: var(--accent); border-color: var(--accent); }
.st-note__text {
  display: none; position: absolute; top: 50%; left: calc(100% + 10px);
  transform: translateY(-50%);
  width: max-content; max-width: 230px; margin: 0;
  padding: 9px 12px; border-radius: 3px;
  background: var(--paper); color: var(--ink);
  font: 400 13.5px/1.45 var(--sans);
  box-shadow: 0 12px 34px -10px rgba(0,0,0,.75);
  cursor: pointer;
}
.st-note.to-left .st-note__text { left: auto; right: calc(100% + 10px); }
.st-note.to-up .st-note__text { transform: translateY(-85%); }
.st-note.is-open .st-note__text { display: block; animation: ctxIn .2s ease; }
@media (max-width: 720px) {
  .st-note__dot { width: 24px; height: 24px; font-size: 12px; }
  .st-note__text { max-width: 180px; font-size: 12.5px; }
}

.slide:not(.is-active) .st-notes,
.slide:not(.is-active) .st-ctx,
.slide:not(.is-active) .st-zone { visibility: hidden; }

/* ---------- photo grid ---------- */
.band--photos { background: var(--night); color: var(--ink-on-night); }
.band--photos .band__head { border-bottom-color: var(--line-on-night); }
.band--photos .band__head p { color: var(--muted-on-night); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: #222; color: #fff; text-align: left; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile__stack { position: absolute; top: 10px; right: 10px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.tile__stack svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.tile__over {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 48px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0));
}
.tile__k { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tile__t { font: 700 clamp(15px, 1.6vw, 20px)/1.2 var(--serif); }
@media (max-width: 600px) {
  .grid { gap: 3px; }
  .tile__over { display: none; }
  .tile__stack { top: 6px; right: 6px; }
  .tile__stack svg { width: 18px; height: 18px; }
}

/* ---------- photo viewer ---------- */
body.no-scroll { overflow: hidden; }
.viewer {
  position: fixed; inset: 0; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 76px;
  background: rgba(8, 9, 8, .95);
}
.viewer[hidden] { display: none; }
.viewer__box {
  display: grid; grid-template-columns: auto 360px;
  max-height: calc(100svh - 48px);
  background: var(--night-2); color: var(--ink-on-night);
  border-radius: 6px; overflow: hidden;
}
.viewer__media {
  position: relative; background: #000;
  /* as wide as fits, never taller than the screen: the photo keeps its shape */
  width: min(calc(100vw - 152px - 360px), calc((100svh - 48px) * var(--ratio, 1.33)), 1100px);
  aspect-ratio: var(--ratio, 1.33);
  align-self: center;
}
.viewer__media .story { position: absolute; inset: 0; }
/* in the viewer the caption sits beside the photo, so only the counter stays on it */
.story--viewer .st-cap__text, .story--viewer .st-cap__credit { display: none; }
.story--viewer .st-shade { background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 18%); }
.viewer__side { padding: 26px 24px; overflow-y: auto; max-height: calc(100svh - 48px); }
.viewer__title { margin: 0 0 14px; font: 700 28px/1.15 var(--serif); letter-spacing: -.01em; }
.viewer__cap { margin: 0 0 16px; font: italic 400 18px/1.45 var(--serif); }
.viewer__cap span { display: block; margin-top: 6px; font: 600 10px/1.2 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-night); }
.viewer__ctx { margin: 0 0 18px; padding: 13px 16px; background: var(--paper); color: var(--ink); border-left: 3px solid var(--accent); border-radius: 3px; font-size: 14.5px; line-height: 1.5; }
.viewer__ctx p { margin: 0; }
.viewer__notes { margin: 0 0 20px; padding-left: 22px; color: var(--muted-on-night); font-size: 14px; }
.viewer__notes li { margin-bottom: 6px; }
.viewer__notes li::marker { color: var(--ink-on-night); font-weight: 700; }
.viewer__notes:empty { display: none; }
.viewer__close, .viewer__nav {
  position: fixed; z-index: 2; display: grid; place-items: center;
  border-radius: 50%; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
}
.viewer__close:hover, .viewer__nav:hover { background: rgba(255,255,255,.18); }
.viewer__close { top: 16px; right: 16px; width: 44px; height: 44px; }
.viewer__nav { top: 50%; margin-top: -24px; width: 48px; height: 48px; }
.viewer__nav--prev { left: 14px; }
.viewer__nav--next { right: 14px; }
.viewer__close svg, .viewer__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .viewer { padding: 0; align-items: stretch; }
  .viewer__box { grid-template-columns: 1fr; grid-template-rows: auto 1fr; width: 100%; max-height: none; border-radius: 0; overflow-y: auto; }
  .viewer__media { width: 100%; height: auto; max-width: none; }
  .viewer__side { max-height: none; overflow: visible; padding: 20px 18px 40px; }
  .viewer__title { font-size: 24px; }
  .viewer__nav { display: none; }
  .viewer__close { top: 10px; right: 10px; width: 40px; height: 40px; background: rgba(0,0,0,.55); }
}

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

/* ---------- live site additions ---------- */
/* under the video: big date, headline, About, source, buttons */
:root { --info-h: 232px; }
@media (max-width: 720px) { :root { --info-h: 286px; } }
.info {
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  grid-template-areas: "when" "title" "about" "source" "actions";
  overflow-y: auto; scrollbar-width: none;
}
.info::-webkit-scrollbar { display: none; }
.when { grid-area: when; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.when time { font: 700 clamp(20px, 2.1vw, 27px)/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink-on-night); }
.when__rel {
  font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 3px; color: var(--ink-on-night); border: 1px solid var(--line-on-night);
}
.when__rel.is-new { background: var(--accent); border-color: var(--accent); color: #fff; }
.info .headline { grid-area: title; padding-bottom: 3px; line-height: 1.18; }
.info .headline a { color: inherit; text-decoration: none; }
.about { grid-area: about; margin: 10px 0 0; }
.about__label { margin: 0 0 4px; font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.about__text {
  margin: 0; font: 400 14.5px/1.55 var(--sans); color: #d8d3c8; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.about.is-open .about__text { display: block; -webkit-line-clamp: unset; }
.info .source { grid-area: source; margin-top: 8px; }
.info .source b { color: var(--ink-on-night); font-weight: 700; }
.info .actions { grid-area: actions; }
/* wide screens: About sits in its own column to the right */
@media (min-width: 900px) {
  .slide.is-h .info.has-about {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 44px;
    grid-template-areas: "when about" "title about" "source about" "actions about";
  }
  .slide.is-h .info.has-about .about {
    margin: 4px 0 0; padding-left: 24px; border-left: 1px solid var(--line-on-night);
    max-height: calc(var(--info-h) - 30px); overflow-y: auto; scrollbar-width: thin;
  }
  .slide.is-h .about__text { display: block; -webkit-line-clamp: unset; cursor: auto; font-size: 15px; }
}
time.fresh { color: var(--accent); font-weight: 700; }
.kicker time { color: var(--ink-on-night); }
.kicker time.fresh { color: var(--accent); }
/* share buttons: WhatsApp with its name, the others as round brand buttons */
.act svg.fill { fill: currentColor; stroke: none; }
.act--wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.act--round { width: 40px; padding: 0; justify-content: center; position: relative; }
.act--round svg { width: 19px; height: 19px; }
.act--fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.act--fb:hover { background: #0f63d6; }
.act--x { background: #000; border-color: rgba(255,255,255,.35); color: #fff; }
.act--x:hover { background: #222; }
.act--tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.act--tg:hover { background: #1a88bd; }
.act--copy.is-copied::after {
  content: "Copied"; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 4px 8px; border-radius: 4px; background: var(--paper); color: var(--ink);
  font: 600 12px/1 var(--sans); white-space: nowrap;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .act--round { width: 38px; } }
.card, .tile { text-decoration: none; display: block; }
.chips a[aria-current] { background: var(--ink); color: var(--paper); }
.stage__place {
  position: absolute; z-index: 6; left: 50%; transform: translateX(-50%);
  top: calc(var(--mast-h) + 4px); margin: 0;
  font-size: 13px; color: var(--muted-on-night); white-space: nowrap;
}
.stage__place b { color: var(--ink-on-night); }
.stage__empty {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center;
  color: var(--muted-on-night); font: 400 18px/1.5 var(--serif);
}
.stage__empty a { color: var(--ink-on-night); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.clist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.clist li { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.clist__who { margin: 0 0 3px; font-size: 13px; color: var(--muted); }
.clist__who b { color: var(--ink); font-size: 14px; }
.clist__body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.cform button:disabled { opacity: .6; }
body.plain { background: var(--paper); }
.notfound { width: min(560px, 100% - 32px); margin: 18vh auto; }
.notfound__brand { font: 700 22px/1 var(--serif); margin: 0 0 30px; }
.notfound__brand a { text-decoration: none; }
.notfound__brand em { color: var(--accent); }
.notfound h1 { font: 700 34px/1.1 var(--serif); margin: 0 0 12px; }
.notfound p { color: var(--muted); }
