:root {
  --paper: #ece0c6;
  --paper-light: #f4ebd7;
  --paper-deep: #d9c59f;
  --ink: #17120d;
  --ink-soft: #2c231a;
  --ink-muted: #5a4c3b;
  --rule: #231b13;
  --crimson: #6e1714;
  --brass: #8a6324;
  --emerald: #2d6a4f;
  --frame-bg: #d5c19e;
  --font-masthead: "Playfair Display SC", "Playfair Display", Georgia, serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-condensed: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "PT Serif", Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  --paper: #16130f;
  --paper-light: #201c16;
  --paper-deep: #2a241c;
  --ink: #ece0c6;
  --ink-soft: #d5c7ab;
  --ink-muted: #9e8f77;
  --rule: #463c2e;
  --crimson: #d95d54;
  --brass: #c99d4e;
  --emerald: #4da379;
  --frame-bg: #262018;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  min-height: 100dvh;
}

body {
  margin: 0;
  padding: 10px 10px 24px;
  background: #17120d;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.svg-ico {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

.svg-ico--lg {
  width: 20px;
  height: 20px;
}

/* Weather ambient overlay */
.weather-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.weather-fx.fx-rain {
  opacity: 0.22;
  background-image: repeating-linear-gradient(
    -75deg,
    transparent 0 18px,
    rgba(235, 226, 208, 0.22) 18px 19px
  );
  animation: fx-fall 0.85s linear infinite;
}

.weather-fx.fx-snow {
  opacity: 0.28;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff 60%, transparent),
    radial-gradient(2px 2px at 80px 90px, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 140px 50px, #fff 60%, transparent);
  background-size: 160px 140px;
  animation: fx-drift 7s linear infinite;
}

.weather-fx.fx-fog {
  opacity: 0.2;
  background: linear-gradient(180deg, rgba(220, 214, 200, 0.42), transparent 45%, rgba(220, 214, 200, 0.2));
}

.weather-fx.fx-storm {
  opacity: 0.26;
  background-image: repeating-linear-gradient(
    -72deg,
    transparent 0 14px,
    rgba(245, 238, 216, 0.28) 14px 15px
  );
  animation: fx-fall 0.55s linear infinite;
}

@keyframes fx-fall {
  from { background-position: 0 0; }
  to { background-position: -24px 48px; }
}

@keyframes fx-drift {
  from { background-position: 0 0; }
  to { background-position: 30px 140px; }
}

@keyframes skel-pulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.78; }
}

@media (prefers-reduced-motion: reduce) {
  .weather-fx, .skel-bar, .skel-media, .skel-row { animation: none !important; }
}

/* Broadsheet Paper Sheet */
.sheet {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(14px, 2.8vw, 30px);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 18%, rgba(255, 250, 238, 0.44) 0%, rgba(160, 128, 82, 0.26) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), inset 0 0 56px rgba(78, 54, 24, 0.22);
  border: 2px solid #9f8964;
  outline: 1px solid var(--rule);
  outline-offset: -7px;
}

/* Web-only Back Bar */
.web-back-bar {
  margin: -4px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(35, 27, 19, 0.35);
}

.web-back-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-condensed);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Compact MinaLima Masthead + Top-Right Action Icons */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 76px 10px;
  border-bottom: 4px double var(--rule);
}

.masthead-brand {
  text-align: center;
  min-width: 0;
}

.paper-name {
  margin: 0;
  font-family: var(--font-masthead);
  font-weight: 900;
  font-size: clamp(1.38rem, 4.4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255, 252, 240, 0.45);
}

.motto {
  margin: 3px 0 0;
  font-style: italic;
  font-size: clamp(0.72rem, 1.25vw, 0.88rem);
  color: var(--ink-muted);
}

.masthead-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  appearance: none;
  border: 1px solid rgba(35, 27, 19, 0.45);
  background: rgba(255, 250, 240, 0.42);
  color: var(--ink);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Top Reading Progress Bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(23, 18, 13, 0.14);
}

.read-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brass);
  transition: width 0.08s linear;
}

/* Top Newspaper Dateline */
.masthead-dateline {
  margin: -2px 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(35, 27, 19, 0.35);
  text-align: center;
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Single Thin Date + Weather Line */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 6px 2px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--rule);
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Meduza / Guardian Section Ribbon */
.section-ribbon {
  display: flex;
  align-items: center;
  gap: 4px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 2px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(35, 27, 19, 0.35);
}

