/* ==========================================================
   晨報 · The Daybreak Ledger — 样式表
   日版（纸张）/ 夜版（墨色）两套主题，全部用 CSS 变量驱动
   ========================================================== */

:root {
  --paper: #f3eee3;
  --paper-2: #e9e1cf;
  --paper-3: #ddd3bd;
  --ink: #17140f;
  --ink-2: #4b443a;
  --ink-3: #8a8171;
  --rule: #17140f;
  --hair: rgba(23, 20, 15, .17);
  --accent: #c41a2b;
  --accent-ink: #fff;
  --hl: #ffe38a;
  /* 中国市场习惯：红涨绿跌 */
  --up: #c41a2b;
  --down: #13804f;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Playfair Display", "Noto Serif SC", serif;
  --gothic: "UnifrakturMaguntia", "Playfair Display", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: 24px;
  --gutter: 40px;
  --grain-op: .55;
  --stamp-blend: multiply;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #12110f;
  --paper-2: #1b1916;
  --paper-3: #26231e;
  --ink: #ece4d3;
  --ink-2: #b9b0a0;
  --ink-3: #7c7467;
  --rule: #ece4d3;
  --hair: rgba(236, 228, 211, .14);
  --accent: #ff4b3a;
  --accent-ink: #12110f;
  --hl: #6b5310;
  --up: #ff5a48;
  --down: #3fcf8e;
  --grain-op: .35;
  --stamp-blend: normal;
  color-scheme: dark;
}

/* 美股习惯：绿涨红跌 */
:root.mk-us { --up: #13804f; --down: #c41a2b; }
:root.mk-us[data-theme="dark"] { --up: #3fcf8e; --down: #ff5a48; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--paper);
  background-image: radial-gradient(120% 80% at 50% 0%, transparent 55%, color-mix(in srgb, var(--paper-2) 80%, transparent) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .6s ease, color .6s ease;
}
/* 新闻纸颗粒 */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .08 0 0 0 0 .05 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%);
  padding: 0 .08em;
}
strong { font-weight: 800; }

.sheet { max-width: 1340px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 阅读进度 ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 120;
  width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: var(--accent);
}

