/* HackerPapers · 报纸版式, following www.qiaomu.ai DESIGN.md:
   black and white, serif headlines, two kinds of 1px rule, square corners, no cards, no decorative motion. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f5f5f3;
  --ink: #121212;
  --ink-2: #4a4a4a;
  --ink-3: #767676;
  --ink-4: #b4b4b4;
  --rule: #e2e2e2;
  --rule-strong: #121212;
  --scrim: rgb(0 0 0 / 50%);
  --serif: "HP Serif", "HP Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --latin: "Newsreader", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --max: 1240px;
  --gutter: 48px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121212;
    --paper-2: #1c1c1c;
    --ink: #ececea;
    --ink-2: #b9b9b6;
    --ink-3: #8a8a87;
    --ink-4: #555553;
    --rule: #2c2c2c;
    --rule-strong: #ececea;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121212;
  --paper-2: #1c1c1c;
  --ink: #ececea;
  --ink-2: #b9b9b6;
  --ink-3: #8a8a87;
  --ink-4: #555553;
  --rule: #2c2c2c;
  --rule-strong: #ececea;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 64px; overflow-x: clip; }
body { min-width: 320px; overflow-x: clip; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; }
ol, ul { list-style: none; }
input { font: inherit; color: inherit; border-radius: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.latin { font-family: var(--latin); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 6px 12px; }
[hidden] { display: none !important; }

/* Text links: ink, 500, underline on hover; external links get ↗, internal get → */
.more, .links a, .foot a, .ext {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 160ms var(--ease);
  white-space: nowrap;
}
.more:hover, .links a:hover, .foot a:hover, .ext:hover { text-decoration-color: currentColor; }
.more::after { content: " →"; }
a.more[target="_blank"]::after, .ext::after { content: " ↗"; }

/* ============ Masthead ============ */
.mast .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 76px; }
.dateline { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.wm { font-family: var(--latin); font-weight: 500; font-size: 30px; letter-spacing: -0.01em; }
.tools { display: flex; justify-content: flex-end; gap: 2px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2); transition: color 160ms var(--ease); }
.icon-btn:hover { color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .icon-btn .sun { display: block; }
  :root:not([data-theme]) .icon-btn .moon { display: none; }
}