.section-ribbon::-webkit-scrollbar { display: none; }

.ribbon-tab {
  flex-shrink: 0;
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 2px 6px;
  cursor: pointer;
  white-space: nowrap;
}

.ribbon-tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}

.ribbon-tab--puzzle {
  margin-left: auto;
  color: var(--brass);
  font-weight: 700;
}

.rumor-tag {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--crimson);
  color: var(--crimson);
  font-family: var(--font-condensed);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  vertical-align: 1px;
  margin-left: 5px;
}

.feed-empty {
  margin: 22px 0;
  text-align: center;
  font-style: italic;
  color: var(--ink-muted);
}

.weather-loc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.weather-loc-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 2px 4px;
  cursor: pointer;
  border-bottom: 1px dotted rgba(35, 27, 19, 0.5);
}

.weather-dispatch {
  padding: 7px 10px;
  margin: -2px 0 8px;
  border-left: 2px solid var(--brass);
  background: rgba(255, 250, 240, 0.48);
  font-size: 0.84rem;
  font-style: italic;
  color: var(--ink-soft);
}

.search-drawer {
  padding: 4px 0 10px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 8px 34px 8px 11px;
  border: 1px solid var(--rule);
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: 0;
}

.search-clear {
  position: absolute;
  right: 6px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-count {
  margin-top: 4px;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hbo-countdown {
  margin: -8px 0 14px;
  padding: 7px 12px;
  border: 1px solid var(--brass);
  background: rgba(154, 111, 47, 0.08);
  text-align: center;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.feed-skeleton {
  display: grid;
  gap: 12px;
  padding: 6px 0 14px;
}

.skel-bar,
.skel-media,
.skel-row {
  background: rgba(42, 33, 24, 0.12);
  animation: skel-pulse 1.3s ease-in-out infinite;
}

.skel-bar { height: 16px; }
.skel-bar--title { height: 34px; width: 88%; }
.skel-bar--short { width: 64%; }
.skel-media { aspect-ratio: 16 / 10; width: 100%; }
.skel-row { height: 74px; border-top: 1px solid rgba(42, 33, 24, 0.14); }

.new-tag {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--brass);
  background: rgba(154, 111, 47, 0.14);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  vertical-align: 1px;
  margin-left: 5px;
}

.saved-pin {
  display: inline-flex;
  align-items: center;
  color: var(--brass);
  margin-left: 5px;
  vertical-align: -2px;
}

.saved-pin .svg-ico { width: 13px; height: 13px; }

.lead-card.is-read .lead-headline,
.story-row.is-read .story-headline {
  color: var(--ink-muted);
}

/* MinaLima Black-Bar Kicker */
.kicker {
  margin: 0 0 16px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(0.74rem, 1.3vw, 0.88rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--brass);
}

.kicker--breaking {
  background: var(--crimson);
  border-color: #d9b677;
}

/* NYTimes Lead Story (Front Page) */
.lead-card {
  cursor: pointer;
  padding-bottom: 18px;
  border-bottom: 3px double var(--rule);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.section-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-tag--breaking {
  background: var(--crimson);
}

.source-pill {
  font-family: var(--font-condensed);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lead-headline {
  margin: 0 0 12px;
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.68rem, 4.1vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.015em;
  overflow-wrap: break-word;
}

.lead-card:hover .lead-headline,
.story-row:hover .story-headline {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.lead-deck {
  margin: 10px 0 0;
  font-size: clamp(0.95rem, 1.55vw, 1.06rem);
  line-height: 1.44;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Photo & Moving Living Clip Frames */
.photo-figure { margin: 0; }

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--rule);
  padding: 3px;
  background: var(--frame-bg);
  overflow: hidden;
}

.photo-frame--video {
  aspect-ratio: 16 / 9;
}

.photo-frame--vertical {
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin: 0 auto;
}

.photo-figure--vertical .photo-caption {
  text-align: center;
}

.photo-frame img,
.photo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame img {
  filter: sepia(14%) contrast(1.04) brightness(0.98);
}

.photo-frame--zoomable {
  cursor: zoom-in;
}

.photo-frame video {
  filter: sepia(10%) contrast(1.03);
}

.photo-frame iframe.yt-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 6px;
  background: rgba(23, 18, 13, 0.84);
  color: #ece0c6;
  border: 1px solid rgba(236, 224, 198, 0.45);
  font-family: var(--font-condensed);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  pointer-events: none;
}

.photo-caption {
  margin-top: 6px;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-muted);
}

/* Compact Guardian / Meduza Newspaper List (Desktop 2-col, Mobile 1-col rows) */
.feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.feed-list .puzzle-teaser {
  grid-column: 1 / -1;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(35, 27, 19, 0.38);
  cursor: pointer;
}

.story-row.story-row--no-thumb {
  grid-template-columns: minmax(0, 1fr);
}

.story-text { min-width: 0; }

.story-meta {
  margin: 0 0 5px;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.story-meta--breaking {
  color: var(--crimson);
  font-weight: 700;
}

.story-headline {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.story-deck {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.38;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-thumb {
  position: relative;
  width: 108px;
  height: 80px;
  border: 1px solid var(--rule);
  padding: 2px;
  background: var(--frame-bg);
  overflow: hidden;
}

.story-thumb img,
.story-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-thumb .video-badge {
  top: 4px;
  left: 4px;
  font-size: 0.58rem;
  padding: 1px 4px;
}

/* Full-Screen Reader (Telegraph Instant View / Meduza) */
.reader {
  max-width: 660px;
  margin: 0 auto;
  padding: 4px 0 12px;
}

.reader-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.reader-font-controls {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
}

.font-step-btn {
  appearance: none;
  border: 1px solid rgba(35, 27, 19, 0.55);
  background: rgba(255, 250, 240, 0.45);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  cursor: pointer;
}

.font-step-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.reader-headline {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.62rem, 4.2vw, 2.35rem);
  line-height: 1.12;
  overflow-wrap: break-word;
}

.reader-deck {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.42;
  color: var(--ink-soft);
}

.reader-byline {
  margin: 0 0 16px;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid rgba(35, 27, 19, 0.35);
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reader-media {
  margin-bottom: 18px;
}

.reader-body {
  display: flow-root;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.72;
}

.reader[data-font-scale="sm"] .reader-body { font-size: 0.94rem; }
.reader[data-font-scale="lg"] .reader-body { font-size: 1.18rem; }

.reader-body p { margin: 0 0 1.05em; }
.reader-body p:last-child { margin-bottom: 0; }

.dropcap p:first-child::first-letter {
  float: left;
  font-family: var(--font-masthead);
  font-weight: 900;
  font-size: 2.7em;
  line-height: 0.88;
  padding: 6px 9px 4px;
  margin: 4px 10px 2px 0;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--brass);
}

.reader-source-row {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(35, 27, 19, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-link {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reader-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reaction-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.react-btn {
  appearance: none;
  border: 1px solid rgba(35, 27, 19, 0.55);
  background: rgba(255, 250, 240, 0.45);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  min-width: 36px;
  height: 34px;
  padding: 0 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.14s ease, color 0.14s ease;
}

.react-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--brass);
}

.reader-right-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.share-btn {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  height: 34px;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.modal-typo-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
}

/* Settings & Editorial Desk Panels */
.panel-card {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 24px);
  border: 3px double var(--rule);
  background: rgba(255, 249, 236, 0.42);
}

.panel-head {
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--rule);
}

.panel-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  margin: 0 0 4px;
  font-family: var(--font-masthead);
  font-weight: 900;
  font-size: clamp(1.32rem, 3vw, 1.65rem);
  letter-spacing: 0.03em;
}

.panel-sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.save-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  background: var(--emerald);
  color: #f4ebd7;
  font-family: var(--font-condensed);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-condensed);
  font-size: 0.84rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field {
  margin-bottom: 18px;
  position: relative;
}

.field-hint {
  margin: 7px 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.35;
}

.field--last { margin-bottom: 0; }
.input-wrap { position: relative; }

.field-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field input[type="text"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: 0;
}

.field textarea {
  min-height: 120px;
  resize: none;
}

.city-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  background: var(--paper-light);
  border: 1px solid var(--rule);
  border-top: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  max-height: 220px;
  overflow-y: auto;
}

