/* Layout and components. Mobile first (390px); colors, fonts and background come from themes/*.css.
 * Design v2 (docs/DESIGN_SYSTEM.md): seven text sizes only (--t-*), spacing steps of 4/8 (--s-*), one accent (the main
 * button), flat cards (1px line), buttons with 4px corners and a 2px under-shadow. */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --t-hero: 44px; --t-page: 32px; --t-section: 28px; --t-card: 22px; --t-item: 20px; --t-body: 17px; --t-ui: 16px; --t-small: 14px;
  --gutter: 16px;             /* phone side margin */
  --wide: 1200px;             /* grids */
  --text: 680px;              /* running text */
  --title-gap: 24px;          /* section title to its content (32 on desktop) */
  --section-gap: 72px;        /* section to section (96 on desktop) */
  --chapter-gap: 64px;        /* reading chapter to chapter (80 on desktop) */
  /* The landing's first screen (D11): at least this tall on desktop; on a phone the screen minus the header minus
     this cut, so the next section's title shows at the bottom (no "false floor"). One value each to change. */
  --hero-min: 560px;
  --hero-cut: 150px;
}
@media (min-width: 760px) {
  :root { --t-hero: 72px; --t-page: 40px; --gutter: 24px; --title-gap: 32px; --section-gap: 96px; --chapter-gap: 80px; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background-color: var(--bg); background-image: var(--bg-texture);
  font: var(--t-ui)/1.5 var(--font-body);
}
a { color: var(--link, var(--focus)); text-underline-offset: 3px; }
::selection { background: var(--choice-bg); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Accessibility (docs/ACCESSIBILITY.md): words for screen readers only; no smooth scrolling for reduced motion. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
/* The fixed buy bar of the free result never covers the field or button that has the keyboard focus (WCAG 2.4.11). */
/* Run 10: nor does the phone's floating contents button (it sits over the bottom left, e.g. over a footer link). */
html:has(.toc-fab) { scroll-padding-bottom: 72px; }
html:has(.unlock-bar) { scroll-padding-bottom: 110px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight, 700); line-height: 1.2; margin: 0 0 var(--s-3); outline: none; }
h1 { font-size: var(--t-page); } /* each screen's one h1 (its title); the landing hero is bigger */
h2 { font-size: var(--t-section); }
h3 { font-size: var(--t-item); }
p { margin: 0 0 var(--s-3); }
.hz { font-family: var(--font-hanja); font-weight: 600; }

/* Header: the lantern + Fourteller, the menu in capitals on one line (also on a phone); the current screen underlined */
.top { background: var(--surface-strong); border-bottom: 1px solid var(--line); min-height: 60px; padding: 0 max(var(--gutter), calc((100% - var(--wide)) / 2)); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); } /* wraps under 360 px (WCAG 1.4.10) */
.brand { font-family: var(--font-display); font-size: 26px; line-height: 1; white-space: nowrap; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
/* The logo: the lantern (brand/fourteller-icon.svg, 64 x 120) left of the word; decorative, the brand's name is the text.
   Sizes from the design-v4 mockup (owner decision R4, 2026-11-09): lantern box 28 x 44 + word 26px, on a phone (<= 820px)
   24 x 38 + 20px (run 4 S1: 22 -> 20 so the English menu has room at 390), 9px between. 26px is outside the type scale on
   purpose: the logo is the brand mark (DESIGN_SYSTEM); the phone's 20px is the item-title step. */
.brand .mark { display: block; width: 28px; height: 44px; margin-right: 9px; flex: none; object-fit: contain; }
@media (max-width: 820px) { .brand { font-size: 20px; } .brand .mark { width: 24px; height: 38px; } }
.topnav { display: flex; gap: var(--s-5); }
.topnav button { background: none; border: 0; border-radius: 0; color: var(--ink); font: 700 var(--t-small)/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 10px 0; min-height: 40px; cursor: pointer; white-space: nowrap; }
.topnav button[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 759px) { .topnav { gap: 10px; margin-left: auto; } .topnav button { letter-spacing: 0; } .top { gap: var(--s-2); } }
/* R4: with the mockup logo (24 x 38 + 20px since run 4) and the 14px menu, the English header is tight at 390: the menu
   items 6px apart and no fixed gap before the menu (margin-left: auto keeps the rest between logo and menu); wraps <= 375. */
@media (max-width: 400px) { .topnav { gap: 6px; } .top { column-gap: 0; } }
.badge { font: 700 var(--t-small) var(--font-body); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }
/* The language switch under the header: only with the Korean edition in the build (docs/BIG_RUN_DECISIONS.md 4). */
.langbar { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-2) var(--gutter) 0; display: flex; justify-content: flex-end; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
.langbar button { background: none; border: 1.5px solid var(--chip-line); border-radius: var(--radius-chip); color: var(--ink); font: 600 var(--t-small) var(--font-body); padding: 6px 12px; min-height: 32px; cursor: pointer; white-space: nowrap; }

main { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-5) var(--gutter) 120px; }
main > * { min-width: 0; }

.kicker { font-size: var(--t-small); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin: 0 0 var(--s-2); }
.lead { font-size: var(--t-body); line-height: 1.65; color: var(--ink-soft); }
.hint { color: var(--ink-soft); font-size: var(--t-ui); }
.small { font-size: var(--t-small); }
.fine { color: var(--ink-faint); font-size: var(--t-small); margin-top: var(--s-3); }

/* Buttons: 4px corners, 48px high (the big main button 56px), the main one red with a 2px darker under-shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); border: 0; border-radius: var(--radius); min-height: 48px; padding: 12px 24px; font: 700 var(--t-ui)/1.25 var(--font-body); cursor: pointer; text-decoration: none; text-align: center; }
.btn.primary { background: var(--accent); color: var(--accent-ink); width: 100%; box-shadow: 0 2px 0 var(--accent-strong); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.primary:active { transform: translateY(1px); box-shadow: none; }
.btn.big { min-height: 56px; padding: 14px 32px; }
.btn.ghost { background: var(--surface-strong); color: var(--ink); border: 1.5px solid var(--ink); padding: 10px 20px; }
.back { display: inline-block; background: none; border: 0; color: var(--ink); font: 600 var(--t-small) var(--font-body); padding: 8px 0; min-height: 32px; margin-bottom: var(--s-3); cursor: pointer; }
.linkish { display: block; margin: var(--s-3) auto 0; background: none; border: 0; padding: 4px 0; color: var(--link, var(--focus)); font: 700 var(--t-ui) var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
a.linkish { display: inline-block; }

/* Cards: white, one 1px line, flat */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5) var(--s-4); margin-bottom: var(--s-4); box-shadow: var(--shadow); }
@media (min-width: 760px) { .card { padding: var(--s-6); } }
.c-title { font-weight: 700; margin-bottom: var(--s-1); }
/* Flat grey band (design v2: no gradients) */
.band { background: var(--band-bg); border-radius: var(--radius); padding: var(--s-5) var(--s-4); }
@media (min-width: 760px) { .band { padding: var(--s-6) var(--s-7); } }
/* Chips: white, a 1.5px grey line, 2px corners, no shadow; 40px high */
.pchip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 8px 12px; background: var(--chip-bg); border: 1.5px solid var(--chip-line); border-radius: var(--radius-chip); color: var(--chip-text); font: 600 var(--t-ui)/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; text-decoration: none; }
.pchip:hover { border-color: var(--ink); }
.pchips { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; list-style: none; margin: 0; padding: 0; }