/* ============ Navbar ============ */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: border-color 200ms var(--ease); }
.navbar.scrolled { border-bottom-color: var(--rule-strong); }
.navbar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 48px; }
.mini { justify-self: start; font-family: var(--latin); font-weight: 500; font-size: 18px; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease), visibility 200ms; }
.scrolled .mini { opacity: 1; visibility: visible; }
.nav { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a { white-space: nowrap; transition: color 160ms var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.sub-btn { justify-self: end; padding: 6px 14px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background 160ms var(--ease); }
.sub-btn:hover { background: var(--ink-2); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 22px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; transition: background 160ms var(--ease); white-space: nowrap; }
.btn:hover { background: var(--ink-2); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ============ Hero ============ */
.hero { padding-top: 72px; }
.hero h1 { margin: 0 0 48px; font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 7.6vw, 116px); line-height: 1.12; letter-spacing: 0.01em; }
.hero h1 .ln { display: block; white-space: nowrap; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; padding: 32px 0 24px; border-top: 1px solid var(--rule-strong); }
.lede { max-width: 32em; font-size: 18px; line-height: 1.95; color: var(--ink-2); text-wrap: pretty; }
.lede b { color: var(--ink); font-weight: 600; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.proof { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: 22px 24px; align-content: start; }
.proof li { display: contents; }
.proof .num { font-family: var(--latin); font-size: 44px; line-height: 1; letter-spacing: -0.01em; }
.proof .lab { font-size: 15px; color: var(--ink-2); }

/* ============ Sections ============ */
.sec { padding-top: 96px; }
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 22px; border-top: 1px solid var(--rule-strong); margin-bottom: 18px; }
.kicker { font-family: var(--latin); font-size: 15px; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 6px; }
.sh h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.25; letter-spacing: 0.02em; }
.sh-note { color: var(--ink-3); font-size: 15px; padding-bottom: 6px; }
.sec-lede { color: var(--ink-2); max-width: 40em; margin-bottom: 18px; }

/* ============ Paper rows ============ */
.rows { counter-reset: row; }
.row { border-top: 1px solid var(--rule); }
.row:first-child { border-top: 0; }
.row > a { display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px; gap: 24px; align-items: baseline; padding: 22px 0; }
.row .rk { font-family: var(--latin); font-size: 22px; color: var(--ink-3); line-height: 1; }
.row h3 { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.4; letter-spacing: 0.02em; text-wrap: pretty;
  text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color 160ms var(--ease); }
.row > a:hover h3 { text-decoration-color: currentColor; }
.row .en { font-family: var(--latin); font-size: 15.5px; line-height: 1.5; color: var(--ink-3); margin-top: 4px; overflow-wrap: anywhere; }
.row .why { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; margin-top: 8px; max-width: 46em; }
.row .side { display: grid; gap: 2px; font-size: 13px; color: var(--ink-3); text-align: right; }
.row .side .cat { color: var(--ink-2); }
.row .side .nums { font-family: var(--latin); font-size: 14.5px; }
.row .pick { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: 0.04em; }
mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* ============ Toolbar ============ */
.toolbar { position: sticky; top: 48px; z-index: 40; background: var(--paper); padding: 14px 0 12px; border-bottom: 1px solid var(--rule); }
.search { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--rule-strong); padding: 4px 0 8px; }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 17px; padding: 4px 0; outline: none; }
.search input::placeholder { color: var(--ink-4); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
kbd { font-family: var(--latin); font-size: 13px; color: var(--ink-3); border: 1px solid var(--rule); padding: 0 7px; line-height: 20px; }
.filters { display: grid; gap: 8px; margin-top: 12px; }
.frow { display: flex; align-items: baseline; gap: 6px 20px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 14px; color: var(--ink-2); }
.frow::-webkit-scrollbar { display: none; }
.frow [role="group"] { display: flex; gap: 6px 18px; }
.frow button { white-space: nowrap; color: var(--ink-2); transition: color 160ms var(--ease); padding: 2px 0; }
.frow button:hover { color: var(--ink); }
.frow button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.frow button small { font-family: var(--latin); font-size: 13px; color: var(--ink-3); margin-left: 4px; font-weight: 400; }
.flabel { color: var(--ink-3); }
.fsep { width: 1px; height: 14px; background: var(--rule); align-self: center; flex: none; }
.tg::before { content: ""; display: inline-block; width: 11px; height: 11px; border: 1px solid var(--ink-3); margin-right: 7px; vertical-align: -1px; }
.tg[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.status { font-size: 13.5px; color: var(--ink-3); padding: 14px 0 0; min-height: 37px; }
.status button { font-size: 13.5px; margin-left: 12px; }
.loadmore { display: block; margin: 28px auto 0; padding: 11px 26px; border: 1px solid var(--rule-strong); font-size: 14.5px; font-weight: 600; }
.loadmore:hover { background: var(--ink); color: var(--paper); }
.empty { padding: 56px 0; color: var(--ink-2); }

/* ============ About ============ */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 8px; }
.how li { padding: 8px 32px 0 0; }
.how li + li { padding-left: 32px; border-left: 1px solid var(--rule); }
.how .n { font-size: 28px; color: var(--ink-3); }
.how h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin: 6px 0 8px; letter-spacing: 0.02em; }
.how p { font-size: 14.5px; color: var(--ink-2); }

