@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Baskerville';
  src: url('/fonts/LibreBaskerville-Bold.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f7f3e9;
  --paper-dark: #efe9da;
  --ink: #1a1712;
  --ink-soft: #4a443a;
  --ink-faint: #8a8272;
  --accent: #8b1e1e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  line-height: 1.55;
  background-image: radial-gradient(circle at 20% 10%, rgba(0,0,0,0.02), transparent 40%),
                    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.025), transparent 40%);
}
.sheet { max-width: 1120px; margin: 0 auto; padding: 0 28px 64px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: Helvetica, Arial, sans-serif; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0; color: var(--ink-soft); gap: 12px; flex-wrap: wrap;
}
.topbar button {
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  padding: 4px 12px; cursor: pointer; transition: all .15s;
}
.topbar button:hover { background: var(--ink); color: var(--paper); }
.reader-auth-link {
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
}
.reader-auth-link:hover { color: var(--accent); border-color: var(--accent); }

.accountability-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 7px 10px; border-bottom: 1px solid var(--ink); background: var(--paper-dark);
  font-family: Helvetica, Arial, sans-serif; font-size: 9.5px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-soft);
}
.accountability-strip b { color: var(--accent); }
.accountability-strip i { font-weight: normal; color: var(--ink-faint); text-transform: none; letter-spacing: 0; }

.confidence-label {
  display: inline-block; margin: 0 0 14px; padding: 3px 7px; border: 1px solid var(--ink-faint);
  font-family: Helvetica, Arial, sans-serif; font-size: 9px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
}
.confidence-label::before { content: 'Editorial confidence: '; color: var(--ink-faint); }
.confidence-label:empty { display: none; }
.story .confidence-label { margin: 8px 0 0; font-size: 8px; }
.public-record {
  margin: 0 0 20px; padding: 10px 13px; border-left: 3px solid var(--accent); background: var(--paper-dark);
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; line-height: 1.55; color: var(--ink-soft);
}
.public-record b { display: block; margin-bottom: 4px; font-size: 9px; letter-spacing: 0.14em; color: var(--accent); }
.public-record ul { margin: 0; padding-left: 17px; }
.public-record li + li { margin-top: 3px; }

/* ---------- masthead ---------- */
.masthead { text-align: center; padding: 34px 0 18px; border-bottom: 4px double var(--ink); }
.masthead h1 {
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 900; letter-spacing: -0.02em; line-height: 0.95;
  font-family: Georgia, serif;
}
.masthead h1 a { color: inherit; text-decoration: none; }
.masthead h1 .wtf { color: var(--accent); }
.masthead .tagline { margin-top: 10px; font-style: italic; font-size: 15px; color: var(--ink-soft); }
.masthead .meta {
  display: flex; justify-content: space-between; margin-top: 16px;
  font-family: Helvetica, Arial, sans-serif; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
  border-top: 1px solid var(--ink); padding-top: 8px; gap: 8px; flex-wrap: wrap;
}
.masthead.compact { padding: 20px 0 14px; }
.masthead.compact h1 { font-size: clamp(36px, 6vw, 60px); }

/* ---------- nav ---------- */
nav {
  display: flex; justify-content: center; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--ink); padding: 9px 0;
  font-family: Helvetica, Arial, sans-serif; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  position: sticky; top: 0; background: var(--paper); z-index: 50;
}
nav a { color: var(--ink); text-decoration: none; padding: 3px 14px; border-radius: 2px; }
nav a:hover { background: var(--ink); color: var(--paper); }

/* ---------- ticker ---------- */
.ticker {
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: Helvetica, Arial, sans-serif; font-size: 12px;
}
.ticker .label {
  background: var(--accent); padding: 7px 14px; font-weight: bold;
  letter-spacing: 0.15em; text-transform: uppercase; flex-shrink: 0; z-index: 2;
}
.ticker .track { white-space: nowrap; animation: scroll 45s linear infinite; padding-left: 100%; }
.ticker .track span { margin-right: 60px; letter-spacing: 0.03em; }
@keyframes scroll { to { transform: translateX(-100%); } }
/* if animations are off (reduce-motion, low power), show the bulletins statically
   instead of an empty black bar */
@media (prefers-reduced-motion: reduce) {
  .ticker .track {
    animation: none; padding: 6px 12px; white-space: normal; line-height: 1.6;
  }
  .ticker .track span { margin-right: 24px; }
}

/* ---------- layout ---------- */
.front { display: grid; grid-template-columns: 2.4fr 1fr; gap: 0; margin-top: 30px; }
.main-col { padding-right: 30px; border-right: 1px solid var(--ink-faint); min-width: 0; }
.side-col { padding-left: 30px; min-width: 0; }
@media (max-width: 860px) {
  .front { grid-template-columns: 1fr; }
  .main-col { padding-right: 0; border-right: none; }
  .side-col { padding-left: 0; margin-top: 40px; }
}

