/* Pocket Guide: a stack of digest-sized pages on a desk, each with running heads and a folio.
   Listings run in two narrow columns like the pocket weeklies. */
:root {
  --desk: #cfccc2;
  --paper: #f3f1ea;
  --ink: #1c1b18;
  --ink-2: #5f5b52;
  --rule: #bdb8aa;
  --cover: #1b4c9c;
  --cover-ink: #f6f4ee;
  --kicker: #1b4c9c;
  --flag: #f2c41f;
  --flag-ink: #1c1b18;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --desk: #0f1012; --paper: #1c1d21; --ink: #e9e6dd; --ink-2: #a6a297; --rule: #3b3c42;
    --cover: #1f4a92; --cover-ink: #f3f1ea; --kicker: #a6a297; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--desk); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.4;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(24px + env(safe-area-inset-top, 0px)) calc(48px + env(safe-area-inset-bottom, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--desk); }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.page {
  width: 100%; max-width: 44rem; background: var(--paper); position: relative;
  padding: 22px clamp(16px, 4vw, 34px) 18px; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 26px -14px rgba(0,0,0,.35);
}
.runhead {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px;
  border-bottom: 2px solid var(--ink); padding-bottom: 5px; margin-bottom: 14px;
}
.runhead span:last-child { color: var(--ink-2); font-weight: 600; }
.folio {
  display: flex; justify-content: space-between; margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--rule);
  font-family: var(--display); font-stretch: 80%; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* ---------- Cover ---------- */
.cover { background: var(--cover); color: var(--cover-ink); padding: 0; overflow: hidden; }
.cover-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px clamp(16px, 4vw, 30px) 0;
  font-family: var(--display); font-stretch: 80%; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
}
.mast { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 10px clamp(16px, 4vw, 30px) 0; }
.logo { display: flex; flex-direction: column; font-family: var(--display); text-transform: uppercase; line-height: .8; min-width: 0; }
.logo-pocket { font-weight: 800; font-stretch: 125%; font-size: clamp(24px, 6.4vw, 42px); letter-spacing: .14em; line-height: 1; margin-bottom: .08em; }
.logo-guide { font-weight: 900; font-stretch: 62%; font-size: clamp(82px, 23vw, 158px); letter-spacing: -.01em; line-height: .78; }
.screen {
  flex: none; width: clamp(62px, 15vw, 104px); aspect-ratio: 5 / 4; max-width: 30%; border: 5px solid var(--cover-ink); border-radius: 14px;
  position: relative; margin-bottom: 6px;
}
.screen::before, .screen::after { /* rabbit ears */
  content: ""; position: absolute; bottom: 100%; width: 4px; height: 46%; background: var(--cover-ink); border-radius: 2px; transform-origin: bottom center;
}
.screen::before { left: 42%; transform: rotate(-28deg); }
.screen::after { left: 52%; transform: rotate(26deg); }
.screen i { position: absolute; inset: 7px; border-radius: 6px; background: var(--flag); }
.story { background: var(--paper); color: var(--ink); margin: 30px clamp(16px, 4vw, 30px) 0; /* room for the starburst below the TV icon */ padding: 18px clamp(14px, 3vw, 24px) 20px; position: relative; }
.story .kicker { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--kicker); padding-right: 96px; }
.story h1 {
  font-family: var(--display); font-weight: 900; font-stretch: 68%; text-transform: uppercase; line-height: .86;
  font-size: clamp(46px, 12.5vw, 92px); margin: 6px 0 10px; text-wrap: balance; letter-spacing: -.005em; overflow-wrap: anywhere;
}
.story p { margin: 0; font-size: 17px; max-width: 30em; font-style: italic; }
.burst {
  position: absolute; right: clamp(8px, 3vw, 22px); top: -26px; width: 104px; aspect-ratio: 1; max-width: 30%; padding: 14px; /* keeps the text inside the star's inner circle */
  background: var(--flag); color: var(--flag-ink); display: grid; place-items: center; text-align: center;
  clip-path: polygon(50.0% 0.0%, 59.6% 14.3%, 75.0% 6.7%, 76.2% 23.8%, 93.3% 25.0%, 85.7% 40.4%, 100.0% 50.0%, 85.7% 59.6%, 93.3% 75.0%, 76.2% 76.2%, 75.0% 93.3%, 59.6% 85.7%, 50.0% 100.0%, 40.4% 85.7%, 25.0% 93.3%, 23.8% 76.2%, 6.7% 75.0%, 14.3% 59.6%, 0.0% 50.0%, 14.3% 40.4%, 6.7% 25.0%, 23.8% 23.8%, 25.0% 6.7%, 40.4% 14.3%);
  font-family: var(--display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 15px; line-height: .95; transform: rotate(8deg);
  z-index: 1; /* always above the masthead's TV icon */
}
.lines { list-style: none; margin: 0; padding: 16px clamp(16px, 4vw, 30px) 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px 22px; }
.lines li { border-top: 2px solid var(--cover-ink); padding-top: 6px; min-width: 0; }
.lines b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 22px; line-height: 1; }
.lines span { font-size: 15px; font-style: italic; }
.cover-foot {
  margin-top: 14px; background: var(--flag); color: var(--flag-ink); padding: 8px clamp(16px, 4vw, 30px);
  font-family: var(--display); font-stretch: 78%; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
}

