/* The Twelve Branches Book (2027 Fire Goat Edition) — style B "Bright Five Elements" (user's pick, 2026-11-07).
   Warm watercolor paper, soft washes in the five-element colours, fine gold geometry, navy serif.
   The year as a wheel; each volume a tarot-style card; a sign's band shown as LARAK's score ring. Mobile first. */

/* fonts as LARAK sets them for English pages (英-版面-005, user 11-04; 书-版面-013): Source Sans 3 for text, Source Serif 4
   at optical size 32 for display, LXGW WenKai / ZhenKai for the Chinese characters. Subsets with LARAK names (OFL Reserved
   Font Name 'Source'), built by scripts/build-fonts-larak.py */
@font-face { font-family: 'LARAK Text'; src: url('../fonts/larak-text.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'LARAK Text'; src: url('../fonts/larak-text-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'LARAK Display'; src: url('../fonts/larak-display-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'LARAK Display'; src: url('../fonts/larak-display-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'LARAK Display'; src: url('../fonts/larak-display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'LARAK Kai'; src: url('../fonts/larak-kai-500.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'LARAK Kai'; src: url('../fonts/larak-kai-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #fbf8f2;            /* warm watercolor paper */
  --card: #ffffff;
  --ink: #1f2a44;           /* navy */
  --ink-soft: #5f6679;
  --line: rgba(31, 42, 68, .12);
  --line-strong: rgba(31, 42, 68, .55);
  --gold: #876528;          /* gold for text: 5:1 on the paper (the lighter golds are for lines only) */
  --gold-line: #c39a4e;
  --gold-soft: rgba(195, 154, 78, .5);
  --coral: #e8846a;
  --focus: #876528;
  --measure: 38rem;
  /* two widths on computers (user 11-08 12:40, 书-版面-008): text keeps --measure; every wide block (the 12 cards, the Fire Goat
     still life, the relation box, a volume's at-a-glance panel, month list and three steps) shares --wide, so their edges line up */
  --wide: 56rem;
  --serif: 'LARAK Display', 'Source Serif 4', Georgia, serif;
  --sans: 'LARAK Text', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --han: 'LARAK Kai', 'LXGW WenKai GB', 'Kaiti SC', STKaiti, KaiTi, serif;
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .6' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23p)'/%3E%3C/svg%3E");
}
/* five-element washes (a: main, b: light, c: the year's warm accent) — LARAK colours signs by their native element */
.el-water { --a: #7fa8c9; --b: #c9e1ee; --c: #e9cf98; --wash: #9cc0dc; }
.el-wood  { --a: #98bf8e; --b: #d9ead0; --c: #e9cf98; --wash: #a9cd9c; }
.el-fire  { --a: #ee9c86; --b: #f7d3c4; --c: #e9cf98; --wash: #f2ab95; }
.el-metal { --a: #b8b6c6; --b: #e6e5ee; --c: #e9cf98; --wash: #c9c7d6; }
.el-earth { --a: #dcb579; --b: #f1dfba; --c: #ee9c86; --wash: #e5c48d; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* hidden means hidden, whatever display a component sets (审核 无障碍-01: the share button showed where Web Share is missing) */
[hidden] { display: none !important; }
body { margin: 0; overflow-x: clip; background: var(--bg) var(--paper); color: var(--ink); font: 400 1.05rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(31, 42, 68, .35); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.012em; }
h3 { font-size: 1.1rem; line-height: 1.35; font-weight: 600; margin: 1.6rem 0 .4rem; }
.han { font-family: var(--han); font-weight: 700; }
b.term { font-weight: 600; } @media (min-width: 22.5rem) { b.term { white-space: nowrap; } } /* a term where it is first explained (书-文字-020, user 11-08 15:27); kept whole: “Lunisolar New / Year” broke at line ends (复查 L-09), but not where a whole term can't fit the line: under 22.5rem, which
   also covers 320 wide with the text enlarged (复查 A2-05); not .kw, the three-words box's name (复查 A-09) */
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .92rem; line-height: 1.5; }
.soft { color: var(--ink-soft); }
.kicker { font: 600 .74rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 .9rem; }

/* ---------- top bar ---------- */
.bar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; font-size: .88rem; max-width: 72rem; margin: 0 auto; }
.bar a { text-decoration: none; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: .95rem; line-height: 1.2; }
.bar .ed { color: var(--ink-soft); white-space: nowrap; }
.bar .brand { display: inline-flex; align-items: center; }
.logo { display: block; width: auto; height: 2.5rem; }
.colophon .pubmark { margin: 1.4rem 0 0; }
.colophon .pubmark a { display: inline-block; }
.colophon .logo { height: 3rem; }
.colophon .logo-night, .bar .logo-night { display: none; }

/* ---------- home hero: title, wheel, finder ---------- */
.hero { position: relative; max-width: 72rem; margin: 0 auto; padding: .6rem 1.25rem 0; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 10.5vw, 4.6rem); line-height: 1.08; }
.hero .sub { font-size: 1rem; line-height: 1.55; color: var(--ink-soft); max-width: 27rem; margin: 1rem auto 0; text-wrap: balance; }
@media (min-width: 64rem) { .hero { padding-top: 2rem; } .hero .finder { max-width: 36rem; } }
.btn.cover-go { display: none; margin-top: 1.4rem; }
.wheel-wrap { position: relative; margin: 1rem auto 0; max-width: 34rem; text-align: left; }
.wheel { position: relative; width: 100%; height: auto; overflow: visible; }
.wheel .ring { fill: none; stroke: var(--gold-line); stroke-width: 1.1; }
.wheel .ring2 { fill: none; stroke: rgba(195, 154, 78, .45); stroke-width: 1; stroke-dasharray: 1 5; }
.wheel .rel { fill: none; stroke-linecap: round; }
.wheel .r-harm { stroke: var(--gold-line); stroke-width: 1.6; }
.wheel .r-clash { stroke: var(--ink); stroke-width: 1.1; stroke-dasharray: 9 6; }
.wheel .r-tension { stroke: var(--ink); stroke-width: 1.1; stroke-dasharray: 3 5; }
.wheel .r-wires { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: .1 5.5; }
.wheel .tri { fill: rgba(228, 198, 130, .14); stroke: none; }
.wheel .node circle { fill: var(--wash, #eee); stroke: none; filter: url(#wcNode); transition: fill .15s; }
.wheel .node .g { font-family: var(--han); font-weight: 700; font-size: 18px; fill: var(--ink); }
.wheel .node .n { font-family: var(--sans); font-weight: 500; font-size: 13px; fill: var(--ink); }
.wheel .node.year circle { fill: #f2b08f; }
.wheel a.node:hover circle, .wheel a.node:focus-visible circle, .wheel .node.is-hit circle { fill: #f6dd9d; }
.wheel .node.dim { opacity: .35; }
.wheel .flame { fill: url(#flameGrad); filter: url(#wcSoft); }
.wheel .compass path { fill: url(#goldGrad); }
.wheel .compass circle { fill: #fff6dc; }
/* the year and the twelve signs: flat figure, drawn like LARAK's forum ring (no watercolour) */
.ringbox { margin: 1.4rem 0 .4rem; padding: 1.2rem 1.1rem 1.1rem; border-radius: 22px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .35); }
.ringbox figcaption { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; text-align: center; text-wrap: balance; }
@media (max-width: 23.5rem) { .ringbox figcaption { font-size: 1rem; } } /* keeps “How the Goat meets the 12 signs” on one line on 360px phones */
.ringbox-in { display: grid; gap: 1rem; justify-items: center; margin-top: .6rem; }
.ringfig { display: block; width: 100%; max-width: 21rem; height: auto; overflow: visible; }
.ringfig .rg-c { fill: none; stroke: color-mix(in srgb, var(--ink) 20%, transparent); stroke-width: 1.2; }
.ringfig .rg-d, .ringkey .rg-d, .rs .rg-d { fill: #fff; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.4; }
.ringfig .rg-y, .ringkey .rg-y, .rs .rg-y { fill: var(--wx-fire-deep, #aa3625); }
.ringfig .rg-b.yr .rg-d { fill: #fff; stroke: none; }
.ringfig .rg-ch { fill: currentColor; font-family: var(--han); font-weight: 700; font-size: 21px; text-anchor: middle; dominant-baseline: central; }
.ringfig .rg-an { fill: var(--ink-soft); font-family: var(--sans); font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.ringfig .rg-b.yr .rg-an { fill: var(--ink); font-weight: 700; }
.ringfig .rg-b.dim { opacity: .38; }
.rl { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.rl.he { stroke: var(--rel-he); stroke-width: 4.4; } .rl.ke { stroke: var(--rel-ke); }
/* harmony lines are drawn double (a paper-coloured line down the middle), so harmony and clash don't differ by colour alone
   (审核 A2-04、D2-09); the red lines keep the user's patterns: clash solid, tension long dash, crossed wires dotted, snag dash-dot */
.rl.rl-in { stroke: #fdfcf9; stroke-width: 1.6; }
/* Three Harmonies: one solid olive line, beside the hollow double line of Six Harmonies (user 11-08 06:59, 07:45) */
.rl.he3 { stroke: var(--rel-he); stroke-width: 3.4; } /* a little heavier than the red solid Clash line, so the two differ by more than colour */
.rl.faint { opacity: .45; }
/* one set of columns for all rows (subgrid), the name column as wide as the longest name up to 60%, so rows line up and enlarged
   text wraps instead of running into the next column (审核 A2-13) */
.ringkey { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 26rem; display: grid; grid-template-columns: fit-content(66%) minmax(0, 1fr); column-gap: .6rem; row-gap: .1rem; font-size: .95rem; }
/* no rules between the legend rows (user 11-07 23:12: no lines that space can do); the line-style swatches are the only lines here */
.ringkey li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; padding: .38rem .5rem; margin: 0 -.5rem; border-radius: 10px; }
.ringkey .k { display: inline-flex; align-items: flex-start; gap: .45rem; }
.ringkey .kn { display: flex; flex-direction: column; line-height: 1.25; }
.ringkey .kn small { font-size: .8rem; color: var(--ink-soft); font-weight: 400; }
.ringkey .k svg { flex: none; width: 26px; height: 10px; margin-top: .22em; overflow: visible; }
.ringkey .k b { font-weight: 600; white-space: normal; }
.ringkey .k b:not(.rw) { color: var(--ink); }
.ringkey .who { color: var(--ink-soft); }
/* the two tags only the month lists use (审核第六轮: "What the relations mean" led here, and they weren't here) */
.ringkey-more { width: 100%; max-width: 26rem; margin: 0; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); text-align: left; text-wrap: pretty; }
.ringkey-more b { font-weight: 600; } .ringkey-more b:not(.rw) { color: var(--ink); }
/* two views: the sign picker, one sign's side, the floating bar */
.viewpick { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .8rem 0 0; }
.viewpick button { font: 500 .84rem/1 var(--sans); color: var(--ink); background: rgba(255, 255, 255, .9); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 999px; padding: .5rem .75rem; cursor: pointer; }
.viewpick button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.viewpick button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.viewpick button:hover:not([aria-pressed="true"]) { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); } /* 终审 L-10 */
.ringside { width: 100%; max-width: 26rem; display: grid; gap: .8rem; }
.ringview { background: #fff; border-radius: 16px; padding: .9rem 1.1rem 1rem; box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .45); }
/* empty, the panel stays in the page as a watched live region, out of sight (终审 A-06: a hidden region isn't reliably read) */
.ringview.rv-empty { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; box-shadow: none; }
.ringview .rv-k { margin: 0; font: 600 .76rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ringview .rv-l { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .6rem 0 0; font-size: 1.05rem; font-weight: 600; }
.ringview .rv-t { margin: .5rem 0 0; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.ringview .rv-go { margin-top: .8rem; width: 100%; }
@media (min-width: 40rem) { .ringview .rv-go { width: auto; min-height: 38px; padding: 0 16px; font-size: .875rem; } }
.ringbox.focus .rg-b:not(.on) .rg-d, .ringbox.focus .rg-b:not(.on) .rg-ch { opacity: .35; }
.ringbox.focus .rg-b.on .rg-an { fill: var(--ink); font-weight: 700; }
.ringbox.focus .ringfig .rl:not(.on) { opacity: .1; }
.ringbox.focus .ringkey li.on { background: rgba(195, 154, 78, .12); box-shadow: inset 3px 0 0 var(--gold); }
@media (forced-colors: active) { .viewpick button { border: 1px solid ButtonText; } .viewpick button[aria-pressed="true"] { background: Highlight; color: HighlightText; forced-color-adjust: none; } }  /* 终审 A-04 */
@media (forced-colors: active) { .hitcard { border: 1px solid LinkText; } }
.cards a.is-hit .card { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(31, 42, 68, .06), 0 24px 34px -18px rgba(135, 101, 40, .65); }
#tai-sui tr.on td, #tai-sui tr.on .rw { background: rgba(255, 255, 255, .8); font-weight: 600; }
@media (max-width: 63.99rem) { .ringleft, .ringside { display: contents; } .ringview { order: -1; width: 100%; max-width: 26rem; } }
@media (min-width: 40rem) and (max-width: 63.99rem) { .ringview { max-width: 20rem; } }  /* tablets: no wider than on computers, so the card isn't half empty */
/* from 40rem the card is as wide as what it holds (书-版面-008; 终审 L-05: 320px around 181–246px of content), never narrower
   than 14rem, so it changes little from sign to sign; on phones it spans the column with its full-width button */
@media (min-width: 40rem) { .ringview { width: fit-content; min-width: 14rem; } }
@media (min-width: 64rem) { .ringkey, .ringkey-more { max-width: none; } .viewpick button { padding: .45rem .6rem; } .ringbox { margin-inline: calc((100% - var(--wide)) / 2); padding: 1.6rem 2rem 1.6rem; } .ringside { max-width: 30rem; } }
/* figure and list side by side only on computers: on tablets the list was too narrow and split the relation names (审核 V3-02);
   the figure stays put when a sign's card appears beside it (审核 V3-08) */
@media (min-width: 64rem) { .ringbox-in { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; justify-items: stretch; }
  /* the picked sign's card under the wheel, not above the legend: the two columns come out about even, and the card is no
     wider than what it holds (user 11-08 12:31: the space under the wheel and the right half of the card were empty) */
  .ringleft { display: grid; gap: 1rem; align-content: start; } }

.finder { position: relative; max-width: var(--measure); margin: 1.6rem auto 0; padding: 1.3rem 1.25rem 1.25rem; text-align: left; background: rgba(255, 255, 255, .88); border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .55), 0 20px 46px -30px rgba(31, 42, 68, .35); }
.finder h2 { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } /* for screen readers only, at every width (user 11-08 11:36 computers, 15:22 phones) */
.finder form { display: flex; flex-direction: column; gap: .8rem; margin-top: 0; }
.finder .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 5.4rem), 1fr)); gap: .6rem; } /* wraps when enlarged text no longer fits (审核 K3-09) */
.finder .fields input, .finder .fields select { width: 100%; min-width: 0; }
.finder form .btn { width: 100%; }
/* from 40rem: one row like the zodiac site's lookup (user 11-08 11:47): a wider year, month, day, then the button; the error
   gets its own row under the fields instead of squeezing them (审核 C2-02) */
@media (min-width: 40rem) {
  .finder form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
  .finder .fields { flex: 1 1 22rem; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
  .finder form .err { order: 3; flex: 0 0 100%; margin: 0; }
  .finder form .btn { width: auto; min-height: 3.25rem; white-space: nowrap; } /* type and padding as every button; the height matches the fields (终审 L-11) */
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select { font: 500 1.05rem/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); background: #fff; border: 1.5px solid rgba(31, 42, 68, .62); border-radius: 14px; padding: 0 .9rem; min-height: 3.25rem; }
/* the year in the display face, as on the zodiac site; month and day get the same chevron as its selects */
.finder #f-year { font: 700 1.45rem/1.1 var(--serif); font-variant-numeric: lining-nums; }
.finder #f-year::placeholder { color: #6b7385; font-family: var(--sans); font-weight: 400; }  /* not the bold of a typed year: “1985” read as filled in, next to “Enter a year…” (复查 L-08) */
.finder #f-year { -moz-appearance: textfield; appearance: textfield; } /* no spin arrows beside the year (终审 L-11) */
.finder #f-year::-webkit-inner-spin-button, .finder #f-year::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 2.4rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2a44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .85rem center / 1rem 1rem; }
/* phones: three fields share one row, and "Month (optional)" would wrap and push its field down; "(optional)" stays for screen readers */
@media (max-width: 39.99rem) { .field .opt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  /* three fields in one row at 360: a smaller year and tighter padding keep "1985" whole */
  .field input, .field select { padding: 0 .7rem; } .field select { padding-right: 2rem; background-position: right .55rem center; } .finder #f-year { font-size: 1.3rem; } }
.result { margin-top: 1rem; }
.result[hidden], .err[hidden] { display: none; }
/* the result: a card with the sign's own landscape picture on its paper, the sign and its volume;
   the whole card opens the volume (after the zodiac site's result card, without its five-element version) */
.hitcard { display: flex; align-items: center; gap: .9rem; padding: .45rem; border-radius: 16px; background: var(--hc, #fbf2e7);
  color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .45); }
.hitcard:hover { box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .8), 0 12px 26px -18px rgba(31, 42, 68, .5); transform: translateY(-1px); }
/* the picture 2:1, a little more of the painting at the sides (user 11-08 12:27), its edges fading into the card's own paper */
.hitcard .hc-pic { flex: none; width: 8.5rem; height: 4.25rem; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
/* on the right, the small objects of the sign's element, cut out of the volume headers' backgrounds (user 11-08 12:27) */
.hitcard .hc-el { flex: none; margin-left: auto; margin-right: .5rem; width: 5.65rem; height: 4.25rem; object-fit: contain; } /* in from the edge (终审 L-08) */
.hitcard .hc-t { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
/* from 40rem the words sit in the middle of the room between the picture and the objects; on computers the picture and the
   objects are larger, so the card isn't empty in the middle (终审 L-07: 45% of the card was blank with the year alone; user 15:13) */
@media (min-width: 40rem) { .hitcard .hc-t { margin-inline: auto; } .hitcard .hc-el { margin-left: 0; } }
@media (min-width: 64rem) { .hitcard .hc-pic { width: 11rem; height: 5.5rem; } .hitcard .hc-el { width: 6.5rem; height: 4.875rem; } }
.hitcard .hc-n { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .55rem; }
.hitcard b { font: 700 1.3rem/1.2 var(--serif); white-space: nowrap; }
/* from 40rem the card has room for the sign's Chinese name and its 2027 line, as under its card on the cover (user 11-08 15:28) */
.hitcard .hc-zh { font-size: 1.1rem; color: var(--ink-soft); white-space: nowrap; }
.hitcard .hc-cap { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; margin-top: .35rem; font-size: .88rem; line-height: 1.35; color: var(--ink-soft); }
.hitcard .hc-cap .ringmark { color: var(--ink); }
@media (max-width: 39.99rem) { .hitcard .hc-zh, .hitcard .hc-cap { display: none; } }
.hitcard .hc-v { font-size: .9rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.hc-note { margin: .6rem .15rem 0; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 39.99rem) { .hitcard { padding-right: 1.1rem; } .hitcard .hc-el { display: none; } .hitcard .hc-pic { width: 7rem; height: 3.5rem; } }  /* phones: no room for the objects beside the text */
@media (max-width: 26rem) { .hitcard { gap: .7rem; } .hitcard .hc-pic { width: 6rem; height: 3rem; } }
/* 320: three fields of 4.4rem still make one row (a smaller year, tighter padding), and the result card stacks: the picture across
   the top, the words under it, so "The Monkey" and its line keep their width (终审 L-04: 108px of text, the name in two lines) */
@media (max-width: 22.49rem) {
  .finder .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.4rem), 1fr)); gap: .5rem; }
  .field input, .field select { padding: 0 .55rem; } .field select { padding-right: 1.7rem; background-position: right .45rem center; } .finder #f-year { font-size: 1.2rem; }
  .hitcard { flex-direction: column; align-items: stretch; gap: .45rem; padding: .45rem .45rem .75rem; }
  .hitcard .hc-pic { width: 100%; height: auto; aspect-ratio: 2 / 1; }
  .hitcard .hc-t { padding-inline: .5rem; }
}
.err { color: #b3261e; margin: .7rem 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .6rem 1.3rem; font: 600 1rem/1.2 var(--sans);
  color: #fff; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; }
.btn:hover { background: #2b3858; }
@media (min-width: 40rem) { .btn { min-height: 46px; padding: 0 24px; font-size: .9375rem; } }
.btn--line { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--line:hover { background: #fff; }
.finder.has-result form .btn { background: rgba(255, 255, 255, .7); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.finder.has-result form .btn:hover { background: #fff; }
/* Windows high contrast: buttons and chips keep an outline (A2-08) */
@media (forced-colors: active) {
  .btn, .chip, .ringview:not(:empty), .band { border: 1px solid ButtonText; }
  .dots .dotrow i { border: 1px solid CanvasText; } .dots .dotrow i.on { background: CanvasText; forced-color-adjust: none; }
  /* every part of the ring in system colours, including the Goat's own name and point, which have rules of their own
     (审核 F4-04; scripts/check-forced.py) */
  .ringfig .rg-c { stroke: GrayText; }
  .ringfig .rg-an, .ringfig .rg-b.yr .rg-an, .ringfig .rg-ch { fill: CanvasText; }
  .ringfig .rg-d, .ringfig .rg-b.yr .rg-d, .ringkey .rg-d { fill: Canvas; stroke: CanvasText; } .ringfig .rg-y, .ringkey .rg-y { fill: Highlight; }
  .rl, .rl.he, .rl.ke, .rl.he3 { stroke: CanvasText; } .rl.rl-in { stroke: Canvas; } /* 审核 F4-04 */ .ringbox.focus .rg-b.on .rg-an { fill: Highlight; }
  .ringbox.focus .ringkey li.on { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* ---------- score ring (LARAK's fortune-page ring): the arc fills with the score ---------- */
.ringmark { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-weight: 600; }
.ring-svg { width: 1.2em; height: 1.2em; flex: none; transform: rotate(-90deg); }
.ring-svg .track { fill: none; stroke: rgba(195, 154, 78, .28); stroke-width: 3; }
.ring-svg .arc { fill: none; stroke: var(--gold-line); stroke-width: 3; stroke-linecap: round; }

/* band meter: five bubbles in the sign's element colour; filled up to the band (1 Rocky … 5 Breezy) */
.dots .dotrow { display: inline-flex; gap: 3px; }
.dots .dotrow i { width: .74em; height: .74em; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 11%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 50% 58%, var(--wash) 0 45%, color-mix(in srgb, var(--a) 78%, #1f2a44) 100%);
  box-shadow: inset 0 -1.5px 2px rgba(31, 42, 68, .16), 0 1px 1.5px rgba(31, 42, 68, .12); }
.dots .dotrow i.off { background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 10%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .5) 0 55%, color-mix(in srgb, var(--wash) 30%, transparent) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a) 70%, transparent); }

/* ---------- the twelve cards (tarot-style faces; art replaces the placeholder) ---------- */
.section { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.section-head { max-width: var(--measure); margin: 3.2rem auto 1.3rem; text-align: center; }
.section-head h2 { font-size: 2.1rem; line-height: 1.12; }
.section-head p { margin: .6rem 0 0; color: var(--ink-soft); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.2rem), 1fr)); gap: 1.1rem .9rem; }
.cards a { display: block; text-decoration: none; }
.card { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; isolation: isolate; background: var(--card);
  box-shadow: 0 1px 0 rgba(31, 42, 68, .06), 0 16px 30px -24px rgba(31, 42, 68, .45); transition: transform .2s ease; }
.cards a:hover .card, .cards a:focus-visible .card { transform: translateY(-4px) rotate(-.6deg); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .cards a:hover .card { transform: none; } }
/* illustration: the picture only (no frame, no text); the frame, numeral and name are drawn here so all twelve cards match */
.card .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.card:not(.ph) .num, .card:not(.ph) .name { text-shadow: 0 0 6px var(--card), 0 0 2px var(--card); }
/* placeholder face (until the illustrations arrive): a watercolor blot with the sign's character */
.card.ph::before { content: ''; position: absolute; inset: 0; z-index: -1; filter: url(#wcSoft) blur(2px); opacity: .85;
  background: radial-gradient(ellipse 70% 38% at 50% 90%, var(--a), transparent 70%), radial-gradient(ellipse 45% 28% at 22% 82%, var(--b), transparent 70%), radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--c) 40%, transparent), transparent 35%); }
.card::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(195, 154, 78, .75); border-radius: 9px; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(195, 154, 78, .5); pointer-events: none; }
.card .blot { position: absolute; left: 50%; top: 47%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.card .blot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--wash); filter: url(#wcNode); opacity: .9; }
.card .blot span { position: relative; font-family: var(--han); font-weight: 700; font-size: clamp(1.6rem, 9vw, 2.6rem); color: var(--ink); }
.card .num { position: absolute; top: 5.5%; left: 0; right: 0; text-align: center; font-family: var(--serif); font-size: 1rem; letter-spacing: .12em; color: var(--gold); }
.card .name { position: absolute; bottom: 6.5%; left: 0; right: 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.card .idx { position: absolute; top: 5.2%; left: 9%; font-family: var(--han); font-weight: 700; font-size: .85rem; }
.cards .cap { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .5rem; align-items: center; margin-top: .55rem; font-size: .88rem; line-height: 1.35; color: var(--ink-soft); text-align: center; } /* centred under the card (user 11-08 06:59) */
.cards .cap .ringmark { color: var(--ink); }
.cards .cap .rel { flex-basis: 100%; }

/* ---------- volume hero ---------- */
a.chip { text-decoration: none; color: inherit; }
a.chip:hover { box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .6); font-size: .9rem; font-weight: 500; white-space: nowrap; }

/* ---------- reading pages ---------- */
.page { max-width: calc(var(--measure) + 2.5rem); margin: 0 auto; padding: 0 1.25rem 1rem; }

.ch { margin-top: 3.2rem; scroll-margin-top: 1rem; }
.ch > h2 { font-size: 2.1rem; line-height: 1.1; margin-bottom: .9rem; text-align: center; }
.ch > h3 { text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 .5rem; }
.months-line { margin: .3rem auto .4rem; max-width: 32rem; text-align: center; text-wrap: balance; font-size: .95rem; }
.months-line b { font-weight: 600; }
.note { font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }





.wish { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; text-align: center; text-wrap: balance; max-width: 28rem; margin: 2.2rem auto 0; }

.share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 2rem; }
.share .status { grid-column: 1 / -1; text-align: center; font-size: .92rem; color: var(--ink-soft); min-height: 1.4em; margin: 0; overflow-wrap: anywhere; }  /* 终审 A-08 */

table.almanac { width: 100%; border-collapse: collapse; margin: 1rem 0 0; font-size: .98rem; font-variant-numeric: tabular-nums; }
.almanac caption { text-align: left; font-weight: 600; padding-bottom: .5rem; }
.almanac th, .almanac td { text-align: left; vertical-align: top; padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--line); }
.almanac thead th { font-weight: 600; font-size: .86rem; color: var(--ink-soft); border-bottom: 1.5px solid var(--gold-soft); }
/* rules between the rows only: the last row has none (it sat 23px above the rule of the fold below, user 11-07 23:12) */
.almanac tbody tr:last-child > * { border-bottom: 0; }
.almanac td .han { margin-right: .3rem; }
.almanac .d { white-space: nowrap; width: 1%; padding-right: 1.2rem; }
.almanac tbody th { font-weight: 400; }
.almanac td small, .almanac .d small { display: block; color: var(--ink-soft); font-size: .86rem; font-weight: 400; }
.almanac td .mo-gz, .almanac td .mo-name { display: block; }
.almanac td .mo-name { margin-top: .1rem; }
.st { font-weight: 600; }
.almanac td .st { font-weight: 500; }

.colophon { max-width: calc(var(--measure) + 2.5rem); margin: 3.5rem auto 0; padding: 1.6rem 1.25rem 2.6rem; border-top: 1px solid var(--gold-soft); font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
.colophon .wordmark { color: var(--ink); display: block; margin-bottom: .7rem; }
.colophon p { margin-bottom: .55rem; }
.colophon nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1rem; }

.essay h1 { font-size: 2.4rem; line-height: 1.1; margin: 1.6rem 0 1rem; }
.essay h2 { font-size: 1.6rem; margin: 2.4rem 0 .6rem; }
.essay .bandlist { margin: -.45rem 0 1em; padding-left: 1.3rem; } .essay .bandlist li { margin: .12rem 0; }  /* the five bands, one a line (复查 L-10: five bold names in two lines read heavy) */

@media (min-width: 40rem) {
  body { font-size: 1.1rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.4rem 1.1rem; }
  .card .name { font-size: 1.45rem; }
}
/* wider tablets: four cards a row; three a row made each card 308×462 at 1000 wide, four rows of them (终审 L-09, user 11-08 15:13) */
@media (min-width: 48rem) and (max-width: 63.99rem) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 40rem) and (max-width: 63.99rem) {
  /* tablets: no card here, so the header is as wide as the text column below it (审核 V3-11) */
  .ch > h2 { font-size: 2.4rem; }
}
@media (min-width: 64rem) {
  /* the 12 cards on the wide width, not the full 69.5rem, so they line up with the still life and the relation box below
     (user 11-08 12:40); six to a row, two rows */
  .cards { grid-template-columns: repeat(6, 1fr); max-width: var(--wide); margin-inline: auto; }
}

/* ---------- long-form text: justified like a printed book (user 11-07 19:26) from 40rem up; on phones, ranged left (user 11-08
   06:37: a 390 column justified left 72 of 885 lines with more than half an em of extra space per gap, even with hyphenation).
   Hyphenation limits as in TeX (2 letters before a break, 3 after); "pretty" keeps paragraphs from ending on a single word.
   scripts/check-justify.py measures the justified widths (书-版面-006). ---------- */
.ch > p:not(.months-line, .wish, .note, .ch-score, .sum, .bestweak, .beyond, .p-k, .more), .ly dd > p:not(.ly-score, .ly-title, .bestweak, .ly-int), .essay > p:not(.small), .tsdir p, .mwhen li { text-wrap: pretty; }
@media (min-width: 40rem) {
  .ch > p:not(.months-line, .wish, .note, .ch-score, .sum, .bestweak, .beyond, .p-k, .more), .ly dd > p:not(.ly-score, .ly-title, .bestweak, .ly-int), .essay > p:not(.small), .tsdir p {
    text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 5 2 3;
  }
}

/* ---------- LARAK colour rules: stems and branches by element (共-颜色-014), bold in sentences (共-颜色-016), relation words (共-颜色-008) ---------- */
:root { --wx-wood: #2e7d4f; --wx-fire: #c8402c; --wx-earth: #8b5a2b; --wx-metal: #484a4e; --wx-water: #2b63a8;
  --wx-wood-deep: #276a43; --wx-fire-deep: #aa3625; --wx-earth-deep: #764c25; --wx-metal-deep: #484a4e; --wx-water-deep: #25548f;
  --rel-he: #4f6f28;  /* LARAK's olive #5a7a2e falls just under 4.5:1 on this paper */ --rel-ke: #a3463a; }
.gz { font-weight: 600; }
/* the site sits on tinted paper, so fire and wood use LARAK's deeper ink (the plain values fall just under 4.5:1 here) */
.gz.wx-wood { color: var(--wx-wood-deep); } .gz.wx-fire { color: var(--wx-fire-deep); } .gz.wx-earth { color: var(--wx-earth); }
.gz.wx-metal { color: var(--wx-metal); } .gz.wx-water { color: var(--wx-water); }
.hero .gz.wx-wood, .vhero .gz.wx-wood { color: var(--wx-wood-deep); } .hero .gz.wx-fire, .vhero .gz.wx-fire { color: var(--wx-fire-deep); }
.hero .gz.wx-earth, .vhero .gz.wx-earth { color: var(--wx-earth-deep); } .hero .gz.wx-water, .vhero .gz.wx-water { color: var(--wx-water-deep); }
.almanac td .gz:not(.han) { font-weight: inherit; }
.rw { font-weight: 500; } .rw.he { color: var(--rel-he); } .rw.ke { color: var(--rel-ke); }
.rw, .gz:not(.han) { white-space: nowrap; -webkit-hyphens: manual; hyphens: manual; } /* “Six Harmonies”, “Ding Wei”, “Fire Goat” stay whole (审核 V-05) */

/* ---------- cover title: the umbrella name, with this year's edition underneath ---------- */
.hero h1 .edline { display: block; margin-top: .9rem; font: 600 .8rem/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.hero h1 .edline::before, .hero h1 .edline::after { content: '—'; margin: 0 .55em; letter-spacing: 0; }
/* the cover leads with the Fire Goat year; the book's name is the line above it (user 11-07 22:38-22:40) */
.hero .kick-book { margin: 0 0 .75rem; font: 600 .78rem/1.35 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 24.4rem) { .hero .kick-book { font-size: .72rem; letter-spacing: .15em; } } /* one line on 360px phones */
/* the year at a glance: one line under the cover */
.yearline { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; max-width: 60rem; margin: 1.4rem auto 0; padding: 0 1rem;
  font-size: .9rem; line-height: 1.3; color: var(--ink-soft); }
.yearline > * { padding: .38rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .4); }
.yearline .yl-gz { color: var(--ink); font-weight: 600; }
.yearline .yl-gz .han { margin-right: .35em; }
.yearline a { color: var(--ink); font-weight: 600; background: none; box-shadow: none;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 50%, transparent); }
/* key to the five bands under "The twelve volumes" */
.section-head .bandkey { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .8rem; font-size: .82rem; }
/* the cover still life moves here once the cover shows the Fire Goat (scripts/art-css.mjs turns it on) */
.still { display: none; }

/* ---------- five bands, five looks (LARAK 共-颜色-013): Breezy and Rocky solid with light text, the middle three on light grounds ---------- */
:root { --good: #3f6a50; --good-bg: #e3eee4; --calm: #3f6c96; --calm-bg: #e3ebf3; --care: #8a6424; --care-bg: #f4ecdc; }
.band { display: inline-block; padding: .14em .66em .16em; border-radius: 999px; font: 400 .86em/1.25 var(--sans); letter-spacing: .01em; white-space: nowrap; }
.band.b5 { background: var(--good); color: #fff; }
.band.b4 { background: color-mix(in srgb, var(--good) 8%, var(--good-bg)); color: color-mix(in srgb, var(--good) 85%, var(--ink)); }
.band.b3 { background: color-mix(in srgb, var(--calm) 8%, var(--calm-bg)); color: color-mix(in srgb, var(--calm) 70%, var(--ink)); }
.band.b2 { background: color-mix(in srgb, var(--care) 8%, var(--care-bg)); color: color-mix(in srgb, var(--care) 72%, var(--ink)); }
.band.b1 { background: var(--care); color: #fff; }

/* ---------- six areas, six colours (LARAK 共-颜色-015): love rose, career blue, money gold, learning violet, rhythm & rest green, overall ink.
   The accent keeps LARAK's value; text uses a deeper tone of the same hue so it stays at 4.5:1 or better. ---------- */
.dim-Overall { --dim: var(--ink); --dim-ink: var(--ink); }
.dim-Love { --dim: #b65c73; --dim-ink: #a3506a; }
.dim-Career { --dim: #36689a; --dim-ink: #36689a; }
.dim-Wealth { --dim: #a77b2c; --dim-ink: #85641f; }
.dim-Learning { --dim: #6e64a6; --dim-ink: #6e64a6; }
.dim-Wellbeing { --dim: #3f7d60; --dim-ink: #366d53; }
/* six areas: the LARAK zodiac site's meter (fortune page): an icon chip and five short bars filled up to the band,
   in the area's colour; Overall in ink with the score ring as its icon (user 11-07 20:45) */
.dico { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 9px; color: var(--dim, var(--ink));
  background: color-mix(in srgb, var(--dim, var(--ink)) 11%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dim, var(--ink)) 16%, transparent); }
.dico svg { display: block; width: 1.05rem; height: 1.05rem; }
.dico .ring-svg { width: 1.1rem; height: 1.1rem; }
.dico .ring-svg .track { stroke: color-mix(in srgb, currentColor 20%, transparent); }
.dico .ring-svg .arc { stroke: currentColor; }
.cells { display: inline-grid; grid-template-columns: repeat(5, 14px); gap: 3px; }
.cells i { display: block; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 11%, transparent); }
.cells i.on { background: var(--dim, var(--ink)); }
@media (forced-colors: active) { .cells i { border: 1px solid CanvasText; } .cells i.on { background: CanvasText; forced-color-adjust: none; } }  /* 终审 A-02 */

/* ---------- volume: the sign's basics, the year map, area scores (user 11-07 22:56) ---------- */
.dscore { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.dscore small { font-weight: 400; color: var(--ink-soft); font-size: .8em; }
/* the year map: six areas × twelve months, coloured by band; the band colours are the band badges' own, a little deeper so
   the light middle bands still tell apart as cells */
:root { --m1: var(--care); --m2: color-mix(in srgb, var(--care) 34%, #fff); --m3: color-mix(in srgb, var(--calm) 30%, #fff); --m4: color-mix(in srgb, var(--good) 58%, #fff); --m5: var(--good); }
.yearmap { margin: 1.1rem 0 1.2rem; padding: .9rem 1.1rem .7rem; border-radius: 16px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .35); }
.yearmap figcaption { font-weight: 600; font-size: .92rem; margin: 0 0 .5rem; text-align: center; }
.yearmap .ym-wrap { overflow-x: auto; padding: 4px; margin: -4px; } /* room for the focus ring (审核第六轮) */
.yearmap table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 3px; font-size: .82rem; }
.yearmap thead th:first-child { width: 8.6rem; } .yearmap thead th.ym-score { width: 2.6rem; }
.yearmap thead th { font-weight: 500; color: var(--ink-soft); text-align: center; padding: 0 0 .15rem; }
.yearmap thead abbr { text-decoration: none; }
.yearmap tbody th { text-align: left; font-weight: 600; white-space: nowrap; padding-right: .35rem; }
.yearmap tbody th a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem 0; text-decoration: none; color: var(--dim-ink, var(--ink)); }
.yearmap tbody th .dico { width: 1.35rem; height: 1.35rem; }
.yearmap tbody th a > span:last-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.yearmap tbody th a:hover > span:last-child { text-decoration-color: currentColor; } /* 终审 L-10 */
.yearmap td { height: var(--barh); min-width: .95rem; }
.yearmap { --barh: 1.7rem; }
/* the bar box: a fixed height, centred on the row's name like the name itself, its 6% ground and the bar drawn together, so
   Breezy fills it and a row whose name runs to two lines keeps the same bars (审核 V3-04, F4-01) */
.yearmap td[class^="b"] { padding: 0; vertical-align: middle; }
.yearmap td[class^="b"]::before { content: ''; display: block; height: var(--barh); border-radius: 4px; background: linear-gradient(to top, var(--c) calc(var(--h) - 2px), var(--ink-soft) calc(var(--h) - 2px), var(--ink-soft) var(--h), color-mix(in srgb, var(--ink) 6%, transparent) var(--h)); }
:is(.yearmap, .mstrip, .bscale.bars) .b1 { --c: var(--m1); --h: 20%; } :is(.yearmap, .mstrip, .bscale.bars) .b2 { --c: var(--m2); --h: 40%; } :is(.yearmap, .mstrip, .bscale.bars) .b3 { --c: var(--m3); --h: 60%; }
:is(.yearmap, .mstrip, .bscale.bars) .b4 { --c: var(--m4); --h: 80%; } :is(.yearmap, .mstrip, .bscale.bars) .b5 { --c: var(--m5); --h: 100%; }
@media (forced-colors: active) { .yearmap td[class^="b"], .yearmap td[class^="b"]::before, .bscale.bars i, .mstrip i { forced-color-adjust: none; } }
.yearmap td.ym-score, .yearmap th.ym-score { background: none; text-align: right; padding-left: .35rem; font-variant-numeric: tabular-nums; }
.yearmap td.ym-score { font-weight: 600; color: var(--ink); }
@media (max-width: 39.99rem) {
  /* phones: names without icons, in a narrow first column, so all twelve months and the year score fit */
  .yearmap { padding: .8rem .6rem .6rem; }
  .yearmap table { border-spacing: 2px; font-size: .74rem; }
  .yearmap thead th:first-child { width: 4.3rem; } .yearmap thead th.ym-score { width: 1.9rem; }
  .yearmap tbody th { white-space: normal; line-height: 1.12; padding-right: .2rem; }
  .yearmap tbody th .dico { display: none; }
  .yearmap { --barh: 1.8rem; } .yearmap td { min-width: 0; }
  .yearmap td.ym-score, .yearmap th.ym-score { padding-left: .15rem; }
}
.ch > p.bestweak, .ch > p.beyond { -webkit-hyphens: manual; hyphens: manual; }
.nw { display: inline-block; max-width: 100%; } /* kept whole while it fits the line; wraps inside only when enlarged text leaves no room (审核 K3) */
.bestweak { font-weight: 500; }
/* the sign at heart */
.heart h3 { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.25; margin: 1rem 0 .4rem; }
.heart details.story { margin: 1rem 0 0; padding: 0 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .35); }
.heart details.story summary { cursor: pointer; padding: .8rem 0; font-weight: 600; }
.heart details.story summary:hover, details.fold summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } /* 终审 L-10 */
.heart details.story p { margin: 0 0 .8rem; }
.heart .more { margin-top: 1rem; text-align: center; }
/* one line after the wish pointing to Larak's Oracle's own reading */
.beyond { margin: 1.4rem auto 0; max-width: 32rem; padding: .85rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .35); text-align: center; text-wrap: balance; }
/* the 404 page is short: the footer sits at the bottom of the screen, no paper below it (审核 V-12) */
body.nf { display: flex; flex-direction: column; min-height: 100svh; }
body.nf > .bar, body.nf > main, body.nf > .colophon { width: 100%; }
body.nf > main { flex: 1 0 auto; }
/* home: the two festival lists start folded */
details.fold { margin-top: 1.4rem; border-top: 1px solid var(--line); }
details.fold summary { cursor: pointer; padding: .9rem 0 .5rem; font-weight: 600; }
details.fold summary .soft { font-weight: 400; }

/* ======================================================================================================================
   Volume pages, redesigned 11-08 (user 06:59) on LARAK's own pages: the fortune page's row of twelve signs, a sign panel like
   the sign page's first screen (birth years, three tiles, the five areas), chapters in LARAK's area order with centred headings
   like the Year Ahead report (web css/92-fortune.css), and one look for one kind of thing (书-版面-014–016).
   ====================================================================================================================== */
/* boxes on the page: one white ground and one thin gold edge for all of them */
.tile, .five a, .also a, .movecal li, .mlist li, .part, .sym, .steps li {
  background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(195, 154, 78, .35); }
/* things you read, not click: a light ground, no edge (审核第六轮: they looked like the chapter links under the panel) */
.years li, .kw li, .hfacts li { background: rgba(195, 154, 78, .12); }
.p-k, .t-k { margin: 0; font: 600 .74rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); text-align: center; }
.p-k-s { color: var(--ink-soft); letter-spacing: .14em; } .p-k-s::before { content: '· ' / ''; }

/* ---------- the twelve volumes (LARAK .wh-chips12): one row on computers, 6 × 2 on phones (4 × 3 when narrower) ---------- */
.signpick { container-type: inline-size; max-width: 72rem; margin: 0 auto .8rem; padding: 0 1.25rem; }
.signpick ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; }
@container (min-width: 21.2rem) { .signpick ol { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@container (min-width: 46rem) { .signpick ol { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.signpick a { display: flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: .25rem .15rem; border-radius: 12px; font: 500 .8rem/1.15 var(--sans);
  text-align: center; text-decoration: none; color: var(--ink); background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(31, 42, 68, .16); }
.signpick a:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.signpick a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; font-weight: 600; }
@media (min-width: 40rem) { .signpick { max-width: calc(var(--measure) + 2.5rem); } .signpick a { font-size: .86rem; } }
@media (min-width: 64rem) { .signpick { max-width: 72rem; } }
@media (forced-colors: active) { .signpick a { border: 1px solid ButtonText; } .signpick a[aria-current="page"] { background: Highlight; color: HighlightText; forced-color-adjust: none; } }  /* 终审 A-04 */

/* ---------- the sign panel: everything centred (LARAK .w-sign-comp) ---------- */
.panel { margin: 1.6rem 0 0; text-align: center; }
@media (min-width: 64rem) { .panel { margin-inline: calc((100% - var(--wide)) / 2); } }
.p-years { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.years { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; max-width: 15.6rem; }
@media (min-width: 30rem) { .years { max-width: none; } }
.years li { padding: .2rem .7rem; border-radius: 8px; font: 500 .92rem/1.35 var(--sans); font-variant-numeric: tabular-nums; }
.p-note { max-width: 31rem; margin: .55rem auto 0; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); text-wrap: balance; }
.tiles { display: grid; gap: .8rem; margin-top: 1.2rem; } /* the panel's spacing is set so the tiles' main line (band, relation, Tai Sui) stays on a 1440×900 first screen (书-版面-003) */
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem 1.1rem 1.2rem; border-radius: 16px; }
.tile > * { margin: 0; }
/* the label at the top and the rest straight under it (审核第六轮: centring the rest in the tallest tile's height left up to
   128px between a label and its content, 书-版面-008) */
.t-big { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem .6rem; font-size: 1.05rem; font-weight: 600; }
.t-fig { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.t-fig .ringmark { font-size: 1.6rem; }
.t-fig .t-score b { font-size: 2.2rem; }
.t-big .band { font-size: 1rem; padding: .3rem .95rem .32rem; font-weight: 500; } /* the same size as the relation tag beside it */
.t-body { display: flex; flex-direction: column; align-items: center; gap: .55rem; } .t-body > * { margin: 0; }
/* computers: the three tiles share four rows (label, figure, main line, the rest), so the band, the relation tag and "At odds"
   sit on one line and no tile is left half empty (审核第六轮复查) */
@media (min-width: 64rem) {
  .tiles { grid-template-rows: repeat(4, auto); }
  .tile { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: .55rem; justify-items: center; align-items: start; }
  .tile > .t-fig, .tile > .ringfig, .tile > .cmp { align-self: center; }
}
.t-score b { font: 700 1.5rem/1 var(--serif); font-variant-numeric: tabular-nums; } .t-score small { font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.t-title { font: 700 1.2rem/1.3 var(--serif); }
.t-p { font-size: .94rem; line-height: 1.5; text-wrap: balance; }
.t-rel .ringfig.mini { width: 10.5rem; } /* viewBox 352 units: 27 and 24 units are 12.9 and 11.5px */
.t-rel .ringfig.mini .rg-ch { font-size: 27px; } .t-rel .ringfig.mini .rg-an { font-size: 24px; } /* about 13 and 11.5px on screen */
.t-rel .ringfig.mini .rl { stroke-width: 3.2; } .t-rel .ringfig.mini .rl.he { stroke-width: 5.6; } .t-rel .ringfig.mini .rl.rl-in { stroke-width: 2; } .t-rel .ringfig.mini .rl.he3 { stroke-width: 4.4; }
.t-ts .cmp { width: 6.6rem; } .t-ts .cmp text { font-size: 14px; } /* 11.5px on screen */
.t-odds { font: 700 1.2rem/1.3 var(--serif); flex-basis: 100%; }
.t-more { font-size: .92rem; }
/* the five bands in one row: five equal columns, the badge above its score range */
.bscale { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 24rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .2rem; }
.bscale li { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .3rem 0 .25rem; border-radius: 10px; min-width: 0; }
.bscale .band { font-size: .76rem; padding-inline: .5em; }
.bscale small { font-size: .74rem; line-height: 1.2; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bscale li.cur small { color: var(--ink); font-weight: 700; }
.bscale li.cur::after { content: ''; width: 1.6rem; border-top: 3px solid var(--ink); } /* a border, so it stays in forced colours */
/* a tile narrower than 19rem (phones under 360, and each of the three tiles on computers, about 18rem): five columns of
   about 46px left “Smooth” touching “Breezy”, so the scale takes .4rem of each side padding and the chips' own padding gets a
   little smaller. The type stays the same size: at .7rem the white “Rocky” measured 4.32:1 on screen (书-颜色-002) */
.t-body { container-type: inline-size; width: 100%; align-self: stretch; justify-self: stretch; } /* the container is the tile's body, not the tile: a size-contained tile can't be a subgrid */
@container (max-width: 19rem) {
  .tile .bscale { width: calc(100% + .8rem); max-width: none; margin-inline: -.4rem; gap: .15rem; }
  .tile .bscale .band { padding-inline: .36em; }
}
.bscale.bars { max-width: 20rem; margin-top: .7rem; }
.bscale.bars i { display: block; width: .8rem; height: 1.1rem; border-radius: 3px;
  background: linear-gradient(to top, var(--c) calc(var(--h) - 2px), var(--ink-soft) calc(var(--h) - 2px), var(--ink-soft) var(--h), color-mix(in srgb, var(--ink) 6%, transparent) var(--h)); }
.section-head .bscale { margin-top: 1rem; }
/* the five areas (LARAK .w-f5): a list on phones, 3 + 2 centred on tablets, one row of five on computers */
.p-k2 { margin-top: 1.8rem; }
.five { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.five a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem .9rem .5rem .55rem; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--dim) 6%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dim) 28%, transparent); }
.five a:hover { box-shadow: inset 0 0 0 1.5px var(--dim); }
.f5-h { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--dim-ink); text-align: start; } /* “Rhythm & rest” wraps at 320: ranged left like the others */
.f5-r { display: inline-flex; align-items: center; gap: .55rem; }
.f5-r b { font: 700 1.25rem/1 var(--serif); font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) {
  .five { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
  .five li { grid-column: span 2; } .five li:nth-child(4) { grid-column: 2 / span 2; }
  .five a { flex-direction: column; justify-content: center; gap: .5rem; padding: .85rem .6rem .9rem; height: 100%; }
  .f5-h { text-align: center; }
}
@media (min-width: 64rem) { .five { grid-template-columns: repeat(5, minmax(0, 1fr)); } .five li, .five li:nth-child(4) { grid-column: auto; } }
.also ul { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.also a { display: flex; align-items: center; justify-content: center; height: 100%; padding: .45rem .9rem; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; text-align: center; line-height: 1.25; }
.also a:hover { box-shadow: inset 0 0 0 1.5px var(--gold-line); }

/* ---------- chapters: name (with the area's icon) centred, the score under it ---------- */
.ch-h { display: flex; align-items: center; justify-content: center; gap: .3rem .6rem; }
.ch-h > span:last-child { min-width: 0; text-wrap: balance; }
@media (max-width: 23.99rem) { .ch > h2.ch-h { font-size: 1.75rem; } } /* 360 wide: every name on one line; 320: only the longest “… at heart” wrap */
.ch-h .dico { width: 2.3rem; height: 2.3rem; border-radius: 12px; } .ch-h .dico svg { width: 1.35rem; height: 1.35rem; } .ch-h .dico .ring-svg { width: 1.45rem; height: 1.45rem; }
.ch > h3.ch-t { margin-top: 1.4rem; }
/* one area, month by month: the year map's own bars */
.mstrip { list-style: none; margin: 1.1rem auto .5rem; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; max-width: 21rem; }
.mstrip li { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 0; } /* the letter’s text box (taller than its line) stays clear of the bar */
.mstrip i { display: block; width: 100%; height: 1.9rem; border-radius: 4px;
  background: linear-gradient(to top, var(--c) calc(var(--h) - 2px), var(--ink-soft) calc(var(--h) - 2px), var(--ink-soft) var(--h), color-mix(in srgb, var(--ink) 6%, transparent) var(--h)); }
.mstrip span[aria-hidden] { font-size: .72rem; line-height: 1; color: var(--ink-soft); }
.mlines { margin-bottom: 1.1rem; }
.area .note { text-align: start; text-wrap: pretty; }
/* three words for the year */
.kw { margin-top: 1.8rem; }
.kw ul { list-style: none; margin: .55rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.kw li { padding: .3rem 1rem .35rem; border-radius: 8px; font: 700 1.1rem/1.3 var(--serif); }
.bestweak { text-align: center; text-wrap: balance; }

/* ---------- relation tags: the line style and the name (the same lines as the ring) ---------- */
.rtag { display: inline-block; text-align: center; padding: .2rem .7rem .22rem; border-radius: 999px; font-size: .86rem; line-height: 1.25; font-weight: 500;
  background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }
.rt-n { white-space: nowrap; } /* two names (“Six Harmonies & Tension”) may go on two lines when the text is enlarged; each name stays whole (书-无障碍-008) */
.rtag.he { background: color-mix(in srgb, var(--rel-he) 8%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rel-he) 35%, transparent); }
.rtag.ke { background: color-mix(in srgb, var(--rel-ke) 6%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rel-ke) 35%, transparent); }
.rtag .rw { font-weight: 600; }
.rs { flex: none; width: 26px; height: 10px; overflow: visible; }
.t-big .rtag { font-size: 1rem; padding: .3rem .95rem .32rem; }
@media (forced-colors: active) { .rtag { border: 1px solid CanvasText; } }

/* ---------- Home & moving: the moving calendar (4 × 3, LARAK's key-days calendar) and Tai Sui on a compass ---------- */
.movecal { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
@media (min-width: 30rem) { .movecal { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.movecal li { padding: .5rem .45rem .6rem; border-radius: 12px; text-align: center; }
.movecal b { display: block; font: 700 1rem/1.2 var(--serif); }
.mc-d { display: block; margin-top: .2rem; font-size: .86rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.movecal li.aim, .mc-key .aim::before { background: color-mix(in srgb, var(--rel-he) 13%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rel-he) 45%, transparent); }
.movecal li.slack, .mc-key .slack::before { background: #fff; box-shadow: inset 0 0 0 2px var(--rel-ke); }
.mc-key { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin: .7rem 0 1.1rem; padding: 0; font-size: .86rem; color: var(--ink-soft); }
.mc-key li::before { content: ''; display: inline-block; width: .95rem; height: .95rem; margin-right: .4rem; vertical-align: -.15em; border-radius: 4px; }
.mc-key .pre::before { display: none; }
/* days in an aim or slack month that come before its solar term belong to the month before (终审 D-03): in parentheses, softer */
.mc-pre { color: var(--ink-soft); }
/* the key's swatches are drawn with background and box-shadow, which forced colors drop: give them the cells' own borders (终审 A-03) */
@media (forced-colors: active) { .movecal li.aim, .mc-key .aim::before { border: 2px solid CanvasText; } .movecal li.slack, .mc-key .slack::before { border: 2px dashed CanvasText; } }
.tsdir { display: grid; justify-items: center; gap: .6rem; }
.tsdir .cmp { width: 8.5rem; }
.tsdir p { margin: 0; justify-self: stretch; }
.tsdir + p { margin-top: 1em; }
.cmp { display: block; height: auto; overflow: visible; }
.cmp-c { fill: #fff; stroke: color-mix(in srgb, var(--ink) 28%, transparent); stroke-width: 1.2; }
.cmp-ts { fill: color-mix(in srgb, var(--wx-fire-deep) 62%, #fff); }
.cmp-op { fill: none; stroke: var(--wx-fire-deep); stroke-width: 1.4; stroke-dasharray: 3 2.4; stroke-linejoin: round; }
.cmp-t line { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1; }
.cmp-o { fill: var(--ink); }
.cmp text { fill: var(--ink-soft); font: 600 11px var(--sans); text-anchor: middle; dominant-baseline: central; }
@media (forced-colors: active) { .cmp-c { fill: Canvas; stroke: CanvasText; } .cmp-ts { fill: Highlight; } .cmp-op { stroke: CanvasText; } .cmp-t line { stroke: CanvasText; } .cmp-o, .cmp text { fill: CanvasText; } }

/* ---------- Month by month: one row a month; two columns of six on computers ---------- */
.mlist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.mlist li { display: flex; align-items: center; gap: .75rem; padding: .6rem .85rem .65rem; border-radius: 16px; }
.ml-m { flex: none; width: 2.5rem; font: 700 1.1rem/1 var(--serif); }
.ml-x { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
/* the band and the relation share a line while they fit; a long relation name drops to its own line */
.ml-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .6rem; }
@media (max-width: 39.99rem) { .ml-top { flex-direction: column; align-items: flex-start; } .ml-top > * { max-width: 100%; } .ml-top .ringmark { flex-wrap: wrap; white-space: normal; row-gap: .3rem; } }
.ml-p { font-size: .88rem; line-height: 1.4; color: var(--ink-soft); }
.ml-p .han { margin-right: .35rem; letter-spacing: .04em; }
.mlist .rtag { font-size: .8rem; }
@media (min-width: 64rem) { .mlist { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: .5rem .7rem; margin-inline: calc((100% - var(--wide)) / 2); } }

/* ---------- the sign at heart: three parts joined by "+", the symbols (LARAK .w-sign-parts, .w-sign-syms) ---------- */
.parts { display: grid; justify-items: stretch; gap: .25rem; margin: 1.3rem 0 0; }
.part { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .9rem 1.1rem 1rem; border-radius: 16px; text-align: center; }
.part small { font: 600 .72rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.part b { font: 700 1.25rem/1.3 var(--serif); } .part b .gz { font-weight: inherit; }
.part > span { font-size: .95rem; line-height: 1.5; text-wrap: balance; }
.part[class*="el-"] { background: color-mix(in srgb, var(--wash) 20%, #fff); }
.plus { justify-self: center; font: 500 1.5rem/1 var(--serif); font-style: normal; color: var(--gold); } /* 5:1 on the paper; ink at 45% was 2.5:1 (check-contrast) */
@media (min-width: 40rem) { .parts { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0 .45rem; } .plus { align-self: center; } }
.heart .sum { margin: 1.3rem auto 1.2rem; max-width: 30rem; font: 400 1.2rem/1.5 var(--serif); text-align: center; text-wrap: balance; }
.ch > h3.syms-k { margin: 1.4rem 0 .7rem; font: 600 .74rem/1.3 var(--sans); letter-spacing: .2em; } /* a heading in the panel's small-caps label style, like “Birth years” */
.syms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8em), 1fr)); gap: .6rem; } /* one column when enlarged text no longer fits two (书-无障碍-008) */
@media (min-width: 40rem) { .syms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sym-a img { display: block; width: 4.4rem; height: 4.4rem; object-fit: contain; }
.sym { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1rem .7rem 1.05rem; border-radius: 16px; text-align: center; }
.sym-a { display: flex; align-items: center; justify-content: center; gap: .25rem; min-height: 4.4rem; margin-bottom: .2rem; }
.sym-a.num { font: 700 2.2rem/1 var(--serif); } .sym-a.num i { font-style: normal; font-size: 1.1rem; color: var(--ink-soft); margin: 0 .05rem; }
.sym .disc { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(31, 42, 68, .22), 0 3px 8px -4px rgba(31, 42, 68, .45); }
.sym b { font: 700 1rem/1.35 var(--serif); text-wrap: balance; }
/* one colour name per line: inline names with a comma between them left the comma at the start of a line in the narrow tiles
   (320–360); a long name may still wrap between its words */
.sym b .cn { display: block; }
.sym b .cn + .visually-hidden + .cn { margin-top: .2rem; }
.sym small { margin-bottom: .35rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hfacts { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; font-size: .9rem; }
.hfacts li { padding: .3rem .85rem; border-radius: 8px; text-align: center; text-wrap: balance; } /* may run to two lines at 320 */
@media (forced-colors: active) { .sym .disc { forced-color-adjust: none; border: 1px solid CanvasText; } }

/* ---------- Three steps: three numbered cards ---------- */
.steps { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.1rem 1.1rem 1.25rem; border-radius: 16px; text-align: center; }
.steps p { margin: 0; text-wrap: balance; }
.sn { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.05rem/1 var(--serif); }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: calc((100% - var(--wide)) / 2); } }
@media (forced-colors: active) { .sn { border: 1px solid CanvasText; } }

/* the sign's own glyph as the icon of "The Rooster at heart" */
.dico.dico-han { font: 700 1.15rem/1 var(--han); color: var(--ink); }
.ch-h .dico.dico-han { font-size: 1.35rem; }
/* computers: the volume header's text centred top to bottom beside the card */
/* the figure's key on phones: each relation's signs under its name, not in a narrow column beside it */
@media (max-width: 39.99rem) {
  .ringkey { display: block; }
  .ringkey li { display: block; padding: .45rem .5rem; }
  .ringkey .who { display: block; margin: .2rem 0 0 calc(26px + .45rem); }
}

/* ---------- the scored chapters in LARAK's four layers (共-结构-015, 共-四层-014): the layer name above each layer on phones,
   in a column on the left from 40rem; no lines between them, space instead ---------- */
.layers { margin: 1.3rem 0 0; }
.ly { padding: .75rem 0; }
.ly dt { margin: 0 0 .4rem; font: 600 .74rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ly dd { margin: 0; min-width: 0; }
.ly dd > p { margin: 0 0 .7rem; } .ly dd > :last-child { margin-bottom: 0; }
@media (min-width: 40rem) { .ly { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); column-gap: 1.2rem; } .ly dt { margin: .3rem 0 0; } }
.ly-score { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.ly-score .dscore { font-size: 1.1rem; }
.ly-title { font: 700 1.35rem/1.3 var(--serif); text-wrap: balance; }
.ly-int { text-wrap: balance; }
.ly .kw { margin: .2rem 0 0; } .ly .kw ul { justify-content: flex-start; margin-top: .4rem; }
.kw-k { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.mwhen { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .35rem; }
.mwhen b { font-weight: 600; }
.ly .mstrip { margin: .2rem 0 .7rem; }
.ly .yearmap { margin: .1rem 0 .8rem; }
.ly .bestweak { text-align: left; font-weight: 500; }
.area > .note { margin-top: .8rem; }
.ch > p.more { text-align: center; margin-top: .9rem; }


/* ---------- Share and Copy (LARAK 网-交互-016): big buttons on phones, small ones from 40rem; Share solid, Copy the light one ---------- */
.share .btn { gap: .45rem; min-height: 3rem; padding: .55rem 1rem; font-size: 1rem; }
.btn--soft { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); box-shadow: none; }
.btn--soft:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
@media (min-width: 40rem) {
  .share { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
  .share .btn { min-height: 38px; padding: 0 16px; font-size: .875rem; }
  .share .btn svg { width: 16px; height: 16px; }
}
@media (forced-colors: active) { .btn--soft { border: 1px solid ButtonText; } }

/* ---------- the volume header (user 11-08 08:04–08:21). Phones and tablets: a landscape card, the sign's landscape picture in the
   same gold double frame as the twelve cards, then the volume number and the name once each (no tagline). Computers keep the band
   from before (user 08:21, "web 把卡放进去挺好的"): the name on the left, the sign's card on the right; from 15:35 with no frame,
   on a watercolour wash in the sign's element colour from one edge of the screen to the other, and the element's still life
   beside the card (scripts/art-css.mjs) ---------- */
.vcard { display: none; }
.vyears { display: none; }  /* computers only; phones and tablets show the panel's copy */
@media (max-width: 63.99rem) {
  .vhero { position: relative; isolation: isolate; overflow: hidden; margin: 0 1.25rem; padding: .7rem .7rem 1.5rem; border-radius: 22px; text-align: center;
    background: var(--vpaper, var(--card)); box-shadow: 0 1px 0 rgba(31, 42, 68, .06), 0 18px 34px -26px rgba(31, 42, 68, .5); }
  .vhero::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(195, 154, 78, .75); border-radius: 15px; box-shadow: inset 0 0 0 3px var(--vpaper, var(--card)), inset 0 0 0 4px rgba(195, 154, 78, .5); pointer-events: none; }
  .vart { margin: 0; }
  .vart picture { display: block; }
  /* the card's ground is the picture's own paper colour (scripts/prep-cards.py, paper.json), and the picture's edges fade into it,
     so picture and name read as one card face */
  .vart img { display: block; width: 100%; height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 82%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 82%, transparent); mask-composite: intersect; }
  /* no picture yet: the sign's character on a wash, as on the cards */
  .vart.ph { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 10px; background: radial-gradient(ellipse 45% 40% at 50% 60%, var(--wash), transparent 70%); }
  .vart.ph span { font: 700 3.4rem/1 var(--han); color: var(--ink); }
  .vhero .vol-no { margin-top: .5rem; }
  /* the longest title, “The Monkey”, is 6.7 times its font size wide: one line from 320 up (书-版面-005) */
  .vhero h1 { font-size: clamp(2.1rem, calc((100vw - 5rem) / 7), 3.4rem); }
}
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .vhero { max-width: min(var(--measure), 100% - 2.5rem); margin: 0 auto; padding: .8rem .8rem 1.7rem; }
  .vhero h1 { font-size: min(calc((100vw - 7.5rem) / 6.9), 4.2rem); }
}
.vhero .vol-no { margin: 0; font: 600 .76rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #7d5d24; }  /* a shade deeper than --gold: 5:1 on every landscape picture's own paper too (the tiger's and horse's are 4.49 with --gold) */
.vhero h1 { margin: .5rem 0 0; line-height: 1; }
@media (min-width: 64rem) {
  .vart { display: none; }
  /* no frame (user 11-08 15:35): the title lines up with the row of twelve signs above it; the wash is drawn by ::before */
  .vhero { --cw: min(100vw - 2.5rem, 69.5rem); --card-r: .5rem; position: relative; isolation: auto; display: flex; flex-direction: column; justify-content: center;
    width: calc(100% - 2.5rem); max-width: 69.5rem; min-height: 21rem; margin: 0 auto; padding: 2.6rem 0 2.8rem; }
  /* 21rem: the panel's relation tag stays on a 1440×900 first screen in the Loong and Goat volumes, which have a note more (书-版面-003) */
  /* the wash: the element's pale colour (--b, .el-* above) from one edge of the screen to the other (user 15:35: "左右两边都包括").
     Strongest round the card and the still life, lighter under the words on the left; a bloom of the element's wash colour behind
     the card and a thinner one along the top right; lighter patches (fractal noise, white, at most about a third; the noise's filter region is the tile, so the tiles meet without a
     seam) so it reads as paint, not a flat fill.
     It fades in over the top 2.4rem and, below the header, fades out through the panel: about a tenth left halfway down the
     three boxes, paper by their lower third (user 15:42: not the same strength over the whole first screen). The page's own
     paper grain shows through, as every layer is partly transparent. Under everything else (z-index -1 in the page's own layer:
     .vhero makes no stacking context here) */
  .vhero::before { content: ''; position: absolute; z-index: -1; pointer-events: none; left: 50%; width: 100vw; transform: translateX(-50%);
    top: 0; bottom: -22rem;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='800'%3E%3Cfilter id='m' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.009' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.7 .84'/%3E%3C/filter%3E%3Crect width='1600' height='800' filter='url(%23m)'/%3E%3C/svg%3E"),
      radial-gradient(ellipse 27rem 16rem at calc(50% + var(--cw) / 2 - 13rem) 12.5rem, color-mix(in srgb, var(--wash) 62%, transparent), transparent 72%),
      radial-gradient(ellipse 36rem 10rem at calc(50% + var(--cw) / 2 + 2rem) .5rem, color-mix(in srgb, var(--a) 30%, transparent), transparent 70%),
      radial-gradient(ellipse 24rem 12rem at calc(50% - var(--cw) / 2 - 9rem) 17rem, color-mix(in srgb, var(--wash) 26%, transparent), transparent 70%),
      linear-gradient(90deg, color-mix(in srgb, var(--b) 70%, transparent) 0, color-mix(in srgb, var(--b) 74%, transparent) calc(50% - var(--cw) / 2 + 26rem),
        color-mix(in srgb, var(--b) 92%, transparent) calc(50% + var(--cw) / 2 - 24rem), var(--b) calc(50% + var(--cw) / 2 - 8rem), color-mix(in srgb, var(--b) 90%, transparent) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .55) 1rem, #000 2.4rem, #000 calc(100% - 23rem), rgba(0, 0, 0, .86) calc(100% - 20rem),
      rgba(0, 0, 0, .66) calc(100% - 17rem), rgba(0, 0, 0, .45) calc(100% - 14rem), rgba(0, 0, 0, .27) calc(100% - 11rem), rgba(0, 0, 0, .13) calc(100% - 8rem),
      rgba(0, 0, 0, .04) calc(100% - 5rem), transparent calc(100% - 2rem));
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .55) 1rem, #000 2.4rem, #000 calc(100% - 23rem), rgba(0, 0, 0, .86) calc(100% - 20rem),
      rgba(0, 0, 0, .66) calc(100% - 17rem), rgba(0, 0, 0, .45) calc(100% - 14rem), rgba(0, 0, 0, .27) calc(100% - 11rem), rgba(0, 0, 0, .13) calc(100% - 8rem),
      rgba(0, 0, 0, .04) calc(100% - 5rem), transparent calc(100% - 2rem)); }
  /* metal's wash has 1.8 times the chroma of its colours elsewhere, same lightness and hue: at its own it read as a grey layer,
     a third as strong as the other four (复查 L-05) */
  .vhero.el-metal { --a: #b8b4d1; --b: #e6e4f4; --wash: #c9c5e0; }
  /* words on the wash: a deeper gold and grey (书-颜色-003), 4.6:1 where the wash is strongest */
  .vhero .vol-no, .vyears .p-k { color: #694f1f; }
  .vyears .p-note { color: #4e5463; }
  .vyears .years li { background: rgba(255, 255, 255, .62); }
  .vhead { max-width: 66%; }
  /* birth years under the name, left-aligned with it (user 11-08 12:36: the left of the band was empty); the panel's own copy hides */
  .vyears { display: block; max-width: min(66%, 34rem); margin-top: 1.5rem; }
  .vyears .p-years { align-items: flex-start; gap: .45rem; }
  .vyears .years { justify-content: flex-start; margin: 0; }
  .vyears .p-note { max-width: none; margin: .55rem 0 0; text-align: left; }
  .vyears .p-note + .p-note { margin-top: .25rem; }
  .panel > .p-yearsbox { display: none; }
  .vhero h1 { font-size: clamp(4.5rem, 7.6vw, 6rem); }
  .vcard { display: block; position: absolute; right: var(--card-r); top: 50%; width: 12.5rem; transform: translateY(-50%) rotate(3deg); }
  .vcard .card { box-shadow: 0 24px 40px -22px rgba(31, 42, 68, .55); }
}
/* high contrast (Windows): the wash is only colour, and its light patches show as blotches on the dark ground; the still life on it goes too (art-css.mjs; 复查 L-02) */
@media (forced-colors: active) { .vhero::before { display: none; } }

/* ---------- after every rule of this file's own, so none of those (same weight, earlier) can undo them ----------
   (复查 A-01, L-02: the forced-colours fix for the cards' paintings sat above the cards' own rule and lost to it; L-03: the print
   rule hiding Share and Copy lost to the 40rem rule that lays them out). The painting rules scripts/art-css.mjs writes come after
   this file, some of them weightier (.home .hero .finder), so what print hides it hides with !important (复查 A2-01) */
/* forced colours: the paintings drawn as they are; multiplied onto a dark system background they turned black (终审 A-05) */
@media (forced-colors: active) { .card .art { mix-blend-mode: normal; } }
/* forced colours, dark system background: the cover's dark logo all but vanished on black; the light one, as in the footer (复查 A2-02) */
@media (forced-colors: active) and (prefers-color-scheme: dark) { .bar .logo-day { display: none; } .bar .logo-night { display: block; } }
/* print: no controls, no paintings behind the text. The landscape picture in a volume's header is left out too: from a computer
   window the page had asked for a 1-pixel stand-in, and the picture itself was not there in time, so the first page printed an
   empty card (复查 L-03) */
@media print {
  .viewpick, .finder, .share, .signpick, .btn.cover-go, .vart, .card.ph::before, .vhero::before { display: none !important; }
  .vhero { box-shadow: none; }
}

/* 24 solar terms: seasonal colours, neighbouring terms close (generated by scripts/solar-term-colors.py) */
.st-xiaohan { color: #2c5187; }
.st-dahan { color: #225b85; }
.st-lichun { color: #156a73; }
.st-yushui { color: #136f67; }
.st-jingzhe { color: #0b764d; }
.st-chunfen { color: #2a763b; }
.st-qingming { color: #417627; }
.st-guyu { color: #527015; }
.st-lixia { color: #626c01; }
.st-xiaoman { color: #6f6611; }
.st-mangzhong { color: #7c6514; }
.st-xiazhi { color: #945c14; }
.st-xiaoshu { color: #ad411c; }
.st-dashu { color: #aa3239; }
.st-liqiu { color: #975112; }
.st-chushu { color: #925812; }
.st-bailu { color: #8e6001; }
.st-qiufen { color: #8c5a0f; }
.st-hanlu { color: #8e481c; }
.st-shuangjiang { color: #883f2c; }
.st-lidong { color: #685240; }
.st-xiaoxue { color: #3e596c; }
.st-daxue { color: #34547b; }
.st-dongzhi { color: #364983; }


/* ---------- background paintings (generated by scripts/art-css.mjs) ---------- */
/* home: the cover */
.home .hero { isolation: isolate; display: flex; flex-direction: column; }
.home .hero::before, .home .hero::after { content: ''; position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); top: -.2rem; pointer-events: none; }
.home .hero::before { z-index: -2; height: 150vw; background: url("../img/bg/bg-firegoat-portrait.webp") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 2.5rem, #000 calc(100% - 4.5rem), transparent); mask-image: linear-gradient(to bottom, transparent, #000 2.5rem, #000 calc(100% - 4.5rem), transparent); }
.home .hero::after { z-index: -1; height: 150vw; background: radial-gradient(ellipse 100% 34% at 50% 20%, rgba(251, 248, 242, .84), rgba(251, 248, 242, .6) 55%, transparent 88%); }
.home .hero .sub { color: var(--ink); }
.home .bar .ed a { color: var(--ink); }
.home .hero .hero-text { min-height: calc(138vw - 1rem); }
.home .hero .finder { margin-top: .4rem; width: 100%; }
.home .hero .btn.cover-go { display: inline-flex; }
/* a tablet tall enough to show the finder on the first screen doesn't need the button too (审核 V-17, C2-24) */
@media (min-width: 40rem) and (min-height: 50rem) { .home .hero .btn.cover-go { display: none; } }
/* …nor does a phone that tall: at 390×844 the cover button and the whole finder with its own button were on one screen, two solid
   buttons for one thing (复查 L-07; 书-版面-004). The finder's button ends about 1.38 widths + 250px down, so twice the width and
   50rem tall show it whole */
@media (max-width: 39.99rem) and (min-height: 50rem) and (max-aspect-ratio: 1/2) { .home .hero .btn.cover-go { display: none; } }
@media (min-width: 40rem) {
  .home .hero { --band: max(66.6vw, 40rem); }
  .home .hero::before, .home .hero::after { top: -4.6rem; height: var(--band); }
  .home .hero::before { background:
      linear-gradient(to bottom, #fcefde calc(15% + .3rem), rgba(252, 239, 222, 0) calc(15% + 4rem)),
      linear-gradient(90deg, #fcefde calc(50% - .6375 * var(--band)), rgba(252, 239, 222, 0) calc(50% - .6375 * var(--band) + 2.5rem), rgba(252, 239, 222, 0) calc(50% + .6375 * var(--band) - 2.5rem), #fcefde calc(50% + .6375 * var(--band))),
      url("../img/bg/bg-firegoat-landscape.webp") center bottom / auto 85% no-repeat, #fcefde;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 4.5rem), transparent); }
  .home .hero::after { background: radial-gradient(ellipse 52% 30% at 50% 18%, rgba(251, 248, 242, .86), rgba(251, 248, 242, .62) 55%, transparent 88%); }
  .home .hero .hero-text { min-height: calc(var(--band) - 8rem); }
  .home .hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); }
  .home .hero .sub { max-width: 36rem; }
}
@media (min-width: 64rem) {
  .home .hero { --band: clamp(50rem, 66.6vw, 52rem); }
}
@media (min-width: 64rem) {
  /* computers: the finder sits on the cover, right under the title, as one compact row (user 11-07 21:58: seen at first glance,
     covering part of the picture is fine); the picture keeps its full height behind it */
  .home .hero { min-height: calc(var(--band) - 4.6rem); }
  .home .hero .hero-text { min-height: 0; }
  .home .hero .btn.cover-go { display: none; }
  .home .hero .finder { display: grid; grid-template-columns: minmax(0, 1fr);
    max-width: 46rem; margin: 1.2rem auto 0; padding: .85rem 1.1rem .75rem; background: #fffdfa; }  /* 46rem: the New Year note in a result stays on one line for every year 1900–2027 */
  .home .hero .finder form { grid-column: 1; grid-row: 1; margin: 0; }
}
/* "The Fire Goat year": the five-element still life as a strip under the heading, its paper faded into the page */
.still { display: block; height: clamp(9.5rem, 38vw, 21rem); margin: .4rem -1.25rem 1rem;
  background: url("../img/bg/bg-hero-landscape.webp") center 82% / cover no-repeat;
  /* soft on every side: the oval fades the top and the sides, and the bottom fades out too instead of a straight cut (user 11-07 23:40) */
  /* the oval alone still left about 40% at the left and right edges, a straight cut (审核 V-01): a side fade is added */
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 56%, #000 52%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 66%, transparent 100%), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in, source-in;
  mask-image: radial-gradient(ellipse 62% 58% at 50% 56%, #000 52%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 66%, transparent 100%), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect; }
@media (min-width: 64rem) { .still { margin-inline: calc((100% - var(--wide)) / 2); } } /* on the wide width with the cards and the relation box (user 11-08 12:40) */
/* essay pages: the still life as a strip above the heading */
.essay::before { content: ''; display: block; height: clamp(7rem, 30vw, 12rem); margin: .4rem -1.25rem 0;
  background: url("../img/bg/bg-hero-landscape.webp") center 82% / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 54%, #000 50%, transparent), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 64%, transparent);
  -webkit-mask-composite: source-in, source-in;
  mask-image: radial-gradient(ellipse 60% 62% at 50% 54%, #000 50%, transparent), linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 64%, transparent);
  mask-composite: intersect; }
.essay h1 { margin-top: .4rem; }
@media (min-width: 64rem) { .essay::before { margin-inline: -4rem; } }
/* volume headers on computers: the element's still life beside the card */
.vhero.el-water { --elimg: url("../img/el/el-water-lg.webp"); --elw: 12.688rem; --elh: 9.531rem; --ox: 0.598; --oy: 0.568; }
.vhero.el-wood { --elimg: url("../img/el/el-wood-lg.webp"); --elw: 15.906rem; --elh: 11.906rem; --ox: 0.651; --oy: 0.659; }
.vhero.el-fire { --elimg: url("../img/el/el-fire-lg.webp"); --elw: 20.094rem; --elh: 15.063rem; --ox: 0.72; --oy: 0.755; }
.vhero.el-metal { --elimg: url("../img/el/el-metal-lg.webp"); --elw: 17.688rem; --elh: 13.25rem; --ox: 0.631; --oy: 0.742; --dx: 1.25rem; }
.vhero.el-earth { --elimg: url("../img/el/el-earth-lg.webp"); --elw: 21.281rem; --elh: 15.969rem; --ox: 0.718; --oy: 0.783; --dx: 1.25rem; }
@media (min-width: 64rem) {
  .vhero.el-water::after, .vhero.el-wood::after, .vhero.el-fire::after, .vhero.el-metal::after, .vhero.el-earth::after { content: ''; position: absolute; z-index: -1; pointer-events: none;
    width: var(--elw); height: var(--elh); right: calc(var(--card-r) + 16rem + var(--dx, 0rem) - (1 - var(--ox)) * var(--elw));
    bottom: calc(3.2rem - (1 - var(--oy)) * var(--elh)); background: var(--elimg) center / 100% 100% no-repeat; }
}
/* forced colours: the still life goes with the wash it sits on (book.css): on a dark system background its thin paint read as grey
   clouds beside the card (复查 L-02) */
@media (forced-colors: active) and (min-width: 64rem) { .vhero.el-water::after, .vhero.el-wood::after, .vhero.el-fire::after, .vhero.el-metal::after, .vhero.el-earth::after { display: none; } }
/* cover page: the Tai Sui chapter opens on a painted band */
#tai-sui { position: relative; isolation: isolate; padding-top: 3.5rem; }
#tai-sui::before { content: ''; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: -3rem; height: 33rem;
  background: linear-gradient(rgba(251, 248, 242, .3), rgba(251, 248, 242, .42) 5.5rem, rgba(251, 248, 242, .62) 10rem, rgba(251, 248, 242, .72) 75%), url("../img/bg/bg-taisui.webp") 30% 20% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 3rem, #000 55%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 3rem, #000 55%, transparent); }
/* colophon: night painting, light text */
.colophon { position: relative; isolation: isolate; border-top: 0; padding-top: 10.8rem; color: rgba(255, 255, 255, .88); }
/* paper to night: the night painting itself, its top edge feathered into the paper over 10rem, no colours added (user 11-08
   18:02: "why other colours? just the picture, faded"). Before, a dusk of 13 colours (paper, peach, rose, violet, indigo) sat
   between them (审核 V-11: paper faded into navy alone passes through grey; 15:26, 复查 L-11); the user would rather see the
   painting. The feather eases in and out, so the edge never shows; the words start once the painting is fully there (书-版面-002) */
.colophon::before { content: ''; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: 0; bottom: 0;
  background: linear-gradient(rgba(22, 30, 50, .5), rgba(22, 30, 50, .66) 7rem, rgba(22, 30, 50, .74)), url("../img/bg/bg-footer.webp") center 62% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .04) 1rem, rgba(0, 0, 0, .12) 2rem, rgba(0, 0, 0, .24) 3rem, rgba(0, 0, 0, .37) 4rem, rgba(0, 0, 0, .5) 5rem, rgba(0, 0, 0, .63) 6rem, rgba(0, 0, 0, .76) 7rem, rgba(0, 0, 0, .88) 8rem, rgba(0, 0, 0, .96) 9rem, #000 10rem); mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .04) 1rem, rgba(0, 0, 0, .12) 2rem, rgba(0, 0, 0, .24) 3rem, rgba(0, 0, 0, .37) 4rem, rgba(0, 0, 0, .5) 5rem, rgba(0, 0, 0, .63) 6rem, rgba(0, 0, 0, .76) 7rem, rgba(0, 0, 0, .88) 8rem, rgba(0, 0, 0, .96) 9rem, #000 10rem); }
.colophon .wordmark, .colophon a { color: #fff; }
.colophon a { text-decoration-color: rgba(255, 255, 255, .7); } /* links in the footer's sentences are visibly links (审核 无障碍-05) */
.colophon .logo-day { display: none; }
.colophon .logo-night { display: block; }
.colophon a:focus-visible { outline-color: #fff; }
/* forced colours: the painting and its feathered top are colour only; on a dark system background the paper-coloured top of the
   footer came out as a bright band (复查 A-04). Without them the footer is system colours with a rule above it; the light logo is for a
   dark system background, the dark one for a light one */
@media (forced-colors: active) {
  .colophon { padding-top: 1.6rem; border-top: 1px solid CanvasText; }
  .colophon::before { display: none; }
}
@media (forced-colors: active) and (prefers-color-scheme: light) { .colophon .logo-day { display: block; } .colophon .logo-night { display: none; } }
@media print {
  .home .hero::before, .home .hero::after, .home .hero .wheel-wrap::before, .essay::before, #tai-sui::before, .colophon::before, .still, .vhero::after { display: none !important; }
  .colophon, .colophon .wordmark, .colophon a { color: inherit; }
  .colophon { padding-top: 1.6rem; border-top: 1px solid var(--gold-soft); }  /* no dusk on paper, so no room kept for it (复查 L-03) */
  .home .hero, .home .hero .hero-text { min-height: 0; }  /* nor for the cover's picture: on narrow paper it left a blank the height of the screen (复查 A2-01) */
  .colophon .logo-day { display: block; } .colophon .logo-night { display: none; }
}