/* ---------- 报头 ---------- */
.mast { text-align: center; padding-top: 22px; }
.mast-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  font: 500 12px/1.4 var(--sans); letter-spacing: .08em; color: var(--ink-2);
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.mast-top .l { text-align: left; }
.mast-top .r { text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.mast-top .r svg { width: 16px; height: 16px; }
.mast-top b { font-family: var(--mono); font-weight: 600; }

.mast-en {
  font-family: var(--gothic); font-size: clamp(20px, 2.3vw, 30px);
  margin-top: 20px; letter-spacing: .02em; color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.mast-en::before, .mast-en::after { content: ""; width: 56px; height: 1px; background: var(--rule); }
.mast-title {
  font: 900 clamp(76px, 13.5vw, 190px)/.98 var(--serif);
  letter-spacing: .16em; margin-right: -.16em;
  margin-top: 4px;
}
.mast-title span { display: inline-block; animation: stamp 1s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.8) translateY(-6%); filter: blur(10px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
.mast-motto {
  font: italic 400 16px/1.5 var(--display); color: var(--ink-2);
  margin: 8px 0 18px; animation: fade 1.2s .5s both;
}
.mast-motto::before, .mast-motto::after { content: "✦"; font-style: normal; font-size: 10px; color: var(--accent); margin: 0 14px; vertical-align: 3px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.rule-double { height: 6px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule); }

.mast-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
  font: 500 12px/1.4 var(--sans); color: var(--ink-2); letter-spacing: .04em;
}
.mast-bar .l { text-align: left; }
.mast-bar .l b { color: var(--ink); font-family: var(--mono); }
.mast-bar .r { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.nav a {
  text-decoration: none; font: 700 14px/1 var(--serif); letter-spacing: .14em;
  padding: 6px 12px; position: relative; color: var(--ink);
}
.nav a i { font: italic 700 11px var(--display); color: var(--accent); margin-right: 5px; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }

.readc { font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.readc b { color: var(--ink); }
.ring { width: 18px; height: 18px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--hair); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.ibtn {
  width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 50%;
  display: inline-grid; place-items: center; font: 700 13px var(--sans); transition: .2s;
}
.ibtn:hover { background: var(--ink); color: var(--paper); }

/* ---------- 吸顶小报头 ---------- */
.mini {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
body.compact .mini { transform: none; }
.mini-in { display: flex; align-items: center; gap: 20px; height: 54px; }
.mini-brand { font: 900 22px/1 var(--serif); letter-spacing: .12em; text-decoration: none; }
.mini-date { font: 500 12px var(--mono); color: var(--ink-3); }
.mini .nav { flex: 1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.mini .nav a { font-size: 13px; white-space: nowrap; }
.mini-r { display: flex; align-items: center; gap: 8px; }

/* ---------- 滚动行情带 ---------- */
.ticker {
  margin-top: 0; background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap; position: relative;
  font: 500 13px/1 var(--mono); padding: 11px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: inline-flex; animation: marq var(--dur, 70s) linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; }
.tk b { font: 700 13px var(--sans); }
.tk.news b { color: var(--accent); }
.tk + .tk::before { content: "◆"; font-size: 7px; opacity: .45; margin-right: 22px; margin-left: -22px; }
.ticker .up { color: color-mix(in srgb, var(--up) 70%, #fff 30%); }
.ticker .down { color: color-mix(in srgb, var(--down) 65%, #fff 35%); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- 30 秒速读 ---------- */
.tldr {
  display: grid; grid-template-columns: auto repeat(var(--n, 3), minmax(0, 1fr));
  border-bottom: 1px solid var(--rule); margin-top: 22px;
  border-top: 1px solid var(--rule);
}
.tldr-label {
  writing-mode: vertical-rl; background: var(--accent); color: var(--accent-ink);
  font: 900 15px/1 var(--serif); letter-spacing: .35em; padding: 16px 10px;
  display: flex; align-items: center; justify-content: center;
}
.tldr-label small { font: 700 9px var(--sans); letter-spacing: .2em; margin-top: 8px; opacity: .8; }
.tldr-item { padding: 16px 22px; font-size: 15px; line-height: 1.65; position: relative; }
.tldr-item + .tldr-item { border-left: 1px solid var(--hair); }
.tldr-item .n { font: 900 italic 34px/0.9 var(--display); color: var(--accent); float: left; margin: 2px 12px 0 0; }

/* ---------- 版面 ---------- */
.sec { margin-top: 52px; }
.sec-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-top: 3px solid var(--rule); padding-top: 12px; position: relative;
}
.sec-head::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; border-top: 1px solid var(--rule); }
.sec-no { font: 900 italic 46px/0.8 var(--display); color: var(--accent); }
.sec-name { font: 900 30px/1 var(--serif); letter-spacing: .12em; }
.sec-en { font: 700 11px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); }
.sec-line { flex: 1; border-bottom: 1px dotted var(--ink-3); min-width: 40px; transform: translateY(-6px); }
.sec-meta { font: 500 12px var(--mono); color: var(--ink-3); }

.grid-wrap { overflow: hidden; margin: 12px calc(var(--pad) * -1) 0; }
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row dense; margin: 0 -1px -1px 0;
}

/* ---------- 通用版块 ---------- */
.blk {
  grid-column: span var(--span, 4); grid-row: span var(--rows, 1);
  padding: 22px var(--pad) 26px; position: relative; min-width: 0;
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s, background-color .4s;
  outline: none;
}
.blk.in { opacity: 1; transform: none; }
.blk::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
  background: var(--accent); transform: scaleY(0); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.blk.cur::before { transform: scaleY(1); }
body.focus .blk.in:not(.cur) { opacity: .1; filter: blur(1.5px) grayscale(1); }

.blk-act {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair);
  font: 700 12px var(--sans); color: var(--ink-3); background: var(--paper);
  opacity: 0; transition: .2s;
}
.blk:hover .blk-act, .blk.cur .blk-act { opacity: 1; }
.blk-act:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.blk.read .blk-act { opacity: 1; background: var(--ink); color: var(--paper); border-color: var(--ink); }

.blk.read > :not(.stamp):not(.blk-act) { opacity: .36; filter: grayscale(1); transition: opacity .5s, filter .5s; }
.stamp {
  position: absolute; top: 26px; right: 44px; z-index: 2; pointer-events: none;
  border: 3px double var(--accent); color: var(--accent); border-radius: 4px;
  font: 900 17px/1 var(--serif); letter-spacing: .3em; padding: 6px 4px 6px 10px;
  mix-blend-mode: var(--stamp-blend);
  opacity: 0; transform: rotate(-14deg) scale(2.6);
  transition: opacity .25s, transform .45s cubic-bezier(.3, 1.7, .5, 1);
}
.stamp small { display: block; font: 600 8px var(--mono); letter-spacing: .12em; margin-top: 4px; text-align: center; }
.blk.read .stamp { opacity: .9; transform: rotate(-14deg) scale(1); }

.kicker {
  font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; }
.bt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--rule); padding-bottom: 7px; margin-bottom: 14px;
}
.bt h3 { font: 900 16px/1.2 var(--serif); letter-spacing: .14em; }
.bt span { font: 600 10px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }

.h-lead { font: 900 clamp(32px, 4.3vw, 64px)/1.1 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.h1 { font: 900 30px/1.24 var(--serif); text-wrap: balance; }
.h2 { font: 800 22px/1.34 var(--serif); text-wrap: balance; }
.h3 { font: 800 18px/1.4 var(--serif); }
.deck { font: 400 18px/1.62 var(--serif); color: var(--ink-2); margin: 14px 0 18px; text-wrap: pretty; }
.deck.sm { font-size: 15.5px; margin: 10px 0 14px; }

.body { font-size: 15.5px; line-height: 1.82; color: var(--ink); }
.body p { margin-bottom: .85em; text-align: justify; text-wrap: pretty; }
.body p:last-child { margin-bottom: 0; }
.cols-2 { columns: 2; column-gap: 30px; column-rule: 1px solid var(--hair); }
.cols-3 { columns: 3; column-gap: 26px; column-rule: 1px solid var(--hair); }
.dropcap > p:first-child::first-letter {
  float: left; font: 900 3.9em/.9 var(--serif); color: var(--accent);
  margin: .06em .12em 0 0; padding: .04em .1em 0 0;
}

.byline {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font: 500 11.5px var(--mono); color: var(--ink-3); letter-spacing: .03em;
  margin-top: 16px; padding-top: 10px; border-top: 1px dotted var(--hair);
}
.byline .tag { font: 700 10.5px var(--sans); color: var(--ink-2); border: 1px solid var(--hair); padding: 2px 7px; letter-spacing: .08em; }
.note { font: 400 12px/1.5 var(--sans); color: var(--ink-3); margin-top: 12px; }

/* ---------- 网点图（半色调） ---------- */
.fig { margin: 4px 0 18px; }
.ht {
  position: relative; aspect-ratio: var(--ar, 16 / 9); overflow: hidden;
  background: var(--paper-2); isolation: isolate;
}
.ht::before, .ht::after { content: ""; position: absolute; inset: -2px; }
.ht::before {
  background-image: radial-gradient(circle, var(--ink) 0 1.15px, transparent 1.7px);
  background-size: 5px 5px;
  -webkit-mask-image: var(--m1); mask-image: var(--m1);
}
.ht::after {
  background-image: radial-gradient(circle, var(--ink) 0 2.6px, transparent 3.2px);
  background-size: 9px 9px; background-position: 2px 2px;
  -webkit-mask-image: var(--m2); mask-image: var(--m2); opacity: .9;
}
.ht .sun { position: absolute; z-index: 1; border-radius: 50%; background: var(--accent); mix-blend-mode: var(--stamp-blend); opacity: .9; }
.ht img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; z-index: 0; }
:root[data-theme="dark"] .ht img { mix-blend-mode: normal; opacity: .85; }
.ht.has-img::before { opacity: .22; -webkit-mask-image: none; mask-image: none; z-index: 1; }
.ht.has-img::after { display: none; }
.ht .ht-label {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font: 700 10px var(--mono); letter-spacing: .2em; background: var(--paper); padding: 3px 7px;
}
figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  font: 400 12px/1.5 var(--sans); color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--hair);
}
figcaption em { font-style: normal; color: var(--ink-3); font-family: var(--mono); font-size: 11px; white-space: nowrap; }

/* ---------- 快讯横幅 notice ---------- */
.t-notice { padding: 0 !important; border-bottom: 0; }
.notice {
  display: flex; align-items: center; gap: 16px; padding: 12px var(--pad);
  background: var(--accent); color: var(--accent-ink); font: 500 14.5px/1.5 var(--sans);
}
.notice .lab { font: 900 12px/1 var(--sans); letter-spacing: .24em; border: 1.5px solid currentColor; padding: 4px 6px 4px 9px; white-space: nowrap; }
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; flex: none; }
.notice time { margin-left: auto; font: 600 12px var(--mono); opacity: .85; }
.notice a { text-decoration-color: currentColor; }
.notice a:hover { color: inherit; }
@keyframes blink { 50% { opacity: .15; } }
.t-notice .blk-act { display: none; }
.t-notice .stamp { display: none; }

