/* =========================================================
   The Oragon Gazette - Classic Newspaper Stylesheet
   Author: Dennis Pitallano
   ========================================================= */

:root {
  --ink: #1a1613;
  --ink-soft: #3a3430;
  --paper: #f4ecd8;
  --paper-dark: #e8dcc0;
  --paper-edge: #d9c9a3;
  --accent: #8b0000;
  --rule: #2a241f;
  --serif-head: "UnifrakturCook", "UnifrakturMaguntia", "Playfair Display", serif;
  --serif-title: "Playfair Display", "Old Standard TT", Georgia, serif;
  --serif-body: "Old Standard TT", "PT Serif", Georgia, "Times New Roman", serif;
  --sans-label: "Special Elite", "Courier New", monospace;
}

html[data-edition="evening"] {
  --ink: #e8dcc0;
  --ink-soft: #b8ac90;
  --paper: #1a1613;
  --paper-dark: #24201b;
  --paper-edge: #3a3430;
  --accent: #d4a35a;
  --rule: #c9b78f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.55;
}

/* Paper texture */
body {
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(139,0,0,0.04), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(0,0,0,0.06), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.012) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(0,0,0,0.012) 3px 4px);
  transition: background-color .4s ease, color .4s ease;
}

a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--ink-soft); }
a:hover { color: var(--accent); border-bottom-style: solid; }

.paper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 40px 60px;
  position: relative;
}

/* ---------- Top ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans-label);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
}
.ticker__track {
  display: inline-block;
  padding: 8px 0;
  animation: scroll 38s linear infinite;
}
.ticker__track span { margin: 0 2.5rem; }
.ticker__track span::before { content: "◆ "; color: var(--accent); }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Masthead ---------- */
.masthead {
  text-align: center;
  border-top: 4px double var(--rule);
  border-bottom: 4px double var(--rule);
  padding: 14px 0 18px;
  margin-bottom: 6px;
  position: relative;
}
.masthead__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 6px 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 12px;
}
.masthead h1 {
  font-family: var(--serif-head);
  font-size: clamp(44px, 7vw, 96px);
  margin: 0;
  letter-spacing: 1px;
  line-height: 1;
  font-weight: 400;
}
.masthead__sub {
  font-family: var(--sans-label);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.masthead__sub span::before { content: "— "; }
.masthead__sub span::after  { content: " —"; }

.edition-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 6px 10px;
  font-family: var(--sans-label);
  font-size: 10px;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-transform: uppercase;
}
.edition-toggle:hover { background: var(--ink); color: var(--paper); }

/* ---------- Section bar ---------- */
.sectionbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.sectionbar a { border: none; padding: 2px 6px; }
.sectionbar a:hover { background: var(--ink); color: var(--paper); }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr;
  gap: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.grid > .col { border-right: 1px solid var(--rule); padding-right: 28px; }
.grid > .col:last-child { border-right: none; padding-right: 0; }

@media (max-width: 900px) {
  .paper { padding: 18px; }
  .grid { grid-template-columns: 1fr; }
  .grid > .col { border-right: none; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 18px; }
  .searchbar { flex: 1 1 100%; order: 99; margin: 8px 0 0; margin-left: 0; }
  .searchbar input { width: 100%; }
}

/* ---------- Mobile (tight) ---------- */
@media (max-width: 600px) {
  html, body { font-size: 15px; }
  .paper { padding: 12px; }

  /* Masthead */
  .masthead { padding: 10px 0 12px; }
  .masthead__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-align: center;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }
  .masthead h1 { font-size: 42px; letter-spacing: 0; }
  .masthead__sub {
    font-size: 10px;
    letter-spacing: 2px;
    gap: 6px;
    padding: 0 30px;
  }
  .masthead__sub span::before, .masthead__sub span::after { content: ""; }
  .edition-toggle {
    position: static;
    transform: none;
    display: block;
    margin: 10px auto 0;
    font-size: 10px;
    padding: 6px 14px;
  }

  /* Section bar becomes horizontally scrollable */
  .sectionbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
    padding: 6px 0;
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .sectionbar::-webkit-scrollbar { display: none; }
  .sectionbar a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 4px 8px;
    border-left: 1px solid var(--rule);
  }
  .sectionbar a:first-child { border-left: none; }

  /* Search bar full-width under the nav */
  .searchbar { order: 99; flex: 1 1 100%; margin: 8px 0 0; }
  .searchbar input { width: 100%; font-size: 12px; }
  .searchbar__results {
    position: fixed;
    left: 10px; right: 10px;
    top: auto;
    max-width: none;
    min-width: 0;
  }

  /* Ticker smaller */
  .ticker__track { animation-duration: 28s; }

  /* Headlines shrink */
  h2.headline { font-size: 30px; line-height: 1.05; }
  h3.headline { font-size: 22px; }
  h4.headline { font-size: 17px; }
  .deck { font-size: 15px; }

  /* Drop cap smaller + no 2-column lead */
  .lead .body { columns: 1; }
  .lead p.body:first-of-type::first-letter { font-size: 48px; padding: 4px 8px 0 0; }
  .body { text-align: left; hyphens: none; }

  /* Photo a bit shorter on mobile */
  .photo { aspect-ratio: 3/2; }

  /* Stats 2 cols become 2 cols with smaller text */
  .stat__num { font-size: 24px; }

  /* Classifieds single column */
  .classifieds { columns: 1; column-rule: none; }

  /* Pullquote */
  .pullquote { font-size: 18px; padding: 12px 4px; }
  .pullquote::before, .pullquote::after { font-size: 38px; }

  /* Annals: tighter year column, stack cleanly */
  .annals::before { left: 62px; }
  .annals__item { grid-template-columns: 50px 24px 1fr; gap: 0 10px; }
  .annals__item::before { left: 57px; top: 16px; width: 10px; height: 10px; }
  .annals__year { font-size: 16px; padding-top: 2px; }
  .annals__item > div { font-size: 14px; }
  .annals__tag { font-size: 8px; letter-spacing: 1px; padding: 1px 5px; }

  /* Comic strip: single column stacked */
  .comic { grid-template-columns: 1fr; }
  .comic__panel { min-height: auto; padding: 10px; }
  .comic__figure { font-size: 28px; }

  /* Vintage ad */
  .vad__head { font-size: 22px; }
  .vad__brand { font-size: 28px; letter-spacing: 1px; }
  .vad__shout { font-size: 26px; }

  /* Forecast */
  .forecast__big { font-size: 28px; }

  /* Crossword cells still square, smaller font */
  .cw-cell { font-size: 12px; }
  .cw-cell__num { font-size: 7px; }

  /* Snake canvas scales down */
  #snake { width: 100%; height: auto; max-width: 260px; }

  /* Box padding tighter */
  .box { padding: 10px; margin-bottom: 16px; }
  .box h5 { font-size: 18px; }

  /* Works list: label wraps, badge below */
  .works__label { flex-wrap: wrap; font-size: 10px; letter-spacing: 2px; }
  .works__list li { font-size: 14px; gap: 6px; }
  .works__list em { font-size: 12px; }
  .works__ico { width: 18px; height: 18px; }

  /* Modal full-screen on mobile */
  .modal { padding: 0; align-items: stretch; }
  .modal__paper {
    max-width: none;
    max-height: 100vh;
    height: 100%;
    padding: 48px 18px 24px;
    border: none;
  }
  .modal__paper h2 { font-size: 26px; }
  .modal__close {
    top: 12px; right: 16px;
    font-size: 32px;
    background: var(--paper);
    border: 1px solid var(--rule);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
  }

  /* Hide the ink smudge cursor on touch — it's annoying */
  .smudge { display: none; }

  /* Colophon */
  .colophon { font-size: 10px; letter-spacing: 1px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .masthead h1 { font-size: 34px; }
  h2.headline { font-size: 26px; }
  .vad__brand { font-size: 24px; }
}