.kicker {
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent);
  margin-bottom: 8px;
}
.lead h2 {
  font-family: Georgia, serif;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.08; font-weight: 900;
  letter-spacing: -0.01em;
}
.lead h2 a { color: inherit; text-decoration: none; }
.lead h2 a:hover { color: var(--accent); }
.lead .subhead { font-style: italic; font-size: 18px; color: var(--ink-soft); margin-top: 12px; line-height: 1.4; }
.byline {
  font-family: Helvetica, Arial, sans-serif; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint);
  margin: 14px 0 16px;
}
.byline b { color: var(--ink-soft); }
.lead .body { column-count: 2; column-gap: 28px; column-rule: 1px solid var(--paper-dark); font-size: 15.5px; }
@media (max-width: 640px) { .lead .body { column-count: 1; } }
.body p { margin-bottom: 14px; text-align: justify; hyphens: auto; }
.body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.body a:hover { text-decoration: none; }
.body h3.crosshead {
  font-family: Georgia, serif; font-size: 20px; font-weight: 900;
  margin: 24px 0 10px; line-height: 1.2; column-span: all;
}
.article-page .body h3.crosshead { font-size: 23px; }
.body p.pullquote {
  font-family: Georgia, serif; font-size: 19px; font-weight: 900;
  font-style: italic; text-align: left; hyphens: none;
  border-left: 3px solid var(--accent); padding-left: 16px; margin: 20px 0;
}
.article-page .body p.pullquote { font-size: 22px; }
.body p:first-of-type::first-letter {
  font-family: Georgia, serif;
  font-size: 54px; font-weight: 900; float: left;
  line-height: 0.85; padding: 4px 8px 0 0;
}
.continue {
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.continue a { color: var(--accent); text-decoration: none; }
.continue a:hover { text-decoration: underline; }
.figure { margin: 22px 0; border: 1px solid var(--ink); background: var(--paper-dark); }
.figure .art {
  height: 230px; display: flex; align-items: center; justify-content: center;
  font-size: 60px; background:
    repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0,0,0,0.03) 6px, rgba(0,0,0,0.03) 7px);
}
.figure .art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.figure figcaption {
  font-family: Helvetica, Arial, sans-serif; font-size: 11.5px; color: var(--ink-soft);
  padding: 8px 12px; border-top: 1px solid var(--ink-faint); font-style: italic;
}

.section-rule { display: flex; align-items: center; gap: 14px; margin: 42px 0 22px; }
.section-rule h3 {
  font-family: Helvetica, Arial, sans-serif; font-size: 13px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.2em; white-space: nowrap;
}
.section-rule::before, .section-rule::after { content: ""; flex: 1; border-top: 2px solid var(--ink); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.story { border-top: 1px solid var(--ink-faint); padding-top: 12px; position: relative; }
.story h4 {
  font-family: Georgia, serif; font-size: 21px;
  line-height: 1.15; font-weight: 900; margin-bottom: 8px; padding-right: 70px;
}
body:not(.is-admin) .story h4 { padding-right: 0; }
.story h4 a { color: inherit; text-decoration: none; }
.story h4 a:hover { color: var(--accent); }
.story p { font-size: 14px; color: var(--ink-soft); }
.story .byline { margin: 8px 0 0; }
.share-mini {
  font-family: Helvetica, Arial, sans-serif; font-size: 9.5px; font-weight: bold;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  background: none; border: none; color: var(--ink-faint); padding: 0;
  text-decoration: underline dotted; margin-top: 6px;
}
.share-mini:hover { color: var(--accent); }

/* ---------- article page ---------- */
.article-layout {
  display: block; margin-top: 40px;
}
.article-page { width: 100%; max-width: none; margin: 0; }
.article-page h2 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 6vw, 52px); line-height: 1.06; font-weight: 900;
  letter-spacing: -0.01em;
}
.article-page .subhead { font-style: italic; font-size: 19px; color: var(--ink-soft); margin-top: 14px; line-height: 1.45; }
.article-page .body { font-size: 17px; margin-top: 10px; }
.article-page .body p { margin-bottom: 18px; }
.article-page .dateline-row {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 8px 0; margin: 18px 0 22px;
}
.article-page .dateline-row .byline { margin: 0; }
.backlink {
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.12em; margin-top: 34px;
  padding-top: 16px; border-top: 4px double var(--ink); text-align: center;
}
.backlink a { color: var(--accent); text-decoration: none; }
.backlink a:hover { text-decoration: underline; }
.endmark::after { content: " ■"; color: var(--accent); }

/* ---------- admin edit affordances ---------- */
.tools { position: absolute; top: 10px; right: 0; display: none; gap: 5px; z-index: 5; }
body.is-admin .tools { display: flex; }
.tools button {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--ink-faint); padding: 2px 8px;
  color: var(--ink);
}
.tools button:hover { background: var(--ink); color: var(--paper); }
.editable { position: relative; }
body.is-admin .editable:hover { outline: 1px dashed var(--accent); outline-offset: 4px; }