/* ---------- 速览 brief ---------- */
.brief { list-style: none; counter-reset: b; }
.brief li { display: grid; grid-template-columns: 44px 1fr; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.brief li:first-child { padding-top: 2px; }
.brief li:last-child { border-bottom: 0; }
.brief .n { font: 900 italic 28px/1 var(--display); color: var(--accent); }
.brief h4 { font: 800 16px/1.45 var(--serif); }
.brief p { font-size: 14px; line-height: 1.66; color: var(--ink-2); margin-top: 3px; }
.chip { display: inline-block; font: 700 10px/1 var(--sans); letter-spacing: .08em; padding: 3px 6px; margin-left: 6px; vertical-align: 2px; background: var(--ink); color: var(--paper); }

/* ---------- 行情 markets ---------- */
.mkt-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 6px 14px; align-items: center;
  padding: 9px 0; border-bottom: 1px dotted var(--hair);
}
.mkt-row:last-of-type { border-bottom: 0; }
.mkt-name { font: 700 14px/1.25 var(--sans); }
.mkt-name small { display: block; font: 400 10.5px var(--mono); color: var(--ink-3); letter-spacing: .06em; }
.mkt-v { text-align: right; font: 600 14px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.mkt-v em { display: block; font-style: normal; font-size: 11.5px; margin-top: 2px; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--ink-3); }
.spark { width: 76px; height: 26px; overflow: visible; }
.spark .l { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark .a { fill: currentColor; opacity: .1; }
.spark circle { fill: currentColor; }

/* ---------- 天气 weather ---------- */
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-ico { color: var(--accent); flex: none; }
.wx-ico svg { width: 70px; height: 70px; stroke-width: 1.3; }
.wx-temp { font: 900 96px/.9 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.wx-temp sup { font-size: .38em; vertical-align: .9em; letter-spacing: 0; margin-left: 2px; }
.wx-cond { font: 700 15px/1.4 var(--serif); margin-top: 6px; }
.wx-cond span { font: 500 13px var(--mono); color: var(--ink-3); display: block; }
.wx-curve { width: 100%; height: 48px; margin-top: 16px; overflow: visible; display: block; }
.wx-curve path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wx-curve .area { fill: var(--accent); opacity: .08; stroke: none; }
.wx-curve circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wx-hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); text-align: center; font: 500 11px/1.3 var(--mono); color: var(--ink-3); }
.wx-hours b { display: block; color: var(--ink); font-size: 13px; }
.wx-hours svg { width: 18px; height: 18px; margin: 4px auto; display: block; color: var(--ink-2); }
.wx-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--hair); }
.wx-meta div { padding: 8px 0; text-align: center; font: 400 11px var(--sans); color: var(--ink-3); }
.wx-meta div + div { border-left: 1px solid var(--hair); }
.wx-meta b { display: block; font: 700 15px var(--mono); color: var(--ink); }
.tip { margin-top: 14px; font-size: 14.5px; line-height: 1.65; padding-left: 12px; border-left: 3px solid var(--accent); }

