/* The Daily Edition: four designs over one markup.
   html[data-design] = atlas | studio | signal | paper   (picked on the page, stored per browser)
   html[data-theme]  = light | dark                     (unset = follow the system)
   style.css underneath keeps the older pages (join, consent, surveys, lists) working; the
   variables it uses (--paper, --surface, --ink ...) are set here per design. */

/* ================================================================ tokens */

html {
  --font-head: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --font-body: "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --gap: 1.25rem;
  --head-weight: 700;
}

/* ---- Atlas: navy masthead, white cards, warm orange accents */
html[data-design="atlas"] {
  --bg: #f6f5f1; --surface: #ffffff; --surface-2: #faf8f3; --ink: #17212b; --ink-soft: #5a6570;
  --rule: #e4e0d7; --accent: #e08a2a; --accent-ink: #9a560f; --mast-bg: #1d2a36; --mast-ink: #f3f0e8;
  --mast-soft: #b9c3cc; --c-tension: #e0892a; --c-panic: #d9453c; --c-light: #e3b02c; --c-curiosity: #3f7fc0;
  --c-volume: rgba(23, 33, 43, 0.09); --chip: #fbf4e8; --focus: #2f6fb0;
  --shadow: 0 1px 2px rgba(20, 30, 40, 0.05), 0 8px 24px rgba(20, 30, 40, 0.06);
}
/* ---- Studio: cream research desk, brick red, soft rounded panels */
html[data-design="studio"] {
  --bg: #f5efe6; --surface: #fffaf3; --surface-2: #f9f0e5; --ink: #1f252b; --ink-soft: #6b625a;
  --rule: #e9dccb; --accent: #c8372f; --accent-ink: #a52a23; --mast-bg: #1f2a33; --mast-ink: #f6efe6;
  --mast-soft: #c3b8ab; --c-tension: #c8372f; --c-panic: #e47b62; --c-light: #e7a52a; --c-curiosity: #4b78a3;
  --c-volume: rgba(200, 55, 47, 0.10); --chip: #fbe9e3; --focus: #a52a23;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.05), 0 10px 30px rgba(60, 40, 20, 0.06);
}
/* ---- Signal: dark stage, red and amber glow */
html[data-design="signal"] {
  --bg: #0e0809; --surface: rgba(38, 12, 14, 0.86); --surface-2: #2a0e11; --ink: #fff4f0; --ink-soft: #d6b3ac;
  --rule: rgba(255, 92, 64, 0.28); --accent: #ff3b2f; --accent-ink: #ff6a4d; --mast-bg: #110a0b; --mast-ink: #fff4f0;
  --mast-soft: #d6b3ac; --c-tension: #ff4a2e; --c-panic: #ffb21a; --c-light: #ffe066; --c-curiosity: #52c5f5;
  --c-volume: rgba(255, 74, 46, 0.20); --chip: rgba(255, 178, 26, 0.08); --focus: #ffd84a;
  --font-head: "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif; --head-weight: 800;
  --radius: 14px;
  --shadow: 0 0 0 1px rgba(255, 74, 46, 0.25), 0 12px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
/* ---- Paper: warm newsprint, yellow highlights, navy ink */
html[data-design="paper"] {
  --bg: #fbf6ea; --surface: #fffdf7; --surface-2: #fff5d8; --ink: #192634; --ink-soft: #5d6670;
  --rule: #ebe0c4; --accent: #f4c13d; --accent-ink: #8a6200; --mast-bg: #fbf6ea; --mast-ink: #192634;
  --mast-soft: #4e5a66; --c-tension: #e3554b; --c-panic: #a8352e; --c-light: #f0b31f; --c-curiosity: #4a8fd8;
  --c-volume: rgba(25, 38, 52, 0.08); --chip: #fdeee9; --focus: #1b4f8a;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(25, 38, 52, 0.06), 4px 5px 0 rgba(25, 38, 52, 0.05);
}

/* dark variants (Signal is dark already) */
html[data-design="atlas"][data-theme="dark"] {
  --bg: #0f161c; --surface: #172029; --surface-2: #1c2731; --ink: #e8edf0; --ink-soft: #a0b0ba; --rule: #2a3843;
  --mast-bg: #0a1015; --chip: #2a2418; --c-volume: rgba(232, 237, 240, 0.12); --focus: #8cc2f0; --accent-ink: #f0a650;
  color-scheme: dark;
}
html[data-design="studio"][data-theme="dark"] {
  --bg: #1b1817; --surface: #25201f; --surface-2: #2b2523; --ink: #f2eae1; --ink-soft: #c0b2a5; --rule: #3d3331;
  --mast-bg: #121516; --chip: #3a2522; --c-volume: rgba(228, 123, 98, 0.16); --focus: #f2a79c; --accent-ink: #f08a7c;
  color-scheme: dark;
}
html[data-design="paper"][data-theme="dark"] {
  --bg: #1e1c18; --surface: #29261f; --surface-2: #38301d; --ink: #faf2de; --ink-soft: #cfc3a8; --rule: #48402f;
  --mast-bg: #1e1c18; --mast-ink: #faf2de; --mast-soft: #cfc3a8; --chip: #3d2a24; --c-volume: rgba(250, 242, 222, 0.12);
  --focus: #f4c13d; --accent-ink: #f4c13d;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-design="atlas"]:not([data-theme="light"]) {
    --bg: #0f161c; --surface: #172029; --surface-2: #1c2731; --ink: #e8edf0; --ink-soft: #a0b0ba; --rule: #2a3843;
    --mast-bg: #0a1015; --chip: #2a2418; --c-volume: rgba(232, 237, 240, 0.12); --focus: #8cc2f0; --accent-ink: #f0a650;
    color-scheme: dark;
  }
  html[data-design="studio"]:not([data-theme="light"]) {
    --bg: #1b1817; --surface: #25201f; --surface-2: #2b2523; --ink: #f2eae1; --ink-soft: #c0b2a5; --rule: #3d3331;
    --mast-bg: #121516; --chip: #3a2522; --c-volume: rgba(228, 123, 98, 0.16); --focus: #f2a79c; --accent-ink: #f08a7c;
    color-scheme: dark;
  }
  html[data-design="paper"]:not([data-theme="light"]) {
    --bg: #1e1c18; --surface: #29261f; --surface-2: #38301d; --ink: #faf2de; --ink-soft: #cfc3a8; --rule: #48402f;
    --mast-bg: #1e1c18; --mast-ink: #faf2de; --mast-soft: #cfc3a8; --chip: #3d2a24; --c-volume: rgba(250, 242, 222, 0.12);
    --focus: #f4c13d; --accent-ink: #f4c13d;
    color-scheme: dark;
  }
}