.add-btn {
  display: none; font-family: Helvetica, Arial, sans-serif; font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  background: none; border: 1px dashed var(--accent); color: var(--accent);
  padding: 4px 12px; white-space: nowrap;
}
body.is-admin .add-btn { display: inline-block; }
.add-btn:hover { background: var(--accent); color: var(--paper); border-style: solid; }
.placeholder {
  display: none; border: 1px dashed var(--ink-faint); color: var(--ink-faint);
  font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-style: italic;
  padding: 20px; text-align: center; cursor: pointer;
}
body.is-admin .placeholder { display: block; }
.placeholder:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- empty edition ---------- */
.empty-edition { display: none; text-align: center; padding: 90px 20px 70px; margin-top: 30px; }
.empty-edition .stamp {
  display: inline-block; border: 3px solid var(--ink); padding: 26px 40px;
  transform: rotate(-2deg);
}
.empty-edition h2 {
  font-family: Georgia, serif; font-weight: 900;
  font-size: clamp(28px, 5vw, 44px); line-height: 1.1;
}
.empty-edition p { font-style: italic; color: var(--ink-soft); margin-top: 14px; font-size: 15px; }
.empty-edition .fine {
  font-family: Helvetica, Arial, sans-serif; font-style: normal; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-faint); margin-top: 22px;
}

