: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: 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); }

/* ---------- 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: 'Playfair Display', 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%); } }

/* ---------- 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: 'Playfair Display', 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 p:first-of-type::first-letter {
  font-family: 'Playfair Display', 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 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: 'Playfair Display', 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-page { max-width: 760px; margin: 40px auto 0; }
.article-page h2 {
  font-family: 'Playfair Display', 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: 'Playfair Display', 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: 'Playfair Display', 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); }

.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 h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 900; }
.modal .sub { font-style: italic; font-size: 13px; color: var(--ink-soft); margin: 6px 0 18px; }
.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 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; }
.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: 'Playfair Display', 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; }

.chumbox { margin: 46px auto 0; max-width: 760px; border-top: 2px solid var(--ink); padding-top: 12px; }
.chumbox h6 {
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; font-weight: bold;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-faint); margin-bottom: 14px;
}
.chum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .chum-grid { grid-template-columns: repeat(2, 1fr); } }
.chum { border: 1px solid var(--ink-faint); cursor: pointer; background: #fffdf6; }
.chum .thumb {
  height: 84px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: var(--paper-dark); border-bottom: 1px solid var(--ink-faint);
}
.chum .t { font-size: 12.5px; font-weight: bold; padding: 8px 10px 3px; line-height: 1.25; }
.chum:hover .t { color: var(--accent); }
.chum .src {
  font-family: Helvetica, Arial, sans-serif; font-size: 9px; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0 10px 10px;
}

/* ---------- scoreboard ---------- */
.score-line { font-family: 'Playfair Display', 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;
}

/* ---------- 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);
}

/* ---------- reaction poll ---------- */
.reaction-box { border: 1px solid var(--ink); padding: 20px 22px; margin-top: 28px; text-align: center; }
.rx-q { font-family: 'Playfair Display', 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; }

  /* 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; }

  /* 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 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-page { margin-top: 22px; }
  .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; }
  .chum-grid { gap: 10px; }
  .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%; }

  .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; }
  .chum-grid { grid-template-columns: 1fr 1fr; }
  .rejected .row { padding: 10px 12px; }
}