.city-option {
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  border-bottom: 1px dashed rgba(42, 33, 24, 0.25);
  background: transparent;
  color: var(--ink);
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.city-option:hover { background: var(--paper-deep); }

.city-option-tz {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.chip-btn {
  appearance: none;
  border: 1px solid rgba(42, 33, 24, 0.6);
  background: rgba(255, 250, 240, 0.55);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 10px;
  cursor: pointer;
}

.chip-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--brass);
}

.hour-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.quiet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hour-grid .seg-btn,
.quiet-grid .seg-btn {
  min-width: 0;
  padding: 8px 6px;
}

.segmented {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.seg-btn {
  flex: 1;
  min-width: 92px;
  appearance: none;
  border: 1px solid var(--rule);
  background: rgba(255, 250, 240, 0.55);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
}

.seg-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--brass);
}

/* Rounded Pill Toggle Switch */
.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  background: rgba(255, 250, 240, 0.45);
  cursor: pointer;
}

.toggle-title {
  font-family: var(--font-condensed);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.toggle-state {
  font-family: var(--font-condensed);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toggle-state.is-on { color: var(--emerald); }

.switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c5b394;
  border: 1px solid var(--rule);
  transition: background 0.18s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fdf7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.switch input:checked + .switch-track {
  background: var(--emerald);
  border-color: #1f4b37;
}

.switch input:checked + .switch-track::after {
  transform: translateX(22px);
}

.btn-primary {
  appearance: none;
  width: 100%;
  border: 1px solid var(--brass);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-condensed);
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
}

.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.status-msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--ink);
  background: rgba(26, 21, 16, 0.07);
  font-size: 0.92rem;
}

