/* Cut — consumer UI. Hebrew, RTL. One sans for UI, headlines, and readings. */

/* Variable woff2, same origin. unicode-range keeps Noto off Hebrew.
   The axis covers 400–800, so those CSS weights are the real files. */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/heebo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/noto-sans-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/noto-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/noto-sans-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --bg: #f3efe8;
  --surface: #fffcf8;
  --surface-2: #efeae2;
  --ink: #1c1915;
  --ink-2: #3f3a34;
  --ink-3: #4a453e;
  --cut: #b42318;
  --line: rgba(28, 25, 21, 0.14);
  --alert: #9f1239;
  --he: #1c1915;
  --en: #8a5a12;
  --ar: #0f6b4c;
  --ru: #31457a;
  --shadow: 0 1px 0 rgba(28, 25, 21, 0.04);
  --sans: "Heebo", "Arial Hebrew", "Segoe UI", sans-serif;
  --arabic: "Noto Sans Arabic", "Heebo", sans-serif;
  --cyr: "Noto Sans", "Heebo", sans-serif;
  --header-offset: 8.5rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) ::selection { background: #5c2a24; color: #f4f0e8; }
  :root:not([data-theme="light"]) {
    --bg: #12110e;
    --surface: #1c1a16;
    --surface-2: #2a2722;
    --ink: #f4f0e8;
    --ink-2: #d4cdc2;
    --ink-3: #b7afa3;
    --cut: #ff8b7e;
    --line: rgba(244, 240, 232, 0.14);
    --alert: #ff8b9a;
    --he: #f4f0e8;
    --en: #f0c27a;
    --ar: #7dcea0;
    --ru: #b7c4ea;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #12110e;
  --surface: #1c1a16;
  --surface-2: #2a2722;
  --ink: #f4f0e8;
  --ink-2: #d4cdc2;
  --ink-3: #b7afa3;
  --cut: #ff8b7e;
  --line: rgba(244, 240, 232, 0.14);
  --alert: #ff8b9a;
  --he: #f4f0e8;
  --en: #f0c27a;
  --ar: #7dcea0;
  --ru: #b7c4ea;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-offset); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #f0d2cc; color: #1c1915; }
:root[data-theme="dark"] ::selection { background: #5c2a24; color: #f4f0e8; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: calc(8px + env(safe-area-inset-top)); }
.num, .n, .chipstat b {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* ── wordmark ─────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.blade {
  width: 3px;
  height: 0.95em;
  background: var(--cut);
  transform: skewX(-16deg);
  border-radius: 1px;
  flex: none;
  display: inline-block;
}
.word {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0;
  line-height: 1;
}
.tag {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.35;
}

/* ── home ─────────────────────────────────────────────── */
.page-home header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 8px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.grow { flex: 1; }
.chipstat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.chipstat b { color: var(--ink); font-weight: 600; }
.chipstat.warn, .chipstat.warn b { color: var(--alert); }
.iconbtn {
  border: 1px solid var(--line);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { display: block; }

.searchwrap { position: relative; margin: 0 0 4px; }
.searchwrap svg {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink-3);
  pointer-events: none;
}
.search {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding-block: 10px;
  padding-inline: 40px 14px;
  min-height: 44px;
}
.search::placeholder { color: var(--ink-3); }
.search:focus { outline: none; border-color: var(--ink); }
.search:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding: 2px 0 8px;
}
.seg { display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
.toolbar .seg:first-child { flex: 1 1 16rem; }

.chip {
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  color: var(--ink-3);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  min-height: 40px;
  padding: 6px 8px;
}
.chip:hover { color: var(--ink); }
.chip .n { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.toolbar .chip[aria-pressed="true"] {
  background: transparent;
  color: var(--ink);
  border-bottom-color: var(--cut);
  font-weight: 600;
}
.you {
  margin-inline-start: auto;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  min-height: 40px;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--cut);
}
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet .chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  min-height: 36px;
  padding: 4px 12px;
}
.sheet .chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.sheet .chip[aria-pressed="true"] .n { color: color-mix(in srgb, var(--bg) 75%, transparent); }

.page-home main {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 18px calc(28px + env(safe-area-inset-bottom));
}
.count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-3);
  padding: 0 2px 10px;
  font-weight: 500;
}
#active { text-align: start; }
.feed { display: flex; flex-direction: column; }

.page-home article h2 { margin: 0; }
.page-home article {
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0 14px;
  box-shadow: none;
  animation: rise 0.22s ease both;
}
.page-home article.is-wire { padding: 12px 0; }
.page-home article.is-lead {
  padding-top: 8px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.page-home article.is-alert { border-bottom-color: var(--alert); }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.topline, .wire-meta, .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.topic, .flag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-3);
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.flag { color: var(--alert); background: transparent; }
.pip { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.page-home .head {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.42;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}
.page-home .is-lead .head { font-weight: 650; font-size: 1.52rem; line-height: 1.36; }
.page-home .is-wire .head {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.5;
}
.page-home .head::after {
  content: "";
  position: absolute;
  inset: 0;
}
.page-home article[data-lang="ar"] .head,
.page-home article[data-lang="ar"] .cut-read p,
.l-dot-ar .cov-title { font-family: var(--arabic); }
.page-home article[data-lang="ru"] .head,
.page-home article[data-lang="ru"] .cut-read p,
.l-dot-ru .cov-title { font-family: var(--cyr); }
.page-home article[data-lang="en"] .meta,
.page-home article[data-lang="ru"] .meta,
.page-home article[data-lang="en"] .wire-meta,
.page-home article[data-lang="ru"] .wire-meta { direction: ltr; }

.lead-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 0;
  margin: 0 0 12px;
  background: var(--surface-2);
  display: block;
}
.cut-read { margin-top: 10px; position: relative; z-index: 1; pointer-events: none; }
.cut-read a, .cut-kicker { pointer-events: auto; }
.cut-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--cut);
}
.cut-kicker .blade { height: 0.8em; }
.cut-read p {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
}
.page-home .cut-read p:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-home .cut-read.is-long p:last-child { -webkit-line-clamp: 3; }
.readmore {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  color: var(--cut);
  text-decoration: none;
  margin-inline-start: auto;
}
.readmore:hover { text-decoration: underline; }
.cut-wait {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.cut-wait.busy::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--cut);
  vertical-align: middle;
}
.cites { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cite, .publisher {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.cite:hover, .publisher:hover { color: var(--ink); }
.src, .cov-toggle, .cov-more, .cov-row {
  position: relative;
  z-index: 2;
}
.src {
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 4px 8px;
  min-height: 32px;
  color: var(--ink);
  background: var(--surface-2);
}
.src:hover { background: color-mix(in srgb, var(--ink) 10%, var(--surface-2)); }
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
}
.cluster-n { color: var(--ink-2); font-weight: 700; }
.cov-toggle {
  margin-inline-start: auto;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 32px;
  padding: 4px 10px;
}
.cov-toggle[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-home article[data-open="false"] .cov { display: none; }
.cov { margin-top: 8px; }
.cov-row {
  display: grid;
  grid-template-columns: auto minmax(88px, auto) 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 7px 4px;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}
.cov-row:hover { background: var(--surface-2); }
.cov-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lc, var(--ink-3)); align-self: center; }
.cov-src { font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-lean { font-weight: 500; color: var(--ink-3); }
.cov-title { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cov-rest[hidden] { display: none !important; }
.cov-more {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 0 0;
  min-height: 36px;
}
.l-dot-he { --lc: var(--he); }
.l-dot-en { --lc: var(--en); }
.l-dot-ar { --lc: var(--ar); }
.l-dot-ru { --lc: var(--ru); }

.more-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  min-height: 48px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.more-btn:hover { background: var(--surface-2); }
.more-btn[disabled] { opacity: 0.55; cursor: default; }
.empty { text-align: center; padding: 64px 16px; color: var(--ink-3); }
.empty h2 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); margin: 0 0 6px; }