/* Touch devices: bigger tap targets, disable hover smudge */
@media (hover: none) {
  .smudge { display: none; }
  .sectionbar a { padding: 6px 10px; }
  .stocks__row { padding: 8px 0; }
}

/* ---------- Headlines ---------- */
.kicker {
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
h2.headline {
  font-family: var(--serif-title);
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: -0.5px;
  cursor: pointer;
}
h2.headline:hover { text-decoration: underline; text-decoration-style: wavy; }
h3.headline {
  font-family: var(--serif-title);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 6px;
  cursor: pointer;
}
h3.headline:hover { text-decoration: underline; }
h4.headline {
  font-family: var(--serif-title);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 4px;
  cursor: pointer;
}
.byline {
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.deck {
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

/* Drop cap on first paragraph of lead story */
.lead p.body:first-of-type::first-letter {
  font-family: var(--serif-head);
  float: left;
  font-size: 68px;
  line-height: 0.82;
  padding: 6px 10px 0 0;
  color: var(--accent);
}

.body {
  text-align: justify;
  hyphens: auto;
  margin: 0 0 12px;
  columns: 1;
}
.lead .body { columns: 2; column-gap: 22px; column-rule: 1px solid var(--paper-edge); }
@media (max-width: 700px) { .lead .body { columns: 1; } }

.article { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px dashed var(--rule); }
.article:last-child { border-bottom: none; }

/* ---------- Photo block ---------- */
.photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--paper-dark);
  border: 1px solid var(--rule);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-head);
  font-size: 42px;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
  /* halftone dots */
  background-image:
    radial-gradient(var(--ink) 18%, transparent 19%),
    radial-gradient(var(--ink) 18%, transparent 19%);
  background-size: 6px 6px;
  background-position: 0 0, 3px 3px;
  opacity: .92;
}

/* Real photograph with newspaper halftone treatment */
.photo--img {
  background-image: none;
  padding: 0;
  opacity: 1;
}
.photo--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.15) brightness(1.02);
  transition: filter .6s ease, transform .6s ease;
}
.photo--img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(26,22,19,0.55) 22%, transparent 23%),
    radial-gradient(rgba(26,22,19,0.55) 22%, transparent 23%);
  background-size: 3px 3px;
  background-position: 0 0, 1.5px 1.5px;
  mix-blend-mode: multiply;
  opacity: .55;
  transition: opacity .6s ease;
}
.photo--img:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.02); }
.photo--img:hover::after { opacity: 0; }
html[data-edition="evening"] .photo--img img { filter: grayscale(1) contrast(1.1) brightness(.85) invert(.05); }
html[data-edition="evening"] .photo--img::after { background-image:
    radial-gradient(rgba(232,220,192,0.4) 22%, transparent 23%),
    radial-gradient(rgba(232,220,192,0.4) 22%, transparent 23%);
  mix-blend-mode: screen; }
.photo__caption {
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}

/* ---------- Portrait (ASCII/SVG) ---------- */
.portrait {
  width: 100%;
  aspect-ratio: 1;
  background: var(--paper-dark);
  border: 2px solid var(--rule);
  padding: 10px;
  font-family: monospace;
  font-size: 10px;
  line-height: 1;
  white-space: pre;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
}

/* ---------- Sidebar boxes ---------- */
.box {
  border: 2px solid var(--rule);
  padding: 14px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.02));
}
.box--double { border-style: double; border-width: 4px; }
.box h5 {
  font-family: var(--serif-head);
  font-size: 22px;
  text-align: center;
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--rule);
  font-weight: 400;
}

/* ---------- Stat blocks ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { text-align: center; padding: 8px 4px; border: 1px solid var(--rule); }
.stat__num {
  font-family: var(--serif-title);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.stat__label {
  font-family: var(--sans-label);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Tech stock index ---------- */
.stocks { font-family: var(--sans-label); font-size: 13px; }
.stocks__row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dotted var(--rule);
  cursor: pointer;
}
.stocks__row:last-child { border-bottom: none; }
.stocks__row:hover { background: var(--paper-dark); }
.stocks__sym { font-weight: 700; letter-spacing: 1px; }
.stocks__val { letter-spacing: 0.5px; }
.stocks__chg--up { color: #2e6f3a; }
.stocks__chg--dn { color: var(--accent); }
html[data-edition="evening"] .stocks__chg--up { color: #7fbf88; }

/* ---------- Weather / Code Forecast ---------- */
.forecast { text-align: center; }
.forecast__big {
  font-family: var(--serif-head);
  font-size: 34px;
  line-height: 1;
  margin: 6px 0;
}
.forecast__label {
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.forecast__rows { text-align: left; margin-top: 10px; }
.forecast__rows div {
  display: flex; justify-content: space-between;
  font-family: var(--sans-label); font-size: 12px;
  padding: 3px 0; border-bottom: 1px dotted var(--rule);
}

/* ---------- Classifieds ---------- */
.classifieds {
  columns: 2;
  column-gap: 16px;
  column-rule: 1px solid var(--rule);
  font-size: 13px;
}
.classifieds .ad {
  break-inside: avoid;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule);
}
.classifieds .ad strong {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--sans-label);
  font-size: 11px;
}

/* ---------- Crossword ---------- */
.crossword {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--rule);
  padding: 2px;
  margin-bottom: 10px;
}
.cw-cell {
  background: var(--paper);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-title);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.cw-cell.black { background: var(--ink); cursor: default; }
