/* EYEROLL REPORT: tabloid front page, book-style reading pages. */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --reading-paper: #fbf9f4;
  --siren: #c00000;
  --rule: #111111;
  --soft-rule: #cfcfcf;
  --mono: "Courier New", Courier, monospace;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, Cambria, serif;
  --display: Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}
body.reading { background: var(--reading-paper); }

.page { max-width: 1200px; margin: 0 auto; padding: 16px; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--siren); }

ul { list-style: none; margin: 0; padding: 0; }

/* ---------- masthead ---------- */
.masthead {
  text-align: center;
  border-bottom: 4px double var(--rule);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.masthead h1 {
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(40px, 11vw, 120px);
  letter-spacing: 2px;
  line-height: 1;
  margin: 4px 0;
}
.masthead h1 a { text-decoration: none; }
.masthead.small { margin-bottom: 8px; padding-bottom: 8px; }
.masthead.small h1 { font-size: clamp(34px, 9vw, 60px); }
.edition { font-family: var(--mono); font-size: 13px; font-weight: bold; margin: 0; }
.tagline { margin: 6px 0 0; font-size: 16px; }

/* ---------- shared bits ---------- */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-weight: bold;
  font-size: 12px;
  line-height: 1;
  border: 1.5px solid var(--ink);
  padding: 3px 4px 2px;
  margin-right: 2px;
  vertical-align: 2px;
}
/* Front-page headlines: readable bold sans by default, a big serif lead per section,
   and siren red for hot stories. Underline appears on hover so caps stay legible. */