/* Form: 50px fields with a 1.5px line; sex at birth as three big choices (chosen = ink line + grey) */
form label, fieldset legend { display: block; font-weight: 700; font-size: var(--t-ui); margin: var(--s-5) 0 var(--s-2); }
input[type=date], input[type=time], input[type=text], select {
  width: 100%; font: var(--t-ui) var(--font-body); color: var(--ink); background: var(--surface-strong);
  border: 1.5px solid var(--control-line); border-radius: var(--radius-small); padding: 12px 14px; min-height: 50px; appearance: none;
}
input[type=date]:focus-visible, input[type=time]:focus-visible, input[type=text]:focus-visible, select:focus-visible { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-halo); outline: 2px solid var(--focus); outline-offset: 0; }
input:disabled { opacity: .55; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.check { display: flex !important; gap: var(--s-3); align-items: center; font-weight: 400 !important; font-size: var(--t-ui) !important; margin-top: var(--s-3) !important; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
fieldset.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
fieldset.seg legend { grid-column: 1 / -1; }
fieldset.seg label { margin: 0; display: flex; gap: var(--s-2); align-items: center; justify-content: center; font-weight: 600; border: 1.5px solid var(--control-line); background: var(--surface-strong); border-radius: var(--radius-small); min-height: 50px; cursor: pointer; }
fieldset.seg label:has(input:checked) { border-color: var(--ink); background: var(--choice-bg); box-shadow: inset 0 0 0 1px var(--ink); }
fieldset.seg input { accent-color: var(--ink); }
fieldset.seg label.wide { grid-column: 1 / -1; }
.err { color: var(--accent-strong); font-size: var(--t-small); font-weight: 700; margin: var(--s-1) 0 0; min-height: 0; }
.err:empty { display: none; }
.citybox { position: relative; }
#f-city-list { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius-small); box-shadow: var(--shadow-pop); max-height: 260px; overflow: auto; }
#f-city-list li { padding: 10px 12px; cursor: pointer; }
#f-city-list li:hover, #f-city-list li[aria-selected="true"] { background: var(--choice-bg); }
#f-city-list li[aria-selected="true"] { outline: 2px solid var(--focus); outline-offset: -2px; }
form .btn.primary { margin-top: var(--s-5); }

/* Product art (decorative, aria-hidden). Run 10: the product's minhwa painting fills the box (lazy <picture>, cropped to
   fit), and the band is a small seal in the corner in the product's element color with its hanja and name. Without a
   painting the box keeps the dark ground and pattern. */
.art { position: relative; overflow: hidden; min-height: 96px; background-color: var(--art-bg); background-image: var(--art-pattern); }
.art picture, .art img, .hero-art picture, .hero-art img, .ch-band picture, .ch-band img { display: block; width: 100%; height: 100%; }
.art img, .hero-art img, .ch-band img { object-fit: cover; }
.art picture { position: absolute; inset: 0; }
.art-band { position: absolute; left: var(--s-3); bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-2); padding: 6px 10px; border-radius: var(--radius); color: var(--art-ink); max-width: calc(100% - 2 * var(--s-3)); }
.art-band .hz { font-size: 26px; line-height: 1; font-weight: 600; }
.art-band b { font-family: var(--font-display); font-weight: var(--display-weight, 700); font-size: var(--t-small); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-lo .art-band { background: var(--band-lo); } .art-pe .art-band { background: var(--band-pe); } .art-lv .art-band { background: var(--band-lv); }
.art-co .art-band { background: var(--band-co); } .art-ya .art-band { background: var(--band-ya); } .art-ca .art-band { background: var(--band-ca); }
.art-we .art-band { background: var(--band-we); } .art-mo .art-band { background: var(--band-mo); }
@media (min-width: 760px) { .art-band .hz { font-size: 30px; } .art-band b { font-size: var(--t-ui); } }
/* the paintings' focus inside each crop (object-position) */
.art-lo img { object-position: 50% 40%; } .art-ya img { object-position: 40% 45%; } .art-co img { object-position: 50% 40%; }
/* Run 4 S2: a small art (under 120px wide, e.g. My readings on a phone) shows the hanja only; the English name did not fit
   the 96px band. The art is aria-hidden and the product name is the card title next to it, so nothing is lost. */
.art { container-type: inline-size; }
@container (max-width: 119.98px) { .art-band b { display: none; } }

/* Landing: hero → how it works + a real chart → readings chips → the ten Day Masters → today's score → the value block
   → what is saju (+ FAQ) → free tools → the last button. Section titles centred; running text in one 680px column. */
/* Run 10: the first screen is the 일월오봉도 across the whole width, with the logo, the headline and the button on a
   paper panel over it. Phone: the painting (sun, moon and five peaks) on top, the panel overlapping its lower edge.
   Desktop: the painting fills the hero (at least --hero-min), the panel low in the middle. main gives up its side
   margins on the landing so the painting reaches both edges; the sections after it keep the usual width. */
main:has(> .hero) { max-width: none; padding-left: 0; padding-right: 0; padding-top: 0; }
main:has(> .hero) > .hero ~ * { margin-left: max(var(--gutter), calc((100% - var(--wide)) / 2)); margin-right: max(var(--gutter), calc((100% - var(--wide)) / 2)); }
.hero { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 0 0 var(--s-5); }
.hero-art { width: 100%; aspect-ratio: 1.0629; background: var(--art-bg); }
.hero-panel { position: relative; margin: calc(-1 * var(--s-8)) var(--gutter) 0; padding: var(--s-5) var(--s-4) var(--s-4); background: var(--hero-veil); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; max-width: 880px; }
.hero-mark { display: block; width: 40px; height: 63px; margin: 0 auto var(--s-3); }
.hero h1 { font-size: var(--t-hero); line-height: 1.05; max-width: 1000px; margin: 0 auto var(--s-4); }
.hero h1 .hl { display: inline-block; } /* break the headline at its phrase */
.hero .lead { max-width: var(--text); margin: 0 auto; }
.hero .btn.primary, .closing .btn.primary { width: auto; margin-top: var(--s-5); }
.hero .fine { margin-top: var(--s-3); }
@media (min-width: 760px) {
  .hero { min-height: var(--hero-min); justify-content: flex-end; padding: var(--s-8) var(--gutter) var(--s-7); }
  .hero-art { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-art img { object-position: 50% 0%; }
  /* desktop: a dark see-through veil over the painting (text on it ≥ 4.5:1 even over the moon, docs/DESIGN_SYSTEM.md 10-2) */
  .hero-panel { margin: 0 auto; padding: var(--s-5) var(--s-7); max-width: 1040px; background: var(--hero-scrim); color: var(--hero-ink); }
  .hero-panel .lead, .hero-panel .fine { color: var(--hero-ink); }
  .hero-mark { width: 32px; height: 50px; margin-bottom: var(--s-2); }
}
.sec { margin-top: var(--section-gap); }
.sec > h2 { text-align: center; margin: 0 0 var(--title-gap); }
.how-grid { display: grid; gap: var(--s-6); align-items: start; }
.how-grid > * { min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.step { position: relative; padding-left: 60px; min-height: 44px; }
.step h3 { font: 700 var(--t-body)/1.4 var(--font-body); margin: 0 0 var(--s-1); }
.step p { margin: 0; color: var(--ink-soft); font-size: var(--t-body); line-height: 1.6; }
.step-n { position: absolute; left: 0; top: -6px; width: 44px; height: 44px; border-radius: 50%; background: var(--step-bg); display: grid; place-items: center; font: var(--display-weight, 700) var(--t-item)/1 var(--font-display); }
.step-dot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Run 11 (§4): a step with its small painting: a 72px round picture on the left, the number on its lower right */
.step.has-art { padding-left: 92px; min-height: 76px; }
.step-art { position: absolute; left: 0; top: -4px; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: var(--art-bg); }
.step-art picture, .step-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step.has-art .step-n { left: 46px; top: 40px; width: 32px; height: 32px; background: var(--surface-strong); border: 1.5px solid var(--ink); font: 700 var(--t-ui)/1 var(--font-body); }
/* Run 11 (§4): the readings as a preview stack (one under another on a phone, two columns on a desktop; nothing
   scrolls sideways) */
.pv-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: var(--s-3); max-width: 960px; }
@media (min-width: 760px) { .pv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
.pv { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 112px minmax(0, 1fr); width: 100%; min-height: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; color: var(--ink); }
.pv:hover { box-shadow: var(--shadow-pop); }
.pv:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pv-art { height: 100%; min-height: 96px; }
.pv-text { display: flex; flex-direction: column; justify-content: center; gap: var(--s-1); padding: var(--s-3) var(--s-4); min-width: 0; }
.pv-name { font: var(--display-weight, 700) var(--t-item)/1.2 var(--font-display); }
.pv-price { font-weight: 700; color: var(--ink-soft); }
.pv-line { font-size: var(--t-small); line-height: 1.45; color: var(--ink-soft); }
.pv-full { grid-template-columns: minmax(0, 1fr); border: 1.5px dashed var(--chip-line); }
@media (min-width: 760px) { .pv-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.sample { margin: 0; }
.sample .kicker { display: block; }
.sample tr.sm { display: none; } /* the landing's chart as in the mockup: stems, roles, branches; hidden stems and 12 stages are in the readings */
.chart-card { background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4) var(--s-2); margin: 0; max-width: none; }
.chart-card > :first-child { margin-top: 0; }
@media (min-width: 760px) { .how-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } .chart-card { padding: var(--s-5); } }
.dm-sec .sub { text-align: center; max-width: var(--text); margin: calc(var(--s-3) - var(--title-gap)) auto var(--s-6); font-size: var(--t-body); color: var(--ink-soft); }
.dm-sec .sub a { font-weight: 700; color: var(--ink); white-space: nowrap; }
.dm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-4); }
@media (min-width: 760px) { .dm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dmi { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-1); color: var(--ink); text-decoration: none; }
.dmi:hover .dmi-name { text-decoration: underline; }
.dm-circle { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; line-height: 1; margin-bottom: var(--s-2); }
.dmi-name { font: var(--display-weight, 700) var(--t-item)/1.2 var(--font-display); }
.dmi-el { font-size: var(--t-small); color: var(--ink-soft); }
.dm-circle.el-wood, .dm-char.el-wood { background: var(--chip-wood); color: var(--chip-wood-ink); } .dm-circle.el-fire, .dm-char.el-fire { background: var(--chip-fire); color: var(--chip-fire-ink); }
.dm-circle.el-earth, .dm-char.el-earth { background: var(--chip-earth); color: var(--chip-earth-ink); } .dm-circle.el-metal, .dm-char.el-metal { background: var(--chip-metal); color: var(--chip-metal-ink); }
.dm-circle.el-water, .dm-char.el-water { background: var(--chip-water); color: var(--chip-water-ink); }
.dm-circle.yin { color: var(--ink); }
.dm-circle.yin.el-wood { background: var(--chip-wood-yin); } .dm-circle.yin.el-fire { background: var(--chip-fire-yin); } .dm-circle.yin.el-earth { background: var(--chip-earth-yin); }
.dm-circle.yin.el-metal { background: var(--chip-metal-yin); } .dm-circle.yin.el-water { background: var(--chip-water-yin); }
.today-band { margin-top: var(--section-gap); display: grid; gap: var(--s-3); align-items: center; }
.today-band h2 { margin: 0 0 var(--s-3); }
.today-band p { margin: 0; font-size: var(--t-body); line-height: 1.6; }
.today-head .chips { flex-direction: row; }
@media (min-width: 760px) { .today-band { grid-template-columns: 320px 1fr; gap: var(--s-5); } }
.linkish.inline { display: inline-block; margin: 0; padding: 0; min-height: 24px; color: var(--ink); font-size: inherit; }
/* Run 23: one value block left (SITE_COPY "장점 소개"); one column at the reading width of "what is saju" below, phone and desktop
   (on the landing the side margins come from main:has(> .hero), so on a desktop it lines up with that column) */
.values { display: grid; gap: var(--s-5); max-width: var(--text); margin-left: auto; margin-right: auto; }
.value { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.value h2 { font: 700 var(--t-ui)/1.4 var(--font-body); margin: 0 0 var(--s-2); text-align: left; }
.value p { margin: 0; color: var(--ink-soft); font-size: var(--t-ui); line-height: 1.6; }
.saju { max-width: var(--text); margin-left: auto; margin-right: auto; }
.saju p { font-size: var(--t-body); line-height: 1.65; }
.faq { margin: var(--s-6) 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 24px; }
.faq details p { margin: var(--s-2) 0 0; color: var(--ink-soft); font-size: var(--t-ui); }
.tools-sec > h2 { font-size: var(--t-item); margin-bottom: var(--s-4); }
.tools { text-align: center; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: center; margin: 0; }
.tools a, .tools .linkish { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.closing { text-align: center; }
.closing h2 { font-size: var(--t-page); }
.closing .btn.primary { margin-top: 0; } /* title → button = the title gap (32/24) */

/* Product list: page title > Life Overview across the top ("Start here") > six cards (3 columns) > The Full Set */
.readings > h1 { text-align: center; margin: var(--s-4) 0 var(--title-gap); }
.products { display: grid; gap: var(--s-4); }
.p-grid { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .products, .p-grid { gap: var(--s-5); } .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.product:hover { box-shadow: var(--shadow-pop); }
.product:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.product .art { height: 150px; flex: none; }
.p-body { padding: var(--s-4) var(--s-4) var(--s-4); display: flex; flex-direction: column; flex: 1; }
.p-title { font-family: var(--font-display); font-size: var(--t-card); font-weight: var(--display-weight, 700); line-height: 1.2; margin: 0 0 var(--s-1); }
/* The card's one button is its title; it covers the whole card, so the card still opens with one click or tap. */
.p-open { all: unset; cursor: pointer; }
.p-open::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.p-open:focus-visible { outline: none; }
.p-blurb { color: var(--ink-soft); margin: 0 0 var(--s-2); }
.p-list { margin: 0 0 var(--s-4); padding-left: 18px; color: var(--ink-soft); }
.p-list li + li { margin-top: var(--s-1); }
.p-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin: auto 0 0; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.p-time { font-size: var(--t-small); color: var(--ink-faint); }
.p-price { font-family: var(--font-display); color: var(--ink); font-size: var(--t-item); white-space: nowrap; }
.lo-card .p-blurb { font-size: var(--t-body); }
.lo-card .p-price { font-size: var(--t-card); }
.full-card { border: 1.5px dashed var(--chip-line); }
@media (min-width: 760px) {
  .p-card .art { height: 190px; }
  .p-body { padding: var(--s-5); }
  .lo-card { display: grid; grid-template-columns: 360px minmax(0, 1fr); }
  .lo-card .art { height: auto; min-height: 260px; }
  .lo-card .p-body { padding: var(--s-6); }
  .lo-card .p-title { font-size: var(--t-section); }
  .full-card .p-body { padding: var(--s-5) var(--s-6); }
}

/* Product detail: desktop = the text left, a price box that follows on the right; phone = art on top, a price bar
   stuck to the bottom */
.detail { display: grid; gap: 0; }
.detail > * { min-width: 0; }
.detail-art { height: 200px; margin: calc(-1 * var(--s-5)) calc(-1 * var(--gutter)) var(--s-4); }
.d-main { max-width: var(--text); }
.d-main h1 { font-size: var(--t-page); margin: var(--s-2) 0 var(--s-4); }
.d-main p { font-size: var(--t-body); line-height: 1.65; }
.intro h2 { margin: var(--s-6) 0 var(--s-3); }
.inside { margin-top: var(--s-6); }
.inside h2, .good h2 { font-size: var(--t-card); margin-bottom: var(--s-2); }
.inside ol { list-style: none; counter-reset: i; margin: 0; padding: 0; }
.inside li { counter-increment: i; position: relative; padding: 9px 0 9px 40px; border-top: 1px solid var(--line-soft); }
.inside li:first-child { border-top: 0; }
.inside li::before { content: counter(i); position: absolute; left: 0; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--step-bg); font-size: var(--t-small); font-weight: 700; display: grid; place-items: center; }
.good { margin: var(--s-6) 0 0; color: var(--ink-soft); }
.good ul { margin: 0; padding-left: 18px; }
.narrator:empty { display: none; }
.buyers { color: var(--ink-faint); font-size: var(--t-small); }
.price { font-family: var(--font-display); font-weight: var(--display-weight, 700); font-size: var(--t-section); line-height: 1.1; color: var(--ink); margin: 0; }
.buy { position: sticky; bottom: 0; z-index: 8; margin: var(--s-6) calc(-1 * var(--gutter)) -120px; background: var(--surface-strong); border-top: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.buy-in { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); }
.buy .price { font-size: var(--t-card); }
.buy .btn.primary { flex: 1; width: auto; padding: 12px 16px; }
.buy-art, .buy-time { display: none; }
html:has(.buy) { scroll-padding-bottom: 96px; }
@media (min-width: 760px) {
  .detail { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); align-items: start; padding-top: var(--s-5); }
  .detail-art { display: none; }
  .buy { position: sticky; top: var(--s-5); bottom: auto; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: none; }
  .buy-art { display: block; height: 220px; }
  .buy-in { display: block; padding: var(--s-5); }
  .buy .price { font-size: var(--t-section); }
  .buy-time { display: block; color: var(--ink-faint); font-size: var(--t-small); margin: var(--s-2) 0 var(--s-4); }
  .buy .btn.primary { width: 100%; }
  html:has(.buy) { scroll-padding-bottom: 0; }
}

/* Birth details: one white box, big fields */
.form-card { max-width: 560px; margin: var(--s-4) auto 0; }
.form-card .hint { margin-bottom: 0; }

/* Free result: the Day Master big (circle 120/84 in its pastel) → share → chart → the free chapter → paywall (flat grey)
   → the blurred rest; one 720px column; on a phone a buy bar stuck to the bottom */
.result, .reading-kicker, .reading.free, .paywall, .preview-note, .locked { max-width: 720px; margin-left: auto; margin-right: auto; }
.dm { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4); align-items: center; margin: var(--s-2) 0 var(--s-4); }
/* Run 11 (§1): the Day Master as an emblem: a disc in the element's deep color with a minhwa pattern (emblem.ts), the
   character in white over it */
.dm-emblem { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background-color: var(--emb-bg, var(--ink)); } /* the color under the SVG disc too, so contrast tools see what the character sits on */
.dm-emblem .emb { position: absolute; inset: 0; width: 100%; height: 100%; }
.emb-disc { fill: var(--emb-bg, var(--ink)); }
.emb-pat { fill: none; stroke: var(--emb-line); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.emb-ring { fill: none; stroke: var(--emb-line); stroke-width: 1.6; }
.dm-emblem .dm-char { position: relative; width: auto; height: auto; background: none; border-radius: 0; color: var(--tile-text); font-size: 46px; line-height: 1; }
.dm-emblem.el-wood { --emb-bg: var(--tile-wood); } .dm-emblem.el-fire { --emb-bg: var(--tile-fire); } .dm-emblem.el-earth { --emb-bg: var(--tile-earth); }
.dm-emblem.el-metal { --emb-bg: var(--tile-metal); } .dm-emblem.el-water { --emb-bg: var(--tile-water); }
.dm-emblem.yin.el-wood { --emb-bg: var(--tile-wood-yin); } .dm-emblem.yin.el-fire { --emb-bg: var(--tile-fire-yin); } .dm-emblem.yin.el-earth { --emb-bg: var(--tile-earth-yin); }
.dm-emblem.yin.el-metal { --emb-bg: var(--tile-metal-yin); } .dm-emblem.yin.el-water { --emb-bg: var(--tile-water-yin); }
.dm-char { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; line-height: 1; color: var(--ink); }
.dm h1, .dm h2 { margin: 0; }
/* Run 8: the identity line on top of the free result ("You're a Yin Metal Snake", the hanja small, how rare), then the
   day pillar card button; the drawn card shows here where files cannot be shared (docs/VIRAL_FEATURES.md 2-1, 2-2) */
.identity { text-align: center; margin: 0 0 var(--s-6); padding: 0 0 var(--s-5); border-bottom: 1px solid var(--line); }
.identity h1 { font-size: var(--t-page); margin: 0 0 var(--s-1); overflow-wrap: anywhere; }
@media (min-width: 760px) { .identity h1 { font-size: var(--t-hero); } }
.identity .id-hz { font-family: var(--font-hanja); font-size: var(--t-card); color: var(--ink-soft); margin: 0 0 var(--s-2); }
/* layout-2 A4: the day-pillar intro line under the title */
.identity .id-intro { color: var(--ink-soft); margin: 0 0 var(--s-3); max-width: 34em; }
.identity .id-rare { color: var(--ink-faint); font-size: var(--t-ui); margin: 0 0 var(--s-4); }
.identity .id-text > .hint { color: var(--ink-faint); font-size: var(--t-small); margin: var(--s-3) auto 0; max-width: 520px; }
/* Run 11 (§1): the day branch's zodiac painting. Phone: across the whole screen above the title; desktop: a
   square beside the title. zodiac-rule-1: square on phones too and drawn whole (contain), so the figure shows from
   head to foot; no credit line (the paintings are no longer museum works). */
.id-art { margin: 0 calc(-1 * var(--gutter)) var(--s-5); }
.id-pic { aspect-ratio: 1; overflow: hidden; background: var(--art-bg); }
.id-pic picture, .id-pic img { display: block; width: 100%; height: 100%; }
.id-pic img { object-fit: contain; object-position: 50% 50%; }
@media (min-width: 760px) {
  .identity.has-art h1 { font-size: var(--t-page); }
  .identity.has-art { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-6); align-items: center; text-align: left; }
  .id-art { margin: 0; }
  .id-pic { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); }
  .identity.has-art .id-text > .hint, .identity.has-art .card-out { margin-left: 0; }
  .identity.has-art .card-actions { justify-content: flex-start; }
}
.card-out { margin: var(--s-4) auto 0; max-width: 320px; }
.card-out[hidden] { display: none; }
/* Run 14: the animal under the identity line (VIRAL_PLAN §2-1 no. 2); run 16: the true animal (day branch) only,
   big ("Your true animal"). Phone first (390px); the painting is the same zodiac painting as above (zodiac-rule-1: a
   rounded square drawn whole, no longer a circle that cut the corners off). Colors and
   fonts from the theme. "Ask your mom" (run 16) sits in the notes list under the no-birth-time note. */