.status-msg.is-error {
  border-left-color: var(--crimson);
  color: var(--crimson);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(92vw, 440px);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--brass);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  font-family: var(--font-condensed);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.toast.is-error { background: var(--crimson); }

.paper-footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 3px double var(--rule);
  text-align: center;
  font-family: var(--font-condensed);
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Back Page Crossword & Daily Riddle */
.puzzle-teaser {
  margin-top: 20px;
  padding: 14px 16px;
  border-top: 3px double var(--rule);
  border-bottom: 3px double var(--rule);
  background: rgba(255, 250, 240, 0.48);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.puzzle-eyebrow {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.puzzle-teaser-title {
  margin: 2px 0 3px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.2;
}

.puzzle-teaser-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.puzzle-open-btn {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
}

.crossword-view {
  max-width: 480px;
  margin: 0 auto;
}

.xword-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--rule);
}

.xword-head-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xword-archive-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0 4px;
}

.xword-archive-strip::-webkit-scrollbar { display: none; }

.xword-date-pill {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid var(--rule);
  background: rgba(255, 250, 240, 0.55);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.xword-date-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--brass);
}

.xword-date-pill .svg-ico { width: 12px; height: 12px; }

.xword-victory {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 2px solid var(--brass);
  background: rgba(31, 90, 58, 0.11);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.xword-victory-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.xword-victory-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--emerald);
}

.xword-victory-meta {
  font-family: var(--font-condensed);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px));
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 8, 0.92);
}

.lightbox-close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 2;
  appearance: none;
  border: 1px solid rgba(236, 224, 198, 0.45);
  background: rgba(24, 19, 14, 0.85);
  color: #f2e8d2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(94vw, 860px);
  max-height: 84dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 76dvh;
  object-fit: contain;
  border: 2px solid var(--brass);
  background: #14110e;
}

.lightbox-caption {
  color: #e6dac2;
  font-size: 0.86rem;
  font-style: italic;
  text-align: center;
  max-width: 90vw;
}

.xword-progress-pill {
  padding: 3px 8px;
  border: 1px solid var(--rule);
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.xword-progress {
  width: 100%;
  height: 3px;
  background: rgba(138, 99, 36, 0.2);
  margin: 0 0 12px;
  overflow: hidden;
}

.xword-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brass);
  transition: width 0.2s ease;
}

.btn-outline {
  appearance: none;
  border: 1px solid var(--rule);
  background: rgba(255, 250, 240, 0.55);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 11px;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.xword-board-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.xword-proxy-input {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  font-size: 16px;
  border: 0;
  padding: 0;
}

.xword-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-size, 9), minmax(0, 1fr));
  width: min(100%, 376px);
  border: 2px solid var(--rule);
  background: #1a140f;
  gap: 1.5px;
  padding: 1.5px;
  box-shadow: 0 8px 22px rgba(26, 21, 16, 0.14);
}

.xword-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fdf7ea;
}

.xword-cell--block {
  background: #1a140f;
}