.cw-cell.revealed { background: #fff6c9; color: var(--accent); }
html[data-edition="evening"] .cw-cell.revealed { background: #5a4520; color: var(--accent); }
.cw-cell__num {
  position: absolute;
  top: 1px; left: 3px;
  font-family: var(--sans-label);
  font-size: 8px;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ---------- Quote / pull quote ---------- */
.pullquote {
  font-family: var(--serif-title);
  font-size: 24px;
  font-style: italic;
  line-height: 1.3;
  text-align: center;
  padding: 16px 10px;
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  margin: 14px 0;
}
.pullquote::before { content: "\201C"; font-size: 60px; line-height: 0; vertical-align: -18px; color: var(--accent); }
.pullquote::after  { content: "\201D"; font-size: 60px; line-height: 0; vertical-align: -30px; color: var(--accent); }

/* ---------- Footer ---------- */
.colophon {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 4px double var(--rule);
  text-align: center;
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.colophon a { border: none; margin: 0 6px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fadeIn .25s ease;
}
.modal.open { display: flex; }
.modal__paper {
  background: var(--paper);
  color: var(--ink);
  max-width: 720px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border: 2px solid var(--rule);
  padding: 32px 40px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.015) 3px 4px);
}
.modal__close {
  position: absolute;
  top: 10px; right: 14px;
  background: none; border: none;
  font-family: var(--serif-head);
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
}
.modal__kicker {
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.modal__paper h2 {
  font-family: var(--serif-title);
  font-size: 34px;
  margin: 6px 0 10px;
  line-height: 1.1;
}
.modal__paper .body { columns: 1; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Ink smudge (cursor) ---------- */
.smudge {
  position: fixed;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,22,19,0.35), transparent 70%);
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: multiply;
  transition: transform .08s linear;
}
html[data-edition="evening"] .smudge { mix-blend-mode: screen; background: radial-gradient(circle, rgba(232,220,192,0.4), transparent 70%); }

/* ---------- Print ---------- */
@media print {
  .ticker, .edition-toggle, .smudge, .modal, #deadDrop, #wireService { display: none !important; }
  body { background: #fff; }
}

/* ---------- Works list ---------- */
.works { margin: 10px 0 6px; }
.works__group { margin-bottom: 14px; }
.works__label {
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.works__badge {
  font-family: var(--sans-label);
  font-size: 9px;
  letter-spacing: 1.5px;
  background: var(--accent);
  color: var(--paper);
  padding: 2px 6px;
  border-radius: 2px;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.works__list { list-style: none; margin: 0; padding: 0; }
.works__list li {
  padding: 4px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 15px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.works__list li:last-child { border-bottom: none; }
.works__list a {
  font-family: var(--serif-title);
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.works__list a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.works__ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  padding: 2px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 1px 1px 0 var(--rule);
  flex-shrink: 0;
  align-self: center;
  filter: grayscale(.25) contrast(1.05);
  transition: filter .3s ease, transform .3s ease;
}
.works__list li:hover .works__ico { filter: none; transform: scale(1.08) rotate(-2deg); }
html[data-edition="evening"] .works__ico { background: var(--paper-dark); filter: grayscale(.3) brightness(.95); }
.works__list em {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13px;
}
.works__dot { color: var(--accent); font-weight: 700; }
.works__more {
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--serif-head);
  font-size: 16px;
  border-bottom: none !important;
}

/* ---------- Mobile top bar + drawer ---------- */
.mobilebar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
  transition: transform .3s ease;
  box-shadow: 0 2px 0 var(--rule);
}
.mobilebar--hidden { transform: translateY(-120%); }
.mobilebar__btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--serif-head);
  border-radius: 2px;
  min-width: 40px;
  min-height: 36px;
}
.mobilebar__btn:active { background: var(--ink); color: var(--paper); }
.mobilebar__title {
  flex: 1;
  text-align: center;
  font-family: var(--serif-head);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.6);
  opacity: 0;
  transition: opacity .3s ease;
}
.drawer.open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: min(88%, 340px);
  background: var(--paper);
  border-right: 3px double var(--ink);
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.015) 3px 4px);
}
.drawer.open .drawer__panel { transform: translateX(0); }

