/* tamanwahyu.com — V4
   One identity: paper, dusk indigo and a single copper line, set like an
   architect's drawing. Photographs never carry text; facts sit on paper
   beneath them. Readability outranks every effect. */

@font-face { font-family: "Wahyu Sans"; src: url("/fonts/wahyu-sans-var.6805231c01.woff2") format("woff2"); font-weight: 380 650; font-display: swap; }
@font-face { font-family: "Wahyu Display"; src: url("/fonts/wahyu-display.b5fa6f54d2.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Wahyu Serif SC"; src: url("/fonts/wahyu-serif-sc.fc58c024d0.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+00B7, U+2014, U+2018-201D, U+2026, U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+FF00-FFEF; }
/* the few characters set outside the Chinese edition (涵雅, 李明伟, the zone names) come from a 4 KB face; generated by site/tools/fonts.py */
@font-face { font-family: "Wahyu Serif SC"; src: url("/fonts/wahyu-serif-mark.72c6d2e78f.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+3044, U+3057, U+3073, U+4F1F, U+5143, U+660E, U+674E, U+697D, U+6C17, U+6C34, U+6DB5, U+904A, U+96C5; }

:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --stone: #eae4d8;
  --stone-2: #ded6c7;
  --ink: #16191f;
  --ink-2: #454a53;
  --ink-3: #5e636b;
  --line: #cfc6b6;
  --line-2: #b9af9d;
  --copper: #9a4a23;
  --copper-2: #b8612f;
  --copper-light: #e09a6a;
  --night: #0f1726;
  --night-2: #172238;
  --on-night: #efeae0;
  --on-night-2: #b9b6b0;
  --water: #b8cdd2;
  --wa: #25d366;
  --f-sans: "Wahyu Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Wahyu Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-cjk-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --f-cjk-serif: "Wahyu Serif SC", "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --gutter: clamp(1rem, 0.55rem + 2.2vw, 3rem);
  --max: 82rem;
  --measure: 38rem;
  --head-h: 4rem;
  --section: clamp(4.5rem, 3rem + 6vw, 9.5rem);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --radius: 3px;
}

/* ─── base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 4.5rem); scroll-padding-bottom: 5.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal; }
@media (min-width: 64rem) { body { font-size: 1.125rem; } }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.night :focus-visible { outline-color: var(--copper-light); }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: .75rem; color: var(--paper); }
.nw { white-space: nowrap; }
.num, .fig { font-variant-numeric: lining-nums tabular-nums; }

/* ─── Chinese and Malay editions ─── */
:lang(zh) body, body:lang(zh) { font-family: "Wahyu Sans", var(--f-cjk-sans); line-height: 1.85; line-break: strict; word-break: normal; }
:lang(zh) p, :lang(zh) li, :lang(zh) dd { letter-spacing: .01em; }
.cjk { font-family: var(--f-cjk-serif); font-weight: 600; letter-spacing: .02em; font-style: normal; }
:lang(zh) .t-display, :lang(zh) .t-1, :lang(zh) .t-2, :lang(zh) .t-3, :lang(zh) .t-plate { font-family: var(--f-display), var(--f-cjk-serif); font-weight: 600; letter-spacing: .02em; }
:lang(ms) .t-display, :lang(ms) .t-1, :lang(ms) .t-2 { hyphens: manual; }

/* ─── type scale ─── */
.t-display { font: 400 clamp(3rem, 1.9rem + 4.4vw, 6.25rem)/0.98 var(--f-display); letter-spacing: -.012em; }
.t-1 { font: 400 clamp(2.4rem, 1.6rem + 3vw, 4.4rem)/1.04 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.t-2 { font: 400 clamp(2rem, 1.45rem + 2.1vw, 3.35rem)/1.08 var(--f-display); letter-spacing: -.008em; text-wrap: balance; }
.t-3 { font: 400 clamp(1.45rem, 1.2rem + .8vw, 1.95rem)/1.2 var(--f-display); text-wrap: balance; }
.t-plate { font: 400 clamp(1.3rem, 1.1rem + .7vw, 1.7rem)/1.25 var(--f-display); }
:lang(zh) .t-display { font-size: clamp(2.9rem, 1.9rem + 4vw, 5.6rem); line-height: 1.1; }
:lang(zh) .t-1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.6rem); line-height: 1.25; }
:lang(zh) .t-2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem); line-height: 1.3; }
:lang(zh) .t-3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.4; }
:lang(ms) .t-1 { font-size: clamp(2.2rem, 1.5rem + 2.7vw, 4rem); }
:lang(ms) .t-2 { font-size: clamp(1.85rem, 1.4rem + 1.9vw, 3.05rem); }
.lead { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; }
:lang(zh) .lead { line-height: 1.8; max-width: 34em; }
.small { font-size: .9375rem; line-height: 1.55; color: var(--ink-3); }
.fine { font-size: .9375rem; line-height: 1.5; color: var(--ink-3); }
/* a long address (the image credits) wraps instead of widening the page, which let phones pan sideways */
.prose { max-width: var(--measure); overflow-wrap: break-word; }
:lang(zh) .prose { max-width: 36em; }
.prose p { text-wrap: pretty; }
.prose h2 { font: 400 1.6rem/1.25 var(--f-display); margin: 2.4em 0 .6em; }
:lang(zh) .prose h2 { font-family: var(--f-display), var(--f-cjk-serif); font-weight: 600; font-size: 1.4rem; }
.prose h3 { font-weight: 600; margin: 1.6em 0 .4em; font-size: 1.05rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }

