/* China Checked — paper, ink and cinnabar.
   Tokens first, then base, layout, components, illustration, motion. */
:root {
  --paper: #f6f4ee;
  --paper-white: #ffffff;
  --ink: #15120f;
  --ink-2: #3a352e;
  --muted: #5c564d;
  --rule: #d9d4c7;
  --dash: #8c857a;
  --red: #b92b18;
  --red-deep: #8e1f10;
  --bamboo: #2f5d3a;
  --on-ink: #f6f4ee;
  --on-ink-2: #cfc9bc;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --han: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --wrap: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); overflow-x: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { max-width: 100%; }

.page { position: relative; overflow: hidden; }
.paper { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.22; mix-blend-mode: multiply; }
.page > .content { position: relative; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Type */
.kicker { font: 500 12px/1.5 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.display { font: 400 clamp(46px, 7vw, 104px)/0.98 var(--serif); letter-spacing: -0.03em; }
.display em { font-style: italic; color: var(--red); }
.h-page { font: 400 clamp(38px, 5.4vw, 72px)/1.03 var(--serif); letter-spacing: -0.025em; }
.h-sec { font: 400 clamp(28px, 3.4vw, 44px)/1.05 var(--serif); letter-spacing: -0.02em; }
.h-sub { font: 500 22px/1.25 var(--serif); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.mono-note { font: 400 12.5px/1.6 var(--mono); color: var(--muted); }
.han { font-family: var(--han); }
.soft { color: var(--ink-2); }
.dim { color: var(--muted); }

/* Header and footer */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 500 23px var(--serif); letter-spacing: -0.01em; }
.seal-logo { width: 38px; height: 38px; background: var(--red); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; font: 900 22px var(--han); transform: rotate(-5deg); filter: url(#cc-seal); }
.nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; }
.nav a { text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current='page'] { border-bottom-color: var(--red); }
.site-foot { background: var(--ink); color: var(--on-ink); margin-top: 96px; }
.site-foot svg { display: block; width: 100%; height: 150px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px 72px; justify-content: space-between; padding-block: 36px 52px; }
.foot-grid p { max-width: 420px; color: var(--on-ink-2); font-size: 15px; margin-top: 12px; }
.foot-grid nav { display: flex; flex-direction: column; font-size: 15px; }
.foot-grid a { color: var(--on-ink); padding: 10px 0; }

/* Seals */
.seals { display: inline-flex; gap: 6px; }
.seal { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font: 500 14px var(--han); border: 1px dashed var(--dash); color: var(--muted); }
.seal.on { background: var(--red); border: 0; color: var(--on-ink); font-weight: 700; transform: rotate(-4deg); }
.seal.on:nth-child(even) { transform: rotate(3deg); }
.seals.lg .seal { width: 30px; height: 30px; font-size: 16px; }
.pip-mark { fill: none; stroke: currentColor; stroke-width: 1.8; }
.seal .pip-mark { display: block; width: 22px; height: 22px; flex: none; }
.seals.lg .pip-mark { width: 25px; height: 25px; }
.sec-num .pip-mark { display: block; width: 46px; height: 46px; }

/* Section heading with a chapter numeral */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.sec-head > div { display: flex; align-items: flex-end; gap: 16px; }
.sec-num { font: 900 clamp(44px, 5vw, 64px)/0.9 var(--han); color: var(--red); }
.sec-head .side { font-weight: 500; padding: 8px 0; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-block: 52px 8px; }
.hero-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.motto { flex: 0 0 auto; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 18px; padding-top: 8px; }
.motto span { writing-mode: vertical-rl; font: 500 30px/1 var(--han); letter-spacing: 0.34em; }
.motto span:nth-child(2) { padding-top: 64px; }
.motto .stamp { align-self: flex-end; background: var(--red); color: var(--on-ink); font: 900 19px/1 var(--han); letter-spacing: 0.1em; padding: 9px 7px; border-radius: 4px; filter: url(#cc-seal); }

/* Task finder */
.finder { display: flex; flex-direction: column; gap: 14px; }
.finder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.finder-row > span { font: 400 22px var(--serif); padding-right: 4px; }
.chip { min-height: 44px; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background-color 0.15s, color 0.15s; }
.chip .han { color: var(--red); }
.chip:hover { background: rgba(21, 18, 15, 0.06); color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--on-ink); }
.chip[aria-pressed='true'] .han { color: var(--on-ink); }
.finder-status { min-height: 1.6em; font-size: 15px; color: var(--muted); }
.finder-status button { background: none; border: 0; padding: 0 0 0 8px; text-decoration: underline; color: var(--ink); }

/* Handscroll */
.scroll { position: relative; margin-top: -8px; }
.scroll-view { height: clamp(250px, 29vw, 420px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; }
.scroll-view::-webkit-scrollbar { display: none; }
.scroll-view:active { cursor: grabbing; }
.scroll-inner { position: relative; height: 100%; aspect-ratio: 3260 / 420; }
.scroll-inner svg { display: block; width: 100%; height: 100%; }
.scroll-mark { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.scroll-ctl { position: absolute; right: var(--gutter); top: 12px; display: flex; gap: 8px; }
.scroll-ctl button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--ink); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; }
.scroll-ctl button:hover { background: var(--ink); color: var(--on-ink); }
.scroll-ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Legend band */
.legend { background: var(--ink); color: var(--on-ink); }
.legend .wrap { display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; padding-block: 30px; }
.legend h2 { font: 500 22px/1.25 var(--serif); }
.legend p { font-size: 14px; color: var(--on-ink-2); margin-top: 6px; }
.legend a { color: var(--on-ink); }
.legend > .wrap > div { flex: 1 1 260px; min-width: 0; }
.legend ol { flex: 3 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend .seal.on { width: 28px; height: 28px; font-size: 15px; flex: none; }

/* Task rows */
.rows { margin-top: 0; }
.row { display: flex; flex-wrap: wrap; gap: 14px 36px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.row[hidden] { display: none; }
.rows:not(.all):not(.filtered) .row.extra { display: none; }
.rows-more { margin-top: 24px; }
.row-icon { flex: none; width: 72px; height: 72px; }
.row-title { flex: 3 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.row-title h3 { font: 500 24px/1.2 var(--serif); }
.row-title a { text-decoration: none; }
.row-title a::after { content: ''; }
.row-tag { font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.row-sum { flex: 4 1 340px; min-width: 0; color: var(--ink-2); }
.row-meta { flex: 0 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.row.todo .row-sum { color: var(--muted); }
.row.compact { align-items: baseline; padding: 22px 0; }
.row.compact .row-title h3 { font-size: 22px; }
.empty { padding: 28px 0; color: var(--muted); border-bottom: 1px solid var(--rule); }

/* Two-column blocks */
.cols { display: flex; flex-wrap: wrap; gap: 56px 72px; }
.cols > * { flex: 1 1 380px; min-width: 0; }
.list-line { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.list-line time { flex: 0 0 110px; font: 500 13px/1.8 var(--mono); color: var(--red); }
.list-line p { flex: 1 1 280px; min-width: 0; }
.tool-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.tool-link strong { font: 500 20px/1.3 var(--serif); }
.tool-link span { color: var(--ink-2); }
.more { display: inline-block; font-weight: 500; padding: 14px 0; }

/* Scene band (city and task pages) */
.band { position: relative; height: clamp(250px, 30vw, 430px); margin-top: 20px; border-bottom: 2px solid var(--ink); }
.band svg { display: block; width: 100%; height: 100%; }
.band-zh { position: absolute; right: 0; top: 10px; writing-mode: vertical-rl; font: 900 clamp(56px, 8.4vw, 124px)/1 var(--han); letter-spacing: 0.08em; color: var(--red); opacity: 0.92; }
.band-zh.three { font-size: clamp(44px, 6.2vw, 94px); }

/* City page */
.city-hero { display: flex; flex-wrap: wrap; gap: 32px 72px; align-items: flex-end; padding-block: 52px 0; }
.city-hero > div { flex: 7 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.city-hero > p { flex: 5 1 340px; min-width: 0; font-size: 18px; color: var(--ink-2); }
.group { padding-top: 64px; }
.group-note { font-size: 15px; color: var(--muted); padding-bottom: 6px; }
.callout { border: 1px solid var(--ink); padding: 32px; display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; margin-top: 64px; }
.callout > div { flex: 3 1 360px; min-width: 0; }
.callout h2 { font: 500 26px/1.2 var(--serif); margin-bottom: 8px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; padding: 12px 24px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 500; border: 0; }
.btn:hover { background: var(--red); color: var(--on-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--on-ink); }

/* Task page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; font: 400 13px var(--mono); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs > * { padding: 8px 0; }
.task-layout { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-top: 40px; font-size: 17px; line-height: 1.6; }
.task-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.task-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 32px; align-self: flex-start; position: sticky; top: 24px; }
.task-head { display: flex; flex-direction: column; gap: 22px; }
.task-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.answer { border: 1px solid var(--ink); background: var(--panel); padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.answer h2 { font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.answer .big { font: 400 clamp(20px, 2.1vw, 25px)/1.42 var(--serif); }
.answer .applies { font-size: 15px; color: var(--ink-2); }
.block > h2 { font: 400 34px/1.1 var(--serif); letter-spacing: -0.015em; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.block > p { margin-top: 14px; color: var(--ink-2); }
.step { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.step-n { flex: none; width: 36px; font: 400 30px/1.1 var(--serif); color: var(--red); }
.step small { display: block; margin-top: 6px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fail { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.fail h3 { font: 500 21px/1.3 var(--serif); margin-bottom: 6px; }
.fail p { color: var(--ink-2); }
.fact { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; scroll-margin-top: 24px; }
.fact:target { background: rgba(185, 43, 24, 0.07); box-shadow: -12px 0 0 rgba(185, 43, 24, 0.07), 12px 0 0 rgba(185, 43, 24, 0.07); }
.fact > p { flex: 5 1 320px; min-width: 0; }
.fact > div { flex: 3 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kind { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--ink); }
.kind.official { background: var(--ink); color: var(--on-ink); }
.kind.secondary { border-style: dashed; border-color: var(--muted); color: var(--ink-2); }
.linkbtn { background: none; border: 0; padding: 4px 0; font: 400 12px var(--mono); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--red); }
.src-list a { display: block; padding: 8px 0; }
.side-box { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.side-box h2 { font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.side-box nav a { display: block; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.side-box p { font-size: 15px; color: var(--ink-2); }
.cite { font: 400 13px/1.6 var(--mono); color: var(--ink-2); }

/* Tool */
.tool { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); margin-top: 40px; }
.tool-form { flex: 2 1 300px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.tool-out { flex: 3 1 420px; min-width: 0; padding: 32px; background: var(--paper-white); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper-white); color: var(--ink); font: 500 17px var(--sans); }
.out-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.out-big { font: 400 clamp(26px, 3.2vw, 42px)/1.15 var(--serif); letter-spacing: -0.015em; }
.notice { padding: 14px 16px; border: 1px solid var(--ink); }
.notice.warn { border-color: var(--red); color: var(--red-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Method */
.stage-row { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.stage-row > div { flex: 2 1 280px; min-width: 0; display: flex; align-items: center; gap: 14px; }
.stage-row > p { flex: 4 1 380px; min-width: 0; color: var(--ink-2); }
.policy h2 { font: 400 30px/1.1 var(--serif); letter-spacing: -0.015em; padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.policy p { color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-ink); padding: 10px 18px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Illustration ---- */
.cc-ink { fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.cc-thin { stroke-width: 1.3; }
.cc-far { stroke: var(--dash); stroke-width: 1.5; }
.cc-red { stroke: var(--red); }
.cc-sun { fill: var(--red); transform-box: fill-box; transform-origin: center; }
.cc-solid { fill: var(--ink); }
.cc-label { font: 500 12px var(--mono); letter-spacing: 3px; fill: var(--muted); text-anchor: middle; }
.cc-foot-line { fill: none; stroke: var(--on-ink); stroke-linecap: round; }

/* ---- Motion ----
   Scenes draw themselves once, when they scroll into view: site.js adds
   .is-in to anything marked data-draw. Without JavaScript (html.no-js) or
   with reduced motion, everything is simply shown finished. */
@keyframes ccDraw { to { stroke-dashoffset: 0; } }
@keyframes ccRedraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes ccRise { from { transform: translateY(90px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ccFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccDrift { from { transform: translateX(-40px); } to { transform: translateX(60px); } }
@keyframes ccFly { from { transform: translate(-80px, 30px); } to { transform: translate(1500px, -90px); } }
@keyframes ccSway { from { transform: rotate(-7deg); } to { transform: rotate(8deg); } }
@keyframes ccNod { from { transform: rotate(-2.5deg); } to { transform: rotate(3deg); } }
@keyframes ccBob { from { transform: translate(0, 0) rotate(-1deg); } to { transform: translate(90px, 2px) rotate(1.5deg); } }
@keyframes ccStamp { 0% { transform: scale(1.7) rotate(-16deg); opacity: 0; } 60% { transform: scale(0.93) rotate(-5deg); opacity: 1; } 100% { transform: scale(1) rotate(-5deg); opacity: 1; } }

.js .cc-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.js .cc-long { stroke-dasharray: 3400; stroke-dashoffset: 3400; }
.js .cc-sun, .js .cc-wash, .js .cc-solid, .js .cc-label, .js .motto .stamp { opacity: 0; }
.js .is-in .cc-draw { animation: ccDraw 2.8s cubic-bezier(0.6, 0.1, 0.2, 1) forwards; }
.js .is-in .cc-long { animation-duration: 4.2s; }
.js .is-in .cc-t1 { animation-delay: 0.2s; }
.js .is-in .cc-t2 { animation-delay: 1s; }
.js .is-in .cc-t3 { animation-delay: 1.7s; }
.js .is-in .cc-t4 { animation-delay: 2.5s; }
.js .is-in .cc-t5 { animation-delay: 3.3s; }
.js .is-in .cc-sun { animation: ccRise 2.6s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .is-in .cc-wash, .js .is-in .cc-label { animation: ccFade 3s 0.3s both; }
.js .is-in .cc-solid { animation: ccFade 1.6s 2.2s both; }
.js .is-in.motto .stamp, .js .is-in .motto .stamp { animation: ccStamp 0.55s 1.2s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.js .is-in.row .cc-draw { animation-duration: 1.6s; animation-delay: 0.1s; }
.js .row.is-in:hover .cc-draw { animation: ccRedraw 1.3s cubic-bezier(0.6, 0.1, 0.2, 1) forwards; }

.cc-cloud { animation: ccDrift 16s ease-in-out infinite alternate; }
.cc-cloud2 { animation: ccDrift 22s ease-in-out infinite alternate-reverse; }
.cc-bird { animation: ccFly 34s linear infinite; }
.cc-bird2 { animation: ccFly 46s 6s linear infinite; }
.cc-kite { transform-box: fill-box; transform-origin: 50% 100%; animation: ccSway 3.6s ease-in-out infinite alternate; }
.cc-boat { transform-box: fill-box; transform-origin: center; animation: ccBob 13s ease-in-out infinite alternate; }
.cc-nod { transform-box: fill-box; transform-origin: 50% 92%; animation: ccNod 2.6s ease-in-out infinite alternate; }
.cc-willow { transform-box: fill-box; transform-origin: 50% 0; animation: ccNod 5.5s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cc-draw, .cc-long { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .cc-draw, .cc-sun, .cc-wash, .cc-solid, .cc-label, .motto .stamp,
  .cc-cloud, .cc-cloud2, .cc-bird, .cc-bird2, .cc-kite, .cc-boat, .cc-nod, .cc-willow { animation: none !important; opacity: 1 !important; }
}

@media (max-width: 720px) {
  .task-side { position: static; }
  .motto span { font-size: 24px; }
  .row-icon { width: 56px; height: 56px; }
  .answer { padding: 22px 20px; }
  .tool-form, .tool-out, .callout { padding: 24px 20px; }
}
@media print {
  .preview, .site-head .nav, .scroll, .band, .site-foot, .task-side, .paper { display: none !important; }
  body { background: #fff; }
}

/* ---- Trip planner ---- */
.pl-form { display: flex; flex-direction: column; gap: 16px; padding: 40px 0 8px; margin-top: 40px; border-top: 2px solid var(--ink); }
.pl-form .finder-row > span, .pl-form label span { font: 400 22px var(--serif); }
.chip .ord { font: 600 12px var(--mono); color: inherit; }
.chip .ord:empty { display: none; }
.pl-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; padding: 0 !important; }
.pl-stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; border-radius: 999px; }
.pl-stepper button:hover { background: rgba(21, 18, 15, 0.08); }
.pl-stepper output { min-width: 2ch; text-align: center; font: 500 20px var(--serif); }
.pl-date { min-height: 44px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font: 500 15px var(--sans); color: var(--ink); }
.pl-go { font-size: 17px; padding: 14px 30px; background: var(--red); }
.pl-go:hover { background: var(--ink); }
.pl-out { padding-top: 72px; }
.pl-top { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.pl-top h2 { margin: 12px 0 10px; }
.pl-sample { margin-top: 24px; background: var(--panel); }
.pl-out > .notice { margin-top: 12px; }
.pl-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; padding-top: 40px; }
.pl-days { flex: 999 1 600px; min-width: 0; }
.pl-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 32px; align-self: flex-start; position: sticky; top: 24px; }
.pl-day { padding-bottom: 56px; }
.pl-day > header { display: flex; align-items: flex-end; gap: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.pl-daynum { writing-mode: vertical-rl; font: 900 30px/1 var(--han); letter-spacing: 0.12em; color: var(--red); }
.pl-block { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.pl-slot { flex: 0 0 96px; display: flex; flex-direction: column; gap: 4px; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.pl-slot .han { font-size: 18px; letter-spacing: 0.2em; color: var(--red); }
.pl-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-body h3 { display: flex; align-items: center; gap: 14px; font: 500 26px/1.2 var(--serif); }
.pl-body h3 .han { font-size: 0.72em; color: var(--muted); padding-left: 6px; }
.pl-icon { flex: none; width: 44px; height: 44px; }
.k-arrive h3, .k-travel h3, .k-depart h3, .k-free h3 { font-size: 21px; color: var(--ink-2); }
.pl-whylist { display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.pl-whylist li::before { content: '·'; padding-right: 8px; color: var(--red); font-weight: 700; }
.pl-facts { display: flex; flex-direction: column; gap: 10px; }
.pl-facts li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.pl-facts li > span:last-child, .pl-checks li > span { flex: 1 1 280px; min-width: 0; }
.pl-facts small, .pl-checks small, .pl-todos small { display: block; font: 400 12px/1.5 var(--mono); color: var(--muted); margin-top: 2px; }
.pl-note, .pl-extra { font-size: 15px; color: var(--ink-2); }
.pl-note .kind { margin-right: 6px; }
.pl-ways { margin-top: 8px; padding: 18px 20px 20px; background: var(--panel); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.pl-ways > h4, .pl-grid > div > h4 { font: 500 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pl-diy { font-size: 15px; color: var(--ink-2); }
.pl-card { border: 1px solid var(--ink); background: var(--paper); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.pl-card > header { display: flex; gap: 14px; align-items: flex-start; }
.pl-card > header > div:nth-child(2) { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-card h4 { font: 500 19px/1.25 var(--serif); }
.pl-card > p { font-size: 15px; color: var(--ink-2); }
.pl-grade { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 62px; text-align: center; }
.pl-grade > span { width: 46px; height: 46px; border-radius: 999px; background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; font: 900 24px var(--han); }
.pl-grade small { font: 500 10px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.g-B .pl-grade > span { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.g-C .pl-grade > span, .g-insufficient .pl-grade > span { background: transparent; color: var(--muted); border: 2px dashed var(--dash); }
.pl-price { flex: none; text-align: right; }
.pl-price b { display: block; font: 500 20px var(--serif); }
.pl-price small { font: 400 11px var(--mono); color: var(--muted); }
.pl-fit { font-size: 14px !important; }
.pl-fit b { font: 600 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--bamboo); }
.pl-flags { font-size: 14px !important; color: var(--red-deep) !important; }
.pl-card details { border-top: 1px solid var(--rule); padding-top: 10px; }
.pl-card summary { cursor: pointer; font-weight: 500; font-size: 15px; padding: 6px 0; }
.pl-why { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.pl-why h5 { margin: 8px 0 0; font: 500 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pl-bar { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pl-bar > span { flex: 0 0 132px; }
.pl-bar i { font: 400 11px var(--mono); color: var(--muted); font-style: normal; }
.pl-bar b { flex: 1 1 auto; height: 8px; background: var(--rule); }
.pl-bar u { display: block; height: 100%; background: var(--ink); }
.pl-bar em { flex: 0 0 28px; text-align: right; font: 500 13px var(--mono); font-style: normal; }
.pl-checks { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pl-checks li { display: flex; gap: 12px; align-items: baseline; }
.pl-checks b { flex: 0 0 66px; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.pl-checks .pass b { color: var(--bamboo); }
.pl-checks .fail b { color: var(--red); }
.pl-checks .unknown b { color: var(--muted); }
.pl-scroll { overflow-x: auto; }
.pl-scroll table { border-collapse: collapse; font-size: 13px; min-width: 420px; width: 100%; }
.pl-scroll th, .pl-scroll td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); }
.pl-scroll th { font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pl-extras { margin: -24px 0 56px; padding: 28px; border: 1px solid var(--ink); display: flex; flex-direction: column; gap: 20px; }
.pl-grid { display: flex; flex-wrap: wrap; gap: 28px 32px; }
.pl-grid > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pl-todos { display: flex; flex-direction: column; }
.pl-todos li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.pl-todos time { font: 500 13px var(--mono); color: var(--red); }
.pl-todos p { font-size: 15px; }
.pl-todos .kind { font-size: 10px; padding: 2px 5px; }
@media (max-width: 720px) { .pl-side { position: static; } .pl-extras { padding: 20px; } .pl-slot { flex-basis: 100%; flex-direction: row; gap: 10px; align-items: baseline; padding-top: 0; } }
@media print { .pl-form, .pl-top .actions, .pl-card details, .pl-sample { display: none !important; } .pl-side { position: static; } }
#pl-hint:empty { display: none; }

.pl-own { align-self: flex-start; margin-top: 4px; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); background: var(--red); padding: 3px 8px; }

.pl-chat { margin-top: 24px; padding: 22px 24px; border: 1px solid var(--ink); background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.pl-chat label { font: 400 22px var(--serif); display: block; margin-bottom: 10px; }
.pl-chat-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-chat-row input { flex: 1 1 320px; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--paper-white); font: 400 16px var(--sans); color: var(--ink); }
.pl-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chat-chips .chip { min-height: 44px; font-size: 14px; }
.pl-log { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--rule); padding-top: 12px; }
.pl-log li { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
.pl-log b { font-weight: 500; }
.pl-log span { color: var(--ink-2); }
@media print { .pl-chat { display: none !important; } }

.ck { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); cursor: pointer; align-items: flex-start; }
.ck input { flex: none; width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--red); }
.ck > span { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck b { font: 500 20px/1.3 var(--serif); }
.ck small { font: 400 12px/1.5 var(--mono); color: var(--muted); }
.ck input:checked + span b { text-decoration: line-through; color: var(--muted); }
.cx { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.cx textarea { padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper-white); font: 400 16px var(--sans); color: var(--ink); }

/* =====================================================================
   Second pass: first-visit experience
   ===================================================================== */
.page { overflow: clip; }            /* clip, not hidden, so sticky elements work */
@view-transition { navigation: auto; }
.brand { view-transition-name: brand; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.sec { padding-top: 88px; }
html { scroll-padding-top: 88px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 15; display: block; padding: 0; background: rgba(246, 244, 238, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-head.scrolled { border-bottom-color: var(--ink); }
.head-row { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; }
.site-head .nav { flex: 1 1 auto; justify-content: flex-end; gap: 0 22px; }
.head-tools { display: flex; align-items: center; gap: 10px; }
.clock { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; padding-right: 4px; }
.head-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; font-size: 14px; color: var(--ink-2); }
.head-btn:hover { border-color: var(--ink); color: var(--ink); }
.head-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
kbd { font: 500 11px var(--mono); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; color: var(--muted); }
.head-cta { min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--red); white-space: nowrap; }
.head-cta:hover { background: var(--ink); }
.menu-btn { display: none; padding: 8px 12px; }
@media (max-width: 1180px) { .clock { display: none; } }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .head-row { flex-wrap: wrap; }
  .brand { flex: 1 1 auto; }
  .head-btn span, .head-btn kbd { display: none; }
  .head-btn { padding: 8px 12px; }
  .js .site-head .nav { order: 3; flex: 1 1 100%; display: none; flex-direction: column; padding: 4px 0 16px; }
  .js .site-head .nav.open { display: flex; }
  .site-head .nav a { padding: 14px 0; font: 400 24px var(--serif); border-bottom: 1px solid var(--rule); }
  .site-head .nav a[aria-current='page'] { border-bottom-color: var(--red); }
}
@media (max-width: 420px) { .head-cta { padding: 10px 14px; font-size: 14px; } .brand { font-size: 19px; gap: 10px; } .seal-logo { width: 32px; height: 32px; font-size: 19px; } }

/* Search */
.search { width: min(680px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 96px)); margin: 72px auto auto; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(21, 18, 15, 0.22); }
.search::backdrop { background: rgba(21, 18, 15, 0.42); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ink); }
.search-box svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.search-box input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 20px var(--serif); color: var(--ink); min-height: 44px; }
.search-box input::-webkit-search-cancel-button { display: none; }
#search-list { max-height: 400px; overflow-y: auto; }
#search-list a { display: flex; align-items: baseline; gap: 14px; padding: 13px 18px; text-decoration: none; border-bottom: 1px solid var(--rule); }
#search-list li[aria-selected='true'] a, #search-list a:hover { background: var(--ink); color: var(--on-ink); }
#search-list li[aria-selected='true'] .s-kind, #search-list li[aria-selected='true'] .s-note, #search-list a:hover .s-kind, #search-list a:hover .s-note { color: var(--on-ink-2); }
.s-kind { flex: 0 0 54px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.s-title { flex: 1 1 auto; min-width: 0; font-size: 16px; }
.s-note { font: 400 12px var(--mono); color: var(--muted); white-space: nowrap; }
.s-empty { padding: 22px 18px; color: var(--muted); }
.search-foot { padding: 10px 18px; font: 400 12px var(--mono); color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* Hero quick start */
.hero { padding-block: 40px 8px; }
.quick { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border: 1px solid var(--ink); background: var(--panel); max-width: 760px; }
.quick .pl-go { margin-left: 6px; border-radius: 999px; }
.seal-label { font: 500 12px var(--mono); color: var(--muted); padding-left: 10px; white-space: nowrap; }
.row-meta .seal-label, .card-meta .seal-label { display: block; white-space: normal; padding-left: 0; margin-top: 6px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; padding-top: 28px; }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 0 0 20px; border: 1px solid var(--ink); background: var(--panel); text-decoration: none; color: var(--ink); transition: transform 0.18s ease, box-shadow 0.18s ease; }
a.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.card > strong { font: 500 23px/1.2 var(--serif); padding: 8px 20px 0; }
.card > span { padding: 0 20px; color: var(--ink-2); font-size: 15px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 6px !important; }
.card-go { font-weight: 600; color: var(--red) !important; font-size: 15px; }
.card-go::after { content: ' →'; }
.card.city .card-go, .card.guide .card-go { margin-top: 2px; }
.card:not(.guide):not(.city) { padding: 24px 0 22px; }
.card-zh { font: 900 44px/1 var(--han); color: var(--red) !important; letter-spacing: 0.06em; }
.band.thumb { height: 190px; margin: 0; border-bottom: 1px solid var(--ink); background: var(--paper); overflow: hidden; }
.band.thumb .band-zh { font-size: 40px; top: 10px; right: 12px; }
.band.thumb.plain { display: flex; align-items: center; justify-content: center; }
.band.thumb.plain svg { width: 96px; height: 96px; }
.fold { border-bottom: 1px solid var(--rule); }
.fold summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font: 500 20px var(--serif); list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary > span:first-child::before { content: '+'; display: inline-block; width: 22px; color: var(--red); }
.fold[open] summary > span:first-child::before { content: '−'; }
.fold ul { padding: 0 0 18px 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }

/* Rows */
.row.slim { padding: 14px 0; gap: 8px 24px; align-items: baseline; justify-content: space-between; color: var(--muted); }
.row.slim .row-title { flex: 1 1 320px; font: 400 18px/1.3 var(--serif); display: block; }
.row.slim .row-tag { flex: none; }
.row-meta > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }

/* Guide: answer first */
.task-top { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 16px; align-items: stretch; }
.task-top-main { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.band.panel { flex: 2 1 340px; min-width: 0; height: auto; min-height: 300px; margin: 0; border: 1px solid var(--ink); background: rgba(255, 255, 255, 0.4); overflow: hidden; }
.band.panel .band-zh { font-size: clamp(44px, 5vw, 76px); top: 14px; right: 14px; }
.band.panel .band-zh.three { font-size: clamp(36px, 4vw, 58px); }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 32px 0 0; border: 1px solid var(--ink); background: var(--ink); gap: 1px; }
.glance-item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--paper); text-decoration: none; align-items: flex-start; }
.glance-item:hover { background: var(--paper-white); color: var(--ink); }
.glance dt { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 0; font: 500 20px/1.25 var(--serif); flex: 1 1 auto; }
.glance .kind { font-size: 10px; padding: 2px 6px; }
.step { padding: 0; }
.step label { display: flex; gap: 16px; padding: 18px 0; width: 100%; cursor: pointer; align-items: flex-start; }
.step input { flex: none; width: 22px; height: 22px; margin: 8px 0 0; accent-color: var(--red); }
.step-text { display: flex; flex-direction: column; min-width: 0; }
.step input:checked ~ .step-text > span { color: var(--muted); text-decoration: line-through; }
.step input:checked ~ .step-n { color: var(--muted); }
.block > h2 .mono-note { padding-left: 10px; letter-spacing: 0; }

/* Planner */
.pl-glance { display: flex; gap: 0; overflow-x: auto; margin-top: 24px; border: 1px solid var(--ink); scrollbar-width: thin; }
.pl-glance a { flex: 1 0 150px; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; text-decoration: none; border-right: 1px solid var(--rule); background: var(--panel); position: relative; }
.pl-glance a:last-child { border-right: 0; }
.pl-glance a:hover { background: var(--ink); color: var(--on-ink); }
.pl-glance a:hover small, .pl-glance a:hover em { color: var(--on-ink-2); }
.pl-glance b { font: 500 17px var(--serif); }
.pl-glance small { font: 400 11px var(--mono); color: var(--muted); }
.pl-glance .han { position: absolute; right: 12px; top: 12px; font-size: 15px; color: var(--red); letter-spacing: 0.1em; }
.pl-glance em { font-style: normal; font-size: 13px; line-height: 1.35; color: var(--ink-2); margin-top: 4px; }
details.pl-ways { padding: 0; gap: 0; }
details.pl-ways > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none; }
details.pl-ways > summary::-webkit-details-marker { display: none; }
details.pl-ways > summary > span:first-child::before { content: '+'; display: inline-block; width: 20px; color: var(--red); }
details.pl-ways[open] > summary > span:first-child::before { content: '−'; }
details.pl-ways[open] { padding-bottom: 18px; }
details.pl-ways > :not(summary) { margin: 0 18px 14px; }
details.pl-ways > .pl-card:last-child { margin-bottom: 0; }
#pl-resume { margin-top: 32px; }
.pl-day { scroll-margin-top: 96px; }
.task-side, .pl-side { top: 92px; }

.nav-plan { display: none; }
@media (max-width: 980px) { .head-row { flex-wrap: wrap; } .js .site-head .nav-plan { display: block; color: var(--red); } }
@media (max-width: 520px) { .head-cta { display: none; } .crumbs > span:last-child, .crumbs > span:nth-last-child(2) { display: none; } }
.pl-controls { margin-top: 40px; border-top: 2px solid var(--ink); }
.pl-controls > summary { display: none; }
.pl-controls.has-plan > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 18px 0; cursor: pointer; list-style: none; border-bottom: 1px solid var(--rule); }
.pl-controls > summary::-webkit-details-marker { display: none; }
.pl-controls > summary > span:first-child { font: 500 20px var(--serif); }
.pl-controls > summary .mono-note { flex: 1 1 260px; min-width: 0; }
.pl-edit { font-weight: 600; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.pl-controls[open] .pl-edit { visibility: hidden; }
.pl-controls .pl-form { margin-top: 0; border-top: 0; padding-top: 28px; }
.pl-controls.has-plan + .pl-out { padding-top: 40px; }
.band.panel .band-zh { right: auto; left: 16px; }

/* ---- Languages ---- */
.langs { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.langs a { min-height: 42px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 11px; font: 500 12px var(--mono); text-decoration: none; color: var(--muted); }
.langs a:hover { color: var(--ink); background: rgba(21, 18, 15, 0.06); }
.langs a[aria-current] { background: var(--ink); color: var(--on-ink); }
.nav-langs { display: none; }
@media (max-width: 980px) {
  .langs { display: none; }
  .js .site-head .nav-langs { display: flex; gap: 22px; padding-top: 18px; }
  .site-head .nav-langs a { border: 0; font: 500 16px var(--sans); padding: 8px 0; }
  .site-head .nav-langs a[aria-current] { color: var(--red); }
}
/* Chinese: its own serif and sans, no tight tracking, no italics. */
:lang(zh-Hans) { --serif: 'Noto Serif SC', 'Songti SC', serif; --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; }
:lang(zh-Hans) .display, :lang(zh-Hans) .h-page, :lang(zh-Hans) .h-sec { letter-spacing: 0; line-height: 1.2; font-weight: 500; }
:lang(zh-Hans) .display { font-size: clamp(40px, 5.6vw, 84px); }
:lang(zh-Hans) .h-page { font-size: clamp(32px, 4.4vw, 58px); }
:lang(zh-Hans) .display em { font-style: normal; }
:lang(zh-Hans) .kicker, :lang(zh-Hans) .row-tag, :lang(zh-Hans) .kind, :lang(zh-Hans) .glance dt { letter-spacing: 0.06em; }
/* Russian: Fraunces has no Cyrillic, so headings use Literata. Words run long. */
:lang(ru) { --serif: 'Literata', Georgia, 'Times New Roman', serif; }
:lang(ru) .display { font-size: clamp(38px, 5.4vw, 80px); letter-spacing: -0.02em; line-height: 1.04; }
:lang(ru) .h-page { font-size: clamp(32px, 4.3vw, 58px); letter-spacing: -0.015em; line-height: 1.08; }
:lang(ru) .h-sec { letter-spacing: -0.01em; }
:lang(ru) .kicker, :lang(ru) .row-tag, :lang(ru) .kind, :lang(ru) .glance dt { letter-spacing: 0.06em; }

.band.panel.plain { display: flex; align-items: center; justify-content: center; }
.band.panel.plain svg { width: 46%; height: auto; max-width: 220px; }

.brand, .langs a, .head-cta { white-space: nowrap; }
@media (max-width: 1560px) { :lang(ru) .clock, :lang(ru) .head-btn span, :lang(ru) .head-btn kbd { display: none; } :lang(ru) .site-head .nav { gap: 0 16px; font-size: 14px; } }

/* ---- Films ---- */
.film { display: flex; flex-wrap: wrap; gap: 28px 44px; padding-top: 56px; align-items: flex-start; }
.film-frame { position: relative; flex: 3 1 520px; min-width: 0; border: 1px solid var(--ink); background: var(--ink); box-shadow: 8px 8px 0 var(--red); }
.film-frame video, .filmbox video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border: 0; background: transparent; }
.film-play.gone { display: none; }
.film-play svg, .film-thumb svg { width: 100%; height: 100%; }
.film-play circle, .film-thumb circle { fill: var(--red); stroke: var(--on-ink); stroke-width: 2; }
.film-play path, .film-thumb path { fill: var(--on-ink); }
.film-play:hover circle, .filmcard:hover circle { fill: var(--ink); }
.film-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.film-facts { display: flex; flex-direction: column; gap: 12px; padding: 0 0 18px 22px; }
.film-facts li { color: var(--ink-2); }
.film-facts small { display: block; font: 400 12px var(--mono); color: var(--muted); margin-top: 3px; }
.filmcard { text-align: left; cursor: pointer; font: inherit; }
.filmcard:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }
.film-thumb { position: relative; display: block; padding: 0 !important; border-bottom: 1px solid var(--ink); }
.film-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.film-thumb svg { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; }
.filmbox { width: min(1100px, calc(100vw - 32px)); margin: auto; padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(21, 18, 15, 0.3); }
.filmbox::backdrop { background: rgba(21, 18, 15, 0.7); }
.filmbox-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; font: 500 20px var(--serif); }
.filmbox .more { display: inline-block; margin: 12px 18px 16px; }
.pl-day .linkbtn { font: inherit; color: var(--red); }

@media (max-width: 1500px) { .clock { display: none; } }

:root{--panel:rgba(255,255,255,.55);color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
pre.md{white-space:pre-wrap;word-break:break-word;font:400 14px/1.65 var(--mono);background:var(--panel);border:1px solid var(--rule);padding:24px;margin:0;overflow-x:auto}

/* Evidence is source review, independent of personal field testing. */
.seal.na { border-style: solid; opacity: .55; }
.evidence-list { padding-left: 1.35em; }
.evidence-list > li { padding-block: 12px 20px; border-bottom: 1px solid var(--rule); }
.evidence-list h3 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.evidence-sources a { overflow-wrap: anywhere; }
.operator-address { font-style: normal; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