.dock {
  display: none;
  position: fixed;
  z-index: 45;
  inset-inline: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.dock button {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  background: none;
  border: none;
  min-height: 52px;
  cursor: pointer;
}
.dock button:hover, .dock button:focus-visible { color: var(--ink); }

/* ── prefs sheet ──────────────────────────────────────── */
#prefs-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 25, 21, 0.46);
  display: grid;
  place-items: end center;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
#prefs-overlay[hidden] { display: none; }
.sheet {
  position: relative;
  width: min(480px, 100%);
  max-height: min(88vh, 680px);
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 0;
  border: 1px solid var(--line);
  padding: 22px 20px 16px;
}
.sheet-x { position: absolute; top: 12px; inset-inline-end: 12px; }
.sheet h2 {
  margin: 8px 0 6px;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}
.sheet .lead, .hint, .push-note {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.hint { margin: -4px 0 10px; font-size: 12.5px; color: var(--ink-3); }
.sheet-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.sheet .rail { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
.sheet-sec { margin-bottom: 14px; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.sheet-actions button {
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 16px;
}
.sheet-actions .skip { background: transparent; border: none; color: var(--ink-2); }
.sheet-actions .save { background: var(--ink); color: var(--bg); border: none; }
#push-enable, #pwa-install-btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 999px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  margin-top: 8px;
}
#push-enable { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#push-enable[disabled], #pwa-install-btn[disabled] { opacity: 0.55; cursor: default; }
body.sheet-open { overflow: hidden; }

/* ── story share page ─────────────────────────────────── */
.page-story {
  padding-bottom: env(safe-area-inset-bottom);
}
.page-story header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.page-story .bar { padding: 12px 0; }
.page-story main {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 18px 72px;
}
.page-story .hero {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 0;
  margin: 0 0 16px;
  background: var(--surface-2);
  display: block;
}
.page-story .kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.page-story h1 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.75rem;
  line-height: 1.34;
  margin: 0 0 14px;
  letter-spacing: 0;
}
.page-story .lead-out {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-underline-offset: 3px;
}
.page-story .modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.page-story .modes a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
}
.page-story .modes a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.page-story .cut-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cut);
  margin: 0 0 8px;
}
.page-story .reading {
  background: transparent;
  border: none;
  border-inline-start: 3px solid var(--cut);
  border-radius: 0;
  padding: 18px 18px 8px;
}
.page-story .mode-meta {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-story .badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.page-story .blk { margin-bottom: 16px; }
.page-story .blk h2 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}
.page-story .blk p {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.78;
}
.page-story .pending {
  background: transparent;
  border: none;
  border-inline-start: 3px solid var(--line);
  border-radius: 0;
  padding: 18px;
  color: var(--ink-2);
}
.page-story .cov { margin-top: 28px; }
.page-story .cov h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 0 4px;
}
.page-story .cov-lead { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.page-story .foot {
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.6;
}
.page-story .foot a { color: var(--ink); font-weight: 700; }
.share {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 14px;
}
.share:hover { opacity: 0.92; }

@media (min-width: 721px) {
  .brand { flex-direction: row; align-items: baseline; gap: 10px; }
  .page-home main { padding-bottom: 64px; }
}
@media (max-width: 720px) {
  :root { --header-offset: 9.5rem; }
  .chipstat.hide-sm, .hide-sm { display: none; }
  .searchwrap { display: none; }
  .searchwrap.open { display: block; }
  .page-home .head { font-size: 1.12rem; line-height: 1.44; }
  .page-home .is-lead .head { font-size: 1.32rem; line-height: 1.38; }
  .page-story h1 { font-size: 1.42rem; line-height: 1.36; }
  .page-story .blk p { font-size: 1.0625rem; line-height: 1.75; }
  .page-story .reading { padding: 14px 14px 6px; }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); }
  .page-home main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  #prefs-overlay { place-items: end stretch; padding: 0; }
  .sheet { width: 100%; border-radius: 0; max-height: 92vh; border-inline: none; border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .cut-wait.busy::before { animation: none; }
}