/* ─── layout ─── */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(46rem + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section + .section { padding-top: 0; }
.stone { background: var(--stone); }
.night { background: var(--night); color: var(--on-night); }
.night .lead, .night .small, .night .fine { color: var(--on-night-2); }
.night a:hover { color: var(--copper-light); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid-2 { display: grid; gap: clamp(2rem, 1rem + 3vw, 5rem); }
@media (min-width: 56rem) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.head-block { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 1.2rem + 2.5vw, 3.75rem); }
@media (min-width: 60rem) { .head-block--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; column-gap: 4rem; } .head-block--split .lead { margin: 0; padding-top: .55rem; } .head-block--split .lead p:last-child { margin-bottom: 0; } }

/* ─── header ─── */
/* No transform or backdrop-filter on the header: either would make it the containing block of the fixed menu panel. */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(244, 240, 232, .98); border-bottom: 1px solid var(--line); transition: top .32s var(--ease); }
.hd.is-away { top: calc(-1 * var(--head-h) - 2px); }
.hd__in { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand svg { width: 1.7rem; height: 1.7rem; color: var(--copper); flex: none; }
.brand__name { font: 400 1.4rem/1 var(--f-display); letter-spacing: -.005em; white-space: nowrap; }
.nav ul { list-style: none; display: flex; gap: clamp(1rem, .2rem + 1.4vw, 2rem); }
.nav a { text-decoration: none; font-size: .9375rem; font-weight: 500; padding: .5rem 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--copper); }
.langs { display: flex; align-items: center; gap: .1rem; font-size: .875rem; }
.langs a, .langs span { padding: .45rem .5rem; min-width: 2.25rem; text-align: center; text-decoration: none; border-radius: var(--radius); }
.langs span[aria-current] { color: var(--copper); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.langs a:hover { background: var(--stone); color: var(--ink); }
.hd__cta { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--ink); border-radius: var(--radius); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.hd__cta svg { width: 1.15rem; height: 1.15rem; color: var(--wa); }
.hd__cta:hover { background: var(--ink); color: var(--paper); }
.hd__wa { display: none; }
.menu { display: none; }
@media (max-width: 67.99rem) {
  .nav, .hd__in > .langs, .hd__cta { display: none; }
  .hd__wa { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid var(--line-2); }
  .hd__wa svg { width: 1.3rem; height: 1.3rem; color: #128c4a; }
  .menu { display: block; }
  :root { --head-h: 3.6rem; }
  .brand__name { font-size: 1.25rem; }
}
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .45rem; height: 2.9rem; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 1.2rem; height: 1.2rem; }
.menu__close { display: none; }
.menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: inline; }
.menu__panel { position: fixed; inset: var(--head-h) 0 0 0; z-index: 45; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.menu__panel ul { list-style: none; }
.menu__panel li a { display: block; padding: 1.05rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu__panel li a span { display: block; font: 400 1.7rem/1.15 var(--f-display); }
:lang(zh) .menu__panel li a span { font-family: var(--f-display), var(--f-cjk-serif); font-weight: 600; font-size: 1.5rem; }
.menu__panel li a small { display: block; color: var(--ink-3); font-size: .9375rem; margin-top: .25rem; }
.menu__panel li a[aria-current="page"] span { color: var(--copper); }
.menu__foot { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.menu__foot .langs { font-size: 1rem; gap: .5rem; }
.menu__foot .langs a, .menu__foot .langs span { border: 1px solid var(--line); min-width: 3.4rem; padding: .7rem .8rem; }
/* While the menu or a viewer is open the page holds still. Lock the root only: overflow on
   body would make body the sticky header's scroller, so the header (and its Close) would leave
   the screen. The gutter stays reserved, so classic scrollbars cause no reflow. */
html.menu-open, html.viewer-open { overflow: hidden; scrollbar-gutter: stable; }

/* ─── buttons and links ─── */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .7rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; font-size: 1rem; line-height: 1.2; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: #2a2f38; color: var(--paper); border-color: #2a2f38; }
.btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.btn .wa-g { color: var(--wa); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--copper { background: var(--copper); border-color: var(--copper); }
.btn--copper:hover { background: #7f3c1b; border-color: #7f3c1b; }
.night .btn { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.night .btn:hover { background: #fff; color: var(--night); }
.night .btn--line { background: transparent; color: var(--on-night); border-color: rgba(239, 234, 224, .6); }
.night .btn--line:hover { background: var(--on-night); color: var(--night); }
.go { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding: .35rem 0; min-height: 2.75rem; }
.go svg { width: 1.1rem; height: 1.1rem; transition: transform .25s var(--ease); }
.go:hover svg { transform: translateX(3px); }
.night .go { color: var(--on-night); }

/* ─── plates: photographs and renders, never text on them ─── */
.plate { position: relative; margin: 0; background: var(--ph, var(--stone)); overflow: hidden; }
.plate .pic, .plate img { width: 100%; }
.plate img { height: var(--plate-h, auto); object-fit: cover; object-position: var(--pos, 50% 50%); background: var(--ph, var(--stone)); }
.plate--hero { --plate-h: min(70svh, 56.25vw); }
.plate--wide { --plate-h: min(82svh, 50vw); }
.plate--band { --plate-h: min(64svh, 42vw); }
@media (max-width: 47.99rem) { .plate--hero, .plate--wide, .plate--band { --plate-h: auto; } }
.plate--settle img { animation: settle 2.4s var(--ease) both; transform-origin: 50% 60%; }
@keyframes settle { from { transform: scale(1.045); } to { transform: none; } }
.seal { position: absolute; right: clamp(.6rem, .3rem + .8vw, 1.25rem); bottom: clamp(.6rem, .3rem + .8vw, 1.25rem); background: rgba(244, 240, 232, .94); color: var(--ink); border: 1px solid rgba(22, 25, 31, .18); font-size: .8125rem; line-height: 1.2; padding: .38rem .6rem; border-radius: 2px; pointer-events: none; }
.cap { display: flex; flex-wrap: wrap; gap: .25rem .9rem; justify-content: space-between; font-size: .9375rem; line-height: 1.45; color: var(--ink-3); padding-top: .7rem; }
.cap b { font-weight: 500; color: var(--ink-2); }
.night .cap { color: var(--on-night-2); }
.night .cap b { color: var(--on-night); }
.pic { display: block; background: var(--ph, var(--stone)); }
a.zoom { display: block; position: relative; cursor: zoom-in; }
a.zoom img { transition: transform .8s var(--ease); }
a.zoom:hover img { transform: scale(1.015); }

/* ─── the paper band beneath a plate ─── */
.band { padding-block: clamp(1.75rem, 1rem + 2vw, 3rem) clamp(3rem, 2rem + 4vw, 6rem); }
.band__grid { display: grid; gap: 2rem; }
@media (min-width: 64rem) { .band__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 1rem + 4vw, 6rem); align-items: end; } }
.band__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .4em; }
.band__name .cjk { font-size: .42em; color: var(--copper); letter-spacing: .08em; transform: translateY(-.15em); }
:lang(zh) .band__name .cjk { font-size: 1em; color: var(--ink); letter-spacing: .04em; transform: none; }
:lang(zh) .band__name .latin { font-size: .38em; color: var(--ink-2); letter-spacing: 0; }
.band__line { font: 400 clamp(1.25rem, 1.05rem + .8vw, 1.75rem)/1.35 var(--f-display); color: var(--ink-2); margin: 1.1rem 0 0; max-width: 34ch; text-wrap: balance; }
:lang(zh) .band__line { font-family: var(--f-cjk-sans); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.7; max-width: 24em; }
.band__who { margin: 1.6rem 0 0; font-size: .9375rem; color: var(--ink-3); }
.band .btns { margin-top: 2rem; }

/* ─── the ledger: facts, set like a drawing's schedule ─── */
.ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: 0 clamp(1.5rem, 1rem + 1.5vw, 2.5rem); margin: 0; }
.ledger > div { border-top: 1px solid var(--line); padding: .85rem 0 1rem; position: relative; }
.ledger > div::before { content: ""; position: absolute; left: 0; top: -1px; width: 1.25rem; height: 1px; background: var(--copper); }
.ledger dt { font-size: .9375rem; line-height: 1.35; color: var(--ink-3); margin: 0 0 .3rem; }
.ledger dd { margin: 0; font: 400 1.35rem/1.25 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
:lang(zh) .ledger dd { font-family: var(--f-display), var(--f-cjk-sans); font-size: 1.25rem; }
.ledger dd small { display: block; font: 400 .9375rem/1.45 var(--f-sans); color: var(--ink-3); margin-top: .25rem; }
.ledger--compact dd { font-size: 1.15rem; }
.ledger--one { grid-template-columns: 1fr; }
.night .ledger > div { border-top-color: rgba(239, 234, 224, .22); }
.night .ledger dt, .night .ledger dd small { color: var(--on-night-2); }
.night .ledger > div::before { background: var(--copper-light); }

/* ─── dimension lines: the site's one graphic device, only where a measure is stated ─── */
.dim { display: flex; align-items: center; gap: .6rem; color: var(--copper); font-size: .875rem; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.dim::before, .dim::after { content: ""; flex: 1; height: 9px; border-top: 1px solid currentColor; margin-top: 8px; }
.dim::before { border-left: 1px solid currentColor; }
.dim::after { border-right: 1px solid currentColor; }
.dim span { color: var(--ink-2); }
.night .dim { color: var(--copper-light); }
.night .dim span { color: var(--on-night-2); }

/* ─── album: two or three images, deliberately unequal ─── */
.album { display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.5rem); }
@media (min-width: 48rem) {
  .album--2 { grid-template-columns: 7fr 5fr; align-items: end; }
  .album--2 > :last-child { margin-bottom: clamp(2rem, 1rem + 4vw, 6rem); }
  .album--3 { grid-template-columns: 6fr 4fr 4fr; align-items: start; }
  .album--3 > :nth-child(2) { margin-top: clamp(3rem, 2rem + 4vw, 7rem); }
  .album--4 { grid-template-columns: 5fr 4fr; }
  .album--4 > :nth-child(2) { margin-top: clamp(3rem, 2rem + 5vw, 8rem); }
  .album--4 > :nth-child(3) { margin-top: calc(-1 * clamp(0rem, -2rem + 5vw, 6rem)); }
}
.album figure { margin: 0; }
.album .pic img { width: 100%; }

/* ─── chapter navigation (flagship) ─── */
.chapters { position: sticky; top: var(--head-h); z-index: 30; background: rgba(244, 240, 232, .97); border-bottom: 1px solid var(--line); transition: top .32s var(--ease); }
.hd.is-away ~ main .chapters, body.head-away .chapters { top: 0; }
.chapters ol { list-style: none; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-block: .45rem; }
.chapters ol::-webkit-scrollbar { display: none; }
.chapters a { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 .85rem; border-radius: 999px; text-decoration: none; font-size: .9375rem; white-space: nowrap; color: var(--ink-2); }
.chapters a:hover { background: var(--stone); color: var(--ink); }
.chapters a[aria-current="true"] { background: var(--ink); color: var(--paper); }

/* ─── breadcrumbs and page heads ─── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .6rem; font-size: .9375rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2rem, 1.2rem + 3vw, 4rem); }
.page-head .crumbs { margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.page-head .lead { margin-top: 1.25rem; }

/* ─── the idea: 涵 · 雅 ─── */
.idea { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 60rem) { .idea { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; } }
.idea__chars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.idea__char { border-top: 1px solid var(--line); padding-top: 1rem; }
.idea__char b { display: block; font: 600 clamp(5rem, 3rem + 7vw, 9.5rem)/1 var(--f-cjk-serif); color: var(--ink); }
.idea__char span { display: block; margin-top: 1rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }

/* ─── Level 11: the deck instrument ─── */
.deck { --zone: var(--copper); }
.deck__tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.deck__tab { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.9rem; padding: .35rem 1rem; border-radius: 999px; border: 1px solid rgba(239, 234, 224, .35); background: transparent; color: var(--on-night); font-size: .9375rem; }
.deck__tab i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--c, var(--on-night-2)); flex: none; }
.deck__tab[aria-selected="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.deck__tab:hover { border-color: var(--on-night); }
.deck__stage { position: relative; overflow: hidden; border-radius: var(--radius); background: #e9e1d2; aspect-ratio: 21 / 8; touch-action: pan-y; }
@media (max-width: 47.99rem) { .deck__stage { aspect-ratio: 4 / 3; } }
.deck__plan { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 0 0; transition: transform .9s var(--ease); will-change: transform; }
.deck__plan img { width: 100%; height: auto; }
.deck__stage[data-zoomed="false"] .deck__plan { top: 50%; transform: translateY(-50%); }
.deck__mini { position: relative; margin-top: .75rem; opacity: .9; }
.deck__mini img { width: 100%; height: auto; border-radius: 2px; }
.deck__frame { position: absolute; top: 0; bottom: 0; border: 2px solid var(--copper-light); border-radius: 2px; transition: left .9s var(--ease), width .9s var(--ease); pointer-events: none; }
.deck__frame[hidden] { display: none; }
.deck__zone { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 60rem) { .deck__zone { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.deck__zone h3 { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.deck__zone h3 .ja { font: 600 1rem/1 var(--f-cjk-serif); color: var(--copper-light); letter-spacing: .1em; }
.deck__gloss { color: var(--on-night-2); margin: .4rem 0 1.4rem; }
.deck__items { list-style: none; columns: 2 12rem; column-gap: 1.5rem; font-size: .9375rem; line-height: 1.4; }
.deck__items li { break-inside: avoid; display: flex; gap: .6rem; padding: .42rem 0; border-top: 1px solid rgba(239, 234, 224, .14); }
.deck__items b { font-weight: 500; min-width: 1.6rem; color: var(--c, var(--copper-light)); font-variant-numeric: tabular-nums; }
.deck__imgs { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.deck__imgs > :first-child { grid-column: 1 / -1; }
.deck__imgs figure { margin: 0; }
.deck__imgs .cap { padding-top: .45rem; font-size: .875rem; }
.deck__all { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
html.js .deck__all { display: none; }

/* ─── residences: four homes at one scale ─── */
.scale { --row: 45880; display: flex; align-items: flex-end; gap: clamp(.6rem, .2rem + 1.2vw, 1.6rem); }
.scale__item { flex: 0 0 auto; width: calc((100% - 3 * clamp(.6rem, .2rem + 1.2vw, 1.6rem)) * var(--mm) / var(--row)); margin: 0; text-decoration: none; color: inherit; display: block; }
.scale__dim { position: relative; height: 1.6rem; margin-inline: var(--inset); }
.scale__dim .dim { position: absolute; inset: 0; }
.scale__img { background: #fff; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.scale__img img { width: 100%; height: auto; }
.scale__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; padding-top: .8rem; }
.scale__label b { font: 400 2.2rem/1 var(--f-display); }
.scale__label span { font-size: .9375rem; color: var(--ink-2); line-height: 1.35; }
a.scale__item:hover .scale__img { border-color: var(--ink); }
a.scale__item:hover b { color: var(--copper); }
@media (max-width: 55.99rem) {
  .scale { --row: 17920; flex-wrap: wrap; row-gap: 2rem; }
  .scale__item { width: calc(100% * var(--mm) / var(--row)); }
  .scale__item[data-type="A"] { width: calc((100% - 1rem) * var(--mm) / var(--row)); margin-right: 0; }
  .scale__label { min-height: 5.8rem; align-content: flex-start; }
  .scale__label span { flex-basis: 100%; }
}
.scale-note { margin-top: 1.4rem; }

.compare { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.compare__pick { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 2rem; }
.compare__pick fieldset { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.compare__pick legend { float: left; margin-right: .6rem; font-size: .9375rem; color: var(--ink-3); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.9rem; min-height: 2.9rem; padding: .3rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9375rem; background: transparent; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 3px; }
.chip input:hover + span { border-color: var(--ink); }
.compare__vs { font: 400 1.2rem/1 var(--f-display); color: var(--ink-3); }
.compare__grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .compare__grid { grid-template-columns: 1fr 1fr; align-items: end; } }
.compare__col { margin: 0; }
.compare__plan { width: calc(100% * var(--mm) / var(--cmpmax)); }
.compare__plan .scale__dim { margin-inline: var(--inset); }
.compare__plan .scale__img { display: block; cursor: zoom-in; }
.compare__table { width: 100%; border-collapse: collapse; margin-top: 2.25rem; font-variant-numeric: lining-nums tabular-nums; }
.compare__table th, .compare__table td { text-align: left; padding: .75rem .5rem .75rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.compare__table thead th { font: 400 1.6rem/1 var(--f-display); border-top: 0; padding-bottom: 1rem; }
.compare__table tbody th { font-weight: 400; color: var(--ink-3); font-size: .9375rem; width: 32%; }
.compare__table td { font-size: 1.05rem; }
.compare__table td.diff { color: var(--copper); }
.compare__obs { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 48rem) { .compare__obs { grid-template-columns: 1fr 1fr; } }
.obs { list-style: none; }
.obs li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--line); line-height: 1.5; }
.obs li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .85rem; height: 1px; background: var(--copper); }
.obs li:first-child { border-top: 0; }

/* type page */
.type-hero { display: grid; gap: clamp(2rem, 1rem + 3vw, 4.5rem); }
@media (min-width: 60rem) { .type-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.plan-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: clamp(.75rem, .5rem + 1vw, 1.5rem); }
.plan-card a { display: block; cursor: zoom-in; }
.plan-card img { width: 100%; height: auto; }
.plan-card .dim { margin-bottom: .7rem; }
.plan-tools { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.pager a { text-decoration: none; display: grid; gap: .2rem; }
.pager a span { font-size: .9375rem; color: var(--ink-3); }
.pager a b { font: 400 1.5rem/1.1 var(--f-display); }
.pager a:hover b { color: var(--copper); }
.tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .9375rem; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .3rem .8rem; }
.tag::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--copper); }

/* ─── Kevin ─── */
.ask { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.1rem; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.ask__ava { width: 3.6rem; height: 3.6rem; border-radius: 50%; overflow: hidden; background: var(--night); }
.ask__ava img { width: 100%; height: 100%; object-fit: cover; }
.ask p { margin: 0; }
.ask__q { font: 400 1.2rem/1.35 var(--f-display); }
:lang(zh) .ask__q { font-family: var(--f-cjk-sans); font-size: 1.1rem; }
.ask .btns { grid-column: 1 / -1; margin-top: .25rem; }
@media (min-width: 48rem) { .ask { grid-template-columns: auto 1fr auto; } .ask .btns { grid-column: auto; margin: 0; } }
.night .ask { border-color: rgba(239, 234, 224, .2); }
.kevin { display: grid; gap: 0; }
@media (min-width: 60rem) { .kevin { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; } }
.kevin__media { margin: 0; position: relative; background: #0b1424; }
.kevin__media img { width: 100%; height: auto; }
@media (min-width: 60rem) { .kevin__media { min-height: 34rem; } .kevin__media .pic { position: absolute; inset: 0; } .kevin__media img { height: 100%; object-fit: cover; object-position: var(--pos, 60% 30%); } }
.kevin__text { padding: clamp(2.5rem, 2rem + 3vw, 5rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
@media (min-width: 60rem) { .kevin__text { padding-inline: clamp(2.5rem, 1rem + 3vw, 5rem); } }
.kevin__id { font-size: .9375rem; color: var(--on-night-2); line-height: 1.6; }
.kevin__id b { color: var(--on-night); font-weight: 500; }
.helps { list-style: none; counter-reset: h; display: grid; gap: 0; }
.helps li { counter-increment: h; display: grid; grid-template-columns: 2.25rem 1fr; gap: .25rem 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.helps li::before { content: counter(h, decimal-leading-zero); font: 400 1rem/1.6 var(--f-display); color: var(--copper); font-variant-numeric: tabular-nums; }
.helps li b { display: block; font: 400 1.3rem/1.3 var(--f-display); margin-bottom: .2rem; }
:lang(zh) .helps li b { font-family: var(--f-display), var(--f-cjk-serif); font-weight: 600; font-size: 1.15rem; }
.steps { list-style: none; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1rem; }
.steps li::before { content: counter(s); display: block; font: 400 2.4rem/1 var(--f-display); color: var(--copper); margin-bottom: .6rem; }
.steps b { display: block; font-weight: 600; margin-bottom: .3rem; }

/* ─── 360 ─── */
.tour { position: relative; }
.tour__stage { position: relative; aspect-ratio: 16 / 9; background: #0b1220; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 47.99rem) { .tour__stage { aspect-ratio: 4 / 5; } }
.tour__stage .pic, .tour__stage .pic img { width: 100%; height: 100%; object-fit: cover; }
.tour__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b1220; }
.tour__status { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; background: rgba(244, 240, 232, .95); color: var(--ink); border-radius: var(--radius); padding: .7rem .9rem; font-size: .9375rem; max-width: 30rem; }
.tour__status[hidden] { display: none; }
.tour__spin { width: 1rem; height: 1rem; border: 2px solid var(--line-2); border-top-color: var(--copper); border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.tour__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1rem; }
.tour__levels { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.tour__levels .lbl { font-size: .9375rem; color: var(--on-night-2); margin-right: .35rem; }
.tour__lvl { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 3.2rem; min-height: 2.9rem; padding: 0 .9rem; border-radius: 999px; border: 1px solid rgba(239, 234, 224, .4); background: transparent; color: var(--on-night); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.tour__lvl:hover { border-color: var(--on-night); }
.tour__lvl[aria-pressed="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.tour__actions { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.tour__actions button, .tour__actions a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; background: none; border: 0; padding: 0; color: var(--on-night); font-size: .9375rem; text-decoration: underline; text-underline-offset: .25em; }
.tour__actions svg { width: 1rem; height: 1rem; }
.tour:fullscreen { background: #0b1220; padding: 0; display: flex; flex-direction: column; }
.tour:fullscreen .tour__stage { flex: 1; aspect-ratio: auto; border-radius: 0; }
.tour:fullscreen .tour__bar { padding: .75rem 1rem; margin: 0; }
.tour-page { background: var(--night); color: var(--on-night); }
.tour-page .tour__stage { aspect-ratio: auto; height: calc(100svh - var(--head-h) - 9.5rem); min-height: 22rem; }
@media (max-width: 47.99rem) { .tour-page .tour__stage { height: calc(100svh - var(--head-h) - 13rem); } }

/* ─── atlas ─── */
.map { position: relative; margin: 0; }
.map__v { position: relative; }
.map__v .pic img { width: 100%; height: auto; }
.map__v--tall { display: none; }
@media (max-width: 47.99rem) { .map__v--wide { display: none; } .map__v--tall { display: block; } }
.map__ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map__rail { fill: none; stroke: #2b2f36; stroke-width: 3.2; }
.map__rail-dash { fill: none; stroke: #f4f0e8; stroke-width: 1.4; stroke-dasharray: 7 7; }
.map__mrt { fill: none; stroke: #6a7a3a; stroke-width: 3; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .8; }
.map__site { fill: rgba(154, 74, 35, .22); stroke: var(--copper); stroke-width: 2.2; }
.map__route { fill: none; stroke: var(--copper); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.map__route--park { stroke: #3f6b4e; stroke-width: 3.2; stroke-dasharray: 1 7; }
.map__stn .o { fill: #fff; stroke: #16191f; stroke-width: 2.4; }
.map__stn .i { fill: #16191f; }
.map__stn--here .o { stroke: var(--copper); stroke-width: 3; }
.map__lbl { position: absolute; transform: translate(-50%, -50%); font-size: clamp(.6875rem, .55rem + .45vw, .9375rem); line-height: 1.2; font-weight: 500; color: var(--ink); background: rgba(244, 240, 232, .88); padding: .12rem .4rem; border-radius: 2px; white-space: nowrap; pointer-events: none; }
.map__lbl--l { transform: translate(0, -50%); }
.map__lbl--r { transform: translate(-100%, -50%); }
.map__lbl--water { color: #2e5664; font-style: italic; background: rgba(214, 228, 232, .8); }
:lang(zh) .map__lbl--water { font-style: normal; }
.map__lbl--park { color: #325a3e; }
.map__lbl--res { color: #fff; background: var(--copper); font-weight: 600; }
.map__lbl--here { border: 1px solid var(--copper); }
.map__attr { font-size: .8125rem; color: var(--ink-3); padding-top: .5rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9375rem; color: var(--ink-2); margin-top: .9rem; }
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
.legend i { display: inline-block; width: 1.5rem; height: 0; border-top: 4px solid var(--copper); border-radius: 2px; }
.legend i.park { border-top: 3px dotted #3f6b4e; }
.legend i.rail { border-top: 4px solid #2b2f36; }
.legend i.site { height: .8rem; border: 2px solid var(--copper); background: rgba(154, 74, 35, .22); }
.maps-go { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.5rem; }

/* the rail line diagram */
.line { list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 1rem; position: relative; }
.line::before { content: ""; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: .55rem; height: 3px; background: var(--ink); }
.line li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: 0 .15rem; }
.line .stop { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); position: relative; z-index: 1; }
.line .here .stop { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 0 4px rgba(154, 74, 35, .18); }
.line .xchg .stop { border-color: #6a7a3a; }
.line .nm { font-size: .8125rem; line-height: 1.25; font-weight: 500; }
.line .here .nm { color: var(--copper); font-weight: 600; }
.line .cd { font-size: .75rem; color: var(--ink-3); display: block; }
.line .x { font-size: .75rem; color: #4d5a26; display: block; font-weight: 500; }
@media (max-width: 47.99rem) {
  .line { grid-template-columns: 1fr; gap: 0; }
  .line::before { left: .55rem; right: auto; top: .6rem; bottom: .6rem; width: 3px; height: auto; }
  .line li { flex-direction: row; align-items: center; text-align: left; gap: .9rem; padding: .4rem 0; }
  .line .nm { font-size: .9375rem; }
  .line .meta { display: flex; gap: .6rem; }
  .line .cd, .line .x { display: inline; }
}

/* ─── questions ─── */
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; padding: 1.15rem 0; cursor: pointer; font: 400 1.25rem/1.35 var(--f-display); }
:lang(zh) .qa summary { font-family: var(--f-cjk-sans); font-size: 1.1rem; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 300 1.6rem/1 var(--f-sans); color: var(--copper); transition: transform .25s var(--ease); flex: none; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 0 1.35rem; max-width: var(--measure); color: var(--ink-2); }
.qa .a p:last-child { margin-bottom: 0; }

/* ─── the viewing planner ─── */
.planner { display: grid; gap: 1.6rem; }
.planner fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.planner legend { font-weight: 600; margin-bottom: .7rem; padding: 0; }
.planner .opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.planner label.lbl { display: block; font-weight: 600; margin-bottom: .5rem; }
.planner input[type="text"], .planner textarea { width: 100%; border: 1px solid var(--line-2); background: #fbf9f5; border-radius: var(--radius); padding: .8rem .9rem; font-size: 1rem; line-height: 1.5; }
.planner input[type="text"]:focus, .planner textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
.planner textarea { min-height: 9.5rem; resize: vertical; }
.planner .preview-note { font-size: .9375rem; color: var(--ink-3); margin: .5rem 0 0; }
.planner .btns .btn { flex: 1 1 14rem; }
.copied { font-size: .9375rem; color: var(--copper); }
.contact-grid { display: grid; gap: clamp(2.5rem, 1.5rem + 3vw, 5rem); }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.direct { display: grid; gap: .25rem; }
.direct a { font: 400 1.6rem/1.3 var(--f-display); text-decoration: none; }
.direct a:hover { color: var(--copper); }

/* ─── footer ─── */
.ft { background: var(--stone); border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) calc(2rem + env(safe-area-inset-bottom)); font-size: .9375rem; }
.ft__grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .ft__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }
.ft h2 { font: 600 .9375rem/1.3 var(--f-sans); margin: 0 0 .9rem; color: var(--ink); }
.ft ul { list-style: none; display: grid; gap: .1rem; }
.ft ul a { display: inline-flex; min-height: 2.5rem; align-items: center; text-decoration: none; color: var(--ink-2); }
.ft ul a:hover { color: var(--copper); text-decoration: underline; }
.ft__brand p { color: var(--ink-2); max-width: 30rem; margin-top: 1rem; }
.ft__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; color: var(--ink-3); }
.ft__legal p { margin: 0; max-width: 52rem; }
.ft__legal button { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--ink-2); font-size: .9375rem; min-height: 2.5rem; }
.caveat { font-size: .9375rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1.2rem; max-width: 56rem; }

/* ─── the floating WhatsApp control ───
   Paper, ink and one green mark: Kevin, his registration and the question that fits the
   page. It arrives once, never bounces, and steps aside (site.js) for viewers, plans, the
   360, maps, truth labels, forms, the footer and any other way to ask on screen. */
.fab { position: fixed; z-index: 36; right: calc(1rem + env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .7rem; max-width: calc(100vw - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)); min-height: 3.35rem; padding: .3rem 1.2rem .3rem .3rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(244, 240, 232, .97); color: var(--ink); text-decoration: none; box-shadow: 0 14px 34px -16px rgba(15, 23, 38, .5), 0 2px 6px rgba(15, 23, 38, .08); opacity: 0; pointer-events: none; transform: translateY(.75rem); transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .2s; }
/* stepped aside it still takes keyboard focus (last in the tab order), and shows itself when it has it */
.fab.is-on, .fab:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
.fab:hover { color: var(--ink); border-color: var(--ink); }
.fab:hover .fab__lbl { color: var(--copper); }
.fab:active { transform: translateY(1px); }
.fab:focus-visible { outline-offset: 3px; border-radius: 999px; }
.fab__ava { position: relative; flex: none; width: 2.75rem; height: 2.75rem; }
.fab__ava .pic { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.fab__ava img { width: 100%; height: 100%; object-fit: cover; }
.fab__g { position: absolute; right: -.25rem; bottom: -.25rem; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--wa); color: #fff; border: 2px solid var(--paper); }
.fab__g svg { width: .72rem; height: .72rem; }
.fab__txt { display: grid; min-width: 0; line-height: 1.2; }
.fab__who { font-size: .75rem; color: var(--ink-3); letter-spacing: .01em; white-space: nowrap; }
.fab__lbl { font-size: .9375rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
@media (min-width: 68rem) { .fab { right: calc(1.5rem + env(safe-area-inset-right)); bottom: calc(1.5rem + env(safe-area-inset-bottom)); } }
@media (max-width: 35.99rem) { .fab { gap: .6rem; padding-right: 1.05rem; } .fab__who { display: none; } .fab__ava { width: 2.6rem; height: 2.6rem; } }
@media (forced-colors: active) { .fab { border-color: CanvasText; } }

/* ─── the analytics choice (privacy page) ─── */
.choice { margin: 0 0 1.25rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fbf9f5; }
.choice__status { margin: 0 0 .9rem; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.choice .btn { min-height: 2.9rem; padding: .5rem 1.1rem; font-size: .9375rem; }
html.no-js .choice .btns { display: none; }
html.no-js .choice__status { margin: 0; }

/* ─── dialogs: lightbox and plan reader ─── */
dialog { border: 0; padding: 0; max-width: none; max-height: none; }
.lb, .pv { width: 100vw; height: 100dvh; margin: 0; background: #0c121d; color: var(--on-night); }
.lb::backdrop, .pv::backdrop { background: rgba(8, 12, 20, .92); }
.lb[open], .pv[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb__bar, .pv__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem var(--gutter); min-height: 3.6rem; }
.lb__bar button, .pv__bar button, .pv__tools button { width: 2.9rem; height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(239, 234, 224, .35); background: transparent; color: var(--on-night); }
.lb__bar button:hover, .pv__bar button:hover, .pv__tools button:hover { border-color: var(--on-night); }
.lb__bar svg, .pv__bar svg, .pv__tools svg { width: 1.2rem; height: 1.2rem; }
.lb__count { font-size: .9375rem; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__stage.is-light { background: #fff; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; background: rgba(12, 18, 29, .6); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lb__prev { left: .5rem; }
.lb__next { right: .5rem; }
.lb__prev svg, .lb__next svg { width: 1.4rem; height: 1.4rem; }
.lb__cap { padding: .9rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); font-size: .9375rem; color: var(--on-night-2); min-height: 3.5rem; }
.lb__cap b { color: var(--on-night); font-weight: 500; }
.lb__err { color: var(--on-night); }
.pv { background: #f7f5f0; color: var(--ink); }
.pv__bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.pv__bar button, .pv__tools button { color: var(--ink); border-color: var(--line-2); }
.pv__title { font: 400 1.3rem/1.2 var(--f-display); }
:lang(zh) .pv__title { font-family: var(--f-display), var(--f-cjk-serif); font-weight: 600; }
.pv__view { position: relative; overflow: hidden; touch-action: none; cursor: grab; background: #fff; }
.pv__view.is-drag { cursor: grabbing; }
.pv__view img { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; max-width: none; }
.pv__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); font-size: .9375rem; color: var(--ink-2); }
.pv__tools { display: flex; gap: .5rem; align-items: center; }
.pv__switch { background: none; border: 0; text-decoration: underline; color: var(--ink); padding: 0; min-height: 2.75rem; font-size: .9375rem; }
.pv__msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--ink-2); }

/* ─── misc ─── */
.kicker { font-size: .9375rem; color: var(--ink-3); margin: 0 0 1rem; }
.night .kicker { color: var(--on-night-2); }
.pair { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
@media (min-width: 60rem) { .pair { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } .pair--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .pair--flip > :first-child { order: 2; } }
.stack > * + * { margin-top: 1.25rem; }
.postcards { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
.postcards figure { margin: 0; }
.list-plain { list-style: none; }
.list-plain li { padding: .7rem 0; border-top: 1px solid var(--line); }
.facts-inline { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--ink-2); font-size: .9375rem; }
.four04 { min-height: 60vh; display: grid; align-content: center; }
.notfound-links { list-style: none; display: grid; gap: 0; margin-top: 2rem; max-width: 36rem; }
.notfound-links a { display: block; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; font: 400 1.35rem/1.3 var(--f-display); }

/* ─── motion preferences ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .hd, .fab, .chapters, .menu, .tour__bar, .ft__legal button { display: none !important; }
  body { background: #fff; }
  .night { background: #fff; color: #000; }
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