.drawer__masthead {
  padding: 16px 18px 12px;
  border-bottom: 4px double var(--rule);
  position: relative;
  text-align: center;
}
.drawer__kicker {
  font-family: var(--sans-label);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.drawer__name {
  font-family: var(--serif-head);
  font-size: 24px;
  line-height: 1.1;
  margin-top: 4px;
}
.drawer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  width: 32px; height: 32px;
  font-family: var(--serif-head);
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer__search {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.drawer__search input {
  width: 100%;
  font-family: var(--sans-label);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--paper-dark);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 8px 12px;
  outline: none;
}
.drawer__search input:focus { border-color: var(--accent); background: var(--paper); }

.drawer__nav {
  padding: 6px 0 14px;
  flex: 1;
}
.drawer__heading {
  font-family: var(--sans-label);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 14px 18px 4px;
  border-bottom: 1px solid var(--rule);
  margin: 0 10px 4px;
}
.drawer__nav a {
  display: block;
  padding: 11px 18px;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--serif-title);
  font-size: 15px;
  color: var(--ink);
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.drawer__nav a:hover,
.drawer__nav a:active {
  background: var(--paper-dark);
  border-left-color: var(--accent);
  color: var(--accent);
}

.drawer__footer {
  padding: 14px 18px 22px;
  border-top: 2px solid var(--rule);
}
.drawer__edition {
  width: 100%;
  padding: 10px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

/* Mobile drawer results overlay */
.drawer__search-results {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  max-height: 0;
  overflow-y: auto;
  transition: max-height .2s ease;
}
.drawer__search-results.open { max-height: 280px; border-bottom: 1px solid var(--rule); }
.drawer__search-results .sr { width: 100%; }

/* Show the mobile bar only on phones */
@media (max-width: 600px) {
  .mobilebar { display: flex; }
  /* When the mobile bar is visible, the desktop section bar can still be there but less prominent */
  .sectionbar { margin-top: 10px; }
}

/* Prevent body scroll when drawer open */
body.drawer-open { overflow: hidden; }


.searchbar {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}
.searchbar input {
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--paper-dark);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  width: 220px;
  outline: none;
  transition: background .2s, border-color .2s;
}
.searchbar input:focus { background: var(--paper); border-color: var(--accent); }
.searchbar input::placeholder { color: var(--ink-soft); letter-spacing: 2px; }
.searchbar__results {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 300px;
  max-width: 380px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--paper);
  border: 2px solid var(--rule);
  border-top: none;
  padding: 4px 0;
  display: none;
  z-index: 50;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.searchbar__results.open { display: block; }
.searchbar__results .sr {
  display: block;
  padding: 8px 14px;
  border-bottom: 1px dotted var(--rule);
  font-family: var(--serif-body);
  font-size: 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}
.searchbar__results .sr:hover,
.searchbar__results .sr.active {
  background: var(--paper-dark);
  border-left-color: var(--accent);
}
.searchbar__results .sr__kicker {
  font-family: var(--sans-label);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.searchbar__results .sr__title {
  font-family: var(--serif-title);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.searchbar__results .sr__snip {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.35;
  font-style: italic;
}
.searchbar__results .sr mark {
  background: #fff6c9;
  color: var(--accent);
  padding: 0 2px;
}
html[data-edition="evening"] .searchbar__results .sr mark { background: #5a4520; }
.searchbar__empty {
  padding: 14px;
  text-align: center;
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.search-hit {
  animation: flashHit 1.8s ease;
}
@keyframes flashHit {
  0%, 40% { background: rgba(139,0,0,0.12); }
  100%    { background: transparent; }
}

/* ---------- The Annals (timeline) ---------- */
.annals {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  position: relative;
}
.annals::before {
  content: "";
  position: absolute;
  left: 78px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: var(--rule);
}
.annals__item {
  display: grid;
  grid-template-columns: 60px 30px 1fr;
  gap: 0 14px;
  padding: 10px 0;
  align-items: start;
  position: relative;
}
.annals__item::before {
  content: "";
  position: absolute;
  left: 73px;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper);
}
.annals__item--now::before {
  background: var(--accent);
  border-color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px var(--paper); } 50% { box-shadow: 0 0 0 6px rgba(139,0,0,0.25); } }
.annals__year {
  font-family: var(--serif-head);
  font-size: 20px;
  color: var(--accent);
  text-align: right;
  line-height: 1;
  padding-top: 4px;
  letter-spacing: 0;
  white-space: nowrap;
  grid-column: 1;
}
.annals__item > div {
  grid-column: 3;
  font-size: 15px;
  line-height: 1.5;
}
.annals__tag {
  display: inline-block;
  font-family: var(--sans-label);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 1px 6px;
  margin: 6px 4px 0 0;
  color: var(--ink-soft);
  background: var(--paper-dark);
}

/* ---------- Obituaries ---------- */
.obit li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 14px;
  line-height: 1.45;
}
.obit li::before { content: "✝ "; color: var(--accent); margin-right: 4px; }
.obit li:last-child { border-bottom: none; }
.obit__dates { font-family: var(--sans-label); font-size: 11px; letter-spacing: 1.5px; color: var(--ink-soft); }
.obit em { color: var(--ink-soft); }

/* ---------- Horoscope ---------- */
.sign-select {
  width: 100%;
  font-family: var(--serif-body);
  background: var(--paper-dark);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 6px 8px;
  font-size: 14px;
}

/* ---------- Comic strip ---------- */
.comic { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.comic__panel {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 8px 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 130px;
}
.comic__bubble {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 6px 8px;
  font-size: 10px;
  line-height: 1.25;
  font-family: var(--serif-body);
  margin-bottom: 6px;
  max-width: 100%;
}
.comic__bubble::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 14px;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.comic__bubble::before {
  content: "";
  position: absolute;
  bottom: -5px; left: 16px;
  border: 4px solid transparent;
  border-top-color: var(--paper);
  z-index: 1;
}
.comic__bubble--r::after { left: auto; right: 14px; }
.comic__bubble--r::before { left: auto; right: 16px; }
.comic__figure {
  font-family: monospace;
  font-size: 24px;
  margin-top: auto;
  margin-bottom: 4px;
}
.comic__label {
  font-family: var(--sans-label);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  border-top: 1px solid var(--rule);
  padding-top: 3px;
  width: 100%;
  text-align: center;
}
.link-btn {
  background: none; border: none;
  color: var(--accent);
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* ---------- Vintage Ad ---------- */
.vad {
  border: 3px double var(--ink);
  padding: 12px 10px;
  text-align: center;
  background: var(--paper);
  background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,0.02) 6px 7px);
  font-family: var(--serif-body);
}
.vad__top {
  font-family: var(--sans-label);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.vad__head {
  font-family: var(--serif-head);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 1px;
}
.vad__shout {
  color: var(--accent);
  font-size: 32px;
  display: inline-block;
  animation: wobble 3s ease-in-out infinite;
}
@keyframes wobble { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.vad__sub { font-style: italic; font-size: 12px; margin: 4px 0; }
.vad__brand {
  font-family: var(--serif-head);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--ink);
  margin: 6px 0;
  text-shadow: 2px 2px 0 var(--accent);
}
.vad__brand sup { font-size: 12px; }
.vad__list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  text-align: left;
  display: inline-block;
  font-size: 12px;
}
.vad__list li { margin: 2px 0; }
.vad__price {
  font-family: var(--sans-label);
  font-size: 11px;
  letter-spacing: 2px;
  border-top: 1px solid var(--rule);
  padding-top: 6px;
  margin-top: 6px;
}
.vad__price span {
  font-family: var(--serif-title);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: 0;
}
.vad__fine {
  font-family: var(--sans-label);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-style: italic;
}

/* ---------- Snake Puzzle ---------- */
#snake {
  display: block;
  margin: 0 auto;
  background: var(--paper-dark);
  border: 2px solid var(--ink);
  image-rendering: pixelated;
  max-width: 100%;
}
.snake-ctrl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 8px;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
}
.snake-ctrl button {
  font-family: var(--sans-label);
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 6px 0;
  cursor: pointer;
}
.snake-ctrl button:hover { background: var(--ink); color: var(--paper); }
.snake-ctrl #snakeStart {
  font-size: 11px;
  letter-spacing: 1.5px;
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Utility ---------- */
  text-align: center;
  margin: 10px 0;
  font-family: var(--serif-head);
  color: var(--ink-soft);
  letter-spacing: 8px;
}
.small { font-size: 13px; }
.center { text-align: center; }