.headline {
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.32;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.headline:hover, .headline:focus-visible { text-decoration: underline; }
.headline.lead {
  display: inline;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: 0;
}
.headline.hot { color: var(--siren); }
.lead-item .deck { font-size: 16.5px; }
.deck { margin: 6px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.date { font-family: var(--mono); font-size: 13px; font-weight: bold; white-space: nowrap; }
.meta { font-family: var(--mono); font-size: 13px; font-weight: bold; white-space: nowrap; }

/* Section heads: newspaper rules instead of solid black bars. */
.column h2, .dsa h2, .wire h2, .more h2 {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 8px;
  padding: 6px 0;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ---------- top siren ---------- */
.siren { text-align: center; border: 4px solid var(--siren); padding: 18px 16px; margin-bottom: 22px; }
.siren-label { font-family: var(--mono); color: var(--siren); font-weight: bold; margin: 0 0 8px; letter-spacing: 3px; }
.siren-headline {
  font-family: var(--mono);
  color: var(--siren);
  font-weight: bold;
  font-size: clamp(24px, 4.2vw, 40px);
  line-height: 1.15;
}
.siren-sub { margin: 10px 0 0; font-family: var(--mono); font-weight: bold; font-size: 16px; }
.siren-meta { margin: 12px 0 0; font-family: var(--mono); font-size: 13px; font-weight: bold; }

/* ---------- DSA watch ---------- */
.dsa { margin-bottom: 22px; }
.dsa h2 { color: var(--siren); border-top-color: var(--siren); border-bottom-color: var(--siren); }
.dsa ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.dsa li { padding: 10px 0; }

/* ---------- columns ---------- */
.columns { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; }
.column li { padding: 12px 0; border-bottom: 1px solid var(--soft-rule); }
.column li:last-child { border-bottom: 0; }

/* ---------- wire flashes ---------- */
.wire { margin-top: 24px; }
.wire li { padding: 8px 0; font-size: 17px; border-bottom: 1px solid var(--soft-rule); }
.wire li:last-child { border-bottom: 0; }
.wire a { text-decoration: none; }
.wire a strong { font-family: var(--mono); text-decoration: underline; }

/* ---------- article page (Kindle-style) ---------- */
.back { max-width: 680px; margin: 0 auto 18px; font-family: var(--mono); font-weight: bold; font-size: 14px; }
.article { max-width: 680px; margin: 0 auto; }
.kicker { font-family: var(--mono); font-weight: bold; font-size: 13px; letter-spacing: 1px; margin: 0 0 12px; }
.article-title {
  font-family: var(--serif);
  font-weight: bold;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  margin: 0 0 22px;
}
.article p { font-size: 20px; line-height: 1.7; margin: 0 0 1.1em; }
.article .kicker { font-size: 13px; line-height: 1.4; }
.dateline { font-family: var(--mono); font-weight: bold; font-size: 0.85em; }

/* The Official Story: prominent box at the top, smaller repeat at the end. */
.official { border: 3px solid var(--siren); background: var(--paper); padding: 16px 18px; margin: 0 0 28px; }
.article .official p { margin: 0; line-height: 1.4; }
.article .official-label { font-family: var(--mono); color: var(--siren); font-weight: bold; font-size: 15px; letter-spacing: 2px; }
.article .official-meta { font-size: 17px; margin: 4px 0 12px; }
.official-link {
  display: inline-block;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
  font-weight: bold;
  font-size: 17px;
  padding: 10px 14px;
  text-decoration: none;
}
.official-link:hover, .official-link:focus-visible { background: var(--siren); color: #ffffff; }
.official-bottom { margin: 32px 0 0; border-width: 2px; }

.more { max-width: 680px; margin: 36px auto 0; }
.more li { padding: 9px 0; border-bottom: 1px solid var(--soft-rule); }
.more li:last-child { border-bottom: 0; }
.more .headline { font-size: 16px; }

/* ---------- share button + panel (every page) ---------- */
.share-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  font-family: var(--mono);
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.share-open svg { width: 15px; height: 15px; }
.share-open:hover, .share-open:focus-visible { background: var(--ink); color: #ffffff; }
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.masthead .share-bar, .share-row { justify-content: center; }
.share-bar[hidden], .share-overlay[hidden] { display: none; }
.article .share-bar { margin: 0 0 24px; }
.article.info .share-bar { margin: -8px 0 20px; }
.share-row { margin: -4px 0 18px; }
.share-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.share-quick svg { width: 18px; height: 18px; }
.share-quick:hover, .share-quick:focus-visible { background: var(--ink); color: #ffffff; }

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(17, 17, 17, 0.6);
}
.share-panel {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--siren);
  padding: 0 22px max(18px, env(safe-area-inset-bottom));
  font-family: var(--mono);
}
.share-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
  border-bottom: 3px double var(--ink);
  padding: 16px 0 10px;
  margin-bottom: 14px;
}
.share-grip { display: none; }
.share-title { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: 1px; line-height: 1; }
.share-title span { display: block; font-family: var(--mono); font-weight: bold; font-size: 11px; letter-spacing: 3px; color: var(--siren); margin-top: 4px; }
.share-close { background: none; border: 0; font-size: 34px; line-height: 1; padding: 0 4px; cursor: pointer; color: var(--ink); }
.share-close:hover, .share-close:focus-visible { color: var(--siren); }
.share-card { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border: 1.5px solid var(--ink); margin-bottom: 12px; background: #eeeeee; }
.share-preview { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--ink); padding: 12px; }
.share-preview p { margin: 0; }
.share-preview > div { min-width: 0; overflow-wrap: anywhere; }
.share-thumb { display: none; width: 96px; flex-shrink: 0; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid var(--ink); }
.share-preview-title { font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.3; }
.share-preview-desc { font-family: var(--serif); font-size: 14px; line-height: 1.35; margin-top: 4px !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.share-preview-url { font-size: 12px; color: var(--siren); margin-top: 4px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.share-main button {
  font: inherit;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 13px 8px;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.share-native { background: var(--ink); color: #ffffff; }
.share-native:hover, .share-native:focus-visible { background: var(--siren); border-color: var(--siren); }
.share-copy { background: var(--paper); color: var(--ink); }
.share-copy:hover, .share-copy:focus-visible { background: var(--ink); color: #ffffff; }
.share-nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.share-net {
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 10px 2px;
  cursor: pointer;
}
.share-net:hover, .share-net:focus-visible { background: var(--ink); color: #ffffff; }
.share-status { min-height: 1.3em; margin: 8px 0 4px; font-size: 12px; text-align: center; }
.share-download {
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 10px;
}
.share-download:hover, .share-download:focus-visible { background: var(--ink); color: #ffffff; }

/* Phones: a bottom sheet with a small thumbnail instead of the full card. */
@media (max-width: 640px) {
  .share-overlay { align-items: flex-end; padding: 0; }
  .share-panel { max-width: none; border-width: 4px 0 0; box-shadow: none; padding: 0 16px max(16px, env(safe-area-inset-bottom)); }
  .share-head { flex-wrap: wrap; padding-top: 10px; }
  .share-grip { display: block; width: 100%; height: 0; }
  .share-grip::before { content: ""; display: block; width: 44px; height: 5px; margin: 0 auto 8px; background: var(--soft-rule); }
  .share-card { display: none; }
  .share-thumb { display: block; }
}

/* Bluesky link in the footer */
.footer-bsky { display: inline-flex; align-items: center; gap: 5px; }
.bsky-icon { width: 15px; height: 13px; color: #1185fe; }

/* ---------- footer ---------- */
.footer {
  max-width: 760px;
  margin: 32px auto 0;
  border-top: 3px solid var(--rule);
  padding-top: 12px;
  font-size: 14px;
  text-align: center;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .columns, .dsa ul { grid-template-columns: 1fr; }
  .article p { font-size: 19px; }
}

/* ---------- archive & past editions ---------- */
.old-edition { background: var(--ink); color: #ffffff; text-align: center; font-family: var(--mono); font-weight: bold; padding: 8px; margin: 0 0 12px; }
.old-edition a { color: #ffffff; }
.edition a { text-decoration: underline; }
.archive { max-width: 760px; margin: 0 auto; }
.archive-title { font-family: var(--mono); font-size: 18px; letter-spacing: 2px; text-align: center; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 6px 0; margin: 0 0 16px; }
.archive-edition { margin-bottom: 28px; }
.archive-edition h3 { font-size: 22px; margin: 0 0 8px; }
.archive-edition li { padding: 7px 0; border-bottom: 1px solid var(--soft-rule); }
.archive-edition .headline { font-size: 15px; }

/* ---------- top bar: menu, edition switcher, search ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.menu-btn {
  flex: none;
  width: 44px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
}
.menu-btn span { display: block; width: 22px; height: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-btn:hover, .menu-btn:focus-visible { border-color: var(--siren); }

.edition-switch select {
  height: 40px;
  font-family: var(--mono);
  font-weight: bold;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0 8px;
  max-width: 280px;
  cursor: pointer;
}

.search { flex: 1; position: relative; min-width: 0; margin-left: auto; max-width: 420px; }
.search input {
  width: 100%;
  height: 40px;
  font-family: var(--mono);
  font-size: 16px; /* 16px stops iOS zooming on focus */
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0 10px;
  background: var(--paper);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.search input:focus { outline: 3px solid var(--siren); outline-offset: 0; }
.search-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.search-list li { border-bottom: 1px solid var(--soft-rule); }
.search-list li:last-child { border-bottom: 0; }
.search-list a { display: block; padding: 9px 10px; text-decoration: none; }
.search-list [aria-selected="true"] a, .search-list a:hover { background: #f1efe9; }
.sr-head { display: block; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.sr-meta { display: block; font-family: var(--mono); font-size: 12px; font-weight: bold; margin-top: 3px; color: #555; }
.sr-all a { font-family: var(--mono); font-weight: bold; font-size: 13px; color: var(--siren); }
.sr-empty { padding: 10px; font-family: var(--mono); font-size: 14px; }
mark { background: #ffe08a; color: inherit; padding: 0 1px; }

.menu {
  position: absolute;
  z-index: 40;
  left: 16px;
  right: 16px;
  max-width: 360px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  margin-top: -6px;
}
.menu li { border-bottom: 1px solid var(--soft-rule); }
.menu li:last-child { border-bottom: 0; }
.menu a { display: block; padding: 12px 16px; font-family: var(--mono); font-weight: bold; font-size: 15px; letter-spacing: 1px; text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: var(--ink); color: #fff; }
.menu .menu-sub a { padding-left: 32px; font-size: 13.5px; }
.menu .menu-sub a::before { content: "\203A  "; color: var(--siren); }
.page { position: relative; }

/* full search results page */
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--soft-rule); }
.search-results li:last-child { border-bottom: 0; }

/* section anchors land below nothing sticky, but leave breathing room */
section[id] { scroll-margin-top: 12px; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .page { padding: 12px; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .edition-switch { flex: 1; }
  .edition-switch select { width: 100%; max-width: none; }
  .search { flex-basis: 100%; max-width: none; margin-left: 0; }
  .menu { left: 12px; right: 12px; max-width: none; }
  .masthead h1 { letter-spacing: 1px; }
  .edition { font-size: 12px; line-height: 1.5; }
  .tagline { font-size: 14.5px; }
  .siren { padding: 14px 12px; }
  .siren-headline { font-size: 24px; }
  .siren-sub { font-size: 14.5px; }
  .headline.lead { font-size: 21px; }
  .headline { font-size: 16px; }
  .wire li { font-size: 16px; }
  .article p { font-size: 18.5px; line-height: 1.65; }
  .official { padding: 14px; }
  .official-link { display: block; text-align: center; font-size: 16px; }
  .back { font-size: 13px; }
}

/* ---------- footer links & info pages ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-family: var(--mono); font-weight: bold; font-size: 13px; margin: 10px 0; }
.copyright { font-size: 12.5px; color: #444; }
.drop { white-space: nowrap; }
.article.info h3 { font-family: var(--mono); font-size: 16px; letter-spacing: 1px; margin: 1.6em 0 .5em; }
.article.info p, .article.info li { font-size: 18px; line-height: 1.65; }
.article .plain { list-style: disc; padding-left: 1.3em; margin: 0 0 1.1em; }
.article .plain li { margin-bottom: .5em; }
.contact-email { font-family: var(--mono); font-weight: bold; font-size: 22px !important; }
.updated { font-family: var(--mono); font-size: 13px !important; color: #555; margin-top: 2em !important; }
.notfound p { text-align: center; font-size: 18px; }
.contact-form { border: 3px solid var(--ink); background: var(--paper); padding: 16px; margin: 0 0 1.4em; }
.contact-form input, .contact-form textarea { font-size: 16px; max-width: 100%; }
.edition-stamp { font-family: var(--mono); font-weight: bold; font-size: 13px !important; line-height: 1.6 !important; letter-spacing: .5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; margin: 0 0 14px !important; }
.edition-stamp .stamp-src { color: #555; font-size: 12px; }
.archive-drop { font-family: var(--mono); font-size: 13px; font-weight: bold; white-space: nowrap; }
.archive-edition .meta { margin-left: 4px; }
.satire-note { font-family: var(--mono); font-weight: bold; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; margin: 6px 0 0; color: var(--siren); }
.article .satire-footnote { font-family: var(--mono); font-size: 14px; line-height: 1.5; border-top: 1px dashed var(--ink); padding-top: 10px; margin: 28px 0 0; color: #444; }

/* ---------- topic tags ---------- */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-weight: bold;
  font-size: 12.5px;
  letter-spacing: .5px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 3px 7px;
  margin: 0 2px 6px 0;
  background: var(--paper);
  white-space: nowrap;
}
.chip:hover, .chip:focus-visible { background: var(--ink); color: #fff; }
.chip-all { border-color: var(--siren); color: var(--siren); }
.chip-count { color: var(--siren); margin-left: 2px; }
.chip:hover .chip-count { color: #fff; }
.hot-label { font-family: var(--mono); font-weight: bold; font-size: 12.5px; letter-spacing: 1px; margin-right: 4px; color: var(--siren); }
.hot-topics { margin: -8px 0 20px; text-align: center; line-height: 2; }
.article .article-tags { font-size: 14px !important; line-height: 2 !important; margin: 0 0 16px !important; }
.tag-row { margin: 6px 0 0; line-height: 2; }
.tag-row .chip { font-size: 11.5px; padding: 2px 6px; }
.topic-group { margin-bottom: 24px; }
.topic-group h3 { font-family: var(--mono); font-size: 15px; letter-spacing: 2px; margin: 0 0 8px; }
.topic-cloud { line-height: 2.2; margin: 0; }
@media (max-width: 640px) {
  .hot-topics { text-align: left; margin-top: -10px; }
  .chip { font-size: 12px; }
}

/* ---------- logo mark beside the masthead ---------- */
.masthead h1 a { display: inline-flex; align-items: center; justify-content: center; gap: 0.16em; }
.logo-mark { width: 0.86em; height: 0.86em; flex: none; }
.masthead:not(.small) h1 { font-size: clamp(34px, 9.6vw, 120px); }
.sr-kind { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px; background: var(--siren); color: #fff; padding: 1px 4px; margin-right: 4px; vertical-align: 2px; }
.sr-topic .sr-head { font-size: 15px; }
.search-topics { max-width: 760px; margin: -6px auto 14px; }
.article .article-subtitle { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; color: #333; margin: -12px 0 22px; }
@media (max-width: 640px) { .article .article-subtitle { font-size: 18.5px; } }