/* ---------- sidebar ---------- */
.sidebox { border: 1px solid var(--ink); padding: 18px; margin-bottom: 26px; position: relative; }
.sidebox.dark { background: var(--ink); color: var(--paper); }
.sidebox.dark .tools button { background: var(--ink); color: var(--paper); border-color: var(--ink-faint); }
.sidebox.dark .tools button:hover { background: var(--paper); color: var(--ink); }
.sidebox h5 {
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 12px;
  border-bottom: 1px solid currentColor; padding-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.sidebox .big { font-family: Georgia, serif; font-size: 22px; font-weight: 900; line-height: 1.2; }
.sidebox p { font-size: 13.5px; margin-top: 8px; }
.sidebox small { font-size: 11px; color: var(--ink-faint); font-style: italic; display: block; margin-top: 10px; }
.sidebox.dark small { color: #b8b0a0; }
.weather-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dotted var(--ink-faint); position: relative; }
.weather-row .tools { position: static; margin-left: auto; }
.weather-row:last-child { border-bottom: none; }

.poll-opt { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px;
  background: none; border: 1px solid var(--ink-faint); padding: 8px 10px; margin-top: 8px;
  cursor: pointer; color: inherit; }
.poll-opt:hover { background: var(--paper-dark); }
.poll-result { font-size: 12px; margin-top: 8px; }
.poll-bar { height: 8px; background: var(--paper-dark); margin-top: 3px; border: 1px solid var(--ink-faint); }
.poll-bar i { display: block; height: 100%; background: var(--accent); }
.article-poll-box {
  border: 1px solid var(--ink); padding: 18px 20px; margin-top: 26px; background: #fffdf6;
}
.article-poll-box h5 {
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 12px;
  border-bottom: 1px solid currentColor; padding-bottom: 8px;
}
.article-poll-box small { font-size: 11px; color: var(--ink-faint); font-style: italic; display: block; margin-top: 10px; }

.opinion-item { border-bottom: 1px dotted var(--ink-faint); padding: 10px 0; position: relative; }
.opinion-item:last-child { border-bottom: none; }
.opinion-item .t { font-weight: bold; font-size: 14.5px; font-style: italic; padding-right: 70px; }
body:not(.is-admin) .opinion-item .t { padding-right: 0; }
.opinion-item .a { font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-top: 3px; }
.correction-item { font-size: 12.5px; padding: 6px 0; position: relative; padding-right: 70px; }
body:not(.is-admin) .correction-item { padding-right: 0; }

/* ---------- classifieds ---------- */
.classifieds { margin-top: 48px; border: 2px solid var(--ink); padding: 22px; }
.classifieds h3 { font-family: Helvetica, Arial, sans-serif; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; margin-bottom: 16px; }
.classifieds .items { column-count: 3; column-gap: 26px; column-rule: 1px solid var(--ink-faint); font-size: 12.5px; }
@media (max-width: 800px) { .classifieds .items { column-count: 2; } }
@media (max-width: 540px) { .classifieds .items { column-count: 1; } }
.classifieds .items > div { break-inside: avoid; margin-bottom: 12px; position: relative; padding-right: 66px; }
body:not(.is-admin) .classifieds .items > div { padding-right: 0; }
.classifieds b { font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- footer ---------- */
footer { border-top: 4px double var(--ink); margin-top: 48px; padding-top: 18px;
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; color: var(--ink-faint);
  text-align: center; line-height: 1.8; position: relative; }
footer .legal { max-width: 720px; margin: 8px auto 0; font-style: italic; }
footer .tools { top: 18px; }

/* ---------- modal / admin ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(26,23,18,0.55); z-index: 100;
  display: none; align-items: flex-start; justify-content: center; padding: 6vh 20px;
  backdrop-filter: blur(2px);
}
.overlay.open { display: flex; }
.modal {
  background: var(--paper); border: 2px solid var(--ink); max-width: 440px; width: 100%;
  padding: 28px; box-shadow: 8px 8px 0 rgba(26,23,18,0.3);
}
.modal.wide { max-width: 680px; max-height: 86vh; overflow-y: auto; }
.modal.wide.article-editing { max-width: 1120px; }
.modal h3 { font-family: Georgia, serif; font-size: 26px; font-weight: 900; }
.modal .sub { font-style: italic; font-size: 13px; color: var(--ink-soft); margin: 6px 0 18px; }
.editor-layout { display: block; }
.modal.article-editing .editor-layout {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px; align-items: start;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-family: Helvetica, Arial, sans-serif; font-size: 10.5px;
  font-weight: bold; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 5px; }
.field .hint { font-weight: normal; text-transform: none; letter-spacing: 0; color: var(--ink-faint); font-style: italic; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 14px; padding: 9px 11px;
  border: 1px solid var(--ink); background: #fffdf6; color: var(--ink);
}
.field input[type=color] { padding: 2px; height: 40px; cursor: pointer; }
.field input[type=file] { padding: 8px; font-family: Helvetica, Arial, sans-serif; font-size: 12px; }
.field input[type=checkbox] { width: auto; margin-right: 8px; accent-color: var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.tall { min-height: 220px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.image-field-tools {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  margin-top: 6px; font-family: Helvetica, Arial, sans-serif; font-size: 10.5px;
  color: var(--ink-faint); min-height: 18px;
}
.article-preview {
  display: none; border: 1px solid var(--ink); background: #fffdf6;
  position: sticky; top: 58px;
}
.modal.article-editing .article-preview { display: block; }
.article-preview-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); padding: 8px 12px;
  font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; font-weight: bold;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.article-preview-bar b {
  color: #fff; background: var(--accent); padding: 2px 7px; font-size: 9.5px;
}
.article-preview-paper {
  padding: 20px 22px 24px; max-height: 62vh; overflow-y: auto;
}
.article-preview-paper h2 {
  font-family: Georgia, serif; font-size: 34px;
  line-height: 1.06; font-weight: 900; letter-spacing: -0.01em;
}
.article-preview-paper .subhead {
  font-style: italic; font-size: 16px; color: var(--ink-soft); margin-top: 10px; line-height: 1.4;
}
.article-preview-paper .byline {
  margin: 12px 0 14px;
}
.article-preview-paper .figure { margin: 16px 0; }
.article-preview-paper .figure .art { height: 190px; font-size: 48px; }
.article-preview-paper .body { font-size: 14.5px; }
.article-preview-paper .body p { margin-bottom: 12px; text-align: left; }
.article-preview-paper .body p:first-of-type::first-letter {
  font-family: inherit; font-size: inherit; font-weight: inherit; float: none;
  line-height: inherit; padding: 0;
}
.article-preview-paper .preview-empty {
  color: var(--ink-faint); font-style: italic;
}
.preview-engagement {
  margin-top: 16px; border-top: 1px dashed var(--ink-faint); padding-top: 10px;
}
.preview-engagement p {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 6px;
}
.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: Helvetica, Arial, sans-serif; font-size: 11.5px; letter-spacing: 0.04em;
  border: 1px solid var(--ink); padding: 6px 12px; background: #fffdf6; user-select: none;
}
.tag-pill:has(input:checked) { background: var(--ink); color: var(--paper); }
.tag-pill input { accent-color: var(--accent); }
.fieldset-title {
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid var(--ink-faint); padding-bottom: 6px; margin: 22px 0 14px;
}
.btn {
  font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-weight: bold;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 10px 22px; transition: all .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: none; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.error { color: var(--accent); font-size: 13px; font-style: italic; margin-top: 10px; display: none; }
.error.show { display: block; }

.adminbar {
  display: none; background: var(--accent); color: #fff;
  font-family: Helvetica, Arial, sans-serif; font-size: 12px;
  padding: 8px 0; letter-spacing: 0.05em; position: sticky; top: 0; z-index: 60;
}
body.is-admin .adminbar { display: block; }
body.is-admin nav { top: 37px; }
.adminbar .inner { max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.adminbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adminbar button { font: inherit; background: none; border: 1px solid rgba(255,255,255,0.7);
  color: #fff; padding: 3px 12px; cursor: pointer; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.1em; }
.adminbar button:hover { background: #fff; color: var(--accent); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--paper); font-family: Helvetica, Arial, sans-serif;
  font-size: 13px; padding: 12px 24px; z-index: 200; transition: transform .3s;
  border: 1px solid var(--paper); box-shadow: 4px 4px 0 rgba(0,0,0,0.25); max-width: 90vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- the legitimacy package ---------- */
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: bold; color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.75); } }