.xword-cell-btn {
  appearance: none;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.xword-cell--word {
  background: #f3e4c2;
}

.xword-cell--active {
  background: #fffdf6;
  box-shadow: inset 0 0 0 2.5px var(--crimson);
}

.xword-cell--word-done:not(.xword-cell--ok):not(.xword-cell--bad) .xword-letter {
  color: var(--emerald);
}

.xword-cell--ok {
  background: #cfe6d8;
}

.xword-cell--bad {
  background: #f3cbc7;
}

.xword-num {
  position: absolute;
  top: 2px;
  left: 3px;
  font-family: var(--font-condensed);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-muted);
  pointer-events: none;
}

.xword-letter {
  padding-top: 5px;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: clamp(0.95rem, 4.3vw, 1.24rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

@keyframes xword-pop {
  0% { transform: scale(0.75); }
  65% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.xword-letter.is-pop {
  animation: xword-pop 0.14s ease-out;
}

.xword-clue-strip {
  position: sticky;
  top: 6px;
  z-index: 15;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: stretch;
  margin-bottom: 10px;
  border: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(26, 21, 16, 0.22);
}

.xword-nav-btn {
  appearance: none;
  border: 0;
  background: rgba(255, 250, 240, 0.06);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.xword-nav-btn:active {
  background: rgba(201, 157, 78, 0.25);
}

.xword-clue-active {
  appearance: none;
  border: 0;
  border-left: 1px solid rgba(255, 250, 240, 0.14);
  border-right: 1px solid rgba(255, 250, 240, 0.14);
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 7px 10px;
  cursor: pointer;
  touch-action: manipulation;
}

.xword-clue-meta {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #e2be79;
  margin-bottom: 1px;
}

.xword-clue-text {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.28;
}

.xword-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.xword-tool-btn {
  appearance: none;
  border: 1px solid var(--rule);
  background: rgba(255, 250, 240, 0.55);
  color: var(--ink);
  font-family: var(--font-condensed);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  touch-action: manipulation;
}

.xword-tool-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.xword-drawer {
  margin-top: 10px;
  border: 1px solid var(--rule);
  background: rgba(255, 250, 240, 0.42);
  padding: 0 12px;
}

.xword-drawer-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xword-drawer-summary::-webkit-details-marker {
  display: none;
}

.xword-drawer-summary::after {
  content: "+";
  font-size: 1rem;
  color: var(--brass);
}

.xword-drawer[open] .xword-drawer-summary::after {
  content: "−";
}

.xword-clues-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 6px 0 12px;
  border-top: 1px solid rgba(35, 27, 19, 0.25);
}

.xword-clues-title {
  margin: 0 0 8px;
  font-family: var(--font-condensed);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
}

.xword-clues-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xword-clue-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.35;
  cursor: pointer;
}

.xword-clue-btn[aria-pressed="true"] {
  border-left-color: var(--crimson);
  background: rgba(255, 250, 240, 0.65);
  color: var(--ink);
  font-weight: 700;
}

.riddle-box {
  margin-top: 10px;
  border-left: 4px solid var(--brass);
}

.riddle-box[open] {
  padding-bottom: 12px;
}

.riddle-q {
  margin: 2px 0 10px;
  font-size: 0.94rem;
  font-style: italic;
}

.riddle-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.riddle-a {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--crimson);
}

/* Reader "Read Next" Block */
.reader-more {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 3px double var(--rule);
}

.reader-more-title {
  margin: 0 0 8px;
  font-family: var(--font-condensed);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.reader-more-item {
  width: 100%;
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(35, 27, 19, 0.28);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 10px 0;
  cursor: pointer;
  display: block;
}

.reader-more-item:last-child { border-bottom: 0; }

.reader-more-meta {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.reader-more-head {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

/* Night Prophet Dark Theme Overrides */
:where([data-theme="dark"]) body {
  background: #0d0b09;
}

:where([data-theme="dark"]) .sheet {
  background-color: var(--paper);
  background-image: none;
  border-color: var(--rule);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85);
}

:where([data-theme="dark"]) .paper-name { text-shadow: none; }
:where([data-theme="dark"]) .kicker { background: #262018; color: var(--ink); border-color: var(--brass); }
:where([data-theme="dark"]) .kicker--breaking { background: #5a1a17; color: #f6e9d2; }

:where([data-theme="dark"]) .icon-btn,
:where([data-theme="dark"]) .puzzle-teaser,
:where([data-theme="dark"]) .panel-card,
:where([data-theme="dark"]) .riddle-box,
:where([data-theme="dark"]) .btn-outline,
:where([data-theme="dark"]) .seg-btn,
:where([data-theme="dark"]) .chip-btn,
:where([data-theme="dark"]) .react-btn,
:where([data-theme="dark"]) .toggle-line,
:where([data-theme="dark"]) .weather-dispatch,
:where([data-theme="dark"]) .font-step-btn,
:where([data-theme="dark"]) .xword-date-pill {
  background: rgba(255, 240, 210, 0.05);
}

:where([data-theme="dark"]) .new-tag {
  color: var(--brass);
  background: rgba(201, 157, 78, 0.14);
}

:where([data-theme="dark"]) .hbo-countdown {
  background: rgba(201, 157, 78, 0.09);
  color: var(--ink);
}

:where([data-theme="dark"]) .weather-loc-btn {
  border-bottom-color: rgba(226, 214, 191, 0.4);
}

:where([data-theme="dark"]) .xword-victory {
  background: rgba(48, 128, 86, 0.18);
}

:where([data-theme="dark"]) .xword-victory-title {
  color: #77d49c;
}

:where([data-theme="dark"]) .skel-bar,
:where([data-theme="dark"]) .skel-media,
:where([data-theme="dark"]) .skel-row {
  background: rgba(255, 240, 210, 0.09);
}

:where([data-theme="dark"]) .seg-btn[aria-pressed="true"],
:where([data-theme="dark"]) .chip-btn[aria-pressed="true"],
:where([data-theme="dark"]) .react-btn[aria-pressed="true"],
:where([data-theme="dark"]) .xword-date-pill[aria-pressed="true"] {
  background: var(--brass);
  color: #16130f;
  border-color: var(--brass);
}

:where([data-theme="dark"]) .btn-primary,
:where([data-theme="dark"]) .share-btn,
:where([data-theme="dark"]) .puzzle-open-btn {
  background: var(--brass);
  color: #16130f;
  border-color: var(--brass);
}

:where([data-theme="dark"]) .xword-grid { background: #0c0907; border-color: var(--rule); box-shadow: none; }
:where([data-theme="dark"]) .xword-cell { background: #342c21; }
:where([data-theme="dark"]) .xword-cell--block { background: #0c0907; }
:where([data-theme="dark"]) .xword-cell--word { background: #473924; }
:where([data-theme="dark"]) .xword-cell--active { background: #574428; box-shadow: inset 0 0 0 2.5px var(--brass); }
:where([data-theme="dark"]) .xword-cell--ok { background: #223d30; }
:where([data-theme="dark"]) .xword-cell--bad { background: #4b2321; }
:where([data-theme="dark"]) .xword-cell-btn { color: #f6eedc; }
:where([data-theme="dark"]) .xword-clue-strip { background: #262018; color: var(--ink); }
:where([data-theme="dark"]) .xword-nav-btn { color: var(--ink); background: rgba(255, 240, 210, 0.05); }
:where([data-theme="dark"]) .xword-tool-btn,
:where([data-theme="dark"]) .xword-drawer { background: rgba(255, 240, 210, 0.04); }
:where([data-theme="dark"]) .xword-clue-btn[aria-pressed="true"] { background: rgba(201, 157, 78, 0.14); }
:where([data-theme="dark"]) .settings-preview { background: #241f18; color: var(--ink); }
:where([data-theme="dark"]) .masthead-dateline,
:where([data-theme="dark"]) .section-ribbon,
:where([data-theme="dark"]) .story-row,
:where([data-theme="dark"]) .reader-more-item { border-color: var(--rule); }

@media (max-width: 760px) {
  .feed-list { grid-template-columns: 1fr; }
  .xword-clues-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body {
    background: var(--paper);
    padding: 0;
    font-size: 15px;
  }
  .sheet {
    min-height: var(--tg-viewport-stable-height, 100dvh);
    border: 0;
    outline: 0;
    box-shadow: none;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .panel-card {
    border: 0;
    background: transparent;
    padding: 4px 0 0;
  }
  .puzzle-teaser {
    flex-direction: column;
    align-items: stretch;
  }
  .masthead {
    justify-content: space-between;
    gap: 10px;
    padding: 2px 0 8px;
  }
  .masthead-brand { text-align: left; }
  .masthead-actions {
    position: static;
    transform: none;
    flex-shrink: 0;
  }
  .story-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
  .story-thumb { width: 96px; height: 72px; }
  .dropcap p:first-child::first-letter { font-size: 2.35em; padding: 5px 8px 3px; }
}