.animals { margin: 0 0 var(--s-6); padding: 0 0 var(--s-5); border-bottom: 1px solid var(--line); }
.an-pic { width: 64px; height: 64px; border-radius: var(--radius-small); overflow: hidden; background: var(--art-bg); border: 1px solid var(--line); margin: 0 auto var(--s-2); }
.an-pic picture, .an-pic img { display: block; width: 100%; height: 100%; }
.an-pic img { object-fit: contain; object-position: 50% 50%; }
.an-true { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); margin: 0 0 var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.an-true .an-pic-lg { width: 112px; height: 112px; flex: none; margin: 0; }
.an-txt { margin: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-k { font-size: var(--t-small); color: var(--ink-faint); line-height: 1.35; }
.an-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.an-true .an-name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-card); line-height: 1.15; }
.an-sub { font-size: var(--t-small); color: var(--ink-soft); }
.an-line { font-weight: 600; margin: 0 0 var(--s-2); }
.an-note { color: var(--ink-faint); margin: 0 0 var(--s-2); }
.ask { margin: var(--s-3) 0 0; }
.ask .ask-line { margin: 0 0 var(--s-2); }
.ask-out { margin: var(--s-2) 0 0; }
.ask-out[hidden] { display: none; }
.ask-out textarea { width: 100%; font: inherit; font-size: var(--t-small); padding: 6px 8px; border: 1px solid var(--control-line); border-radius: var(--radius-small); background: transparent; color: inherit; resize: vertical; }
.ask-status { margin: var(--s-1) 0 0; font-size: var(--t-small); }
.card-img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-small); }
.card-out .hint { font-size: var(--t-small); color: var(--ink-faint); }
.card-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin: var(--s-2) 0 0; }
.dm-sub { margin: var(--s-1) 0 0; color: var(--ink-faint); }
@media (min-width: 760px) { .dm { grid-template-columns: 132px minmax(0, 1fr); gap: var(--s-5); } .dm-char { width: 120px; height: 120px; font-size: 58px; } .dm-emblem { width: 132px; height: 132px; } .dm-emblem .dm-char { font-size: 64px; } }
.result > p { font-size: var(--t-body); line-height: 1.65; }
.result > p.hint { font-size: var(--t-small); color: var(--ink-faint); }
/* Run 11 (§2): every bold conclusion line is an emphasis box: a paper a shade darker than the page, an ink line on the left */
.result .concl, .reading .concl { color: var(--conclusion); font-weight: 700; background: var(--concl-bg, var(--accent-soft)); border-left: 3px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s-3) var(--s-4); }
/* Run 11 (§1): small ink-brush rules between the blocks, so the text does not run on as one mass */
.result .share::before, .reading-kicker::before, .reading h3::before { content: ''; display: block; width: 96px; height: 10px; margin: 0 auto; background: var(--ink-faint); -webkit-mask: var(--ink-rule) center / 100% 100% no-repeat; mask: var(--ink-rule) center / 100% 100% no-repeat; }
.result .share::before { flex-basis: 100%; margin: var(--s-2) auto var(--s-4); }
.reading-kicker::before { margin-bottom: var(--s-6); }
.reading h3::before { margin-bottom: var(--s-6); }
.reading h2 + h3::before, .reading > h3:first-child::before, .placeholder h3::before { display: none; }
/* Run 11 (§1): the free balance tip with a swatch of its color */
.tip { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); align-items: start; margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.reading .tip p { margin: 0; }
.tip-swatch { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--control-line); margin-top: 2px; }
.tip-swatch.el-wood { background: var(--lucky-wood, var(--chip-wood)); } .tip-swatch.el-fire { background: var(--lucky-fire, var(--chip-fire)); } .tip-swatch.el-earth { background: var(--lucky-earth, var(--chip-earth)); }
.tip-swatch.el-metal { background: var(--lucky-metal, var(--chip-metal)); } .tip-swatch.el-water { background: var(--lucky-water, var(--chip-water)); }
.el-wood { color: var(--el-wood); --el-text: var(--el-wood-text); } .el-fire { color: var(--el-fire); --el-text: var(--el-fire-text); } .el-earth { color: var(--el-earth); --el-text: var(--el-earth-text); } .el-metal { color: var(--el-metal); --el-text: var(--el-metal-text); } .el-water { color: var(--el-water); --el-text: var(--el-water-text); }
/* Small text in an element's color (hidden stems, table headers) uses the darker text shade. */
.reading tr.sm .hz, .reading th[class^="el-"] { color: var(--el-text, inherit); }
.unknown { color: var(--ink-faint); }
.notes { font-size: var(--t-small); color: var(--ink-soft); padding-left: 18px; }
.notes li + li { margin-top: var(--s-2); }
.notes details summary { cursor: pointer; font-weight: 700; text-decoration: underline; }
.notes details p { margin: 4px 0 0; color: var(--ink-faint); }
/* "How we calculated this" under the free result's pillar table (owner 2026-11-16): folded, opened by the reader */
.calc { margin: 0 0 var(--s-4); font-size: var(--t-small); }
.calc summary { cursor: pointer; font-weight: 700; text-decoration: underline; min-height: 24px; color: var(--ink-soft); }
.calc p { margin: var(--s-1) 0; }
.add-sex { background: var(--band-bg); border-radius: var(--radius); padding: var(--s-4); margin: var(--s-4) 0 0; }
.add-sex p { margin: 0 0 var(--s-2); } .add-sex p:last-child { margin: 0; }
.reading-kicker { margin-top: var(--s-7); }
.share { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin: var(--s-5) 0 var(--s-2); }
.share .hint { flex-basis: 100%; margin: 0; font-size: var(--t-small); color: var(--ink-faint); }
.share .linkish { margin: 0; }
.share-out { flex-basis: 100%; margin: 0; display: flex; gap: var(--s-2); align-items: center; }
.share-out[hidden] { display: none; }
.share-status { margin: 0 0 var(--s-2); font-size: var(--t-small); }
.share-out input { flex: 1; min-width: 0; font-size: var(--t-small); padding: 6px 8px; min-height: 40px; border: 1px solid var(--control-line); border-radius: var(--radius-small); background: transparent; color: inherit; }
.paywall { margin-top: var(--s-7); }
.paywall h2 { max-width: 560px; }
.paywall p { font-size: var(--t-body); line-height: 1.6; color: var(--ink-soft); max-width: 560px; }
.paywall .btn.primary { width: auto; margin-top: var(--s-2); }
.paywall .linkish { display: inline-block; margin: var(--s-3) 0 0; }
@media (min-width: 760px) { .paywall .linkish { margin: 0 0 0 var(--s-5); } }
.preview-note { text-align: center; color: var(--ink-faint); font-size: var(--t-small); margin-top: var(--s-5); }
.locked { filter: blur(var(--blur)); user-select: none; pointer-events: none; max-height: 1100px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.locked details { display: none; }
.unlock-bar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--surface-strong); border-top: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.unlock-bar .btn { max-width: 680px; display: flex; margin: 0 auto; }
@media (min-width: 760px) { .unlock-bar { display: none; } }