/* ============ Paper page ============ */
.paper { max-width: 820px; padding-top: 40px; }
.crumbs { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-3); }
.crumbs a { font-weight: 500; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.p-kicker { margin-top: 40px; font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.p-kicker b { color: var(--ink); font-weight: 600; }
.paper h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.22; letter-spacing: 0.01em; margin-top: 14px; text-wrap: pretty; }
.p-en { font-family: var(--latin); font-size: 21px; line-height: 1.45; color: var(--ink-3); margin-top: 14px; overflow-wrap: anywhere; }
.p-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.p-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rule); }
.p-stats div { display: grid; }
.p-stats .num { font-family: var(--latin); font-size: 34px; line-height: 1.1; }
.p-stats .lab { font-size: 13px; color: var(--ink-3); }
.p-sec { margin-top: 56px; }
.p-sec > h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: 0.02em; padding-top: 18px; border-top: 1px solid var(--rule-strong); margin-bottom: 18px; }
.p-sum { font-size: 18px; line-height: 1.95; color: var(--ink); text-wrap: pretty; }
.p-why { margin-top: 18px; color: var(--ink-2); font-size: 16px; }
.p-why b { color: var(--ink); font-weight: 600; }
.p-tags { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.p-tags span + span::before { content: " · "; }
.cm { padding: 22px 0; }
.cm + .cm { border-top: 1px solid var(--rule); }
.cm .pt { font-weight: 600; font-size: 17px; line-height: 1.6; color: var(--ink); }
.cm .zhc { margin-top: 8px; color: var(--ink-2); white-space: pre-wrap; font-size: 15.5px; line-height: 1.9; }
.cm .by { margin-top: 10px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.cm .by a { font-family: var(--latin); font-size: 14px; color: var(--ink-2); }
.cm .by a:hover { color: var(--ink); }
.cm details summary { cursor: pointer; color: var(--ink-3); list-style: none; }
.cm details summary::-webkit-details-marker { display: none; }
.cm details summary::after { content: " ↓"; }
.cm details[open] summary::after { content: " ↑"; }
.cm .orig { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-family: var(--latin); font-size: 16px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.subs li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; align-items: baseline; }
.subs li + li { border-top: 1px solid var(--rule); }
.subs .y { font-family: var(--latin); font-size: 18px; }
.subs .t { color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere; }
.subs .n { font-family: var(--latin); font-size: 14.5px; color: var(--ink-3); }
.p-none { color: var(--ink-2); }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.p-nav a { display: grid; gap: 4px; }
.p-nav a:last-child { text-align: right; }
.p-nav .lab { font-size: 13px; color: var(--ink-3); }
.p-nav .t { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.45; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; transition: text-decoration-color 160ms var(--ease); }
.p-nav a:hover .t { text-decoration-color: currentColor; }
.paper .rows .row > a { grid-template-columns: minmax(0, 1fr) 160px; }
.paper .rows .rk { display: none; }
.paper .rows h3 { font-size: 19px; }

/* ============ Footer ============ */
.foot { margin-top: 120px; border-top: 1px solid var(--rule-strong); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 56px; font-size: 13.5px; color: var(--ink-3); }
.foot .links, .qr .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ============ Dialogs ============ */
dialog.qr { margin: auto; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); padding: 28px 32px 24px; text-align: center; max-width: calc(100vw - 32px); }
dialog.qr::backdrop { background: var(--scrim); }
dialog.qr h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.02em; }
dialog.qr img { display: block; margin: 0 auto; width: 240px; height: 240px; max-width: 100%; object-fit: contain; background: #fff; }
dialog.qr p { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
dialog.qr .links { justify-content: center; }
dialog.qr .x { position: absolute; top: 6px; right: 10px; width: 36px; height: 36px; font-size: 24px; line-height: 1; color: var(--ink-3); }
dialog.qr .x:hover { color: var(--ink); }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .row > a { grid-template-columns: 44px minmax(0, 1fr); }
  .row .side { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 14px; text-align: left; }
  .paper .rows .row > a { grid-template-columns: minmax(0, 1fr); }
  .paper .rows .side { grid-column: 1; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .mast .wrap { grid-template-columns: minmax(0, 1fr) auto; height: 60px; }
  .dateline { display: none; }
  .wm { font-size: 24px; }
  .navbar .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .mini { display: none; }
  .nav { gap: 22px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(36px, 11vw, 60px); margin-bottom: 28px; }
  .hero h1 .ln { white-space: normal; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lede { font-size: 16.5px; }
  .proof .num { font-size: 34px; }
  .sec { padding-top: 64px; }
  .toolbar { position: static; }
  .frow.sorts { flex-wrap: wrap; white-space: normal; }
  .frow.sorts [role="group"] { flex-wrap: wrap; }
  .row > a { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .row .rk { font-size: 17px; }
  .row h3 { font-size: 18.5px; }
  .row .en { font-size: 14.5px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how li, .how li + li { padding: 18px 0; border-left: 0; }
  .how li + li { border-top: 1px solid var(--rule); }
  .p-kicker { margin-top: 28px; }
  .p-en { font-size: 18px; }
  .p-stats { gap: 12px 28px; }
  .p-stats .num { font-size: 28px; }
  .subs li { grid-template-columns: 56px minmax(0, 1fr); }
  .subs .n { grid-column: 2; }
  .p-nav { grid-template-columns: minmax(0, 1fr); }
  .p-nav a:last-child { text-align: left; }
}
@media (max-width: 420px) {
  .sub-btn { padding: 6px 10px; }
  .nav { gap: 16px; font-size: 14.5px; }
  .fsep { display: none; }
}
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .nav a, .frow button { padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.more.plain::after { content: none; }

/* ============ Details that make it a keeper ============ */
.icon-btn svg.wechat .front { fill: var(--paper); }
.icon-btn svg .dot { fill: currentColor; stroke: none; }
.nav .badge { font-size: 13px; color: var(--ink-3); margin-left: 4px; font-weight: 400; }
.loading { padding: 28px 0; color: var(--ink-3); font-size: 14.5px; }

/* Today: the front-page lead */
.today .lead { display: block; padding: 6px 0 4px; max-width: 920px; }
.today .lead .p-kicker { margin-top: 0; }
.today .lead h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; letter-spacing: 0.01em; margin-top: 10px; text-wrap: pretty;
  text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color 160ms var(--ease); }
.today .lead:hover h3 { text-decoration-color: currentColor; }
.today .lead .en { font-family: var(--latin); font-size: 19px; color: var(--ink-3); margin-top: 8px; }
.today .lead .why { font-size: 17px; line-height: 1.9; color: var(--ink-2); margin: 14px 0 18px; max-width: 40em; }
.today .kicker span { font-family: var(--latin); }

/* Read and saved marks */
.row.is-read h3 { color: var(--ink-2); }
.row .flag { font-size: 12px; color: var(--ink-2); }
.row .flag.dim { color: var(--ink-3); }

/* Save button: outlined square, inverts when saved */
.save { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid var(--rule-strong); font-size: 15px; font-weight: 600; transition: background 160ms var(--ease), color 160ms var(--ease); }
.save svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.save:hover { background: var(--paper-2); }
.save[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.save[aria-pressed="true"] svg { fill: currentColor; }

/* Drop cap on the reading note */
.p-sum .drop { float: left; font-family: var(--serif); font-weight: 700; font-size: 3.5em; line-height: 0.92; margin: 0.06em 0.14em 0 0; }

/* Year chart: one ink bar per year, click to filter */
.years { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; align-items: end; margin: 4px 0 18px; }
.years button { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; padding: 0; }
.years button:disabled { cursor: default; }
.years .bar { display: block; width: 100%; max-width: 30px; background: var(--ink-4); transition: background 160ms var(--ease); }
.years .c, .years .yl { font-size: 11.5px; color: var(--ink-3); line-height: 1; }
.years .c { visibility: hidden; }
.years button:not(:disabled):hover .bar, .years button[aria-pressed="true"] .bar { background: var(--ink); }
.years button:hover .c, .years button[aria-pressed="true"] .c { visibility: visible; color: var(--ink); }
.years button[aria-pressed="true"] .yl { color: var(--ink); font-weight: 500; }
.years.picked button:not([aria-pressed="true"]) .bar { background: var(--rule); }

.years-note { font-size: 12.5px; color: var(--ink-3); margin: -8px 0 16px; }
dialog.qr .kicker { margin-bottom: 2px; }
dialog.qr h2 { font-size: 22px; margin-bottom: 4px; }
dialog.qr .sub { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; }

@media (max-width: 860px) {
  .years { gap: 2px; }
  .years .c { display: none; }
  .years .yl { visibility: hidden; font-size: 10.5px; }
  .years button:nth-child(5n+1) .yl, .years button:last-child .yl, .years button[aria-pressed="true"] .yl { visibility: visible; }
  .today .lead .en { font-size: 16.5px; }
  .today .lead .why { font-size: 16px; }
  .save { padding: 11px 16px; }
  .sh { flex-wrap: wrap; align-items: baseline; }
  .sh h2 { white-space: nowrap; }
  .sh-note { padding-bottom: 0; }
}
@media (pointer: coarse) { kbd { display: none; } }

/* ============ Reading info, stances, resources, paths ============ */
.p-read { margin-top: 14px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.p-read span { color: var(--ink-3); }
.p-impact { font-size: 17px; line-height: 1.9; color: var(--ink); }
.p-note { font-size: 13.5px; color: var(--ink-3); margin: -6px 0 12px; }
.p-stance { font-size: 14px; color: var(--ink-3); margin: -4px 0 4px; }
.p-stance .latin { color: var(--ink); font-size: 15px; }
.stance { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 6px; margin-right: 10px; vertical-align: 2px; border: 1px solid var(--rule-strong); }
.res { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.res dt { font-size: 14px; color: var(--ink-3); padding: 12px 0; border-top: 1px solid var(--rule); }
.res dd { padding: 12px 0; border-top: 1px solid var(--rule); }
.res dt:first-of-type, .res dt:first-of-type + dd { border-top: 0; }
.res li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 2px 0; }
.res li .n { font-size: 13.5px; color: var(--ink-3); }
.res a { white-space: normal; overflow-wrap: anywhere; }
.path-why { color: var(--ink); }
.path-page .p-sum { margin-top: 24px; color: var(--ink-2); }
@media (max-width: 860px) {
  .res { grid-template-columns: minmax(0, 1fr); }
  .res dd { border-top: 0; padding-top: 0; }
}
.paper.path-page .rows .row > a { grid-template-columns: 56px minmax(0, 1fr) 160px; }
.paper.path-page .rows .rk { display: block; }
@media (max-width: 1000px) { .paper.path-page .rows .row > a { grid-template-columns: 44px minmax(0, 1fr); } }
@media (max-width: 860px) { .paper.path-page .rows .row > a { grid-template-columns: 34px minmax(0, 1fr); } }
.list-acts { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; margin: -4px 0 10px; font-size: 14.5px; }