/* the older stylesheet's variables follow the design */
html[data-design] {
  --paper: var(--bg); --link: var(--accent-ink); --bar: var(--ink-soft); --urgent: var(--c-tension);
  --head: var(--font-head); --body: var(--font-body);
}

/* ================================================================ base */

body { background: var(--bg); color: var(--ink); font-family: var(--font-body); }
html[data-design="signal"] body {
  background:
    radial-gradient(60rem 30rem at 85% -5%, rgba(255, 59, 47, 0.22), transparent 60%),
    radial-gradient(50rem 30rem at 0% 30%, rgba(255, 140, 30, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
main:has(.ed) { max-width: 88rem; padding-inline: clamp(0.85rem, 2.5vw, 2rem); }
.foot { color: var(--ink-soft); }

/* ================================================================ masthead */

.mast {
  max-width: none; padding: 0; border: 0; display: block;
  background: var(--mast-bg); color: var(--mast-ink);
}
.mast-in {
  max-width: 88rem; margin-inline: auto; padding: 0.7rem clamp(0.85rem, 2.5vw, 2rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem;
}
.mast-name { display: flex; align-items: center; gap: 0.6rem; color: var(--mast-ink); text-decoration: none; }
.mast-logo { display: inline-flex; align-items: flex-end; gap: 3px; height: 1.6rem; }
.mast-logo i { display: block; width: 6px; border-radius: 2px; background: var(--c-light); }
.mast-logo i:nth-child(1) { height: 45%; }
.mast-logo i:nth-child(2) { height: 100%; background: var(--c-tension); }
.mast-logo i:nth-child(3) { height: 70%; }
.mast-words { display: flex; flex-direction: column; line-height: 1.1; }
.mast-title { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.45rem; }
.mast-tag { font-size: 0.78rem; color: var(--mast-soft); }
.mast-nav { flex: 1; display: flex; justify-content: center; gap: 0.3rem 1.6rem; flex-wrap: wrap; }
.mast-nav a {
  color: var(--mast-soft); text-decoration: none; font-weight: 600; font-size: 1.02rem;
  padding: 0.35rem 0.1rem; border-bottom: 3px solid transparent;
}
.mast-nav a:hover { color: var(--mast-ink); }
.mast-nav a[aria-current="page"] { color: var(--mast-ink); border-bottom-color: var(--accent); box-shadow: none; }
.mast-tools { display: flex; align-items: center; gap: 0.7rem; margin-inline-start: auto; }
.mast-lang { color: var(--mast-ink); font-weight: 600; margin: 0; }
.theme-btn {
  width: 2.3rem; height: 2.3rem; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--mast-ink) 25%, transparent);
  background: color-mix(in srgb, var(--mast-ink) 8%, transparent); color: var(--mast-ink); font-size: 1.05rem;
}
.theme-btn::before { content: "☾"; }
.theme-btn[aria-pressed="true"]::before { content: "☀"; }

.picker {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 0.5rem;
  padding: 0.45rem 1rem; background: var(--bg); border-bottom: 1px solid var(--rule); font-size: 0.88rem;
}
.picker-label { color: var(--ink-soft); }
.pick {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; font: inherit; font-weight: 600;
  padding: 0.25rem 0.75rem 0.25rem 0.5rem; border-radius: 999px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule);
}
.pick i { width: 1rem; height: 1rem; border-radius: 50%; display: block; }
.pick-atlas i { background: linear-gradient(135deg, #1d2a36 50%, #e0892a 50%); }
.pick-studio i { background: linear-gradient(135deg, #f5efe6 50%, #c8372f 50%); box-shadow: inset 0 0 0 1px #d9cbb8; }
.pick-signal i { background: linear-gradient(135deg, #0e0809 50%, #ff3b2f 50%); }
.pick-paper i { background: linear-gradient(135deg, #fbf6ea 50%, #f4c13d 50%); box-shadow: inset 0 0 0 1px #d8cba5; }
.pick[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* ================================================================ shared blocks */

.ed-date { color: var(--ink-soft); margin: 1rem 0 0.25rem; font-size: 0.95rem; }
.ed { display: flex; flex-direction: column; gap: var(--gap); padding-block: 0.75rem 1.5rem; }
.ed-story, .ed-data { display: contents; }

.panel, .f-tone, .f-stats .tile, .f-checks, .f-echo, .f-again, .f-compare, .side, .f-days {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
}
.f-tone, .f-checks, .f-echo, .f-again, .f-compare, .side, .f-days { padding: 1.1rem 1.2rem; }
.ed h2 { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.3rem; line-height: 1.2; margin: 0 0 0.35rem; }
.f-sub { color: var(--ink-soft); margin: 0 0 0.7rem; font-size: 0.95rem; }
.f-kicker { margin: 0 0 0.3rem; font-size: 0.85rem; font-weight: 700; color: var(--accent-ink); letter-spacing: 0.01em; }

/* nav row */
.f-nav { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; color: var(--ink-soft); }
.f-back { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.f-back::before { content: "‹"; margin-inline-end: 0.35rem; font-size: 1.2em; }
[dir="rtl"] .f-back::before { content: "›"; }
.f-count { margin-inline-start: auto; }
.f-arrows { display: inline-flex; gap: 0.35rem; }
.f-arrow {
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none;
}
.f-arrow.is-off { opacity: 0.35; }
.f-prev::before { content: "‹"; font-size: 1.3rem; line-height: 1; }
.f-next::before { content: "›"; font-size: 1.3rem; line-height: 1; }
[dir="rtl"] .f-prev::before { content: "›"; }
[dir="rtl"] .f-next::before { content: "‹"; }

/* headline */
.f-head { position: relative; }
.f-rank {
  float: inline-start; margin-inline-end: 0.75rem; margin-top: 0.35rem;
  min-width: 2.4rem; height: 2.4rem; padding-inline: 0.4rem; display: grid; place-items: center;
  border-radius: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.25rem;
}
.f-head h1 {
  font-family: var(--font-head); font-weight: var(--head-weight);
  font-size: clamp(1.75rem, 4.2vw, 2.9rem); line-height: 1.1; margin: 0 0 0.6rem; text-wrap: balance;
}
.f-head h1 a { color: inherit; text-decoration: none; }
.f-head h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.f-head .dek { font-size: 1.12rem; line-height: 1.55; margin: 0 0 0.7rem; color: var(--ink); max-width: 44rem; }
.f-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.f-more { border: 1px solid var(--rule); border-radius: 999px; padding: 0 0.5rem; font-weight: 700; }
.f-time { margin-inline-start: auto; }

/* photo */
.f-pic .pic { margin: 0; }
.f-pic .pic > img { border-radius: var(--radius); }
.f-art { display: none; }

/* tone panel */
.f-tone-sum { margin: 0 0 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.f-tone-h { font-size: 1rem; margin: 0 0 0.5rem; font-weight: 700; }
.f-how { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-soft); }
.f-how summary { cursor: pointer; width: fit-content; }
.f-how summary::marker { color: var(--ink-soft); }
.f-how p { margin: 0.35rem 0 0; }

.tg { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.tg-item {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.7rem; border-radius: 999px;
  border: 1.5px solid var(--rule); background: var(--surface-2); font-size: 0.88rem; font-weight: 700; cursor: pointer;
  color: var(--ink-soft);
}
.tg-item input { position: absolute; opacity: 0; pointer-events: none; }
.tg-item:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.tg-item:has(input:checked) { color: var(--ink); }
.tg-tension:has(input:checked) { border-color: var(--c-tension); background: color-mix(in srgb, var(--c-tension) 12%, var(--surface)); }
.tg-panic:has(input:checked) { border-color: var(--c-panic); background: color-mix(in srgb, var(--c-panic) 12%, var(--surface)); }
.tg-light:has(input:checked) { border-color: var(--c-light); background: color-mix(in srgb, var(--c-light) 16%, var(--surface)); }
.tg-curiosity:has(input:checked) { border-color: var(--c-curiosity); background: color-mix(in srgb, var(--c-curiosity) 12%, var(--surface)); }
.tg-volume:has(input:checked) { border-color: var(--ink-soft); }
.tg-emo::before, .pk-emo::before, .tile-emo::before { display: inline-block; }
.tg-tension .tg-emo::before, .pk-tension .pk-emo::before { content: "😟"; }
.tg-panic .tg-emo::before, .pk-panic .pk-emo::before { content: "⚡"; }
.tg-light .tg-emo::before, .pk-light .pk-emo::before { content: "😄"; }
.tg-curiosity .tg-emo::before, .pk-curiosity .pk-emo::before { content: "🔍"; }
.tg-volume .tg-emo::before { content: "▮"; color: var(--ink-soft); }

.f-tone:has(.tg-tension input:not(:checked)) :is(.ln-tension, .pk-tension),
.f-tone:has(.tg-panic input:not(:checked)) :is(.ln-panic, .pk-panic),
.f-tone:has(.tg-light input:not(:checked)) :is(.ln-light, .pk-light),
.f-tone:has(.tg-curiosity input:not(:checked)) :is(.ln-curiosity, .pk-curiosity),
.f-tone:has(.tg-volume input:not(:checked)) .ln-volume { display: none; }

/* chart */
.cv { display: grid; grid-template-columns: 2rem minmax(0, 1fr); grid-template-rows: auto 1.6rem; }
.cv-y { position: relative; grid-row: 1; font-size: 0.75rem; color: var(--ink-soft); }
.cv-y span { position: absolute; inset-inline-end: 0.45rem; transform: translateY(-50%); }
.cv-plot { position: relative; grid-row: 1; grid-column: 2; height: clamp(12rem, 24vw, 17rem); }
.cv-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cv-x { position: relative; grid-column: 2; font-size: 0.78rem; color: var(--ink-soft); }
.cv-x span { position: absolute; top: 0.35rem; transform: translateX(-50%); white-space: nowrap; }
.cv-x span:first-child { transform: none; }
.cv-x span:last-child { transform: translateX(-100%); font-weight: 700; color: var(--ink); }
.cv-grid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.cv-base { stroke: var(--ink-soft); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.5; }
.cv-week { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hatch-line { stroke: var(--ink-soft); stroke-width: 1.5; opacity: 0.35; }
.cv-silence-label {
  position: absolute; top: 0.25rem; margin-inline-start: 0.3rem; font-size: 0.72rem; color: var(--ink-soft);
  background: var(--surface); padding: 0 0.3rem; border-radius: 4px; white-space: nowrap;
}
.ln-volume rect { fill: var(--c-volume); }
.ln-line { fill: none; stroke-width: 2.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.ln-glow { display: none; }
.ln-tension .ln-line { stroke: var(--c-tension); stroke-width: 3; }
.ln-panic .ln-line { stroke: var(--c-panic); }
.ln-light .ln-line { stroke: var(--c-light); }
.ln-curiosity .ln-line { stroke: var(--c-curiosity); }
.stop-a { stop-opacity: 0.26; } .stop-b { stop-opacity: 0; }
.stop-tension { stop-color: var(--c-tension); } .stop-panic { stop-color: var(--c-panic); }
.stop-light { stop-color: var(--c-light); } .stop-curiosity { stop-color: var(--c-curiosity); }
.ln-panic .ln-area, .ln-light .ln-area, .ln-curiosity .ln-area { opacity: 0.55; }

.pk { position: absolute; width: 0; height: 0; z-index: 2; }
.pk-dot {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--c-tension);
}
.pk-panic .pk-dot { border-color: var(--c-panic); }
.pk-light .pk-dot { border-color: var(--c-light); }
.pk-curiosity .pk-dot { border-color: var(--c-curiosity); }
.pk-tag {
  position: absolute; bottom: 12px; left: 0; transform: translateX(-50%);
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.4rem; align-items: center;
  width: max-content; max-width: 13rem; padding: 0.35rem 0.6rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  font-size: 0.78rem; line-height: 1.25; color: var(--ink);
}
.pk-tag { translate: 0 var(--dy, 0px); }
/* set by the label layout script in base.html when labels would overlap */
.pk-mini .pk-tag { grid-template-columns: auto; padding: 0.2rem 0.35rem; border-radius: 999px; }
.pk-mini .pk-tag b, .pk-mini .pk-tag small { display: none; }
.pk-mini .pk-emo { grid-row: auto; font-size: 1.05rem; }
.pk-hide .pk-tag { display: none; }
.pk-start .pk-tag { transform: translateX(-12%); }
.pk-end .pk-tag { transform: translateX(-88%); }
.pk-below .pk-tag { bottom: auto; top: 12px; }
.pk-emo { grid-row: span 2; font-size: 1.35rem; }
.pk-tag b { font-weight: 800; }
.pk-tag small { color: var(--ink-soft); font-size: 0.74rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* stats */
.f-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.75rem; }
.f-stats-h { display: none; }
.tile { position: relative; padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.tile-num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; line-height: 1.05; order: 1; }
.tile-num small { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); margin-inline-start: 0.15rem; }
.tile-label { font-weight: 700; color: var(--ink-soft); font-size: 0.9rem; order: 0; }
.tile-level { display: none; }
.tile-text { font-size: 0.92rem; line-height: 1.35; color: var(--ink); order: 2; }
.tile .delta { order: 3; font-size: 0.82rem; color: var(--ink-soft); }
.delta.up { color: var(--accent-ink); font-weight: 700; }
.tile-emo { position: absolute; inset-inline-end: 0.8rem; top: 0.7rem; font-size: 1.35rem; }
.tile-tension .tile-emo::before { content: "😟"; }
.tile-panic .tile-emo::before { content: "⚡"; }
.tile-shape .tile-emo::before { content: "🔁"; }
.tile-days .tile-emo::before { content: "📅"; }
.tile-articles .tile-emo::before { content: "📰"; }
.tile-urgent .tile-emo::before { content: "📣"; }
.tile-tension .tile-num { color: var(--c-tension); }
.tile-panic .tile-num { color: var(--c-panic); }
.gauge { display: none; width: 100%; max-width: 12rem; height: auto; margin-inline: auto; }
.gauge-track { fill: none; stroke: var(--rule); stroke-width: 10; stroke-linecap: round; }
.gauge-value { fill: none; stroke: var(--c-tension); stroke-width: 10; stroke-linecap: round; }
.gauge-needle { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.gauge-hub { fill: var(--ink); }

/* checks */
.f-checks { display: none; }
.f-checks ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.f-checks li { display: flex; gap: 0.5rem; align-items: baseline; }
.f-checks li::before { content: "✓"; color: var(--accent-ink); font-weight: 800; }

/* echoes */
.f-echo header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.f-echo-count { color: var(--accent-ink); font-weight: 800; font-size: 0.95rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.45rem 0.35rem 0.8rem;
  border-radius: 999px; background: var(--chip); border: 1px solid var(--rule); font-weight: 700; font-size: 0.95rem;
}
[dir="rtl"] .chip { padding: 0.35rem 0.8rem 0.35rem 0.45rem; }
.chip q { quotes: "“" "”"; }
.chip-n {
  font-size: 0.78rem; font-weight: 800; padding: 0.05rem 0.45rem; border-radius: 999px;
  background: var(--surface); color: var(--accent-ink); white-space: nowrap;
}
.chip-top { background: var(--accent); color: #fff; border-color: transparent; }
.chip-top .chip-n { background: rgba(255, 255, 255, 0.92); color: var(--accent-ink); }

/* again */
.f-again { position: relative; }
.f-again p { margin: 0.2rem 0 0; line-height: 1.5; }
.again-status { color: var(--ink-soft); font-size: 0.9rem; }
.again-emo::before { content: "🔁"; font-size: 1.5rem; }
.again-emo { float: inline-end; }

/* compare */
.f-compare table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.f-compare th, .f-compare td { padding: 0.45rem 0.3rem; border-top: 1px solid var(--rule); text-align: start; vertical-align: middle; }
.f-compare thead th { border-top: 0; font-size: 0.78rem; color: var(--ink-soft); text-align: center; }
.f-compare table { table-layout: fixed; }
.f-compare thead th:nth-child(2), .f-compare td:first-of-type { width: 7.8rem; }
.f-compare thead th:nth-child(3), .f-compare thead th:nth-child(4) { width: 4rem; }
.f-compare tbody th { font-weight: 600; }
.f-compare tbody th .cmp-pic { float: inline-start; margin-inline-end: 0.5rem; }
.cmp-title { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.cmp-title:hover { text-decoration: underline; }
.cmp-pic { width: 2.6rem; height: 2.1rem; object-fit: cover; border-radius: 6px; flex: none; }
.cmp-self { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.cmp-self th { font-weight: 800; }
.f-compare td { white-space: nowrap; text-align: center; }
.cmp-t, .cmp-p { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.cmp-t { color: var(--c-tension); } .cmp-p { color: var(--c-panic); }
.spark { display: block; width: 7rem; height: 1.8rem; overflow: visible; }
.spark-line { fill: none; stroke: var(--c-tension); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark-area { fill: color-mix(in srgb, var(--c-tension) 14%, transparent); }

/* how it was covered over time */
.f-days h2 { margin-bottom: 0.75rem; }
.days {
  list-style: none; margin: 0; padding: 0 0 0.4rem; display: flex; gap: 0.8rem; overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.day {
  flex: 0 0 min(14.5rem, 78%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.75rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--rule);
}
.day time { font-weight: 800; font-size: 0.9rem; }
.day-today { border-color: var(--accent); }
.day-src { display: flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; }
.day-src img { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; background: #fff; }
.day-pic { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: var(--rule); }
.day-title { color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.35; font-size: 0.95rem; }
.day-title:hover { text-decoration: underline; }
.day-t { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; align-items: center; font-size: 0.78rem; color: var(--ink-soft); }
.day-bar { height: 6px; border-radius: 99px; background: var(--rule); overflow: hidden; }
.day-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-light), var(--c-tension)); }
[dir="rtl"] .day-bar i { background: linear-gradient(270deg, var(--c-light), var(--c-tension)); }

/* side list */
.side h2 { font-size: 1.15rem; }
.side h2 span { color: var(--ink-soft); font-weight: 600; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-item a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n title pic" "n spark pic" "n meta pic";
  column-gap: 0.65rem; padding: 0.7rem 0.3rem; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.side-item:first-child a { border-top: 0; }
.side-item a:hover .side-title { text-decoration: underline; }
.side-item.is-current a { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: var(--radius-sm); }
.side-n {
  grid-area: n; align-self: start; min-width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
  border-radius: 6px; background: var(--surface-2); border: 1px solid var(--rule); font-weight: 800; font-size: 0.85rem;
}
.side-title { grid-area: title; font-weight: 700; line-height: 1.3; font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.side-pic { grid-area: pic; width: 5.2rem; height: 4rem; object-fit: cover; border-radius: 8px; }
.side-spark { grid-area: spark; width: 100%; max-width: 9rem; height: 1.5rem; margin-top: 0.3rem; }
.side-meta { grid-area: meta; font-size: 0.78rem; color: var(--ink-soft); }
.side-more summary {
  margin-top: 0.6rem; cursor: pointer; text-align: center; font-weight: 700; padding: 0.55rem; list-style: none;
  border: 1.5px solid var(--ink); border-radius: 999px;
}
.side-more summary::-webkit-details-marker { display: none; }
.side-more[open] summary { margin-bottom: 0.4rem; }

/* below the feature */
.end { text-align: center; padding-block: 1rem 2rem; }
.end .button { display: inline-block; }
.story-more { max-width: 52rem; margin-inline: auto; padding-bottom: 2rem; }
.more-block { margin-top: 1.5rem; }
.more-block h2 { font-family: var(--font-head); font-weight: var(--head-weight); }
.more-list summary { cursor: pointer; font-weight: 700; padding: 0.5rem 0; color: var(--accent-ink); }

/* ================================================================ layouts: tablet */

@media (min-width: 760px) {
  .ed {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap);
    grid-template-areas: "nav nav" "head pic" "tone tone" "stats stats" "echo again" "compare compare" "days days" "side side";
  }
  .ed.no-pic { grid-template-areas: "nav nav" "head head" "tone tone" "stats stats" "echo again" "compare compare" "days days" "side side"; }
  .f-nav { grid-area: nav; } .f-head { grid-area: head; } .f-pic { grid-area: pic; } .f-art { grid-area: art; }
  .f-tone { grid-area: tone; } .f-stats { grid-area: stats; } .f-checks { grid-area: checks; }
  .f-echo { grid-area: echo; } .f-again { grid-area: again; } .f-compare { grid-area: compare; }
  .f-days { grid-area: days; } .side { grid-area: side; }
  .side-list { columns: 2 18rem; column-gap: 1.5rem; }
  .side-item { break-inside: avoid; }
}

/* ================================================================ layouts: desktop, per design */

@media (min-width: 1100px) {
  /* Atlas: story column | analysis column, then history and the rest of the edition */
  html[data-design="atlas"] .ed { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); grid-template-areas: "story data" "days days" "side side"; column-gap: 2rem; }
  html[data-design="atlas"] .ed-story, html[data-design="atlas"] .ed-data { display: flex; flex-direction: column; gap: var(--gap); }
  html[data-design="atlas"] .ed-story { grid-area: story; }
  html[data-design="atlas"] .ed-data { grid-area: data; }
  html[data-design="atlas"] .f-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Studio: numbers | story and chart | the edition */
  html[data-design="studio"] .ed {
    grid-template-columns: 15.5rem minmax(0, 1fr) minmax(0, 1fr) 17rem;
    grid-template-areas:
      "stats nav nav side"
      "stats head pic side"
      "stats tone tone side"
      "checks echo again side"
      "days days days days"
      "compare compare compare compare";
  }
  html[data-design="studio"] .ed.no-pic { grid-template-areas:
      "stats nav nav side" "stats head art side" "stats tone tone side" "checks echo again side"
      "days days days days" "compare compare compare compare"; }
  html[data-design="studio"] .f-stats { grid-template-columns: 1fr; align-content: start; }
  html[data-design="studio"] .f-checks { display: block; }

  /* Signal: big headline and chart, the gauge panel beside them */
  html[data-design="signal"] .ed {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 20rem;
    grid-template-areas:
      "nav nav pic"
      "head head pic"
      "tone tone stats"
      "again echo echo"
      "days days days"
      "compare compare compare"
      "side side side";
  }
  html[data-design="signal"] .ed.no-pic { grid-template-areas:
      "nav nav stats" "head head stats" "tone tone stats" "again echo echo" "days days days"
      "compare compare compare" "side side side"; }
  html[data-design="signal"] .f-stats { grid-template-columns: 1fr; align-content: start; }

  /* Paper: story, numbers and chart | the edition down the side */
  html[data-design="paper"] .ed {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 21rem;
    grid-template-areas:
      "nav nav nav side"
      "head head pic side"
      "stats stats stats side"
      "tone tone tone side"
      "days echo again side"
      "compare compare compare side";
  }
  html[data-design="paper"] .ed.no-pic { grid-template-areas:
      "nav nav nav side" "head head art side" "stats stats stats side" "tone tone tone side"
      "days echo again side" "compare compare compare side"; }
  html[data-design="paper"] .f-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  html:is([data-design="studio"], [data-design="paper"], [data-design="signal"]) .side { align-self: start; }
  html:is([data-design="studio"], [data-design="paper"]) .side-list { columns: auto; }
  html[data-design="studio"] .ed.no-pic .f-art, html[data-design="paper"] .ed.no-pic .f-art { display: block; }
  html[data-design="signal"] .side-list, html[data-design="atlas"] .side-list { columns: 3 18rem; }
}

/* ================================================================ design details */

/* ---- Atlas */
html[data-design="atlas"] .f-rank { background: #d9534a; border-radius: 6px; }
html[data-design="atlas"] .f-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
html[data-design="atlas"] .f-tone .f-kicker { color: var(--ink-soft); }
html[data-design="atlas"] .f-tone { padding: 1.2rem 1.3rem; }
html[data-design="atlas"] .tile-shape { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
html[data-design="atlas"] .tile-panic { background: color-mix(in srgb, var(--c-panic) 7%, var(--surface)); }
html[data-design="atlas"] .tile-days, html[data-design="atlas"] .tile-articles, html[data-design="atlas"] .tile-urgent { display: none; }

/* ---- Studio */
html[data-design="studio"] .mast-in { padding-block: 0.85rem; }
html[data-design="studio"] .f-rank { background: #e98c80; color: #fff; }
html[data-design="studio"] .f-stats { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
html[data-design="studio"] .f-stats-h { display: block; font-size: 1.15rem; }
html[data-design="studio"] .f-stats .tile { box-shadow: none; background: var(--surface-2); }
html[data-design="studio"] .tile-tension .gauge { display: block; max-width: 6.5rem; margin: 0; position: absolute; inset-inline-end: 0.6rem; top: 0.6rem; }
html[data-design="studio"] .tile-tension .tile-emo { display: none; }
html[data-design="studio"] .tile-shape, html[data-design="studio"] .tile-articles { display: none; }
html[data-design="studio"] .pk-tag {
  background: color-mix(in srgb, var(--c-panic) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--c-panic) 30%, var(--rule)); border-radius: 18px;
}
html[data-design="studio"] .chip-top { background: var(--accent); }
html[data-design="studio"] .f-again { background: color-mix(in srgb, var(--c-panic) 14%, var(--surface)); }
html[data-design="studio"] .f-again h2 { color: var(--accent-ink); }
html[data-design="studio"] .day { background: var(--surface); }
html[data-design="studio"] .f-tone .f-kicker { display: none; }

/* ---- Signal */
html[data-design="signal"] .mast { border-bottom: 1px solid rgba(255, 74, 46, 0.35); }
html[data-design="signal"] .mast-nav a[aria-current="page"] {
  background: var(--accent); color: #fff; border-radius: 999px; padding-inline: 1rem; border-bottom-color: transparent;
  box-shadow: 0 0 18px rgba(255, 59, 47, 0.6);
}
html[data-design="signal"] .picker { background: transparent; border-color: rgba(255, 74, 46, 0.25); }
html[data-design="signal"] .pick { background: rgba(255, 255, 255, 0.04); }
html[data-design="signal"] .pick[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(255, 59, 47, 0.5); }
html[data-design="signal"] .f-kicker {
  display: inline-block; background: rgba(255, 59, 47, 0.16); color: #fff; padding: 0.25rem 0.8rem;
  border-radius: 999px; border: 1px solid rgba(255, 59, 47, 0.55);
}
html[data-design="signal"] .f-rank { display: none; }
html[data-design="signal"] .f-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; text-shadow: 0 2px 24px rgba(255, 59, 47, 0.35); }
html[data-design="signal"] .f-head .dek { color: var(--ink-soft); }
html[data-design="signal"] .f-pic .pic > img {
  border-radius: 4px; filter: grayscale(0.55) contrast(1.1);
  clip-path: polygon(0 3%, 6% 0, 40% 2%, 72% 0, 100% 3%, 98% 40%, 100% 78%, 97% 100%, 60% 97%, 28% 100%, 2% 97%, 0 60%);
}
html[data-design="signal"] .f-pic .pic { transform: rotate(-1.2deg); }
html[data-design="signal"] .cv-plot svg { filter: drop-shadow(0 0 7px rgba(255, 74, 46, 0.55)); }
html[data-design="signal"] .ln-tension .ln-line { stroke-width: 3.5; }
html[data-design="signal"] .stop-a { stop-opacity: 0.45; }
html[data-design="signal"] .pk-dot { background: var(--c-panic); border-color: #fff; box-shadow: 0 0 12px var(--c-tension); }
html[data-design="signal"] .pk-tag { background: #fff; color: #1a0a0b; border: 2px solid var(--accent); font-weight: 800; }
html[data-design="signal"] .pk-tag small { color: #6b3a35; }
html[data-design="signal"] .pk-tension .pk-emo::before, html[data-design="signal"] .tg-tension .tg-emo::before { content: "😰"; }
html[data-design="signal"] .pk-panic .pk-emo::before, html[data-design="signal"] .tg-panic .tg-emo::before { content: "🚨"; }
html[data-design="signal"] .pk-light .pk-emo::before, html[data-design="signal"] .tg-light .tg-emo::before { content: "😂"; }
html[data-design="signal"] .f-stats { padding: 1.1rem; border-radius: var(--radius); border: 1px solid var(--accent); background: linear-gradient(180deg, rgba(60, 10, 12, 0.92), rgba(30, 8, 10, 0.92)); box-shadow: 0 0 30px rgba(255, 59, 47, 0.25); }
html[data-design="signal"] .f-stats-h { display: block; text-align: center; font-size: 1.35rem; }
html[data-design="signal"] .f-stats .tile { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 74, 46, 0.3); box-shadow: none; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 0.6rem; }
html[data-design="signal"] .tile-tension { flex-direction: column !important; align-items: center !important; text-align: center; border: 0 !important; background: none !important; }
html[data-design="signal"] .tile-tension .gauge { display: block; }
html[data-design="signal"] .tile-tension .tile-emo, html[data-design="signal"] .tile-tension .tile-label, html[data-design="signal"] .tile-tension .delta { display: none; }
html[data-design="signal"] .tile-tension .tile-num { font-size: 3rem; color: #fff; margin-top: -0.4rem; }
html[data-design="signal"] .tile-tension .gauge { max-width: 11rem; }
html[data-design="signal"] .tile-tension .tile-level { display: inline-block; order: 2; background: var(--accent); color: #fff; font-weight: 800; padding: 0.15rem 1.1rem; border-radius: 999px; }
html[data-design="signal"] .gauge-value { stroke: var(--c-tension); filter: drop-shadow(0 0 4px var(--c-tension)); }
html[data-design="signal"] .gauge-needle { stroke: #fff; } html[data-design="signal"] .gauge-hub { fill: #fff; }
html[data-design="signal"] .tile-emo { position: static; }
html[data-design="signal"] .tile .tile-num { font-size: 1.6rem; color: #fff; order: 0; }
html[data-design="signal"] .tile .tile-label { order: 1; color: var(--ink); }
html[data-design="signal"] .tile-shape .tile-text, html[data-design="signal"] .tile .delta { display: none; }
html[data-design="signal"] .f-echo { border-color: var(--accent); }
html[data-design="signal"] .chip { background: transparent; border: 2px solid var(--c-panic); color: #fff; }
html[data-design="signal"] .chip-top { background: transparent; border-color: var(--accent); }
html[data-design="signal"] .chip-n { background: rgba(255, 178, 26, 0.15); color: var(--c-panic); }
html[data-design="signal"] .f-again {
  background: linear-gradient(135deg, #e0261c, #a3120d); border: 0; color: #fff;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
}
[dir="rtl"][data-design="signal"] .f-again { clip-path: polygon(0 0, 100% 0, 100% 100%, 4% 100%); }
html[data-design="signal"] .f-again .again-status { color: rgba(255, 255, 255, 0.8); }
html[data-design="signal"] .f-again h2 { font-size: 1.6rem; }
html[data-design="signal"] .day { background: #fff; color: #1a0a0b; border: 0; }
html[data-design="signal"] .day time { background: var(--accent); color: #fff; margin: -0.75rem -0.75rem 0; padding: 0.4rem 0.75rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
html[data-design="signal"] .day-title { color: #1a0a0b; }
html[data-design="signal"] .day-src { color: #6b3a35; }
html[data-design="signal"] .cmp-self { background: rgba(255, 59, 47, 0.18); }
html[data-design="signal"] .tg-item { background: transparent; }

/* ---- Paper */
html[data-design="paper"] .mast { border-bottom: 1px solid var(--rule); }
html[data-design="paper"] .mast-title { font-size: 1.9rem; font-weight: 900; }
html[data-design="paper"] .mast-logo i { width: 8px; background: #f4c13d; }
html[data-design="paper"] .mast-logo i:nth-child(2) { background: #f0a21f; }
html[data-design="paper"] .mast-logo { height: 2.1rem; }
html[data-design="paper"] .mast-nav a[aria-current="page"] {
  background: #1b2a3a; color: #fff; border-radius: 12px; padding-inline: 1.3rem; border-bottom: 4px solid var(--accent);
}
html[data-design="paper"] .theme-btn { border-color: var(--rule); }
html[data-design="paper"] .mast-lang { border: 1px solid var(--rule); border-radius: 999px; padding: 0.3rem 0.9rem; background: var(--surface); }
html[data-design="paper"] .f-rank { background: var(--accent); color: #192634; border-radius: 8px; }
html[data-design="paper"] .f-head {
  background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
}
html[data-design="paper"] .f-kicker { color: color-mix(in srgb, var(--c-tension) 75%, var(--ink)); }
html[data-design="paper"] .f-stats { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.6rem; box-shadow: var(--shadow); gap: 0; }
html[data-design="paper"] .f-stats .tile { box-shadow: none; border: 0; border-inline-start: 1px solid var(--rule); border-radius: 0; background: none; padding-block: 0.4rem; }
html[data-design="paper"] .f-stats .tile:first-of-type { border-inline-start: 0; background: color-mix(in srgb, var(--c-tension) 10%, var(--surface)); border-radius: 12px; }
html[data-design="paper"] .tile-emo { position: static; order: -1; font-size: 1.2rem; }
html[data-design="paper"] .tile-num { font-size: 1.7rem; }
html[data-design="paper"] .tile-shape .tile-text { display: none; }
html[data-design="paper"] .pk-tag { border-radius: 999px; border: 1.5px solid var(--rule); grid-template-columns: auto auto; }
html[data-design="paper"] .pk-tag small { display: none; }
html[data-design="paper"] .pk-emo { grid-row: auto; font-size: 1.1rem; }
html[data-design="paper"] .chip, html[data-design="paper"] .chip-top {
  background: color-mix(in srgb, var(--c-tension) 9%, var(--surface)); color: inherit;
  border-color: color-mix(in srgb, var(--c-tension) 22%, var(--rule));
}
html[data-design="paper"] .chip-n { background: transparent; color: var(--ink-soft); }
html[data-design="paper"] .chips { flex-direction: column; align-items: stretch; }
html[data-design="paper"] .chip { justify-content: space-between; }
html[data-design="paper"] .f-again { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
html[data-design="paper"] .again-emo::before { content: "💡"; }
html[data-design="paper"] .side-item.is-current a { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); }
html[data-design="paper"] .side-n { background: var(--accent); border: 0; color: #192634; }
html[data-design="paper"] .side-more summary { border-color: var(--ink); background: var(--surface); }
@media (min-width: 1100px) {
  /* in the narrow column the history becomes a dotted list of headlines */
  html[data-design="paper"] .days { flex-direction: column; overflow: visible; gap: 0; }
  html[data-design="paper"] .day {
    flex: none; display: grid; grid-template-columns: auto 4.5rem minmax(0, 1fr); align-items: baseline; gap: 0.5rem;
    background: none; border: 0; border-top: 1px dashed var(--rule); border-radius: 0; padding: 0.45rem 0;
  }
  html[data-design="paper"] .day::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); }
  html[data-design="paper"] .day time { font-size: 0.78rem; color: var(--ink-soft); grid-column: 2; }
  html[data-design="paper"] .day-title { grid-column: 3; font-size: 0.88rem; }
  html[data-design="paper"] .day-src, html[data-design="paper"] .day-pic, html[data-design="paper"] .day-t { display: none; }
}

/* ---- newspaper illustration (Studio and Paper, when the story has no photo) */
.f-art { position: relative; min-height: 13rem; }
.f-art .sheet {
  position: absolute; display: flex; align-items: center; justify-content: center; text-align: center;
  width: 62%; height: 46%; padding: 0.5rem; background: #fffdf5; color: #1d2731;
  border: 2px solid #1d2731; border-radius: 4px; box-shadow: 5px 6px 0 rgba(29, 39, 49, 0.15);
  font-family: var(--font-head); font-weight: 900; font-size: clamp(1rem, 1.6vw, 1.5rem); line-height: 1.05; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, transparent 0 9px, rgba(29, 39, 49, 0.07) 9px 10px);
}
.sheet-1 { top: 4%; inset-inline-start: 4%; transform: rotate(-6deg); }
.sheet-2 { top: 30%; inset-inline-start: 30%; transform: rotate(4deg); z-index: 1; }
.sheet-3 { top: 52%; inset-inline-start: 8%; transform: rotate(-2deg); z-index: 2; background-color: #fff3c4; }
.art-mark {
  position: absolute; top: 2%; inset-inline-end: 6%; width: 3.2rem; height: 3.2rem; z-index: 3;
  background: var(--accent); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ================================================================ phones */

@media (max-width: 759px) {
  .mast-in { gap: 0.4rem 0.8rem; }
  .mast-tag { display: none; }
  .mast-title { font-size: 1.25rem; }
  .mast-nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 0.2rem 0.8rem; overflow-x: auto; flex-wrap: nowrap; }
  .mast-nav a { white-space: nowrap; font-size: 0.98rem; }
  html[data-design="paper"] .mast-title { font-size: 1.45rem; }
  .f-head h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .f-rank { min-width: 2rem; height: 2rem; font-size: 1.05rem; }
  .f-time { margin-inline-start: 0; }
  .cv { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .cv-plot { height: 12.5rem; }
  .pk-tag { max-width: 9.5rem; padding: 0.25rem 0.45rem; font-size: 0.72rem; }
  .pk-tag small { display: none; }
  .pk-emo { font-size: 1.05rem; }
  .f-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-design="atlas"] .f-stats .tile-shape { grid-column: span 2; }
  .f-compare thead th:nth-child(2), .f-compare td:first-of-type { display: none; }
  .f-compare thead th:nth-child(3), .f-compare thead th:nth-child(4) { width: 3.4rem; }
  .cmp-pic { display: none; }
  .tile-num { font-size: 1.8rem; }
  html[data-design="signal"] .f-stats { grid-template-columns: 1fr 1fr; }
  html[data-design="signal"] .tile-tension { grid-column: span 2; }
  html[data-design="signal"] .f-again { clip-path: none !important; }
  .side-pic { width: 4.4rem; height: 3.4rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .cv-plot svg { animation: cv-in 0.9s ease-out both; }
  @keyframes cv-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