/* Reading: chapters, chunks, conclusion lines. Chapter titles plain (no rule under them), 80/64 between chapters. */
.reading { max-width: 700px; margin: 0 auto var(--s-5); }
/* Run 10: a thin band of the product's painting before each chapter after the first (in the chapter gap; the title
   keeps 32px below it), framed by a thin rule in the reader's element tint; or a small ornament */
.reading .ch-band { margin: var(--chapter-gap) 0 0; height: 64px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--dm-tint, var(--line)); background: var(--art-bg); }
.reading .ch-orn { margin: var(--chapter-gap) auto 0; width: 96px; height: 12px; border-top: 3px double var(--dm-tint, var(--line)); }
.reading :is(.ch-band, .ch-orn) + h2 { margin-top: var(--s-6); }
@media (min-width: 760px) { .reading .ch-band { height: 84px; } }
.reading h2 { font-size: var(--t-section); color: var(--ink); margin: var(--chapter-gap) 0 var(--s-2); }
.reading > h2:first-child { margin-top: var(--s-2); }
.reading h3 { font-size: var(--t-item); margin: var(--s-6) 0 var(--s-2); }
.reading h2 + h3 { margin-top: var(--s-5); }
.reading p { margin: 0 0 var(--s-4); font-size: var(--t-body); line-height: 1.7; }
.reading .concl { color: var(--conclusion); font-weight: 700; margin-bottom: var(--s-3); }
.reading em { color: var(--ink-soft); }
.reading table { border-collapse: collapse; margin: var(--s-4) auto; font-size: var(--t-small); background: var(--surface); }
.reading th, .reading td { border: 1px solid var(--line-soft); padding: 6px 8px; text-align: center; }
.reading th { color: var(--ink-soft); }
/* Run 11 (§2): a score line is a score card: the label in small capitals, the number big on the right, a thick bar in
   the reader's element color (the screen's one accent, html[data-dm]) */