/* =========================================================
   Typewriter intro animation
   ========================================================= */
.masthead h1.typing {
  overflow: visible;
  white-space: nowrap;
}
.masthead h1 .tw-ch {
  display: inline-block;
  opacity: 1;
}
.masthead h1 .tw-ch.tw-hidden {
  opacity: 0;
  width: 0;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
}
.masthead h1 .tw-cursor {
  display: inline-block;
  color: var(--accent, #9a1e1e);
  animation: tw-blink 0.6s steps(2, end) infinite;
  margin-left: 4px;
  font-weight: 400;
  vertical-align: baseline;
}
@keyframes tw-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* =========================================================
   Subscription Card (contact form inside modal)
   ========================================================= */
.sub-card {
  margin-top: 18px;
  padding: 20px 22px 22px;
  border: 2px solid var(--ink, #1a1a1a);
  background:
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(0,0,0,0.025) 8px 9px);
  position: relative;
}
.sub-card::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px dashed var(--ink, #1a1a1a);
  pointer-events: none;
}
.sub-card__kicker {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--accent, #9a1e1e);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
}
.sub-card__title {
  font-family: var(--serif-head, 'Playfair Display', Georgia, serif);
  font-weight: 900;
  font-size: 24px;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: 1px;
}
.sub-card__lede {
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
  font-style: italic;
  text-align: center;
  font-size: 14px;
  margin: 0 0 14px;
}
.sub-card hr {
  border: 0;
  border-top: 1px solid var(--ink, #1a1a1a);
  margin: 10px 0 14px;
}
.sub-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.sub-card__field { display: flex; flex-direction: column; gap: 4px; }
.sub-card__field--full { grid-column: 1 / -1; }
.sub-card__label {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink, #1a1a1a);
}
.sub-card__input,
.sub-card__textarea {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 14px;
  border: 0;
  border-bottom: 1.5px solid var(--ink, #1a1a1a);
  background: transparent;
  padding: 6px 2px;
  color: var(--ink, #1a1a1a);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.sub-card__input:focus,
.sub-card__textarea:focus {
  background: rgba(154, 30, 30, 0.06);
}
.sub-card__textarea {
  resize: vertical;
  min-height: 90px;
  border: 1.5px solid var(--ink, #1a1a1a);
  padding: 8px;
  background:
    repeating-linear-gradient(to bottom, transparent 0 23px, rgba(0,0,0,0.08) 23px 24px);
  line-height: 24px;
}
.sub-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.sub-card__stamp {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink, #1a1a1a);
  opacity: 0.7;
  text-transform: uppercase;
}
.sub-card__submit {
  font-family: var(--serif-head, 'Playfair Display', Georgia, serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--ink, #1a1a1a);
  color: var(--paper, #f1e7cf);
  border: 2px solid var(--ink, #1a1a1a);
  padding: 10px 22px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease;
}
.sub-card__submit:hover {
  background: var(--accent, #9a1e1e);
  border-color: var(--accent, #9a1e1e);
}
.sub-card__submit:active { transform: translateY(1px); }
.sub-card__note {
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
  font-size: 12px;
  font-style: italic;
  text-align: center;
  margin: 10px 0 0;
  opacity: 0.75;
}
.sub-card__stamp-mark {
  position: absolute;
  right: -10px;
  top: -12px;
  transform: rotate(14deg);
  border: 2px solid var(--accent, #9a1e1e);
  color: var(--accent, #9a1e1e);
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 4px 10px;
  background: var(--paper, #f1e7cf);
  opacity: 0.85;
}

@media (max-width: 600px) {
  .sub-card__row { grid-template-columns: 1fr; }
  .sub-card { padding: 16px 14px; }
  .sub-card__title { font-size: 20px; }
}

/* Ornament divider between content and footer */
.rule-divider {
  text-align: center;
  font-size: 22px;
  letter-spacing: 14px;
  color: var(--ink, #1a1a1a);
  opacity: 0.6;
  margin: 32px 0 18px;
  padding-right: 14px; /* compensate for right-side letter-spacing */
}

/* SVG wood-cut divider variant (printing press / typewriter / coffee) */
.rule-divider--svg {
  letter-spacing: 0;
  padding-right: 0;
  opacity: 0.8;
  line-height: 0;
}
.rule-divider--svg svg { max-width: 100%; height: auto; }
.rule-divider--svg svg,
.rule-divider--svg g,
.rule-divider--svg line,
.rule-divider--svg rect,
.rule-divider--svg circle,
.rule-divider--svg path {
  color: var(--ink, #1a1a1a);
}
.rule-divider--inline { margin: 18px auto 22px; }

/* Editor's Note — rotating daily note below the lead deck */
.editors-note {
  display: block;
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-left: 3px double var(--ink, #1a1a1a);
  background: rgba(0,0,0,0.03);
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}
.editors-note__label {
  font-family: var(--sans, 'Special Elite', monospace);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-right: 4px;
}
html[data-edition="evening"] .editors-note { background: rgba(255,255,255,0.04); }

/* Weather location chip */
.forecast__loc {
  margin-top: 10px;
  font-family: var(--sans, 'Special Elite', monospace);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.65;
  border-top: 1px dashed currentColor;
  padding-top: 6px;
}

/* Dead Drop (anonymous tip form) */
.dd-form { margin-top: 10px; }
.dd-text {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--ink, #1a1a1a);
  background: var(--paper, #f1e7cf);
  color: var(--ink, #1a1a1a);
  font-family: var(--sans, 'Special Elite', monospace);
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  min-height: 58px;
}
.dd-text:focus { outline: 2px solid var(--accent, #8b2a2a); outline-offset: 2px; }
.dd-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}
.dd-btn {
  font-family: var(--sans, 'Special Elite', monospace);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--ink, #1a1a1a);
  background: var(--paper, #f1e7cf);
  color: var(--ink, #1a1a1a);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dd-btn:hover:not(:disabled) { background: var(--ink, #1a1a1a); color: var(--paper, #f1e7cf); }
.dd-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dd-status {
  margin-top: 6px;
  min-height: 1em;
  font-style: italic;
  opacity: 0.8;
}

/* Wire Service list */
.wire {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.wire__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dotted currentColor;
  font-size: 13px;
  line-height: 1.4;
}
.wire__item:last-child { border-bottom: 0; }
.wire__dot {
  font-size: 8px;
  opacity: 0.7;
  flex: 0 0 auto;
  line-height: 1;
  transform: translateY(-1px);
}
.wire__text { flex: 1 1 auto; }
.wire__text a { text-decoration: underline; }
.wire__when { flex: 0 0 auto; white-space: nowrap; }
.wire__loading { font-style: italic; opacity: 0.6; }

/* =========================================================
   Print stylesheet — a proper printable Gazette
   ========================================================= */
@media print {
  @page {
    size: A4;
    margin: 14mm 14mm 18mm;
  }

  :root, html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
  }

  /* Hide interactive chrome */
  .ticker,
  .mobilebar,
  .drawer,
  .sectionbar,
  .edition-toggle,
  .searchbar__results,
  #searchInput,
  .modal,
  .snake-ctrl,
  #snakeStart,
  #comicNext,
  .link-btn,
  #vintageAd,
  #puzzle,
  #comic,
  #horoscope,
  .mobilebar__btn {
    display: none !important;
  }

  /* Remove paper texture/halftones for toner economy */
  .paper,
  body,
  html {
    background-image: none !important;
    box-shadow: none !important;
  }

  /* Single-column flow for print */
  .grid {
    display: block !important;
  }
  .col {
    width: 100% !important;
    display: block !important;
  }

  /* Articles: prevent awkward breaks */
  article {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 10mm;
  }
  h1, h2, h3, .kicker, .masthead h1 {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Masthead scale for print */
  .masthead h1 {
    font-size: 48pt !important;
    line-height: 1 !important;
    margin: 4mm 0 2mm !important;
  }
  .masthead__top,
  .masthead__sub {
    font-size: 9pt !important;
  }

  /* Photo: show but no halftone overlay */
  .photo--img::after { display: none !important; }
  .photo img { filter: grayscale(1) contrast(1.05); max-width: 60mm; }

  /* Make links readable on paper: print URL next to external links */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    font-style: italic;
    word-break: break-all;
  }
  /* Skip URL printout for internal anchors and data-article modal links */
  a[href^="#"]::after,
  a[data-article]::after {
    content: "";
  }

  /* Dividers print as thin rules */
  .rule-divider {
    letter-spacing: 8px;
    font-size: 14pt;
    opacity: 1;
  }

  /* Colophon sits at the bottom */
  .colophon {
    border-top: 1px solid #000;
    padding-top: 4mm;
    font-size: 9pt;
  }

  /* Typewriter intro — skip animation when printing */
  .masthead h1 .tw-ch.tw-hidden { opacity: 1 !important; width: auto !important; max-width: none !important; }
  .masthead h1 .tw-cursor { display: none !important; }

  /* Expose the full article bodies (unmodaled) is out of scope — printing shows the front page */
}


/* =========================================================
   Evening Edition — refined palette + warm glow
   ========================================================= */
html[data-edition="evening"] {
  --ink: #efe3c6;
  --ink-soft: #b5a37f;
  --paper: #1a1511;
  --paper-dark: #241d17;
  --paper-edge: #3a2e23;
  --accent: #e0b86e;
}
html[data-edition="evening"] body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(224, 184, 110, 0.08), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(224, 184, 110, 0.06), transparent 60%),
    var(--paper);
}
html[data-edition="evening"] .paper {
  box-shadow: 0 0 0 1px rgba(224, 184, 110, 0.12), 0 30px 80px rgba(0, 0, 0, 0.5);
}
html[data-edition="evening"] a {
  border-bottom-color: rgba(224, 184, 110, 0.35);
}
html[data-edition="evening"] .photo--img::after {
  /* softer halftone overlay at night */
  opacity: 0.35;
}
html[data-edition="evening"] .box {
  border-color: rgba(239, 227, 198, 0.65);
}
html[data-edition="evening"] .ticker {
  border-color: rgba(239, 227, 198, 0.3);
}
html[data-edition="evening"] mark {
  background: rgba(224, 184, 110, 0.35);
  color: inherit;
}

/* =========================================================
   Footer sound toggle — styled like the footer links
   ========================================================= */
.colophon .link-btn {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-bottom: 1px dotted currentColor;
}
.colophon .link-btn:hover { color: var(--accent); border-bottom-style: solid; text-decoration: none; }
.colophon .link-btn[aria-pressed="false"] { opacity: 0.6; }

/* =========================================================
   Letters to the Editor
   ========================================================= */
#letters .letters__intro {
  margin: 0 0 10px;
  font-style: italic;
  opacity: 0.75;
}
.letters__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.letters__item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink-soft);
}
.letters__loading {
  padding: 10px 0;
  font-style: italic;
  opacity: 0.6;
}
.letters__title {
  font-family: var(--serif-head, 'Playfair Display', Georgia, serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.letters__body {
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
  font-size: 13px;
  line-height: 1.45;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.letters__sig {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 4px;
  opacity: 0.7;
}
.letters__foot {
  margin: 12px 0 0;
  font-style: italic;
}

/* =========================================================
   Comics Archive page
   ========================================================= */
.comic-archive {
  margin-top: 20px;
  display: grid;
  gap: 28px;
}
.comic-archive__issue {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.comic-archive__title {
  font-family: var(--serif-head, 'Playfair Display', Georgia, serif);
  font-weight: 900;
  font-size: 22px;
  text-align: center;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.comic-archive .comic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .comic-archive .comic {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Utility classes (replacing inline styles)
   ========================================================= */
.u-mt-4   { margin-top: 4px; }
.u-mt-6   { margin-top: 6px; }
.u-mt-8   { margin-top: 8px; }
.u-mt-10  { margin-top: 10px; }
.u-mb-6   { margin-bottom: 6px; }
.u-mb-8   { margin-bottom: 8px; }
.u-m0     { margin: 0; }
.u-m0-6   { margin: 0 0 6px; }
.u-m0-8   { margin: 0 0 8px; }
.u-m6-0   { margin: 6px 0 0; }
.u-m8-0   { margin: 8px 0 0; }
.u-hide   { display: none !important; }
.u-italic { font-style: italic; }
.u-muted  { opacity: 0.6; }
.u-muted-2{ opacity: 0.7; }

.u-list-plain { padding-left: 18px; margin: 8px 0 0; }
.u-works-small { font-size: 13px; }

/* =========================================================
   Classifieds extras
   ========================================================= */
.classifieds__head {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
  margin: 0 0 8px;
  opacity: 0.85;
}
.classifieds__foot {
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
  font-style: italic;
  font-size: 12px;
  text-align: center;
  margin: 10px 0 0;
  opacity: 0.75;
  border-top: 1px dashed var(--ink-soft);
  padding-top: 8px;
}

/* =========================================================
   Edition / Commit stamp in colophon
   ========================================================= */
.colophon__edition {
  margin-top: 8px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0.55;
  text-transform: uppercase;
}
.colophon__edition code {
  font-family: inherit;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 1px;
}

/* =========================================================
   On This Day source/link
   ========================================================= */
.otd__source {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 8px;
  text-align: right;
}

/* =========================================================
   Real mini-crossword
   ========================================================= */
#crossword {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--ink);
  padding: 2px;
  max-width: 220px;
  margin: 0 auto 8px;
  border: 2px solid var(--ink);
}
.cw-cell {
  aspect-ratio: 1;
  background: var(--paper);
  position: relative;
  font-family: var(--serif-head, 'Playfair Display', Georgia, serif);
  font-weight: 700;
}
.cw-cell--block { background: var(--ink); }
.cw-cell__num {
  position: absolute;
  top: 1px;
  left: 2px;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 9px;
  font-weight: 400;
  opacity: 0.7;
}
.cw-cell input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--ink);
  caret-color: var(--accent);
  padding: 0;
}
.cw-cell input:focus {
  background: rgba(154, 30, 30, 0.08);
  outline: none;
}
.cw-cell--solved input { color: var(--accent); }
.cw-clues {
  margin-top: 8px;
  font-size: 12px;
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
}
.cw-clues dt {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 6px;
}
.cw-clues dd { margin: 2px 0 0; padding: 0; }
.cw-status {
  margin-top: 8px;
  text-align: center;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  min-height: 14px;
}


/* Featured Ad of the Day */
.ad--featured {
  border-left: 3px solid var(--accent);
  padding-left: 8px;
  background: rgba(154, 30, 30, 0.04);
  position: relative;
}
.ad--featured::before {
  content: "★";
  position: absolute;
  right: 6px;
  top: 4px;
  color: var(--accent);
  font-size: 12px;
  opacity: 0.7;
}
html[data-edition="evening"] .ad--featured { background: rgba(224, 184, 110, 0.08); }


/* =========================================================
   Hiring Signal box — availability indicator
   ========================================================= */
.hiring {
  text-align: center;
  position: relative;
}
.hiring__light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #b45b2e;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink), 0 0 12px currentColor;
  animation: hiring-pulse 2.4s ease-in-out infinite;
}
.hiring[data-status="available"] .hiring__light { background: #2f7a3e; color: #2f7a3e; }
.hiring[data-status="booked"]    .hiring__light { background: #c4933a; color: #c4933a; animation-duration: 3.6s; }
.hiring[data-status="quiet"]     .hiring__light { background: #8b2a2a; color: #8b2a2a; animation: none; }
@keyframes hiring-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.7; }
}
.hiring__status {
  font-family: var(--sans-label, 'Special Elite', monospace);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 6px;
}
.hiring[data-status="available"] .hiring__status { color: #2f7a3e; }
.hiring[data-status="booked"]    .hiring__status { color: #8a651f; }
.hiring[data-status="quiet"]     .hiring__status { color: #8b2a2a; }
html[data-edition="evening"] .hiring[data-status="available"] .hiring__status { color: #7fce8e; }
html[data-edition="evening"] .hiring[data-status="booked"]    .hiring__status { color: #e3b76a; }
html[data-edition="evening"] .hiring[data-status="quiet"]     .hiring__status { color: #e58a8a; }

/* =========================================================
   Clip / share buttons on articles
   ========================================================= */
.clip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  padding: 3px 10px 3px 8px;
  background: var(--paper, #f1e7cf);
  border: 1px dashed var(--ink, #1a1a1a);
  color: var(--ink, #1a1a1a);
  font-family: var(--sans-label, 'Special Elite', monospace);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.clip-btn:hover { background: var(--ink, #1a1a1a); color: var(--paper, #f1e7cf); transform: translateY(-1px); }
.clip-btn__icon { transform: rotate(-15deg); font-size: 12px; }
.clip-btn--copied { background: var(--accent, #8b2a2a); color: var(--paper, #f1e7cf); border-style: solid; }

/* =========================================================
   Keyboard shortcuts modal
   ========================================================= */
.kb-modal { max-width: 560px; }
.kb-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin: 14px 0 10px;
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
  font-size: 15px;
  line-height: 1.5;
}
.kb-list dt { white-space: nowrap; }
.kb-list dd { margin: 0; }
kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: var(--sans-label, 'Special Elite', monospace);
  font-size: 12px;
  background: var(--paper, #f1e7cf);
  border: 1px solid var(--ink, #1a1a1a);
  border-radius: 3px;
  box-shadow: 1px 1px 0 var(--ink, #1a1a1a);
  color: var(--ink, #1a1a1a);
  min-width: 20px;
  text-align: center;
}

/* =========================================================
   Newsflash overlay (konami + ?-triggered)
   ========================================================= */
.newsflash {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
  padding: 20px;
  pointer-events: none;
}
.newsflash[hidden] { display: none !important; }
.newsflash.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}
.newsflash__paper {
  background: var(--paper, #f1e7cf);
  color: var(--ink, #1a1a1a);
  border: 3px double var(--ink, #1a1a1a);
  padding: 28px 34px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  transform: scale(0.92) rotate(-1.2deg);
  transition: transform 0.35s cubic-bezier(.2,1.4,.5,1);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.35);
}
.newsflash.open .newsflash__paper { transform: scale(1) rotate(-1.2deg); }
.newsflash__kicker {
  font-family: var(--sans-label, 'Special Elite', monospace);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent, #8b2a2a);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.newsflash__head {
  font-family: var(--serif-head, 'Playfair Display', serif);
  font-weight: 900;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin: 6px 0 10px;
  text-transform: uppercase;
}
.newsflash__deck {
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.newsflash__close {
  font-family: var(--sans-label, 'Special Elite', monospace);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 16px;
  background: var(--ink, #1a1a1a);
  color: var(--paper, #f1e7cf);
  border: 1px solid var(--ink, #1a1a1a);
  cursor: pointer;
}
.newsflash__close:hover { background: var(--accent, #8b2a2a); border-color: var(--accent, #8b2a2a); }

/* =========================================================
   Paper-aging on scroll — subtle yellowing via --paper-age
   ========================================================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 10%, rgba(176, 133, 70, calc(var(--paper-age, 0) * 0.08)) 0%, transparent 65%);
  mix-blend-mode: multiply;
  z-index: 1;
  transition: background 0.18s linear;
}
html[data-edition="evening"] body::before {
  background: radial-gradient(ellipse at 50% 10%, rgba(80, 50, 20, calc(var(--paper-age, 0) * 0.14)) 0%, transparent 65%);
}

@media print {
  .clip-btn, .newsflash, #kbModal, .hiring__light { display: none !important; }
  body::before { display: none; }
}


/* =========================================================
   404 page specifics
   ========================================================= */
.err404 {
  font-family: var(--serif-head, 'Playfair Display', serif);
  font-weight: 900;
  font-size: 92px;
  line-height: 1;
  letter-spacing: -2px;
  text-align: center;
  margin: 20px 0 10px;
}
.err404-sub {
  text-align: center;
  font-style: italic;
  opacity: 0.75;
  margin-top: -4px;
}
.err404-reasons { margin-top: 4px; }
.err404-lead { margin-top: 18px; }
.err404-home {
  margin: 22px 0 10px;
}
.err404-home a {
  font-family: var(--serif-head, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.err404-links { margin: 6px 0 20px; }


/* =========================================================
   Field Reports — preview cards (CSS-only mock browser)
   ========================================================= */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}
.preview {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink, #1a1a1a);
  background: var(--paper, #f1e7cf);
  border: 1px solid var(--ink, #1a1a1a);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
}
.preview:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.22);
}
.preview:focus-visible {
  outline: 2px solid var(--accent, #8b2a2a);
  outline-offset: 2px;
}
.preview__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #d7cdb5;
  border-bottom: 1px solid var(--ink, #1a1a1a);
  font-family: var(--sans-label, 'Special Elite', monospace);
  font-size: 11px;
}
html[data-edition="evening"] .preview__chrome { background: #2a241c; }
.preview__chrome i {
  width: 9px; height: 9px; border-radius: 50%;
  background: #bbb;
  border: 1px solid rgba(0,0,0,0.25);
  display: inline-block;
}
.preview__chrome i:nth-child(1) { background: #e06c5a; }
.preview__chrome i:nth-child(2) { background: #e2b64c; }
.preview__chrome i:nth-child(3) { background: #6fae5c; }
.preview__chrome span {
  flex: 1;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--paper, #f1e7cf);
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 2px;
  color: var(--ink, #1a1a1a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  opacity: 0.85;
}
.preview__shot {
  position: relative;
  padding: 26px 18px 30px;
  min-height: 140px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg,
      hsl(var(--hue, 32), 55%, 38%) 0%,
      hsl(calc(var(--hue, 32) + 30), 65%, 48%) 100%);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 6px),
    linear-gradient(135deg,
      hsl(var(--hue, 32), 55%, 38%) 0%,
      hsl(calc(var(--hue, 32) + 30), 65%, 48%) 100%);
}
.preview__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.preview__img[src] { opacity: 1; }
.preview__shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    hsla(var(--hue, 32), 55%, 15%, 0.20) 0%,
    hsla(var(--hue, 32), 55%, 10%, 0.55) 55%,
    hsla(var(--hue, 32), 55%, 8%, 0.85) 100%);
}
html[data-edition="evening"] .preview__img { filter: saturate(0.85) brightness(0.85); }
.preview[data-hue="180"] { --hue: 180; }
.preview[data-hue="32"]  { --hue: 32; }
.preview[data-hue="210"] { --hue: 210; }
.preview[data-hue="12"]  { --hue: 12; }
.preview[data-hue="45"]  { --hue: 45; }
.preview[data-hue="260"] { --hue: 260; }
.preview__title {
  font-family: var(--serif-head, 'Playfair Display', serif);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.preview__deck {
  margin-top: 6px;
  font-style: italic;
  font-size: 13px;
  opacity: 0.92;
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.preview__cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid rgba(0,0,0,0.15);
  font-family: var(--sans-label, 'Special Elite', monospace);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.preview__tag { opacity: 0.8; }
.preview__live {
  color: var(--accent, #8b2a2a);
  font-weight: 700;
  letter-spacing: 2px;
}

/* =========================================================
   Readers today pill (masthead)
   ========================================================= */
.readers-today {
  font-family: var(--sans-label, 'Special Elite', monospace);
}

/* =========================================================
   Toast (press clipboard)
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 16px);
  background: var(--ink, #1a1a1a);
  color: var(--paper, #f1e7cf);
  padding: 10px 18px;
  border: 1px solid var(--ink, #1a1a1a);
  box-shadow: 3px 3px 0 var(--accent, #8b2a2a);
  font-family: var(--serif-body, 'Old Standard TT', Georgia, serif);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(.2,1.4,.5,1);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
}
.toast[hidden] { display: none; }
.toast.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast__mark {
  font-family: var(--sans-label, 'Special Elite', monospace);
  color: var(--accent, #ff7a66);
  font-size: 16px;
  font-weight: 700;
}

@media print {
  .preview-grid, .toast { display: none !important; }
}