/* ---------- 引语 quote ---------- */
.t-quote { display: flex; flex-direction: column; justify-content: center; }
.q-mark { font: 900 150px/1 var(--display); color: var(--accent); height: 70px; margin: -14px 0 6px -6px; display: block; }
.q-text { font: 700 24px/1.6 var(--serif); text-wrap: balance; letter-spacing: .02em; }
.q-by { margin-top: 18px; font: 500 13px var(--sans); color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.q-by::before { content: ""; width: 28px; height: 1px; background: var(--rule); }
.q-by em { font-style: italic; font-family: var(--display); color: var(--ink-3); }

/* ---------- 大数字 stat ---------- */
.t-stat { display: flex; flex-direction: column; }
.stat-v { font: 900 clamp(64px, 6.6vw, 104px)/.88 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat-v small { font: 700 .26em var(--sans); letter-spacing: .02em; margin-left: 6px; color: var(--ink-2); }
.stat-u { font: 600 12px var(--mono); letter-spacing: .12em; color: var(--ink-3); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); }
.stat-l { font: 800 17px/1.4 var(--serif); margin-top: 14px; }
.stat-d { display: inline-flex; align-items: center; gap: 4px; font: 700 13px var(--mono); margin-top: 8px; }
.stat-n { font-size: 13.5px; color: var(--ink-2); margin-top: auto; padding-top: 14px; line-height: 1.6; }

/* ---------- 时间线 timeline ---------- */
.tl { list-style: none; position: relative; margin-left: 6px; }
.tl::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.tl li { position: relative; padding: 0 0 14px 22px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute; left: -4px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--rule);
}
.tl li.hot::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.tl time { font: 700 12px var(--mono); color: var(--accent); letter-spacing: .04em; }
.tl p { font-size: 14px; line-height: 1.6; }

/* ---------- 今日议程 agenda ---------- */
.ag { list-style: none; }
.ag li { display: grid; grid-template-columns: 22px 54px 1fr; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px dotted var(--hair); cursor: pointer; user-select: none; }
.ag li:last-child { border-bottom: 0; }
.ag .box { width: 16px; height: 16px; border: 1.5px solid var(--rule); margin-top: 3px; position: relative; transition: .2s; }
.ag .box::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: .25s cubic-bezier(.3, 1.6, .5, 1); }
.ag li.done .box { background: var(--accent); border-color: var(--accent); }
.ag li.done .box::after { transform: rotate(45deg) scale(1); }
.ag time { font: 700 13px var(--mono); padding-top: 1px; }
.ag .txt { font-size: 14.5px; line-height: 1.55; }
.ag .txt small { display: block; font: 400 12px var(--sans); color: var(--ink-3); }
.ag li.done .txt, .ag li.done time { text-decoration: line-through; text-decoration-color: var(--accent); color: var(--ink-3); }
.ag .pri { font: 700 10px var(--sans); color: var(--accent); margin-left: 4px; }