.score { margin: var(--s-4) 0 var(--s-4); padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.reading .score-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin: 0 0 var(--s-3); font-size: var(--t-small); line-height: 1.3; }
.score-label { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.score-num { white-space: nowrap; }
.score strong { font-family: var(--font-display); font-size: var(--t-page); font-weight: var(--display-weight, 700); color: var(--ink); line-height: 1; }
.score small { color: var(--ink-faint); font-size: var(--t-small); font-weight: 400; margin-left: 2px; }
.score-bar { display: block; height: 12px; border-radius: 6px; background: var(--bar-track); overflow: hidden; }
.score-bar > span { display: block; height: 100%; background: var(--dm, var(--bar-fill)); border-radius: 6px; }
.table-wrap { overflow-x: visible; } /* tables fit the screen; none scrolls sideways (owner, 2026-11-10) */

/* Manseryeok table: stems and branches as tiles in their element's pastel, the Day Master's tile outlined in ink */
.reading table.mj { width: 100%; border-collapse: separate; border-spacing: 6px; border: 0; table-layout: fixed; background: none; margin: 0 0 var(--s-2); } /* no overflow: hidden, so wider text spacing is never cut off (1.4.12) */
.reading table.mj th, .reading table.mj td { border: 0; padding: 4px 2px; font-size: var(--t-small); line-height: 1.3; overflow-wrap: anywhere; } /* run 7: with WCAG 1.4.12 text spacing a role name ("Venturer") no longer fits a 320 px column; it may break rather than push the page sideways */
.reading table.mj tr > :first-child { width: 17%; color: var(--ink-faint); font-weight: 600; text-align: left; }
.reading table.mj thead th { color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.reading table.mj tr.gl td { padding: var(--s-2) 2px; }
.reading table.mj tr.tg td { color: var(--ink-soft); }
.reading table.mj tr.sm td { color: var(--ink-faint); }
.reading table.mj tr.sm .hz { font-size: 18px; }
/* Run 7 (§6): one short line under a row name of the free result's table, across the table so it never widens it */
.reading table.mj tr.row-note td { width: auto; padding: 0 2px var(--s-2); color: var(--ink-faint); font-weight: 400; font-size: var(--t-small); line-height: 1.35; text-align: left; overflow-wrap: anywhere; }
.reading table.mj td.tile { border-radius: var(--radius-small); }
/* Run 11 (§1): letter tiles. The element's deep color (yin one shade deeper, themes --tile-*) carries the element; the
   character big in white on it and its name ("Yin Earth") small under it. Themes without --tile-* fall back to the
   pastels with ink. The Day Master's tile has an ink frame around it. */
.reading table.mj td.tile.el-wood { background: var(--tile-wood, var(--chip-wood)); } .reading table.mj td.tile.el-fire { background: var(--tile-fire, var(--chip-fire)); }
.reading table.mj td.tile.el-earth { background: var(--tile-earth, var(--chip-earth)); } .reading table.mj td.tile.el-metal { background: var(--tile-metal, var(--chip-metal)); }
.reading table.mj td.tile.el-water { background: var(--tile-water, var(--chip-water)); }
.reading table.mj td.tile.yin.el-wood { background: var(--tile-wood-yin, var(--chip-wood-yin)); } .reading table.mj td.tile.yin.el-fire { background: var(--tile-fire-yin, var(--chip-fire-yin)); }
.reading table.mj td.tile.yin.el-earth { background: var(--tile-earth-yin, var(--chip-earth-yin)); } .reading table.mj td.tile.yin.el-metal { background: var(--tile-metal-yin, var(--chip-metal-yin)); }
.reading table.mj td.tile.yin.el-water { background: var(--tile-water-yin, var(--chip-water-yin)); }
.reading table.mj td.tile { --tile-ink: var(--tile-text, var(--ink)); }
.reading table.mj td.is-dm { outline: 3px solid var(--ink); outline-offset: 2px; }
.g { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; }
.g .hz { font-size: 28px; font-weight: 700; }
.tile .g .hz { font-size: 34px; }
@media (min-width: 760px) { .tile .g .hz { font-size: 40px; } .reading table.mj tr.gl td { padding: var(--s-3) 2px; } }
.tile .g, .tile .g .hz, .tile .g .pm { color: var(--tile-ink, var(--ink)); }
.g .pm { font-size: var(--t-small); font-weight: 600; line-height: 1.2; margin-top: 6px; font-family: var(--font-body); color: var(--ink-soft); text-align: center; }
.tile .g .pm { width: min-content; overflow-wrap: normal; hyphens: none; } /* "Yin" over "Earth" in every tile, the same on every width */
/* The element count: one bar of pastels over its small table */
.elbar { display: flex; height: 36px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: var(--s-4) 0 0; }
.elbar span { display: grid; place-items: center; font-size: var(--t-small); font-weight: 700; }
/* Run 11 (§1): the bar in the tiles' deep element colors, the count in white */
.elbar .el-wood { background: var(--tile-wood, var(--chip-wood)); } .elbar .el-fire { background: var(--tile-fire, var(--chip-fire)); } .elbar .el-earth { background: var(--tile-earth, var(--chip-earth)); }
.elbar .el-metal { background: var(--tile-metal, var(--chip-metal)); } .elbar .el-water { background: var(--tile-water, var(--chip-water)); }
.elbar span { color: var(--tile-text, var(--ink)); }
.elbar + p, .elbar + table, .elbar + .table-wrap { margin-top: var(--s-2); }
table.elt, .elbar + table, .elbar + .table-wrap > table { width: 100%; table-layout: fixed; margin-top: var(--s-2); }
table.elt :is(th, td), .elbar + table :is(th, td), .elbar + .table-wrap > table :is(th, td) { padding: 4px 1px; hyphens: auto; }
table.elt tr > :first-child, .elbar + table tr > :first-child, .elbar + .table-wrap > table tr > :first-child { width: 25%; }
/* Narrow phones: long words in the chart tables break with a hyphen instead of running into the next cell */
.reading table.mj :is(th, td), .reading table.luck :is(th, td) { hyphens: auto; }
/* year-2 (owner, 2026-11-23): a role name ("Challenger", "Performer") is never split inside the word on a phone of
   375 px and up (390 px included): on a phone the row names take less room and the tiles sit closer, and the role and
   row-name cells keep their words whole at the scale's smallest size (14 px). Below 375 px the longest names do not fit
   a column, and the hyphenation above stays rather than letting a word run into the next tile. */
@media (max-width: 480px) { .reading table.mj { border-spacing: 3px; } .reading table.mj tr:not(.row-note) > :first-child { width: 15%; } .reading table.mj th, .reading table.mj td { padding: 4px 1px; } }
@media (min-width: 375px) { .reading table.mj tr.tg :is(th, td), .reading table.mj tr:not(.row-note) > :first-child { hyphens: manual; overflow-wrap: normal; word-break: normal; letter-spacing: 0; } }
@media (max-width: 340px) { table.elt :is(th, td), .elbar + table :is(th, td), .elbar + .table-wrap > table :is(th, td) { overflow-wrap: anywhere; } }

/* Ten-year luck: a table of age, period and start; the period now in pale yellow and bold */
.reading table.luck { width: 100%; border: 0; background: none; table-layout: fixed; margin: var(--s-4) 0; }
.reading table.luck th, .reading table.luck td { border: 0; border-bottom: 1px solid var(--line); padding: 6px 1px; vertical-align: middle; font-size: var(--t-small); color: var(--ink-soft); }
.reading table.luck th { width: 17%; text-align: left; color: var(--ink-faint); font-weight: 600; }
.reading table.luck td.current { background: var(--luck-now); color: var(--ink); font-weight: 700; }
.age, .starts { display: block; }
.chips { display: inline-flex; flex-direction: column; gap: 3px; margin: 3px 0; }
.chip { display: inline-flex; width: 30px; height: 30px; border-radius: 4px; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; } /* 20px bold: large text (3:1) */
.chip.el-wood { background: var(--tile-wood, var(--chip-wood)); } .chip.el-fire { background: var(--tile-fire, var(--chip-fire)); } .chip.el-earth { background: var(--tile-earth, var(--chip-earth)); }
.chip.el-metal { background: var(--tile-metal, var(--chip-metal)); } .chip.el-water { background: var(--tile-water, var(--chip-water)); }
.chip.hz { color: var(--tile-text, var(--ink)); }

/* Checkout (D10): heading, boxes and Pay on the left, the order summary on the right; on a phone heading → summary
   (no art) → boxes → Pay, the button on the first screen */
.checkout { max-width: 980px; margin: 0 auto; display: grid; gap: var(--s-4); }
.co-main { display: contents; } /* phone: heading → summary → boxes → Pay */
.co-head { order: 1; } .co-sum { order: 2; } .co-form { order: 3; }
.checkout > * { min-width: 0; }
.co-head h1 { margin: 0; }
.co-sum { margin: 0; padding: 0; overflow: hidden; }
.co-art { display: none; }
.co-sum-in { padding: var(--s-4); }
.co-sum .p-title { font-size: var(--t-item); }
.co-sum p { margin: 0 0 var(--s-1); }
.co-sum .hint p { margin: var(--s-2) 0 0; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: var(--s-3) !important; padding-top: var(--s-3); color: var(--ink-faint); }
.co-total .price { font-size: var(--t-item); }
.consent { margin: 0 0 var(--s-4); display: grid; gap: var(--s-3); }
.consent .check { align-items: flex-start; line-height: 1.45; margin: 0 !important; }
.consent .check input { margin-top: 2px; }
.co-form .btn.primary { width: 100%; }
.once { text-align: center; color: var(--ink); font-size: var(--t-small); font-weight: 600; margin: var(--s-3) 0 0; }
.lock { text-align: center; color: var(--ink-faint); font-size: var(--t-small); margin: var(--s-3) 0 0; }
@media (min-width: 760px) {
  .checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-7); padding-top: var(--s-5); align-items: start; }
  /* desktop: the heading, boxes and Pay in one white panel on the left, the summary on the right */
  .co-sum { grid-column: 2; grid-row: 1; }
  .co-main { grid-column: 1; grid-row: 1; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-6); }
  .co-head { margin-bottom: var(--s-5); }
  .co-art { display: block; height: 150px; }
  .co-sum-in { padding: var(--s-5); }
  .co-sum .p-title { font-size: var(--t-card); }
  .co-total .price { font-size: var(--t-card); }
}