#leadArticle { transition: opacity .35s ease; }
.rot-dots { display: flex; gap: 9px; justify-content: center; margin: 20px 0 2px; }
.rot-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink);
  background: none; cursor: pointer; padding: 0;
}
.rot-dots button.on { background: var(--accent); border-color: var(--accent); }

.mostread-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--ink-faint); }
.mostread-item:last-child { border-bottom: none; }
.mostread-item .rank {
  font-family: Georgia, serif; font-size: 26px; font-weight: 900;
  color: var(--ink-faint); line-height: 1; flex-shrink: 0; min-width: 22px;
}
.mostread-item a { font-size: 13.5px; font-weight: bold; color: var(--ink); text-decoration: none; line-height: 1.3; }
.mostread-item a:hover { color: var(--accent); }
.mostread-item .views {
  display: block; font-family: Helvetica, Arial, sans-serif; font-size: 9.5px;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px;
}

.cookiebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  background: var(--ink); color: var(--paper);
  font-family: Helvetica, Arial, sans-serif; font-size: 12.5px;
  padding: 13px 20px; display: none; box-shadow: 0 -3px 12px rgba(0,0,0,0.25);
}
.cookiebar.show { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cookiebar button {
  font: inherit; font-size: 11px; font-weight: bold; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); border: none; padding: 7px 16px; cursor: pointer;
}
.cookiebar button.ghost { background: none; color: var(--paper); border: 1px solid rgba(255,255,255,0.6); }
.cookiebar button:hover { background: var(--accent); color: #fff; }

/* ---------- scoreboard ---------- */
.score-line { font-family: Georgia, serif; font-size: 21px; font-weight: 900; text-align: center; margin-top: 4px; }
.score-note {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--ink-faint); text-align: center; margin-top: 4px;
}
.score-asof {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; color: var(--accent);
  text-align: center; margin-top: 8px; letter-spacing: 0.06em; min-height: 13px;
}