/* ---------- 表格 table ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font: 700 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: left; color: var(--ink-2); border-bottom: 2px solid var(--rule); padding: 6px 10px 8px; white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.tbl .star { color: var(--accent); letter-spacing: 2px; white-space: nowrap; }

/* ---------- 条形图 chart ---------- */
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: minmax(64px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar .lb { font: 600 13px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .tr { height: 14px; position: relative; background: repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 10%); }
.bar .tr i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.bar.hi .tr i { background: var(--accent); }
.bar.neg .tr i { background: repeating-linear-gradient(-45deg, var(--down) 0 2px, transparent 2px 5px); outline: 1px solid var(--down); }
.blk.in .bar .tr i { width: var(--w); }
.bar .v { font: 700 13px var(--mono); min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 评论 opinion ---------- */
.op { border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: -6px; padding: 26px 28px; height: 100%; }
.op-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.op-av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 900 18px var(--serif); flex: none; }
.op-who { font: 700 14px/1.3 var(--sans); }
.op-who small { display: block; font: 400 12px var(--sans); color: var(--ink-3); }
.op-lab { margin-left: auto; font: 900 italic 13px var(--display); letter-spacing: .12em; color: var(--accent); border-bottom: 2px solid var(--accent); }
.op .h1 { font-size: 28px; margin-bottom: 14px; }

/* ---------- 阅读清单 list ---------- */
.rl { list-style: none; counter-reset: r; }
.rl li { counter-increment: r; border-bottom: 1px solid var(--hair); }
.rl li:last-child { border-bottom: 0; }
.rl a { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 11px 0; text-decoration: none; align-items: baseline; }
.rl a::before { content: counter(r, upper-alpha); font: 900 italic 18px var(--display); color: var(--accent); }
.rl h4 { font: 700 15.5px/1.45 var(--serif); transition: color .2s; }
.rl small { display: block; font: 400 12px var(--sans); color: var(--ink-3); margin-top: 2px; }
.rl .go { font: 600 11px var(--mono); color: var(--ink-3); white-space: nowrap; transition: transform .25s; }
.rl a:hover h4 { color: var(--accent); }
.rl a:hover .go { transform: translateX(4px); color: var(--accent); }

/* ---------- 每日一词 word ---------- */
.wd-term { font: 900 46px/1.1 var(--serif); letter-spacing: .04em; }
.wd-en { font: italic 700 18px var(--display); color: var(--ink-2); margin-top: 4px; }
.wd-ph { font: 500 12.5px var(--mono); color: var(--accent); margin-top: 6px; display: flex; gap: 12px; align-items: center; }
.wd-ph span { color: var(--ink-3); border: 1px solid var(--hair); padding: 1px 6px; font-family: var(--sans); font-size: 11px; }
.wd-def { font-size: 15.5px; line-height: 1.75; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.wd-ex { margin-top: 12px; font-size: 14px; color: var(--ink-2); padding-left: 12px; border-left: 3px solid var(--hair); }

/* ---------- 倒计时 countdown ---------- */
.cd { display: grid; gap: 0; }
.cd-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 12px; padding: 10px 0; border-bottom: 1px dotted var(--hair); }
.cd-row:last-child { border-bottom: 0; }
.cd-l { font: 700 15px/1.3 var(--serif); }
.cd-l small { display: block; font: 400 11.5px var(--mono); color: var(--ink-3); margin-top: 3px; }
.cd-n { font: 900 40px/0.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; text-align: right; }
.cd-n small { font: 700 12px var(--sans); letter-spacing: 0; margin-left: 3px; color: var(--ink-2); }
.cd-row.soon .cd-n { color: var(--accent); }
.cd-bar { grid-column: 1 / -1; height: 3px; background: var(--hair); position: relative; }
.cd-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.cd-row.soon .cd-bar i { background: var(--accent); }
.blk.in .cd-bar i { width: var(--w); }

/* ---------- 热榜 trends ---------- */
.tr-list { list-style: none; }
.tr-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--hair); position: relative; }
.tr-list li:last-child { border-bottom: 0; }
.tr-list .rk { font: 900 italic 20px/1 var(--display); color: var(--ink-3); }
.tr-list li:nth-child(-n+3) .rk { color: var(--accent); }
.tr-list .tx { font: 600 14.5px/1.45 var(--serif); }
.tr-list .badge { font: 700 10px var(--sans); padding: 1px 5px; margin-left: 6px; border: 1px solid var(--accent); color: var(--accent); vertical-align: 1px; }
.tr-list .badge.new { background: var(--accent); color: var(--accent-ink); }
.tr-list .ht-v { font: 600 11.5px var(--mono); color: var(--ink-3); text-align: right; min-width: 52px; }
.tr-list .heat { position: absolute; left: 30px; bottom: -1px; height: 2px; width: 0; background: var(--accent); opacity: .55; transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.blk.in .tr-list .heat { width: var(--w); }

/* ---------- 冷知识（反白） fact ---------- */
.blk.inv { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.blk.inv .kicker { color: var(--hl); }
:root[data-theme="dark"] .blk.inv .kicker { color: var(--accent); }
.blk.inv .blk-act { background: var(--ink); color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.fact-q { font: 900 120px/.8 var(--display); color: var(--accent); float: right; margin: 0 0 0 10px; opacity: .95; }
.fact-t { font: 900 24px/1.35 var(--serif); margin-bottom: 12px; }
.fact-b { font-size: 15px; line-height: 1.8; opacity: .88; }
.blk.inv mark { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 70%, transparent) 60%); }
.fact-src { font: 500 11px var(--mono); opacity: .55; margin-top: 16px; }

/* ---------- 分类广告 classifieds ---------- */
.cls { columns: 4 220px; column-gap: 16px; }
.cls-it { break-inside: avoid; border: 1px solid var(--rule); padding: 14px 14px 12px; margin-bottom: 16px; text-align: center; position: relative; }
.cls-it:nth-child(3n+2) { border-style: dashed; }
.cls-it:nth-child(4n) { border-width: 3px; border-style: double; }
.cls-it h4 { font: 900 17px/1.2 var(--serif); letter-spacing: .3em; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.cls-it p { font-size: 13.5px; line-height: 1.65; text-align: justify; text-align-last: center; }
.cls-it small { display: block; font: 600 10.5px var(--mono); color: var(--ink-3); margin-top: 8px; letter-spacing: .08em; }
.cls-it.hot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cls-it.hot h4 { border-color: currentColor; }
.cls-it.hot small { color: inherit; opacity: .8; }

.unknown { font: 13px var(--mono); color: var(--ink-3); border: 1px dashed var(--ink-3); padding: 12px; }

/* ---------- 页脚 ---------- */
.foot { margin: 64px auto 0; padding-bottom: 60px; text-align: center; }
.foot .rule-double { margin-bottom: 20px; }
.foot-brand { font: 900 28px var(--serif); letter-spacing: .3em; margin-right: -.3em; }
.foot p { font: 400 12px/1.8 var(--sans); color: var(--ink-3); margin-top: 8px; }
.keys { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; font: 500 12px var(--sans); color: var(--ink-2); }
kbd { font: 600 11px var(--mono); border: 1px solid var(--ink-3); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; margin-right: 4px; background: var(--paper); color: var(--ink); }
.fin { font: 900 italic 15px var(--display); letter-spacing: .5em; color: var(--accent); margin-top: 24px; }

/* ---------- 帮助浮层 & toast ---------- */
.help { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(4px); }
.help[hidden] { display: none; }
.help-card { background: var(--paper); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: -6px; padding: 32px 36px; width: min(420px, 92vw); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.help-card h3 { font: 900 22px var(--serif); letter-spacing: .2em; text-align: center; border-bottom: 2px solid var(--rule); padding-bottom: 10px; margin-bottom: 14px; }
.help-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; align-items: center; }
.help-card dt { text-align: right; }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 140; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); font: 600 13.5px var(--sans); padding: 11px 20px; letter-spacing: .04em;
  transition: .35s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 28px; --pad: 20px; }
  .blk { grid-column: span var(--span-md, 6); }
  .cols-3 { columns: 2; }
  .mini-date { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --pad: 16px; }
  .mast-top { grid-template-columns: 1fr 1fr; }
  .mast-top .c { grid-column: 1 / -1; grid-row: 1; }
  .mast-en::before, .mast-en::after { width: 24px; }
  .mast-motto::before, .mast-motto::after { display: none; }
  .mast-bar { grid-template-columns: 1fr auto; }
  .mast-bar .c { grid-column: 1 / -1; grid-row: 2; }
  .tldr { grid-template-columns: 1fr; }
  .tldr-label { writing-mode: horizontal-tb; padding: 8px 14px; justify-content: flex-start; gap: 10px; }
  .tldr-label small { margin: 0; }
  .tldr-item { padding: 14px 0; }
  .tldr-item + .tldr-item { border-left: 0; border-top: 1px solid var(--hair); }
  .blk { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .cols-2, .cols-3 { columns: 1; }
  .sec-name { font-size: 24px; }
  .sec-no { font-size: 36px; }
  .sec-line { display: none; }
  .mini .nav { display: none; }
  .mini-in { justify-content: space-between; }
  .op { padding: 20px; }
  .wx-temp { font-size: 80px; }
  .blk-act { opacity: 1; width: 24px; height: 24px; top: 6px; right: 6px; }
  .bt span { display: none; }
  .notice time { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .blk { opacity: 1; transform: none; }
}

@media print {
  .ticker, .mini, .progress, .blk-act, .help, .toast, .ibtn, .keys { display: none !important; }
  body::after { display: none; }
  .blk { opacity: 1 !important; transform: none !important; break-inside: avoid; }
  .sec { break-before: auto; }
}

/* ==========================================================
   空白页 · 往期 · 过期提示
   ========================================================== */
.arch { position: relative; display: inline-block; margin-left: 10px; }
.arch summary { list-style: none; cursor: pointer; font: 700 12px var(--sans); color: var(--accent); letter-spacing: .08em; padding: 2px 8px; border: 1px solid currentColor; border-radius: 10px; }
.arch summary::-webkit-details-marker { display: none; }
.arch[open] summary { background: var(--accent); color: var(--accent-ink); }
.arch ol {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 120; list-style: none; width: 340px; max-height: 60vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--rule); box-shadow: 6px 6px 0 var(--ink); text-align: left; animation: pop .25s ease;
}
.arch li a { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; padding: 9px 12px; text-decoration: none; border-bottom: 1px dotted var(--hair); align-items: baseline; }
.arch li a:hover, .arch li a.on { background: var(--paper-2); }
.arch li a.on time { color: var(--accent); }
.arch time { font: 700 12px var(--mono); }
.arch span { font: 600 13px/1.4 var(--serif); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch em { font: 500 10.5px var(--mono); font-style: normal; color: var(--ink-3); }

.stale-wrap { margin-top: 18px; }
.stale {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent);
  font: 500 14px/1.5 var(--sans);
}
.stale b { color: var(--accent); }
.stale-nav { display: flex; gap: 14px; font: 600 13px var(--sans); }
.stale-nav a { text-decoration: none; }
.stale-nav a.go { color: var(--accent-ink); background: var(--accent); padding: 2px 10px; }