/* Reading page: desktop contents on the left (the chapter in view with an ink line); phone one row of chips (D12) */
.rg { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.rg > * { min-width: 0; }
.rg > .reading { margin: 0 0 var(--s-5); } /* a grid item with auto margins would grow to its table's width (1.4.10) */
.ready h1 { margin: 0 0 var(--s-3); }
/* Run 11 (§2): the product's painting big at the top of the reading (the same painting as its detail page) */
.ready-art { height: 220px; margin: 0 calc(-1 * var(--gutter)) var(--s-5); }
@media (min-width: 760px) { .ready-art { height: 300px; margin: 0 0 var(--s-5); border-radius: var(--radius); } }
.ready p { font-size: var(--t-body); color: var(--ink-soft); }
.toc { margin: var(--s-3) 0 var(--s-5); }
/* The chapter list is a plain list on every screen, like Forceteller's contents: nothing to swipe sideways on a phone (owner, 2026-11-10) */
.toc-title { display: block; font-size: var(--t-small); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 var(--s-2); }
.toc-list { display: flex; flex-direction: column; gap: 0; padding: 0; }
.toc-item { flex: none; min-height: 44px; text-align: left; white-space: normal; background: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 10px 0 10px 12px; color: var(--ink-soft); font: 400 var(--t-ui)/1.3 var(--font-body); cursor: pointer; }
.toc-item[aria-current] { border-left-color: var(--dm, var(--ink)); color: var(--ink); font-weight: 700; }
/* Run 7 (§4): on a phone a small contents button floats at the bottom left once the contents at the top have scrolled
   away (on the free result: above the buy bar, --fab-lift = the bar's height); it opens the same list as a sheet from
   the bottom. A desktop keeps the side contents and has no button. */
.toc-fab { position: fixed; z-index: 11; left: var(--gutter); bottom: calc(var(--fab-lift, 0px) + var(--s-3) + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 10px var(--s-4); border: 1px solid var(--control-line); border-radius: var(--radius); background: var(--surface-strong); color: var(--ink); font: 700 var(--t-small)/1 var(--font-body); box-shadow: var(--shadow-pop); cursor: pointer; }
.toc-sheet-wrap { position: fixed; inset: 0; z-index: 20; }
.toc-sheet-backdrop { position: absolute; inset: 0; background: var(--backdrop); }
.toc-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 75vh; overflow-y: auto; overflow-x: hidden; background: var(--surface-strong); border-radius: var(--radius) var(--radius) 0 0; padding: var(--s-4) var(--gutter) calc(var(--s-4) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-pop); }
.toc-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: 0 0 var(--s-2); }
.toc-sheet-head .toc-title { margin: 0; }
.toc-fab[hidden], .toc-sheet-wrap[hidden] { display: none; }
/* Run 30 (owner-approved plan 2026-11-12 22:34): the button never covers the words being read. While the reader
   scrolls down it slides off the bottom and fades (.tucked, set by app.ts tocFabStep); scrolling up a little, the top or
   the bottom of the page, or the keyboard focus brings it back. Tucked is not hidden: a screen reader and the Tab key
   still reach it, and focus shows it at once. Movement only without prefers-reduced-motion (there it just appears and
   disappears). Under the footer the page keeps the button's height free, so at the bottom it covers no last line. */