/* ---------- Highlights ---------- */
.sect-title { font-family: var(--display); font-weight: 900; font-stretch: 65%; text-transform: uppercase; font-size: clamp(40px, 10vw, 60px); line-height: .85; margin: 4px 0 4px; letter-spacing: -.005em; text-wrap: balance; }
.dek { margin: 0 0 16px; color: var(--ink-2); font-style: italic; }
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 26px; }
.pick { border-top: 1px solid var(--rule); padding: 12px 0 14px; min-width: 0; }
.when { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pick h3 { font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 23px; line-height: .95; margin: 5px 0 5px; text-wrap: balance; }
.pick p { margin: 0; font-size: 15px; }
.closeup { border: 2px solid var(--ink); padding: 14px 16px 16px; margin: 6px 0 16px; position: relative; }
.closeup .tab { position: absolute; top: -11px; left: 12px; background: var(--ink); color: var(--paper); padding: 2px 8px; font-family: var(--display); font-weight: 900; font-stretch: 75%; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.closeup h3 { font-family: var(--display); font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: 32px; line-height: .9; margin: 6px 0 6px; text-wrap: balance; }
.closeup p { margin: 0 0 8px; font-size: 16px; }
.closeup p:last-child { margin-bottom: 0; }

/* ---------- Day nav + filters ---------- */
.daynav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; width: 100%; max-width: 44rem; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: repeat(7, 1fr); }
.daynav a { color: inherit; text-decoration: none; text-align: center; padding: 8px 0 7px; font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; line-height: 1.05; border-left: 1px solid rgba(127,127,127,.35); position: relative; }
.daynav a:first-child { border-left: 0; }
.daynav a b { display: block; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.daynav a.today::after { content: "Today"; position: absolute; left: 50%; top: 100%; transform: translate(-50%, 3px); background: var(--flag); color: var(--flag-ink); padding: 0 4px; font-size: 9px; letter-spacing: .08em; }
.daynav a[aria-current="true"] { background: var(--flag); color: var(--flag-ink); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 44rem; margin-top: -10px; }
.filters button { font-family: var(--display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); padding: 6px 12px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
[data-filter="stream"] .sec-tv, [data-filter="tv"] .sec-stream { display: none; }
[data-filter="new"] .entry:not(.is-new), [data-filter="new"] .slot:not(:has(.is-new)) { display: none; }
.empty-new { display: none; }
[data-filter="new"] .sec:not(:has(.is-new)) .cols, [data-filter="new"] .sec:not(:has(.is-new)) .empty:not(.empty-new) { display: none; }
[data-filter="new"] .sec:not(:has(.is-new)) .empty-new { display: block; }

/* ---------- Day pages ---------- */
.day { scroll-margin-top: 64px; }
.dayhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 4px solid var(--ink); padding-bottom: 4px; margin-bottom: 4px; }
.dayhead h2 { font-family: var(--display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(54px, 15vw, 88px); line-height: .8; margin: 0; letter-spacing: -.01em; }
.dayhead .date { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; text-align: right; font-size: 14px; letter-spacing: .06em; line-height: 1.05; }
.dayhead .date b { display: block; font-size: 40px; font-weight: 900; font-variant-numeric: tabular-nums; }
.note { font-family: var(--display); font-stretch: 80%; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 12px; }
.band { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-family: var(--display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; letter-spacing: .1em; font-size: 15px; }
.band::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.cols { columns: 2 17rem; column-gap: 24px; column-rule: 1px solid var(--rule); }
.slot { break-inside: avoid-column; margin: 0 0 9px; }
.slot-time { font-family: var(--display); font-weight: 900; font-stretch: 85%; font-size: 17px; font-variant-numeric: tabular-nums; border-top: 1px solid var(--ink); padding-top: 3px; margin-bottom: 3px; }
.slot-time small { font-size: 12px; }
.entry { margin: 0 0 7px; font-size: 14px; line-height: 1.32; break-inside: avoid-column; overflow-wrap: break-word; }
.entry .t { font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 15.5px; letter-spacing: .01em; }
.entry .offtime { font-family: var(--display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.entry .kind { font-style: italic; color: var(--ink-2); }
.entry .ep { font-style: italic; }
.entry .rt { color: var(--ink-2); white-space: nowrap; font-size: 13px; }
.ch { display: inline-block; min-width: 2.3em; text-align: center; border: 1.5px solid var(--ink); padding: 0 3px; margin-right: 4px; font-family: var(--display); font-weight: 800; font-stretch: 70%; font-size: 11px; line-height: 15px; letter-spacing: .03em; vertical-align: 1px; font-style: normal; color: var(--ink); }
.ch.svc { background: var(--ink); color: var(--paper); }
.flag { display: inline-block; background: var(--flag); color: var(--flag-ink); padding: 0 4px; margin-right: 4px; font-family: var(--display); font-weight: 900; font-stretch: 72%; font-size: 11px; line-height: 15px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.star { font-family: var(--display); font-weight: 900; margin-right: 3px; }
.empty { font-style: italic; color: var(--ink-2); margin: 4px 0 8px; }

/* ---------- Back page + archive ---------- */
.colophon { font-size: 14px; }
.colophon p { margin: 0 0 10px; max-width: 38em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin: 0 0 12px; }
.issue-nav, .back { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-family: var(--display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.archive { list-style: none; margin: 0; padding: 0; }
.archive a { display: grid; grid-template-columns: 5.5rem 1fr; gap: 2px 14px; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.arch-no { font-family: var(--display); font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 15px; grid-row: span 2; }
.arch-range { font-family: var(--display); font-stretch: 80%; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; color: var(--ink-2); }
.arch-cover { font-family: var(--display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 24px; line-height: 1; }
.archive a:hover .arch-cover { text-decoration: underline; }

@media (max-width: 480px) {
  .burst { width: 84px; padding: 11px; font-size: 13px; top: -20px; }
  .story .kicker { padding-right: 76px; }
  .daynav a { font-size: 10px; letter-spacing: .02em; }
  .daynav a b { font-size: 16px; }
}

/* ---------- Subscription card (styled like a magazine's tear-out card) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.subscribe { position: relative; margin: 18px 0 4px; padding: 18px 18px 14px; background: var(--flag); color: var(--flag-ink); }
.sub-cut { position: absolute; left: 0; right: 0; top: -9px; border-top: 2px dashed var(--ink); }
.sub-cut span { position: absolute; left: 14px; top: -12px; background: var(--paper); padding: 0 4px; font-size: 16px; color: var(--ink); line-height: 1; }
.subscribe h3 { font-family: var(--display); font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: 30px; line-height: .9; margin: 0 0 6px; text-wrap: balance; }
.subscribe p { margin: 0 0 12px; font-size: 15px; max-width: 34em; }
.sub-row { display: flex; gap: 8px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 14rem; min-width: 0; font: 16px var(--body); padding: 9px 10px; border: 2px solid var(--flag-ink); background: #fffdf5; color: #1c1b18; border-radius: 0; }
.subscribe button { font-family: var(--display); font-stretch: 80%; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; padding: 10px 18px; border: 2px solid var(--flag-ink); background: var(--flag-ink); color: var(--flag); cursor: pointer; border-radius: 0; }
.subscribe button:disabled { opacity: .6; cursor: progress; }
.subscribe input:focus-visible, .subscribe button:focus-visible { outline: 3px solid var(--cover); outline-offset: 2px; }
.subscribe .sub-status { margin: 8px 0 0; font-weight: 600; min-height: 1.2em; font-size: 14px; }
.subscribe.is-done .sub-row { display: none; }

/* ---------- 404: test-pattern color bars ---------- */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 72px; margin: 4px 0 18px; }
.bars i:nth-child(1) { background: #c0c0c0; }
.bars i:nth-child(2) { background: #c0c000; }
.bars i:nth-child(3) { background: #00c0c0; }
.bars i:nth-child(4) { background: #00c000; }
.bars i:nth-child(5) { background: #c000c0; }
.bars i:nth-child(6) { background: #c00000; }
.bars i:nth-child(7) { background: #0000c0; }
.nf-links { list-style: none; margin: 0; padding: 0; }
.nf-links a { display: block; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: 24px; line-height: 1; }
.nf-links a span { display: block; margin-top: 4px; font-family: var(--body); font-weight: 400; font-stretch: 100%; text-transform: none; font-size: 15px; font-style: italic; color: var(--ink-2); }
.nf-links a:hover { text-decoration: underline; }