.empty { text-align: center; padding: 70px 0 110px; }
.empty h2 { font: 900 clamp(30px, 4.4vw, 54px)/1.2 var(--serif); letter-spacing: .12em; margin-top: 34px; }
.empty p { font: 400 16px/1.8 var(--serif); color: var(--ink-2); margin-top: 12px; }
.empty-act { margin-top: 28px; min-height: 44px; }
.empty-btn { display: inline-block; font: 700 14px var(--sans); letter-spacing: .1em; text-decoration: none; padding: 11px 22px; border: 1.5px solid var(--rule); box-shadow: 4px 4px 0 var(--ink); transition: .2s; }
.empty-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); color: var(--ink); }
.empty-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.empty-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
.empty-dots span:nth-child(2) { animation-delay: .2s; }
.empty-dots span:nth-child(3) { animation-delay: .4s; }
/* 印刷机：两只滚筒 + 不断吐出的纸 */
.press { position: relative; width: 240px; height: 150px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 0; }
.press .roll { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: repeating-conic-gradient(var(--ink) 0 8deg, transparent 8deg 30deg); animation: spin 1.6s linear infinite; position: relative; z-index: 2; }
.press .roll:last-child { animation-direction: reverse; }
.press .roll::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.sheet-out { position: relative; width: 110px; height: 150px; overflow: hidden; margin: 0 -6px; }
.sheet-out i {
  position: absolute; left: 6px; right: 6px; height: 120px; top: 0; background: var(--paper);
  border: 1.5px solid var(--ink); animation: feed 3.2s linear infinite;
  background-image: linear-gradient(var(--ink) 0 0), repeating-linear-gradient(transparent 0 7px, color-mix(in srgb, var(--ink) 35%, transparent) 7px 8px);
  background-size: 50% 6px, 100% 100%; background-repeat: no-repeat, repeat; background-position: 10px 10px, 0 24px;
}
.sheet-out i:nth-child(2) { animation-delay: -.8s; }
.sheet-out i:nth-child(3) { animation-delay: -1.6s; }
.sheet-out i:nth-child(4) { animation-delay: -2.4s; }
@keyframes feed { from { transform: translateY(-130px); } to { transform: translateY(150px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .arch ol { width: min(320px, 86vw); }
  .stale { font-size: 13px; }
}
.sec-by { color: var(--accent); font-weight: 700; }

/* ==========================================================
   反馈 · 剪报夹 · 搜索
   ========================================================== */
.ibtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ibtn.sv { position: relative; }
.sv-n { position: absolute; top: -6px; right: -7px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: 700 10px/16px var(--mono); font-style: normal; padding: 0 4px; }
.sv-n:empty { display: none; }

.blk-fb {
  position: absolute; top: 42px; right: 10px; z-index: 3; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transform: translateX(4px); transition: opacity .2s, transform .2s;
}
.blk:hover .blk-fb, .blk.cur .blk-fb, .blk.liked .blk-fb, .blk.saved .blk-fb, .blk.disliked .blk-fb { opacity: 1; transform: none; }
.blk-fb button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair); background: var(--paper);
  display: grid; place-items: center; color: var(--ink-3); transition: .2s;
}
.blk-fb svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.blk-fb button:hover { color: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.blk:not(.liked):not(.disliked):not(.saved):not(:hover):not(.cur) .blk-fb { pointer-events: none; }
.blk.liked [data-fb="like"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.blk.disliked [data-fb="dislike"] { background: var(--ink-3); color: var(--paper); border-color: var(--ink-3); }
.blk.saved [data-fb="save"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.blk.saved [data-fb="save"] svg, .blk.liked [data-fb="like"] svg { fill: currentColor; }
/* 不在已点过的状态里时，只显示被点过的那个按钮，减少干扰 */
.blk:not(:hover):not(.cur) .blk-fb button { display: none; }
.blk.liked:not(:hover):not(.cur) [data-fb="like"], .blk.disliked:not(:hover):not(.cur) [data-fb="dislike"], .blk.saved:not(:hover):not(.cur) [data-fb="save"] { display: grid; }
.blk.inv .blk-fb button { background: var(--ink); border-color: color-mix(in srgb, var(--paper) 30%, transparent); color: var(--paper-3); }
.fb-tag { display: none; }
.blk.disliked > :not(.blk-fb):not(.blk-act):not(.fb-tag):not(.stamp) { opacity: .28; filter: grayscale(1) blur(.6px); transition: .4s; }
.blk.disliked .fb-tag { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); z-index: 2; font: 800 12px var(--sans); letter-spacing: .2em; padding: 6px 12px; border: 1.5px solid var(--ink-3); color: var(--ink-2); background: var(--paper); pointer-events: none; }
.blk.flash { animation: flash 2.2s ease; }
@keyframes flash { 0%, 40% { background: color-mix(in srgb, var(--hl) 55%, transparent); } 100% { background: transparent; } }

.drawer { position: fixed; inset: 0; z-index: 135; background: color-mix(in srgb, var(--ink) 35%, transparent); opacity: 0; transition: opacity .25s; }
.drawer.on { opacity: 1; }
.drawer[hidden] { display: none; }
.drawer-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--paper); border-left: 1px solid var(--rule); box-shadow: -10px 0 30px -12px rgba(0, 0, 0, .35); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.drawer.on .drawer-card { transform: none; }
.drawer-card header { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; border-bottom: 3px double var(--rule); }
.drawer-card h3 { font: 900 22px var(--serif); letter-spacing: .3em; }
.drawer-n { font: 500 12px var(--mono); color: var(--ink-3); flex: 1; }
.drawer-list { list-style: none; overflow: auto; flex: 1; padding: 6px 0; }
.drawer-list a { display: grid; grid-template-columns: 46px 1fr; gap: 2px 10px; padding: 11px 20px; text-decoration: none; border-bottom: 1px dotted var(--hair); }
.drawer-list a:hover { background: var(--paper-2); }
.drawer-list time { font: 700 12px var(--mono); color: var(--accent); grid-row: span 2; padding-top: 2px; }
.drawer-list span { font: 700 15px/1.45 var(--serif); }
.drawer-list small { font: 400 11.5px var(--sans); color: var(--ink-3); }
.drawer-empty { padding: 40px 24px; text-align: center; color: var(--ink-3); font-size: 14px; line-height: 2; }

.srch { position: fixed; inset: 0; z-index: 136; background: color-mix(in srgb, var(--ink) 40%, transparent); backdrop-filter: blur(3px); display: grid; justify-items: center; align-items: start; padding-top: 12vh; opacity: 0; transition: opacity .2s; }
.srch.on { opacity: 1; }
.srch[hidden] { display: none; }
.srch-card { width: min(680px, 92vw); background: var(--paper); border: 1px solid var(--rule); box-shadow: 8px 8px 0 var(--ink); max-height: 72vh; display: flex; flex-direction: column; }
.srch-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 3px double var(--rule); }
.srch-in svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; flex: none; }
.srch-in input { flex: 1; border: 0; background: transparent; font: 600 19px var(--serif); color: var(--ink); outline: none; min-width: 0; }
.srch-in input::-webkit-search-cancel-button { display: none; }
.srch-res { overflow: auto; }
.srch-tip { padding: 14px 18px; font: 400 13px var(--sans); color: var(--ink-3); }
.srch-hit { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 12px 18px; text-decoration: none; border-top: 1px dotted var(--hair); }
.srch-hit:hover, .srch-hit:focus { background: var(--paper-2); outline: none; }
.srch-hit time { font: 700 12px var(--mono); color: var(--accent); padding-top: 3px; }
.srch-hit b { font: 800 15.5px/1.4 var(--serif); }
.srch-hit small { font: 400 11px var(--sans); color: var(--ink-3); margin-left: 8px; }
.srch-hit p { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 760px) {
  .blk-fb { top: 38px; right: 6px; }
  .blk-fb button { display: grid !important; width: 24px; height: 24px; }
  .blk-fb { opacity: 1; transform: none; }
  .blk:not(.liked):not(.disliked):not(.saved):not(:hover):not(.cur) .blk-fb { pointer-events: auto; }
  .srch { padding-top: 6vh; }
}
.ibtn[hidden] { display: none; }