.toc-fab.tucked:not(:focus-visible) { transform: translateY(calc(100% + var(--fab-lift, 0px) + var(--s-3) + env(safe-area-inset-bottom) + 8px)); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .toc-fab { transition: transform .2s ease, opacity .2s ease; } }
@media (max-width: 759px) { html:has(.toc-fab) .foot { padding-bottom: max(140px, calc(var(--fab-lift, 0px) + 44px + 2 * var(--s-3) + env(safe-area-inset-bottom))); } }
@media (min-width: 760px) { .toc-fab, .toc-sheet-wrap { display: none !important; } }
/* Run 22 (owner, 2026-11-11): on a phone the reading's contents list is not shown at the top (half a screen before the
   first sentence); the contents button and its sheet carry it. A desktop keeps the side contents. */
@media (max-width: 759px) { .rg > .toc { display: none; } }
/* Run 22: the paid reading opens with the eight characters as a small band (the full chart is the last chapter) */
/* Run 7 (§5): the link to the beginner's guide (landing, free result) */
.guide-link { color: var(--ink-soft); font-size: var(--t-ui); margin: var(--s-4) 0 0; }
.guide-link a { color: var(--link, var(--focus)); font-weight: 700; text-underline-offset: 3px; }
.saved-link { margin: 0 0 var(--s-5); }
.saved-link .c-title { margin: 0 0 var(--s-2); }
.saved-out { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.saved-out input { flex: 1; min-width: 0; font: var(--t-small) var(--font-body); padding: 8px 10px; min-height: 44px; border: 1px solid var(--control-line); border-radius: var(--radius-small); background: var(--surface-strong); color: var(--ink); }
.saved-out .linkish { margin: 0; }
.more { margin-top: var(--s-8); text-align: center; }
.more h2 { margin-bottom: var(--s-4); }
.more .pchip, .rg .pchip { text-transform: none; }
@media (min-width: 760px) {
  .rg { grid-template-columns: 230px minmax(0, 700px); column-gap: var(--s-8); padding-top: var(--s-5); }
  .rg > * { grid-column: 2; }
  .rg > .toc { grid-column: 1; grid-row: 1 / span 5; position: sticky; top: var(--s-5); align-self: start; margin: 0; }
  .toc-item { min-height: 0; padding: 7px 0 7px 12px; }
  .ready h1 { font-size: var(--t-page); }
}

/* Today's score: one flat grey box, the score the biggest thing on the screen, an ink bar */
.daily, .daily-reading, .cta-block { max-width: 720px; margin-left: auto; margin-right: auto; }
.daily { margin-top: var(--s-2); }
.daily h1 { margin: 0 0 var(--s-1); }
.daily-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-4); margin-top: var(--s-5); }
.daily-date { font-weight: 700; margin: 0 0 8px; } /* run 19: today's date as text, no date input */
.daily-row .chips { flex-direction: row; margin: 0 0 8px; }
.big-score { margin: 0 0 0 auto; line-height: 1; }
.big-score strong { font-family: var(--font-display); font-weight: var(--display-weight, 700); font-size: 72px; }
.big-score small { font-size: var(--t-ui); color: var(--ink-faint); }
.daily .linkish { margin: var(--s-2) 0 0; }
.daily-bar { margin-top: var(--s-4); }
.daily .concl { font-size: var(--t-item); color: var(--conclusion); font-weight: 700; margin: var(--s-5) 0 var(--s-2); }
.daily p { font-size: var(--t-body); line-height: 1.65; }
.daily-reading { margin-top: var(--s-6); }
.daily-reading .concl { color: var(--conclusion); font-weight: 700; }