/* ---------- the numbers desk ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 540px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { border: 1px solid var(--ink); padding: 12px 8px; text-align: center; background: #fffdf6; }
.stat-tile .n { font-family: Georgia, serif; font-size: 26px; font-weight: 900; }
.stat-tile .l {
  font-family: Helvetica, Arial, sans-serif; font-size: 9px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-top: 4px;
}
.stats-caption {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent);
  border-bottom: 1px solid var(--ink-faint); padding-bottom: 6px; margin: 20px 0 10px;
}
.stat-chart { width: 100%; height: auto; display: block; background: #fffdf6; border: 1px solid var(--ink-faint); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.chart-legend .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; color: var(--ink-soft);
}
.chart-legend .chip i { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.stats-table th {
  font-family: Helvetica, Arial, sans-serif; font-size: 9.5px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
  text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--ink);
}
.stats-table td { padding: 7px 8px 7px 0; border-bottom: 1px dotted var(--ink-faint); }
.stats-table td a { color: var(--ink); text-decoration: none; font-weight: bold; }
.stats-table td a:hover { color: var(--accent); }
.stat-state {
  font-family: Helvetica, Arial, sans-serif; font-size: 8.5px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper);
  background: var(--ink-faint); padding: 1px 6px; margin-left: 8px; vertical-align: middle;
}
.ad-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--ink-faint); padding-bottom: 8px; margin: 4px 0 14px;
}
.ad-tabs button {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer;
  background: var(--paper); border: 1px solid var(--ink-faint); color: var(--ink);
  padding: 6px 10px;
}
.ad-tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- version b ---------- */
.vb-banner {
  background: var(--paper-dark); border-bottom: 1px dashed var(--accent);
  font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-soft); text-align: center; padding: 7px 14px;
  display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap;
}
.vb-banner button {
  font: inherit; font-size: 9.5px; font-weight: bold; text-transform: uppercase;
  letter-spacing: 0.1em; background: none; border: 1px solid var(--ink-soft);
  color: var(--ink-soft); padding: 2px 10px; cursor: pointer;
}
.vb-banner button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- election night ---------- */
.election {
  position: relative; background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--ink); padding: 20px 24px 16px; text-align: center;
}
.election .tools button { background: var(--ink); color: var(--paper); border-color: var(--ink-faint); }
.election .tools button:hover { background: var(--paper); color: var(--ink); }
.election .tools { top: 14px; right: 14px; }
.e-head {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
}
.e-title {
  font-family: Georgia, serif; font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 900; margin-top: 8px; line-height: 1.15;
}
.e-deck { font-style: italic; font-size: 13.5px; color: #b8b0a0; margin-top: 7px; }
.e-gauge { display: flex; align-items: flex-end; justify-content: center; gap: 26px; margin-top: 18px; }
.e-label {
  font-family: Helvetica, Arial, sans-serif; font-size: 13px; font-weight: bold;
  letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 8px;
}
.e-dial {
  width: 210px; height: 105px; position: relative;
  border: 3px solid var(--paper); border-bottom: none;
  border-radius: 210px 210px 0 0;
  background:
    repeating-conic-gradient(from -90deg at 50% 100%, rgba(247,243,233,0.18) 0deg 1deg, transparent 1deg 22.5deg);
}
.e-needle {
  position: absolute; bottom: 0; left: 50%; width: 4px; height: 88px;
  margin-left: -2px; background: var(--accent);
  transform-origin: bottom center; transform: rotate(0deg);
  transition: transform 1.9s cubic-bezier(0.34, 1.56, 0.4, 1);
  border-radius: 3px 3px 0 0;
}
.e-hub {
  position: absolute; bottom: -8px; left: 50%; width: 18px; height: 18px;
  margin-left: -9px; background: var(--paper); border-radius: 50%;
  border: 3px solid var(--accent);
}
.e-status {
  font-family: Helvetica, Arial, sans-serif; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #b8b0a0; margin-top: 16px;
}
.e-status span { color: var(--paper); font-weight: bold; }
@media (max-width: 640px) {
  .election { padding: 16px 12px 14px; }
  .election .tools { top: 10px; right: 10px; }
  .e-head { font-size: 9px; letter-spacing: 0.18em; }
  .e-title { font-size: 18px; padding: 0 26px; }
  .e-gauge {
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: end; gap: 10px; margin-top: 14px;
  }
  .e-label { font-size: 10px; letter-spacing: 0.08em; padding-bottom: 4px; overflow-wrap: break-word; min-width: 0; }
  .e-gauge .e-label:first-child { text-align: right; }
  .e-gauge .e-label:last-child { text-align: left; }
  .e-dial { width: 138px; height: 69px; border-radius: 138px 138px 0 0; }
  .e-needle { height: 54px; }
  .e-hub { width: 14px; height: 14px; margin-left: -7px; bottom: -7px; }
  .e-status { font-size: 8.5px; letter-spacing: 0.07em; line-height: 1.9; margin-top: 12px; padding: 0 4px; }
}

/* ---------- live election results ---------- */
.live-results { margin: 16px auto 0; max-width: 640px; text-align: left; }
.live-cat {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.2em; color: #b8b0a0;
  border-bottom: 1px solid rgba(247,243,233,0.25); padding-bottom: 5px; margin: 16px 0 8px;
}
.live-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13.5px; }
.live-row .nm { flex: 1.4; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row .party { font-family: Helvetica, Arial, sans-serif; font-size: 9px; font-weight: bold; color: #b8b0a0; letter-spacing: 0.08em; }
.live-row .v { min-width: 82px; text-align: right; font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold; letter-spacing: 0.08em; flex-shrink: 0; }
.live-row .status-in { color: #fff; }
.live-row .status-out { color: #8f887a; }
.live-row .status-undecided { color: #e30613; }
.live-note { font-style: italic; font-size: 13px; color: #b8b0a0; margin-top: 14px; text-align: center; }
.live-more {
  font-family: Helvetica, Arial, sans-serif; font-size: 9.5px; color: #b8b0a0;
  text-transform: uppercase; letter-spacing: 0.1em; margin: 6px 0 2px;
}
@media (max-width: 640px) {
  .live-row { font-size: 12px; gap: 7px; }
  .live-row .v { min-width: 76px; font-size: 9px; }
}

/* ---------- satire notice ---------- */
.satire-note {
  margin-top: 34px; border: 1px solid var(--ink-faint); padding: 12px 16px;
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1.7;
  color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center; background: rgba(0,0,0,0.015);
}

.ad-review-img.size-square { aspect-ratio: 1 / 1; }
.ad-review-img.size-horizontal { aspect-ratio: 8 / 1; }

/* ---------- market watch ---------- */
.redm-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; cursor: help; }
.redm-sym {
  font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-weight: bold;
  letter-spacing: 0.12em; background: var(--ink); color: var(--paper); padding: 2px 8px;
}
.redm-price { font-family: Georgia, serif; font-size: 24px; font-weight: 900; }
.redm-chg { font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold; color: var(--accent); }
.redm-chg.halted { color: var(--ink-faint); letter-spacing: 0.08em; }
.redm-spark { margin-top: 10px; height: 30px; }
.redm-spark svg { width: 100%; height: 30px; display: block; }

/* ---------- anniversary tuesday ---------- */
.anniv-banner {
  background: linear-gradient(90deg, #f3e8c8, #eee0b2, #f3e8c8);
  border: 1px solid #a8821f; border-top: none; color: #6b5310;
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold;
  letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
  padding: 8px 14px; line-height: 1.6;
}
body.is-anniversary .masthead { border-bottom-color: #a8821f; }
body.is-anniversary .masthead .meta { border-top-color: #a8821f; }
body.is-anniversary .masthead h1 .wtf { text-shadow: 0 1px 0 rgba(168,130,31,0.4); }

/* ---------- mailbag ---------- */
.mb-item { border: 1px solid var(--ink-faint); padding: 14px 16px; margin-bottom: 14px; background: #fffdf6; }
.mb-head {
  font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.mb-text { font-size: 14px; margin-top: 8px; white-space: pre-line; }
.mb-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.mb-sel {
  flex: 1; min-width: 160px; font: inherit; font-size: 12px; padding: 6px 8px;
  border: 1px solid var(--ink); background: #fffdf6; color: var(--ink);
}

/* ---------- draft desk ---------- */
.draft-counts {
  font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint); padding-bottom: 8px; margin-bottom: 12px;
}
.draft-item {
  border: 1px solid var(--ink-faint); background: #fffdf6;
  padding: 14px 16px; margin-bottom: 12px; display: flex;
  justify-content: space-between; gap: 16px; align-items: center;
}
.draft-item.state-draft { border-left: 5px solid var(--ink-faint); }
.draft-item.state-scheduled { border-left: 5px solid var(--accent); }
.draft-item.state-live { opacity: 0.78; }
.draft-main { min-width: 0; }
.draft-title {
  font-family: Georgia, serif; font-size: 20px;
  font-weight: 900; line-height: 1.15;
}
.draft-meta {
  font-family: Helvetica, Arial, sans-serif; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint);
  margin-top: 5px;
}
.draft-actions {
  display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0;
}
.draft-actions .btn {
  font-size: 10px; padding: 7px 10px; text-decoration: none; display: inline-block;
}

/* ---------- reaction poll ---------- */
.reaction-box { border: 1px solid var(--ink); padding: 20px 22px; margin-top: 28px; text-align: center; }
.rx-q { font-family: Georgia, serif; font-weight: 900; font-size: 19px; }
.rx-opts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.rx-btn {
  font: inherit; background: #fffdf6; border: 1px solid var(--ink); padding: 10px 16px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 86px; color: var(--ink); transition: all .12s;
}
.rx-btn .e { font-size: 26px; }
.rx-btn .l { font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.1em; }
.rx-btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.rx-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; text-align: left; }
.rx-row .e { font-size: 20px; width: 26px; flex-shrink: 0; }
.rx-row .l { font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.08em; width: 82px; color: var(--ink-soft); flex-shrink: 0; }
.rx-row .bar { flex: 1; height: 10px; background: var(--paper-dark); border: 1px solid var(--ink-faint); }
.rx-row .bar i { display: block; height: 100%; background: var(--accent); }
.rx-row .pct { font-family: Helvetica, Arial, sans-serif; font-size: 11px; font-weight: bold; width: 40px; text-align: right; flex-shrink: 0; }
.rx-verdict { font-style: italic; margin-top: 16px; font-size: 15px; }
.rx-fine { font-family: Helvetica, Arial, sans-serif; font-size: 9.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 12px; }
.rx-rig { display: none; margin-top: 16px; border-top: 1px dashed var(--accent); padding-top: 14px; }
body.is-admin .rx-rig { display: block; }
.rx-rig .rig-grid { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rx-rig label {
  font-family: Helvetica, Arial, sans-serif; font-size: 9.5px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.rx-rig input { width: 76px; padding: 6px; border: 1px solid var(--ink); font: inherit; font-size: 13px; text-align: center; background: #fffdf6; }
.rx-rig .rig-go {
  margin-top: 12px; font-family: Helvetica, Arial, sans-serif; font-size: 10.5px; font-weight: bold;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  background: var(--accent); color: #fff; border: none; padding: 8px 18px;
}
.rx-rig .rig-go:hover { background: var(--ink); }
.rx-rig .rig-note { font-family: Helvetica, Arial, sans-serif; font-size: 9.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }

::selection { background: var(--accent); color: var(--paper); }

/* ==================== mobile ==================== */
body { overflow-x: hidden; }

@media (max-width: 640px) {
  .sheet { padding: 0 16px 48px; }

  /* top bar: keep the date, the pulse, and the door */
  .topbar { font-size: 10px; gap: 8px; padding: 8px 0; }
  #topWeather, #topPrice { display: none !important; }
  .topbar button { padding: 6px 14px; }
  .accountability-strip { align-items: flex-start; flex-direction: column; gap: 3px; font-size: 8.5px; padding: 7px 8px; }
  .accountability-strip i { display: none; }

  /* masthead */
  .masthead { padding: 22px 0 14px; }
  .masthead h1 { font-size: clamp(38px, 12vw, 64px); }
  .masthead .tagline { font-size: 12px; margin-top: 8px; }
  .masthead .meta { justify-content: center; text-align: center; margin-top: 12px; }
  .masthead .meta span:nth-child(2) { display: none; }

  /* nav: one scrollable row */
  nav {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding: 8px 0; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; padding: 5px 12px; flex-shrink: 0; }

  /* admin bar: not sticky, scrollable actions, no caption */
  .adminbar { position: static; }
  body.is-admin nav { top: 0; }
  .adminbar .inner { padding: 0 16px; }
  .adminbar .inner > span:first-child { display: none; }
  .adminbar .actions {
    flex-wrap: nowrap; overflow-x: auto; width: 100%;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0;
  }
  .adminbar .actions::-webkit-scrollbar { display: none; }
  .adminbar button { white-space: nowrap; flex-shrink: 0; padding: 6px 12px; }

  /* breaking ticker */
  .ticker { font-size: 11px; }
  .ticker .label { padding: 6px 10px; font-size: 9.5px; letter-spacing: 0.12em; }
  .ticker .track { animation-duration: 26s; }
  .ticker .track span { margin-right: 40px; }

  /* front page */
  .front { margin-top: 20px; }
  .side-col { margin-top: 32px; }
  .figure .art { height: 150px; font-size: 44px; }
  .lead .subhead { font-size: 16px; }
  .lead .body { font-size: 15px; }
  .rot-dots { gap: 12px; }
  .rot-dots button { width: 14px; height: 14px; }
  .section-rule { margin: 32px 0 18px; }
  .grid { gap: 20px; }
  .share-mini { font-size: 10.5px; padding: 6px 0; }
  .empty-edition { padding: 50px 4px 40px; }
  .empty-edition .stamp { padding: 18px 16px; }
  .empty-edition p br { display: none; }
  .classifieds { padding: 16px; margin-top: 36px; }
  .sidebox { padding: 15px; margin-bottom: 20px; }
  .tools button { padding: 4px 10px; font-size: 11px; }
  footer { margin-top: 36px; }

  /* modals: bigger inputs (16px stops iOS focus-zoom), full-width feel */
  .overlay { padding: 3vh 10px; }
  .modal { padding: 22px 18px; }
  .modal.wide { max-height: 92vh; }
  .modal.article-editing .editor-layout { display: block; }
  .article-preview { position: static; margin-top: 18px; }
  .article-preview-paper { max-height: none; }
  .modal h3 { font-size: 22px; }
  .field input, .field textarea, .field select, .mb-sel,
  .plant input, .plant textarea { font-size: 16px; }
  .modal .row { flex-wrap: wrap; }
  .btn { padding: 12px 18px; }
  .tag-pill { padding: 8px 12px; }

  /* cookie bar: stacked, clear of the home indicator */
  .cookiebar { font-size: 11.5px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cookiebar.show { flex-direction: column; gap: 9px; }
  .cookiebar button { width: 100%; max-width: 300px; padding: 10px 16px; }

  /* article page */
  .article-layout { display: block; margin-top: 22px; }
  .article-page { margin-top: 0; }
  .article-page .body { font-size: 16px; }
  .article-page .dateline-row { flex-direction: column; gap: 2px; }
  .share-row { gap: 6px; }
  .share-btn { padding: 8px 10px; font-size: 10px; letter-spacing: 0.05em; }
  .edit-link { margin-left: 0; width: 100%; text-align: center; }
  .letters { margin-top: 36px; }

  /* reactions: 2x2 grid, thumb-sized */
  .rx-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rx-btn { min-width: 0; width: 100%; padding: 12px 8px; }
  .rx-row .l { width: 66px; font-size: 9.5px; }
  .rx-rig input { width: 64px; font-size: 16px; }

  /* mailbag: stack the controls */
  .mb-row { flex-direction: column; align-items: stretch; }
  .mb-row .btn { width: 100%; }
  .draft-item { flex-direction: column; align-items: stretch; }
  .draft-actions { justify-content: stretch; }
  .draft-actions .btn { flex: 1; text-align: center; }

  .toast { width: calc(100vw - 32px); font-size: 12.5px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .masthead h1 { font-size: 11.5vw; }
  .lead h2 { font-size: 26px; }
  .rejected .row { padding: 10px 12px; }
}

/* ---------- fog day (see quirks.js; do not schedule) ---------- */
#fogLayer {
  position: fixed; inset: -20%; pointer-events: none; z-index: 89;
  background:
    radial-gradient(ellipse 60% 40% at 25% 30%, rgba(244,241,232,0.55), transparent 70%),
    radial-gradient(ellipse 70% 50% at 75% 60%, rgba(238,234,222,0.5), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 90%, rgba(247,243,233,0.45), transparent 70%);
  animation: fogdrift 90s ease-in-out infinite alternate;
}
@keyframes fogdrift {
  0% { transform: translate3d(-4%, -2%, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