/* Run 17: today by area, lucky picks, dos and don'ts, tomorrow, the month at a glance (colors from the theme only) */
.daily-more, .daily-next, .daily-month { max-width: 720px; margin-left: auto; margin-right: auto; }
.daily-more { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.daily-more h2, .daily-next h2, .daily-month h2 { font-size: var(--t-item); margin: 0 0 var(--s-3); }
.areas { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.area { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.area-head { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.area-name { font-size: var(--t-ui); }
.area-band { font-size: var(--t-small); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.area.band-good .area-band { color: var(--conclusion); }
.area-line { margin: var(--s-1) 0 0; font-size: var(--t-body); line-height: 1.6; }
.lucky { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: 0; }
.lk { border: 1px solid var(--line); border-radius: var(--radius-small); padding: var(--s-3); background: var(--surface); }
.lk dt { font-size: var(--t-small); color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lk dd { margin: var(--s-1) 0 0; font-weight: 700; display: flex; align-items: center; gap: var(--s-2); }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.daily-lucky .hint { margin: var(--s-2) 0 0; }
.daily-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.daily-dos ul { margin: 0; padding-left: 1.1em; }
.daily-dos li { margin: 0 0 var(--s-1); line-height: 1.45; }
.daily-next { margin-top: var(--s-6); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.next-row, .month-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin: 0; }
.next-score strong { font-family: var(--font-display); font-weight: var(--display-weight, 700); font-size: var(--t-page); }
.next-score small { font-size: var(--t-small); color: var(--ink-faint); }
.daily-next .concl, .daily-month .concl { color: var(--conclusion); font-weight: 700; margin: var(--s-2) 0; }
.daily-next .linkish { margin: var(--s-2) 0 0; }
.daily-month { margin-top: var(--s-6); }
.daily-month .score-bar { margin-top: var(--s-2); }
.daily-month .btn { margin-top: var(--s-2); }
@media (max-width: 420px) { .daily-dos { grid-template-columns: 1fr; } }
/* Run 17: a product without a painting (This Month): a small ornament in the art's place; the month choice */
.p-orn { height: 12px; margin: var(--s-4) var(--s-4) 0; width: 96px; border-top: 3px double var(--line); }
.pv-orn { display: block; min-height: 96px; border-right: 3px double var(--line); }
.month-pick { border: 1px solid var(--line); border-radius: var(--radius-small); padding: var(--s-3) var(--s-4); margin: var(--s-5) 0; }
.month-pick legend { font-weight: 700; padding: 0 var(--s-1); }
.month-pick .check { display: flex; gap: var(--s-2); align-items: center; margin: var(--s-2) 0 0; }

/* My readings: product art + what it is + Open */
.library { max-width: 820px; margin: 0 auto; }
.library > .hint { color: var(--ink-faint); }
.my-list { list-style: none; padding: 0; margin: var(--s-5) 0; display: grid; gap: var(--s-4); }
.it { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 0 var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.it .art { height: 100%; min-height: 120px; }
.it-info { padding: var(--s-4) var(--s-4) var(--s-4) 0; min-width: 0; }
.it-info .p-title { font-size: var(--t-card); }
.it-info p { margin: var(--s-1) 0 0; color: var(--ink-faint); }
.it-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; padding: var(--s-3) var(--s-4) var(--s-4); }
.it-act .btn { width: auto; }
.it-act .linkish { margin: 0; }
.it:not(:has(.art)) { grid-template-columns: minmax(0, 1fr); }
.it:not(:has(.art)) .it-info { padding-left: var(--s-4); }
@media (min-width: 760px) {
  .it { grid-template-columns: 150px minmax(0, 1fr) auto; }
  .it .art { min-height: 150px; }
  .it-act { grid-column: auto; flex-direction: column; padding: 0 var(--s-5) 0 0; }
}

.foot { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-6) var(--gutter) 140px; color: var(--ink-faint); font-size: var(--t-small); text-align: center; border-top: 1px solid var(--line); }
.foot p { max-width: 640px; margin: 0 auto var(--s-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: center; margin: var(--s-3) 0; }
.foot nav a { color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; padding: 4px 0; }
.foot nav a:hover { text-decoration: underline; }

/* Legal draft pages */
.legal { max-width: 720px; overflow-wrap: anywhere; }
.legal table { border-collapse: collapse; font-size: var(--t-small); } .legal td, .legal th { border: 1px solid var(--line); padding: 6px; vertical-align: top; }
.draft-banner { background: var(--band-bg); border-radius: var(--radius); padding: 10px 14px; font-weight: 600; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
/* a main button that waits (Pay before the boxes are ticked): grey, not a faded red (one accent) */
.btn.primary[disabled] { opacity: 1; background: var(--line); color: var(--ink-faint); }
.cta-block { text-align: center; }

/* Locked part of the free result: placeholder bars in the reading's shape (no text is sent to the browser for it) */
.placeholder { display: grid; gap: 10px; padding-top: 8px; }
.ph { display: block; height: .8em; border-radius: 4px; background: var(--line-soft); }
.ph-chapter { padding-top: 18px; }
.ph-h2 { height: 1.35em; background: var(--line); }
.ph-h3 { height: 1.05em; background: var(--line); margin-top: 6px; }
.ph-concl { height: .95em; background: var(--line); }
.ph-para, .ph-table { display: grid; gap: 7px; }
.ph-row { height: 1.6em; }

/* Checkout: payment steps and problems, the checkout overlay (fake provider: the local test checkout in a frame) */
.pay-status:empty { display: none; }
.pay-state { margin-top: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); }
.pay-state .c-title { margin: 0 0 4px; }
.pay-state p { margin: 0 0 8px; }
.pay-state.busy .c-title::after { content: ''; display: inline-block; width: .8em; height: .8em; margin-left: 8px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: ft-spin 1s linear infinite; vertical-align: -1px; }
@keyframes ft-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-state.busy .c-title::after { animation: none; } }
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--backdrop); }
.overlay-box { position: relative; width: 100%; max-width: 480px; height: min(640px, 92vh); background: var(--surface-strong); border-radius: var(--radius); box-shadow: var(--shadow-pop); overflow: hidden; display: flex; flex-direction: column; }
.overlay-close { align-self: flex-end; margin: 8px 8px 0; background: none; border: 1.5px solid var(--chip-line); border-radius: var(--radius-chip); color: var(--ink); font: 600 var(--t-small) var(--font-body); padding: 6px 12px; min-height: 32px; cursor: pointer; }
.overlay-box iframe { flex: 1; width: 100%; border: 0; }

/* Server pages (a saved reading, deleted, missing, the test checkout) */
main > .card, main > .ready { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Run 9 §2-1: the birth form's two boxes and the partner permission line (colours come from the theme). */
.birth-consent { margin: var(--s-4) 0 0; }
.permission { font-weight: 600; }
/* Run 9 §2-4: the invite screens and the match score (theme colours only). */
.invite-cta { margin: var(--s-4) 0; }
.invite .card-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.invite .share-out input { width: 100%; }
.inv-score { margin: var(--s-3) 0 0; font-family: var(--font-display); line-height: 1; }
.inv-num { font-size: 4rem; }
.inv-of { font-size: 1.5rem; color: var(--ink-soft); }
.inv-label { margin: var(--s-2) 0 var(--s-3); font-weight: 600; }

/* The ten-year map at the end of a paid reading's first chapter (render.decadeHtml, owner 2026-11-16): since
   2026-11-17 (decade-list) a list of ten lines, one a year, that wraps inside the column and never scrolls sideways
   (WCAG 1.4.10; checked at 320, 375 and 390px by tools/a11y-check.ts). */
.decade { margin: var(--s-5) 0 var(--s-2); }
.decade-l { list-style: none; margin: var(--s-2) 0 0; padding: 0; font-size: var(--t-small); }
.decade-l > li { border-bottom: 1px solid var(--line); padding: 6px 0; min-width: 0; }
.dec-row { display: flex; gap: var(--s-3); align-items: baseline; }
.dec-y { flex: 0 0 auto; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dec-marks { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dec-mark { display: inline-block; max-width: 100%; }
.dec-mark .mk { margin-right: 2px; }
.dec-quiet { margin: var(--s-2) 0 0; }
.decade-l > li.dec-only .dec-per { margin-bottom: 0; }
.decade-l .mk.best { color: var(--dm, var(--ink)); }
.decade-l .mk.watch { color: var(--ink-soft); }
.dec-per { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 2px 0 6px; color: var(--ink-soft); }
.dec-per .chips { flex-direction: row; margin: 0; }
.decade-l > li .dec-per { padding-top: var(--s-1); }
.dec-now { margin: var(--s-2) 0 0; font-size: var(--t-small); }
.decade .legend { margin-top: var(--s-1); }

/* ask-1 (2026-11-24): the question screen before the birth details (one question a screen; the echo line under the
   options is a polite live region) and, on the checkout, the line of what was picked with "Change answers". */
.qscreen-head h1 { margin: 0 0 var(--s-1); }
.qscreen fieldset.qscreen-q { margin: var(--s-4) 0 0; }
.qscreen fieldset.qscreen-q legend { font-weight: 700; margin-bottom: var(--s-2); }
.qscreen fieldset.qscreen-q label { min-height: 48px; font-weight: 500; text-align: center; padding: var(--s-1) var(--s-2); }
.qscreen-echo { min-height: 1.5em; margin: var(--s-3) 0 0; }
.qscreen-nav { display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; }
.qs-sum { margin: 0 0 var(--s-4); }
/* ask-1: the free result's opening from the answers (above the day-pillar picture) and the three locked questions,
   each with its title and first bold line; the rest of each answer is a blurred stand-in (.locked). */
.ask-first { display: grid; gap: var(--s-4); margin: var(--s-3) 0 var(--s-5); }
.ask-answers p { margin: 0 0 var(--s-3); }
.ask-answers .ask-lead { font-weight: 600; }
.ask-locked { border: 1px solid var(--line); border-radius: 10px; padding: var(--s-3) var(--s-4); }
.ask-locked .c-title { margin: 0 0 var(--s-1); }
.ask-qs { list-style: none; padding: 0; margin: var(--s-3) 0; display: grid; gap: var(--s-4); }
.ask-q h3 { margin: 0 0 var(--s-2); }
.ask-q .concl { margin: 0 0 var(--s-2); }
.ask-q .locked { max-height: 7em; margin: 0; }
/* ask-1: the pick screen after payment (checkboxes per area, the other areas folded) and "For you" in the contents */
.qpick-area { border: 0; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.qpick-area legend { font-weight: 700; margin-bottom: var(--s-2); }
.qpick-more { margin: var(--s-4) 0 0; }
.qpick-more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.toc-item .for-you { font-size: var(--t-small); font-weight: 700; color: var(--accent-strong); }
.qs-sum .hint { margin: 0 0 var(--s-1); }

/* pdf-1: "Download as PDF" on the paid reading and the saved reading (a ghost button; its note and status under it) */
.pdf-get { margin: 14px 0 var(--s-4); }
.ready .pdf-get .hint { margin: 6px 0 0; font-size: var(--t-small); }
.pdf-get [data-pdf-status]:empty { display: none; }

/* layout-2 A3: the birth details above the chart chapter of a paid reading (render.birthDetailsHtml) */
.birth-infos { display: grid; gap: var(--s-3); margin: 0 0 var(--s-5); }
.birth-info { border: 1px solid var(--line); border-radius: 10px; padding: var(--s-3) var(--s-4); }
.birth-info .c-title { margin: 0 0 var(--s-2); }
.reading table.bi { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.reading table.bi th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: 4px var(--s-3) 4px 0; width: 40%; vertical-align: top; }
.reading table.bi td { padding: 4px 0; text-align: left; overflow-wrap: anywhere; }

/* layout-2 A5: the "saju words" key under the pillar table (render.ts, reading/termKey.ts): left-aligned, quiet */
.reading table.key { width: 100%; border-collapse: collapse; font-size: var(--t-small); margin: var(--s-3) 0 var(--s-4); }
.reading table.key th, .reading table.key td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line-soft); }
.reading table.key thead th { color: var(--ink-soft); font-weight: 600; border-bottom: 1px solid var(--line); }
.reading table.key tbody th { font-weight: 700; white-space: nowrap; width: 1%; }
@media (max-width: 480px) { .reading table.key tbody th { white-space: normal; width: 30%; } }
.dm-key { margin: var(--s-3) 0 var(--s-4); }
.dm-key table.key { margin: 0; }

/* months-1: a ten-year period's color + animal name under its chips (render.ts luckTableHtml) */
.reading table.luck .pname { display: block; margin-top: 2px; font-size: var(--t-small); font-weight: 400; line-height: 1.2; color: var(--ink-soft); }
/* year-2 (owner, 2026-11-23): on a phone the six ten-year columns sit apart: a narrower row-name column, 3 px inside
   each cell on both sides, and a name longer than its column ("Rooster" at 390 px) breaks inside its own cell (with a
   hyphen where the language allows) instead of running into the next one. */
@media (max-width: 480px) {
  .reading table.luck th { width: 13%; hyphens: manual; overflow-wrap: normal; }
  .reading table.luck td { padding-left: 2px; padding-right: 2px; }
  .reading table.luck .pname { overflow-wrap: anywhere; letter-spacing: -0.035em; }
}

/* months-1: a saju word explained where it first shows (termTips.ts): the word is a quiet text button (dotted
   underline, ink color, no accent), its explanation a small line under the paragraph when opened */
button.term { all: unset; display: inline; cursor: pointer; color: inherit; font: inherit; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button.term:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; border-radius: 2px; }
button.term[aria-expanded="true"] { text-decoration-style: solid; }
.term-def { display: block; margin: var(--s-1, 4px) 0 0; padding: 6px 10px; border-left: 2px solid var(--line); font-size: var(--t-small); line-height: 1.5; color: var(--ink-soft); font-weight: 400; text-align: left; }
.term-def[hidden] { display: none; }
p.term-defs { margin: 0; }

/* months-1: the paid reading's saju-word key, folded under the chart (render.ts foldedKey) */
details.key-fold { margin: var(--s-3, 12px) 0; }
details.key-fold > summary { cursor: pointer; font-size: var(--t-small); font-weight: 600; color: var(--ink-soft); padding: 10px 0; min-height: 24px; }
details.key-fold > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
details.key-fold[open] > summary { margin-bottom: var(--s-2, 8px); }
