/* Master Lee · Free tools · v2
 * Tokens from the live site (SiteLayout, month.css, article.css). Fonts: Playfair Display, Inter, Cinzel,
 * Newsreader, Noto Serif SC, Ma Shan Zheng (brush). One accent family (gold), one seal red.
 */
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(/fonts/reading-room/newsreader-italic-0e959a34.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/reading-room/newsreader-normal-662a6e2a.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #13110d; --night-2: #1b1812; --black: #0b0a08;
  --ivory: #f4ede0; --ivory-dim: rgba(244, 237, 224, .74); --ivory-faint: rgba(244, 237, 224, .46);
  --paper: #f3eee4; --paper-2: #ece5d6; --paper-hi: #faf7f1; --paper-card: #fbf8f2;
  --ink: #1c1915; --text: #2b261f; --muted: #6f6556; --faint: #9b907f;
  --gold: #93743a; --gold-deep: #7a5c28; --gold-soft: #c6a764; --gold-bright: #e8d5a2; --gold-line: rgba(198, 167, 100, .38);
  --red: #a3392b; --seal: #b8372a;
  --rule: rgba(84, 62, 30, .18); --rule-strong: rgba(84, 62, 30, .3);
  --el-wood: #557050; --el-fire: #ad432f; --el-earth: #9b7634; --el-metal: #6d7378; --el-water: #2f4b5c;
  --display: "Playfair Display", Georgia, serif; --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --cinzel: Cinzel, Georgia, serif; --letter: Newsreader, Georgia, serif;
  --cjk: "Noto Serif SC", "Songti SC", serif; --brush: "Ma Shan Zheng", "Kaiti SC", serif;
  --wrap: 1240px; --measure: 660px; --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1); --shadow-warm: 0 40px 80px -48px rgba(52, 34, 8, .55), 0 2px 0 rgba(255, 255, 255, .6) inset;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main.ml-ta-main { display: block; background: var(--paper); color: var(--text); font: 420 18px/1.8 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (max-width: 600px) { main.ml-ta-main { font-size: 17px; line-height: 1.76; } }
:where(main.ml-ta-main) a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .25s; }
:where(main.ml-ta-main) a:hover { color: var(--ink); }
:where(main.ml-ta-main) img { max-width: 100%; height: auto; display: block; }
:where(main.ml-ta-main) :is(h1, h2, h3) { text-wrap: balance; }
:where(main.ml-ta-main) p { text-wrap: pretty; }
:where(main.ml-ta-main) .zh { font-family: var(--cjk); font-weight: 500; }
:where(main.ml-ta-main) .brush { font-family: var(--brush); font-weight: 400; line-height: 1; }
:where(main.ml-ta-main) :focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* ---------- hero: split, asymmetric (clears fixed site Header) ---------- */
.h { position: relative; background: var(--night); color: var(--ivory); overflow: hidden; isolation: isolate; padding-top: var(--site-header-shell-height, 76px); }
.h::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .5; mix-blend-mode: soft-light; pointer-events: none; z-index: -1; }
.h-glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 90%; background: radial-gradient(closest-side, rgba(200, 169, 99, .2), rgba(200, 169, 99, 0) 70%); z-index: -1; }
.h-in { max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(150px, 15vw, 190px); display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.h-crumbs { font: 500 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: clamp(36px, 5vw, 64px); display: flex; gap: .9em; flex-wrap: wrap; }
.h-crumbs a { color: var(--ivory-dim); text-decoration: none; }
.h-crumbs a:hover { color: var(--gold-bright); }
.h-eyebrow { display: flex; align-items: center; gap: 14px; font: 600 12px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 26px; }
.h-eyebrow .zh { letter-spacing: .32em; font-size: 13px; color: var(--gold-bright); opacity: .85; }
.h-rule { width: 44px; height: 1px; background: var(--gold-soft); }
.h h1 { font: 400 clamp(42px, 5.6vw, 76px)/1.02 var(--display); letter-spacing: -.018em; margin: 0 0 30px; color: #f7f1e5; max-width: 13ch; }
.h-lede { font: 300 clamp(18px, 1.5vw, 20.5px)/1.7 var(--sans); color: var(--ivory-dim); max-width: 34em; margin: 0; }
.h-fig { position: relative; margin: 0; justify-self: end; width: min(100%, 440px); }
.h-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8); }
.h-frame::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(232, 213, 162, .35); z-index: 2; pointer-events: none; }
.h-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 17, 13, 0) 55%, rgba(19, 17, 13, .55)); z-index: 1; }
.h-frame img { width: 100%; height: 100%; object-fit: cover; background-size: cover; animation: h-img 2.2s var(--ease) both; }
@keyframes h-img { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.h-seal { position: absolute; left: -26px; bottom: 34px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 12px; background: var(--paper-hi); color: var(--seal); font-size: 38px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); }
.h-seal i { font-style: normal; display: block; }
.h-copy > * { animation: rise 1.1s var(--ease) both; }
.h-copy > *:nth-child(2) { animation-delay: .08s; } .h-copy > *:nth-child(3) { animation-delay: .16s; } .h-copy > *:nth-child(4) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .h-in { grid-template-columns: 1fr; padding-bottom: 130px; }
  .h-fig { order: -1; justify-self: stretch; width: auto; margin: 0 calc(-1 * var(--gutter)); }
  .h-frame { aspect-ratio: 16 / 10; box-shadow: none; }
  .h-frame::before { inset: 10px; }
  .h-frame::after { background: linear-gradient(180deg, rgba(19, 17, 13, 0) 40%, var(--night)); }
  .h-seal { left: auto; right: var(--gutter); bottom: -24px; font-size: 28px; padding: 12px 9px; }
  .h-crumbs { margin-bottom: 26px; }
  .h h1 { max-width: none; }
}

/* ---------- tool card ---------- */
.card { background: var(--paper-card); position: relative; }
.card::before { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.tool { max-width: 980px; margin: -112px auto 0; padding: clamp(30px, 4.6vw, 60px) clamp(22px, 5vw, 68px) clamp(34px, 4.6vw, 58px); box-shadow: var(--shadow-warm); outline: 1px solid rgba(84, 62, 30, .1); z-index: 2; }
@media (max-width: 1020px) { .tool { margin-left: 14px; margin-right: 14px; } }
.tool-orn { display: flex; align-items: center; gap: 14px; margin: -8px auto 26px; max-width: 260px; }
.tool-orn span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.tool-orn i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold-soft); }
.tool-form { display: grid; gap: 26px; position: relative; }
:where(main.ml-ta-main) fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
:where(main.ml-ta-main) legend { font: 400 clamp(23px, 2.2vw, 28px)/1.25 var(--display); color: var(--ink); margin: 0 0 18px; padding: 0; letter-spacing: -.005em; }
.f-row { display: grid; grid-template-columns: 1.6fr .8fr 1fr; gap: 14px 18px; }
.f-birth.is-compact .f-row { grid-template-columns: 1fr 1fr; }
.f-birth.is-compact .f-month { grid-column: 1 / -1; }
.f-field { display: grid; gap: 7px; min-width: 0; }
.f-field > span { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.f-field select, .f-field input { appearance: none; -webkit-appearance: none; width: 100%; height: 54px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; background: rgba(255, 253, 249, .78); color: var(--ink); font: 400 17.5px/1 var(--sans); font-variant-numeric: tabular-nums; transition: border-color .3s, background .3s, box-shadow .3s; box-shadow: inset 0 0 0 1px rgba(84, 62, 30, .08); }
.f-field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 21px) 24px, calc(100% - 16px) 24px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.f-field select:hover, .f-field input:hover { background-color: #fff; }
.f-field select:focus, .f-field input:focus { outline: none; border-bottom-color: var(--gold); background-color: #fff; box-shadow: inset 0 0 0 1px rgba(198, 167, 100, .45), 0 10px 24px -18px rgba(122, 92, 40, .6); }
.f-field input::placeholder { color: #b9ad99; }
.f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 52px; }
.f-two .f-birth + .f-birth { position: relative; }
.f-two .f-birth + .f-birth::before { content: '&'; position: absolute; left: -38px; top: 2px; font: 400 italic 30px/1 var(--display); color: var(--gold-soft); }
@media (max-width: 760px) { .f-row { grid-template-columns: 1fr 1fr; } .f-month { grid-column: 1 / -1; } .f-two { grid-template-columns: 1fr; } .f-two .f-birth + .f-birth::before { display: none; } }
.f-radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .f-radio-group { grid-template-columns: 1fr; } }
.f-radio { position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 50px; cursor: pointer; background: rgba(255, 253, 249, .78); box-shadow: inset 0 0 0 1px rgba(84, 62, 30, .12); transition: box-shadow .3s, background .3s; }
.f-radio input { position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; margin: 0; accent-color: var(--gold-deep); }
.f-radio b { font: 400 18px/1.3 var(--display); color: var(--ink); }
.f-radio em { font: 400 13.5px/1.4 var(--sans); font-style: normal; color: var(--faint); }
.f-radio:hover { background: #fff; }
.f-radio:has(input:checked) { box-shadow: inset 0 0 0 1px var(--gold), 0 12px 26px -20px rgba(122, 92, 40, .7); background: #fffdf8; }
.f-hint { font: 400 italic 17px/1.5 var(--letter); color: var(--muted); margin: -6px 0 16px; }
.f-more { border-top: 1px solid var(--rule); padding-top: 18px; }
.f-more summary { cursor: pointer; font: 500 15px/1.5 var(--sans); color: var(--muted); list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.f-more summary::-webkit-details-marker { display: none; }
.f-more summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--gold-line); border-radius: 50%; color: var(--gold); font: 500 14px/1 var(--sans); transition: transform .4s var(--ease); }
.f-more[open] summary::before { transform: rotate(45deg); }
.f-more summary em { font-style: normal; color: var(--faint); font-size: 14px; }
.f-more .f-row { grid-template-columns: 1fr 2fr; margin-top: 18px; }
@media (max-width: 600px) { .f-more .f-row { grid-template-columns: 1fr; } }
.f-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-top: 4px; }
.f-error { margin: 0; color: var(--red); font-size: 15px; }

/* buttons: ink with a gold wipe on hover */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 34px; border: 0; border-radius: 0; background: var(--ink); color: #f5efe3; font: 400 18px/1.25 var(--display); letter-spacing: .01em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), transform .2s; text-align: center; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); z-index: -1; }
.btn::after { content: '→'; font-family: var(--sans); font-size: 16px; transition: transform .45s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleX(1); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--ivory); color: var(--ink); font: 500 12.5px/1.3 var(--cinzel); letter-spacing: .16em; text-transform: uppercase; min-height: 54px; }
.btn-light::before { background: var(--gold-soft); }
.f-actions .btn { min-width: 240px; }

/* ---------- results ---------- */
.result { position: relative; margin-top: 44px; padding-top: 48px; }
.result::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-line) 20%, var(--gold-line) 80%, transparent); }
.result > * { animation: rise .9s var(--ease) both; }
.result > *:nth-child(2) { animation-delay: .12s; } .result > *:nth-child(3) { animation-delay: .22s; } .result > *:nth-child(4) { animation-delay: .32s; } .result > *:nth-child(5) { animation-delay: .42s; } .result > *:nth-child(n+6) { animation-delay: .5s; }
.r-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; margin-bottom: 34px; }
.r-glyph { position: relative; width: clamp(128px, 15vw, 172px); aspect-ratio: 1; display: grid; place-items: center; }
.r-glyph::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(184, 55, 42, .1), rgba(184, 55, 42, 0) 68%); }
.r-glyph::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid var(--gold-line); }
.r-glyph .brush { position: relative; font-size: clamp(92px, 11vw, 128px); color: var(--seal); animation: ink 1.6s var(--ease) both; }
@keyframes ink { 0% { opacity: 0; filter: blur(14px); transform: scale(.86); } 60% { opacity: 1; filter: blur(1px); } 100% { filter: none; transform: none; } }
.r-eyebrow { font: 600 11.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; display: flex; gap: 12px; align-items: center; }
.r-eyebrow .zh { letter-spacing: .3em; }
.r-name { font: 400 clamp(44px, 5.4vw, 66px)/1 var(--display); color: var(--ink); margin: 0 0 12px; letter-spacing: -.015em; }
.r-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font: 500 13px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.r-sub .zh { font-size: 19px; letter-spacing: .2em; color: var(--red); text-transform: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; background: rgba(255, 253, 249, .9); box-shadow: inset 0 0 0 1px var(--rule); font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--gold)); }
.r-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(26px, 4vw, 54px); margin: 6px 0 8px; }
@media (max-width: 760px) { .r-cols { grid-template-columns: 1fr; gap: 22px; } .r-head { grid-template-columns: 1fr; justify-items: start; } }
.r-block h3 { font: 500 22px/1.32 var(--display); color: var(--ink); margin: 0 0 10px; }
.r-block p { margin: 0 0 14px; }
.r-quote { margin: 18px 0 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--gold-soft); }
.r-quote span { display: block; font: 600 10.5px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.r-quote p { margin: 4px 0 0; font: 400 italic 20px/1.55 var(--letter); color: var(--ink); }
.swatches { display: flex; gap: 10px; margin: 12px 0 6px; flex-wrap: wrap; }
.swatch { display: grid; gap: 6px; justify-items: center; font: 500 11.5px/1.2 var(--sans); color: var(--muted); }
.swatch i { width: 44px; height: 44px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 8px 18px -10px var(--c); }
.r-notice { position: relative; margin: 34px 0 8px; padding: 26px 30px 24px 74px; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(84, 62, 30, .08); }
.r-notice::before { content: '!'; content: attr(data-mark); position: absolute; left: 22px; top: 24px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--seal); color: var(--paper-hi); font: 400 21px/1 var(--brush); }
.r-notice h3 { font: 400 22px/1.3 var(--display); color: var(--ink); margin: 0 0 8px; }
.r-notice p { margin: 0 0 10px; }
.r-notice p:last-child { margin-bottom: 0; }
.r-notice strong { color: var(--red); font-weight: 600; }
.r-cta { position: relative; margin-top: 36px; padding: 30px 34px; background: var(--night); color: var(--ivory); display: grid; grid-template-columns: 1fr auto; gap: 18px 34px; align-items: center; overflow: hidden; }
.r-cta::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .45; mix-blend-mode: soft-light; pointer-events: none; }
.r-cta p { margin: 0; font: 400 italic 20px/1.5 var(--letter); color: rgba(244, 237, 224, .9); }
.r-cta .btn { background: var(--ivory); color: var(--ink); }
.r-cta .btn:hover { color: var(--ink); }
.r-more { grid-column: 1 / -1; display: flex; gap: 22px; flex-wrap: wrap; font: 400 14.5px/1.5 var(--sans) !important; }
.r-more a { color: var(--gold-bright); }
.r-more a:hover { color: var(--ivory); }
@media (max-width: 760px) { .r-cta { grid-template-columns: 1fr; } }
.r-small { font-size: 15px; color: var(--muted); }

/* compatibility pair */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 34px; text-align: center; }
.pair-side { display: grid; justify-items: center; gap: 6px; }
.pair-side .brush { font-size: clamp(70px, 9vw, 104px); color: var(--seal); animation: ink 1.6s var(--ease) both; }
.pair-side:last-child .brush { animation-delay: .25s; }
.pair-side strong { font: 400 26px/1.15 var(--display); color: var(--ink); font-weight: 400; }
.pair-side em { font: 600 10.5px/1.6 var(--sans); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.pair-join { width: clamp(60px, 10vw, 120px); display: grid; justify-items: center; gap: 8px; }
.pair-join span { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.pair-join b { font: 400 13px/1 var(--cjk); color: var(--paper-hi); background: var(--seal); padding: 7px 8px; letter-spacing: .1em; font-weight: 500; }
.r-center { text-align: center; max-width: 720px; margin: 0 auto 6px; }
.r-center .r-eyebrow { justify-content: center; }

/* kua */
.kua { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: 34px; }
@media (max-width: 760px) { .kua { grid-template-columns: 1fr; justify-items: center; } }
.compass { width: 100%; max-width: 340px; filter: drop-shadow(0 30px 40px rgba(52, 34, 8, .25)); }
.c-face { fill: var(--paper-hi); stroke: var(--rule-strong); }
.c-tick { stroke: var(--rule-strong); stroke-width: 1; }
.c-tick.is-major { stroke: var(--gold); stroke-width: 1.4; }
.c-seg { fill: rgba(84, 62, 30, .035); stroke: var(--paper-hi); stroke-width: 3; transition: fill .5s; }
.c-seg.is-good { fill: rgba(198, 167, 100, .3); }
.c-seg.c-growth { fill: url(#gold-g); }
.c-lab { font: 600 12px var(--sans); letter-spacing: .08em; fill: var(--faint); text-anchor: middle; }
.c-lab.is-good { fill: var(--ink); }
.c-zh { font: 400 15px var(--brush); fill: var(--faint); text-anchor: middle; }
.c-zh.is-good { fill: var(--seal); }
.c-core { fill: var(--night); }
.c-core-ring { fill: none; stroke: var(--gold-line); }
.c-num { font: 400 60px var(--display); fill: var(--gold-bright); text-anchor: middle; }
.c-numl { font: 500 10px var(--cinzel); letter-spacing: .32em; fill: rgba(244, 237, 224, .55); text-anchor: middle; }
.dirs { list-style: none; padding: 0; margin: 0; display: grid; }
.dirs li { display: grid; grid-template-columns: 128px 1fr; column-gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.dirs li:first-child { padding-top: 0; }
.dirs li:last-child { border-bottom: 0; }
.d-dir { grid-row: span 2; font: 400 23px/1.25 var(--display); color: var(--ink); }
.d-name { font: 600 10.5px/1.7 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.d-name .zh { color: var(--red); letter-spacing: .15em; margin-left: 4px; }
.d-use { font-size: 16px; line-height: 1.6; }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); margin: clamp(80px, 10vw, 128px) auto 0; padding: 0 var(--gutter); box-sizing: content-box; }
.sec { position: relative; margin-bottom: clamp(56px, 7vw, 84px); }
.sec-num { position: absolute; left: -84px; top: -2px; font-size: 40px; color: var(--seal); opacity: .85; }
@media (max-width: 1000px) { .sec-num { position: static; display: block; font-size: 30px; margin-bottom: 8px; } }
.prose h2, .faq h2, .more-head h2 { font: 400 clamp(27px, 2.7vw, 36px)/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); margin: 0 0 20px; }
.prose p { margin: 0 0 1.15em; }
.prose strong { font-weight: 600; color: var(--ink); }
.note-small { font-size: 15px; color: var(--muted); }
.sec.is-wide .tbl-wrap { margin-inline: calc(-1 * max(0px, min(260px, (100vw - var(--measure)) / 2 - 24px))); }
.tbl-wrap { overflow-x: auto; margin: 26px 0 16px; background: rgba(255, 253, 249, .55); box-shadow: inset 0 0 0 1px rgba(84, 62, 30, .1); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.tbl th { font: 600 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 16px 16px 12px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; background: var(--paper-hi); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(198, 167, 100, .1); }
.tbl .zh { color: var(--red); margin-right: .4em; }
.tbl-tall { max-height: 560px; overflow-y: auto; }
.tbl-tall thead th { position: sticky; top: 0; z-index: 1; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; }
.tbl .y { font: 400 18px var(--display); color: var(--ink); }
.grid12 { font-size: 12.5px; text-align: center; }
.grid12 th, .grid12 td { padding: 10px 4px; text-align: center; white-space: nowrap; border: 1px solid rgba(243, 238, 228, .9); }
.grid12 thead th, .grid12 tbody th { font-size: 10px; letter-spacing: .1em; background: var(--paper-hi); }
.grid12 th .brush { display: block; font-size: 22px; color: var(--seal); margin-bottom: 3px; letter-spacing: 0; }
.g-secretFriends { background: rgba(198, 167, 100, .5); color: var(--ink); font-weight: 600; }
.g-sameCurrent { background: rgba(198, 167, 100, .26); }
.g-mirror { background: rgba(84, 62, 30, .1); }
.g-openGround { background: rgba(255, 253, 249, .8); color: var(--faint); }
.g-quietFriction { background: rgba(47, 75, 92, .1); }
.g-oppositeEnds { background: rgba(163, 57, 43, .12); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.legend i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 7px; box-shadow: inset 0 0 0 1px rgba(84, 62, 30, .15); }

.note { position: relative; max-width: 760px; margin: clamp(20px, 4vw, 40px) auto clamp(72px, 9vw, 110px); padding: clamp(34px, 5vw, 56px) clamp(26px, 6vw, 72px); background: var(--paper-card); box-shadow: var(--shadow-warm), inset 0 0 0 1px rgba(84, 62, 30, .08); text-align: center; }
.note::before, .note::after { content: ''; position: absolute; width: 26px; height: 26px; border-color: var(--gold-soft); border-style: solid; }
.note::before { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.note::after { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.note-label { font: 600 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 20px; }
.note blockquote { margin: 0; }
.note blockquote p { font: 400 clamp(20px, 2vw, 24px)/1.65 var(--letter); color: var(--ink); margin: 0; }
.note-sig { display: inline-flex; align-items: center; gap: 12px; margin: 26px 0 0; font: 500 12px/1 var(--cinzel); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.note-sig .brush { display: grid; place-items: center; width: 34px; height: 34px; background: var(--seal); color: var(--paper-hi); font-size: 22px; }

/* FAQ, two columns */
.faq { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.faq dl { margin: 26px 0 0; border-top: 1px solid var(--rule-strong); }
.faq-i { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px clamp(24px, 5vw, 64px); padding: 26px 0; border-bottom: 1px solid var(--rule); }
.faq dt { font: 400 21px/1.4 var(--display); color: var(--ink); }
.faq dd { margin: 0; color: var(--text); font-size: 17px; line-height: 1.7; }
@media (max-width: 760px) { .faq-i { grid-template-columns: 1fr; } }

/* closing band */
.band { position: relative; margin: clamp(80px, 10vw, 120px) 0 0; min-height: 440px; display: grid; place-items: center; overflow: hidden; background: var(--night); isolation: isolate; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; z-index: -2; }
.band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(19, 17, 13, .35), rgba(19, 17, 13, .88) 75%); z-index: -1; }
.band-in { text-align: center; max-width: 720px; padding: 72px var(--gutter); color: var(--ivory); }
.band-mark { display: block; font-size: 54px; color: var(--gold-soft); margin-bottom: 18px; opacity: .9; }
.band p { font: 400 italic clamp(22px, 2.4vw, 30px)/1.5 var(--letter); margin: 0 0 32px; color: #f7f1e5; }

/* more tools */
.more { max-width: var(--wrap); margin: clamp(72px, 9vw, 110px) auto clamp(80px, 10vw, 120px); padding: 0 var(--gutter); }
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.more-head h2 { margin: 0; }
.more-head a { font: 500 12px/1 var(--cinzel); letter-spacing: .16em; text-transform: uppercase; }
.more-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.more-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; color: var(--ivory); text-decoration: none; background: var(--night); }
.more-card img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform 1.2s var(--ease), opacity .6s; }
.more-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 17, 13, 0) 35%, rgba(19, 17, 13, .92)); }
.more-zh { position: absolute; top: 16px; left: 16px; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper-hi); color: var(--seal); font-size: 26px; }
.more-name { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; font: 400 21px/1.25 var(--display); }
.more-card:hover { color: var(--ivory); }
.more-card:hover img { transform: scale(1.05); opacity: .95; }

/* ---------- hub ---------- */
.hub { max-width: var(--wrap); margin: -112px auto 0; padding: 0 var(--gutter); position: relative; z-index: 2; }
.hub-group { margin-bottom: clamp(64px, 8vw, 96px); }
.hub-gh { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font: 600 11.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.hub-gh .brush { width: 40px; height: 40px; display: grid; place-items: center; background: var(--seal); color: var(--paper-hi); font-size: 24px; letter-spacing: 0; }
.hub-gh::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.hub-group:first-child .hub-gh { color: var(--gold-bright); }
.hub-group:first-child .hub-gh::after { background: rgba(198, 167, 100, .25); }
.hub-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.hub-row.is-single { grid-template-columns: 1fr; }
.hub-row.is-three { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 900px) { .hub-row, .hub-row.is-three { grid-template-columns: 1fr; } }
.hub-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--paper-card); color: var(--text); text-decoration: none; box-shadow: var(--shadow-warm), inset 0 0 0 1px rgba(84, 62, 30, .08); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.hub-card:hover { transform: translateY(-6px); color: var(--text); box-shadow: 0 50px 90px -48px rgba(52, 34, 8, .7), inset 0 0 0 1px var(--gold-line); }
.hub-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.hub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hub-card:hover .hub-img img { transform: scale(1.05); }
.hub-row.is-single .hub-card { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto; }
.hub-row.is-single .hub-img { aspect-ratio: auto; min-height: 340px; }
@media (max-width: 900px) { .hub-row.is-single .hub-card { grid-template-columns: 1fr; } .hub-row.is-single .hub-img { min-height: 0; aspect-ratio: 16 / 9; } }
.hub-body { padding: 28px 30px 30px; display: flex; flex-direction: column; }
.hub-zh { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper-hi); color: var(--seal); font-size: 28px; z-index: 1; }
.hub-card h3 { font: 400 27px/1.2 var(--display); color: var(--ink); margin: 0 0 10px; }
.hub-card p { font-size: 16px; line-height: 1.65; margin: 0 0 22px; flex: 1; }
.hub-go { font: 500 12px/1 var(--cinzel); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.hub-go::after { content: ' →'; font-family: var(--sans); }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { main.ml-ta-main *, main.ml-ta-main *::before, main.ml-ta-main *::after { animation: none !important; transition: none !important; } [data-reveal] { opacity: 1; transform: none; } }

/* ===== coordinator overrides (v2.1) ===== */
.h h1 { max-width: 15ch; }
.r-cta .btn { white-space: nowrap; }
@media (max-width: 760px) { .r-cta .btn { white-space: normal; } }
/* ===== end coordinator overrides ===== */

/* ===== tool: lunar-birthday-calculator ===== */
.r-glyph.lb-glyph .brush.lb-v { font-size: clamp(34px, 3.8vw, 44px); line-height: 1.08; writing-mode: horizontal-tb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; letter-spacing: .08em; }
.lb-v i { font-style: normal; display: block; white-space: nowrap; }
.lb-v i + i { margin-block-start: 0; }
.r-name.lb-name { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.06; }
.lb-list { list-style: none; padding: 0; margin: 8px 0 24px; border-top: 1px solid var(--rule-strong); counter-reset: none; }
.lb-list li { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: baseline; column-gap: 14px; padding: 11px 6px; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.lb-list li.is-today { background: rgba(198, 167, 100, .14); }
.lb-y { font: 400 19px/1.2 var(--display); color: var(--ink); }
.lb-d { color: var(--text); }
.lb-tag { font: 600 10px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.btn.lb-ics { min-height: 50px; padding: 0 26px; font-size: 16.5px; }
.lb-none { color: var(--faint); }
@media (max-width: 560px) {
  .lb-list li { grid-template-columns: 52px minmax(0, 1fr); }
  .lb-tag { grid-column: 2; margin-top: 2px; }
  .btn.lb-ics { width: 100%; padding: 0 18px; }
}
/* ===== end lunar-birthday-calculator ===== */

/* ===== tool: day-master-calculator ===== */
.dm-image { font: 400 italic 22px/1.35 var(--letter); color: var(--gold-deep); margin: -6px 0 12px; }
.dm-chart { margin: 38px 0 28px; padding: 30px clamp(18px, 3.6vw, 38px); background: rgba(255, 253, 249, .68); box-shadow: inset 0 0 0 1px rgba(84, 62, 30, .12); }
.dm-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 22px; }
.dm-chart-head h3 { font: 400 24px/1.25 var(--display); color: var(--ink); margin: 0; }
.dm-chart-head p { font-size: 14.5px; color: var(--muted); margin: 0; }
.dm-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .dm-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dm-col { position: relative; background: var(--paper-hi); padding: 18px 14px 16px; text-align: center; box-shadow: inset 0 0 0 1px var(--rule); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dm-col.is-day { background: #fffdf8; box-shadow: inset 0 0 0 1.5px var(--gold), 0 18px 36px -26px rgba(122, 92, 40, .6); }
.dm-lab { font: 600 10.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.dm-lab .zh { letter-spacing: .12em; color: var(--faint); }
.dm-tag { font: 600 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 4px 8px; background: var(--seal); color: var(--paper-hi); }
.dm-tag.is-spacer { background: transparent; color: transparent; padding: 4px 0; }
.dm-ch { width: 100%; padding: 10px 6px; border-top: 1px solid var(--rule); display: grid; justify-items: center; gap: 4px; }
.dm-ch .brush { font-size: clamp(44px, 5vw, 56px); color: var(--ink); line-height: 1.05; }
.dm-col.is-day .dm-ch:first-of-type .brush { color: var(--seal); }
.dm-el { font: 500 11.5px/1.3 var(--sans); font-style: normal; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.dm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.dm-gz { font-size: 14px; color: var(--faint); margin: 2px 0 0; letter-spacing: .2em; }
.dm-col.is-empty, .dm-col.is-open { background: rgba(243, 238, 228, .55); justify-content: space-between; }
.dm-ghost { flex: 1; display: grid; place-items: center; padding: 18px 0; }
.dm-ghost .brush { font-size: 56px; color: rgba(84, 62, 30, .18); }
.dm-add { border: 1px solid var(--gold-line); background: #fffdf9; color: var(--gold-deep); font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 10px 12px; cursor: pointer; width: 100%; transition: background .25s, border-color .25s; }
.dm-add:hover { background: #fbf6ea; border-color: var(--gold); color: var(--ink); }
.dm-two { flex: 1; display: grid; place-items: center; gap: 4px; padding: 16px 0; }
.dm-two .zh { font-size: 24px; color: var(--ink); letter-spacing: .16em; }
.dm-two em { font: 400 italic 14px var(--letter); color: var(--muted); }
.dm-wait { font-size: 12.5px; color: var(--muted); margin: 0; }
.dm-bal { margin: 24px 0 12px; }
.dm-bal h3 { font: 400 21px/1.3 var(--display); color: var(--ink); margin: 0 0 14px; }
.dm-bal-row { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .dm-bal-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dm-bal-i { background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--rule); padding: 12px 10px; display: grid; justify-items: center; gap: 3px; border-top: 3px solid var(--c); }
.dm-bal-zh { font-size: 18px; color: var(--ink); }
.dm-bal-n { font: 400 24px/1.1 var(--display); color: var(--ink); }
.dm-bal-name { font: 600 10px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dm-bal-dots { display: flex; gap: 4px; min-height: 8px; margin-top: 3px; }
.dm-bal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.dm-tstem { font-size: 28px; color: var(--seal); }
.dm-tname { font: 500 16px var(--display); color: var(--ink); white-space: nowrap; }
/* ===== end day-master-calculator ===== */

/* ===== tool: feng-shui-2027 ===== */
.fs-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 28px; }
.fs-title { font: 400 clamp(28px, 3.2vw, 38px)/1.12 var(--display); color: var(--ink); margin: 4px 0 6px; }
.fs-valid { font-size: 15px; color: var(--muted); margin: 0; }
.fs-toggle { display: inline-flex; background: var(--paper-2); padding: 4px; box-shadow: inset 0 0 0 1px var(--rule); }
.fs-toggle button { border: 0; background: transparent; padding: 9px 16px; font: 600 11px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: background .25s, color .25s; }
.fs-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.fs-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(26px, 4vw, 48px); align-items: start; }
@media (max-width: 820px) { .fs-stage { grid-template-columns: 1fr; } }
.fs-dial { position: relative; padding: 30px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.fs-edge { position: absolute; font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fs-edge .zh { margin-left: 4px; color: var(--red); font-weight: 500; }
.fs-e-t { top: 9px; left: 50%; transform: translateX(-50%); }
.fs-e-b { bottom: 9px; left: 50%; transform: translateX(-50%); }
.fs-e-l { left: 8px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
.fs-e-r { right: 8px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
.fs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; transition: transform .65s var(--ease); }
.fs-dial.is-south .fs-grid { transform: rotate(180deg); }
.fs-dial.is-south .fs-cin { transform: rotate(-180deg); }
.fs-dial.is-south .fs-e-t span, .fs-dial.is-south .fs-e-b span { display: inline-block; }
.fs-cell { appearance: none; border: 0; padding: 16px 10px 14px; min-height: 122px; cursor: pointer; background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--rule); text-align: center; transition: transform .25s, box-shadow .25s, background .25s; position: relative; }
.fs-cin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: transform .65s var(--ease); }
.fs-cell.is-center { background: linear-gradient(160deg, #fbf4e4, #f5e8cc); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.fs-cell.is-bright { background: #fffdf8; box-shadow: inset 0 0 0 1px rgba(198, 167, 100, .42); }
.fs-cell.is-calm { background: rgba(236, 229, 214, .72); }
.fs-cell:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--gold), 0 14px 26px -18px rgba(52, 34, 8, .5); }
.fs-cell.is-on { box-shadow: inset 0 0 0 2px var(--seal), 0 18px 32px -18px rgba(52, 34, 8, .55); background: #fffdf9; }
.fs-dir { font: 600 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fs-dir .zh { margin-left: 4px; color: var(--red); letter-spacing: 0; }
.fs-num { font: 400 clamp(30px, 3.6vw, 40px)/1.05 var(--display); color: var(--ink); }
.fs-cell.is-center .fs-num { color: var(--seal); }
.fs-name { font: 500 12.5px/1.25 var(--sans); color: var(--text); }
.fs-tags { display: flex; gap: 4px; margin-top: 2px; }
.fs-tag { font: 500 10px/1 var(--cjk); font-style: normal; padding: 3px 5px; background: var(--night); color: var(--gold-bright); }
.fs-cap { font-size: 13.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.fs-side { display: grid; gap: 22px; }
.fs-chooser legend { font-size: 21px; margin-bottom: 8px; }
.fs-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.fs-pick { position: relative; display: grid; place-items: center; padding: 11px 8px; background: #fffdf9; box-shadow: inset 0 0 0 1px var(--rule-strong); cursor: pointer; font: 500 13.5px/1.2 var(--sans); color: var(--ink); text-align: center; }
.fs-pick input { position: absolute; opacity: 0; pointer-events: none; }
.fs-pick:has(input:checked) { background: var(--ink); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--ink); }
.fs-key { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; font-size: 14px; color: var(--muted); }
.fs-key li { display: flex; align-items: center; gap: 10px; }
.fs-key i { width: 16px; height: 16px; flex: none; display: inline-grid; place-items: center; }
.fs-k-bright { background: #fffdf8; box-shadow: inset 0 0 0 1.5px var(--gold-soft); }
.fs-k-plain { background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.fs-k-calm { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.fs-k-tag { background: var(--night); color: var(--gold-bright); font: 500 10px/1 var(--cjk); font-style: normal; }
.fs-kua { font-size: 14.5px; color: var(--muted); margin: 0; }
.fs-empty { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; color: var(--muted); font: 400 italic 19px/1.5 var(--letter); margin: 0; padding: 8px 0; }
.fs-empty .brush { font-style: normal; font-size: 32px; color: var(--seal); }
.fs-yours { margin: 0 0 26px; }
.fs-tnote { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .fs-dial { padding: 24px 18px; } .fs-cell { min-height: 102px; padding: 12px 6px; } .fs-name { font-size: 11.5px; } }
/* ===== end feng-shui-2027 ===== */

/* ===== tool: solar-terms-calendar ===== */
.st-now { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: clamp(26px, 4.5vw, 54px); align-items: center; }
@media (max-width: 860px) { .st-now { grid-template-columns: 1fr; justify-items: center; } }
.st-fig { margin: 0; width: 100%; max-width: 420px; }
.st-wheel { width: 100%; height: auto; display: block; filter: drop-shadow(0 28px 44px rgba(35, 22, 5, .28)); }
.st-face { fill: var(--night); stroke: rgba(198, 167, 100, .28); stroke-width: 1.2; }
.st-ring { fill: none; stroke: rgba(244, 237, 224, .14); stroke-width: 1; }
.st-band { fill: var(--sc); opacity: .26; }
.st-orbit { fill: none; stroke: rgba(232, 213, 162, .32); stroke-dasharray: 2 4; }
.st-spoke { stroke: rgba(244, 237, 224, .16); stroke-width: 1; }
.st-spoke.is-jie { stroke: rgba(232, 213, 162, .42); stroke-width: 1.3; }
.st-axis { stroke: rgba(244, 237, 224, .08); }
.st-szh { font: 400 22px var(--brush); fill: rgba(244, 237, 224, .42); text-anchor: middle; }
.st-node { cursor: pointer; }
.st-halo { fill: transparent; transition: fill .25s; }
.st-node:hover .st-halo { fill: rgba(232, 213, 162, .18); }
.st-dot { fill: rgba(244, 237, 224, .62); transition: fill .25s, r .25s; }
.st-node.is-jie .st-dot { fill: var(--gold-soft); }
.st-node.is-next .st-dot { fill: var(--seal); stroke: var(--gold-bright); stroke-width: 2; }
.st-node.is-next .st-halo { fill: rgba(184, 55, 42, .28); }
.st-lab { font: 400 11px var(--cjk); fill: rgba(244, 237, 224, .72); text-anchor: middle; transition: fill .2s; }
.st-node.is-next .st-lab, .st-node:hover .st-lab { fill: var(--gold-bright); font-weight: 600; }
.st-hand { stroke: var(--gold-bright); stroke-width: 1.6; stroke-dasharray: 3 3; }
.st-sun-core { fill: #f9e6b3; stroke: var(--gold-soft); stroke-width: 1.5; }
.st-core { fill: #0d0b08; }
.st-core-ring { fill: none; stroke: rgba(198, 167, 100, .35); }
.st-core-l { font: 600 9.5px var(--cinzel); letter-spacing: .28em; fill: rgba(244, 237, 224, .52); text-anchor: middle; }
.st-core-zh { font: 400 38px var(--brush); fill: var(--gold-bright); text-anchor: middle; }
.st-core-d { font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; fill: rgba(244, 237, 224, .75); text-anchor: middle; }
.st-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.st-k-sun { background: #f3dc9c; box-shadow: 0 0 0 2px var(--gold); }
.st-k-jie { background: var(--gold-soft); }
.st-k-mid { background: var(--faint); }
.st-next { width: 100%; }
.st-nhead { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.st-nseal { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: var(--seal); color: var(--paper-hi); font-size: 28px; writing-mode: vertical-rl; letter-spacing: .06em; }
.st-nname { font: 400 clamp(32px, 3.8vw, 46px)/1.08 var(--display); color: var(--ink); margin: 0 0 6px; }
.st-when { font-size: 16.5px; color: var(--text); margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.st-cd { display: inline-grid; grid-template-columns: repeat(3, minmax(74px, auto)); gap: 10px; margin-bottom: 18px; }
.st-cd > div { background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--rule-strong); padding: 10px 14px; text-align: center; }
.st-cd b { display: block; font: 400 26px/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.st-cd span { font: 600 9.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.st-nat { margin: 0 0 12px; }
.st-cur { font-size: 14.5px; color: var(--muted); margin: 16px 0 0; }
.st-bar { margin: 38px 0 28px; padding: 20px 22px; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(84, 62, 30, .1); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 22px; align-items: end; }
@media (max-width: 820px) { .st-bar { grid-template-columns: 1fr; } .st-ics { width: 100%; } }
.st-mini { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.st-ypills { display: inline-flex; background: var(--paper-hi); padding: 4px; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.st-ypill { cursor: pointer; position: relative; }
.st-ypill input { position: absolute; opacity: 0; pointer-events: none; }
.st-ypill span { display: block; padding: 10px 18px; font: 500 15px/1 var(--display); color: var(--muted); transition: background .2s, color .2s; }
.st-ypill:has(input:checked) span { background: var(--ink); color: var(--ivory); }
.st-ics { min-height: 54px; padding: 0 24px; font-size: 16.5px; }
.st-listhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; margin-bottom: 18px; }
.st-h { font: 400 clamp(24px, 2.5vw, 30px)/1.2 var(--display); color: var(--ink); margin: 0; }
.st-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .st-list { grid-template-columns: 1fr; } }
.st-card { background: var(--paper-hi); padding: 20px 22px 18px; box-shadow: inset 0 0 0 1px var(--rule); border-left: 3px solid var(--sc); transition: box-shadow .3s, background .3s; }
.st-card.is-past { opacity: .78; }
.st-card.is-next, .st-card.is-focus { opacity: 1; background: #fffdf8; box-shadow: inset 0 0 0 1.5px var(--gold), 0 16px 32px -24px rgba(52, 34, 8, .55); }
.st-ctop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.st-czh { font-size: 30px; color: var(--seal); line-height: 1; min-width: 42px; }
.st-ctitle h3 { font: 400 20px/1.25 var(--display); color: var(--ink); margin: 0 0 3px; }
.st-pill { font: 600 9.5px/1 var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; background: var(--seal); color: var(--paper-hi); padding: 3px 7px; vertical-align: 2px; margin-left: 6px; }
.st-cdate { font: 500 13.5px/1.4 var(--sans); color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.st-mbadge, .st-sbadge { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; white-space: nowrap; }
.st-mbadge { background: rgba(198, 167, 100, .24); color: var(--ink); }
.st-mbadge .zh { color: var(--seal); margin-right: 4px; font-size: 12px; }
.st-sbadge { color: var(--faint); box-shadow: inset 0 0 0 1px var(--rule); }
.st-cnat { font-size: 15px; line-height: 1.6; margin: 0 0 8px; color: var(--text); }
.st-clive { font-size: 14.5px; line-height: 1.55; margin: 0; color: var(--muted); }
.st-clive span { font-weight: 600; color: var(--gold-deep); text-transform: uppercase; font-size: 10.5px; letter-spacing: .14em; margin-right: 4px; }
.st-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.st-jie td:first-child { font-weight: 500; color: var(--ink); }
.st-tmark { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--seal); color: var(--paper-hi); font-size: 14px; margin-right: 7px; vertical-align: -2px; }
.st-h3 { font: 400 24px/1.25 var(--display); color: var(--ink); margin: 40px 0 12px; }
/* ===== end solar-terms-calendar ===== */

/* =====================================================================
   v3 · Typography, rhythm and readability refinement (2026-11-18)
   One serif voice for reading (Newsreader), Playfair for display, Inter only for UI.
   One dark band per page, quieter labels, a single spacing scale.
   ===================================================================== */
:root {
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --read: "Newsreader", Georgia, "Times New Roman", serif;
  --measure: 640px;
  --ink-soft: #3a332a;
}
main.ml-ta-main ::selection { background: rgba(198, 167, 100, .32); color: var(--ink); }

/* ---- hero ---- */
.h-in { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(150px, 14vw, 184px); gap: clamp(40px, 7vw, 112px); }
.h-crumbs { font-size: 11px; letter-spacing: .18em; margin-bottom: clamp(40px, 5vw, 60px); }
.h-eyebrow { font-size: 11.5px; letter-spacing: .26em; margin-bottom: 28px; }
.h h1 { font-size: clamp(40px, 4.7vw, 70px); line-height: 1.04; letter-spacing: -.02em; max-width: 17ch; margin-bottom: 32px; text-wrap: balance; }
.h-lede { font: 400 clamp(18px, 1.45vw, 20px)/1.72 var(--read); color: rgba(244, 237, 224, .78); max-width: 31em; }
.h-fig { width: min(100%, 420px); }
.h-seal { font-size: 34px; padding: 15px 11px; }
@media (max-width: 860px) {
  .h-in { padding-top: 0; gap: 34px; }
  .h h1 { font-size: clamp(36px, 9.6vw, 46px); margin-bottom: 22px; }
  .h-lede { font-size: 18px; }
}

/* ---- tool card ---- */
.tool { padding: clamp(32px, 4.4vw, 56px) clamp(22px, 5vw, 64px) clamp(36px, 4.4vw, 56px); }
:where(main.ml-ta-main) legend { font-size: clamp(22px, 2vw, 26px); margin-bottom: 20px; }
.f-field > span { font-size: 10px; letter-spacing: .22em; color: var(--faint); }
.f-hint { font-size: 17px; }
.f-actions { padding-top: 8px; }

/* ---- results ---- */
.result { margin-top: 48px; padding-top: 52px; }
.r-head { margin-bottom: 40px; }
.r-name { letter-spacing: -.02em; margin-bottom: 14px; }
.r-sub { font-size: 12px; letter-spacing: .12em; gap: 10px 16px; }
.r-sub .zh { font-size: 18px; }
.r-cols { gap: clamp(32px, 4.6vw, 64px); margin: 8px 0 16px; }
.r-block h3 { font-size: 23px; line-height: 1.3; margin-bottom: 12px; letter-spacing: -.005em; }
.r-block p { font: 400 18.5px/1.68 var(--read); color: var(--ink-soft); }
.r-block p.r-small { font: 400 14.5px/1.6 var(--sans); color: var(--muted); }
.r-quote { margin-top: 22px; padding: 4px 0 4px 22px; }
.r-quote p { font-size: 20px; line-height: 1.55; }
.r-notice { padding: 28px 32px 26px 78px; margin: 40px 0 8px; }
.r-notice h3 { font-size: 23px; margin-bottom: 10px; }
.r-notice p { font: 400 18px/1.66 var(--read); color: var(--ink-soft); }
.r-notice strong { font-family: var(--sans); font-size: .92em; }
/* result CTA: light, so the page keeps a single dark band */
.r-cta { background: transparent; color: var(--ink); margin-top: 48px; padding: 36px 0 0; border-top: 1px solid var(--rule-strong); grid-template-columns: minmax(0, 1fr) auto; }
.r-cta::after { display: none; }
.r-cta p { color: var(--ink); font-size: 21px; line-height: 1.5; max-width: 30em; }
.r-cta .btn { background: var(--ink); color: #f5efe3; }
.r-cta .btn:hover { color: var(--ink); }
.r-more { gap: 10px 26px; padding-top: 4px; }
.r-more a { color: var(--gold-deep); text-decoration-color: var(--gold-line); }
.r-more a:hover { color: var(--ink); }
.r-small { font-size: 14.5px; }
.dirs li { padding: 18px 0; }
.d-use { font: 400 17px/1.6 var(--read); color: var(--ink-soft); }
.pair-side strong { font-size: 27px; }

/* ---- reading column ---- */
.prose { margin-top: clamp(96px, 11vw, 144px); }
.sec { margin-bottom: clamp(72px, 8vw, 104px); }
.sec-num { position: static; display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 500 15px/1 var(--cjk); color: var(--seal); opacity: 1; letter-spacing: .1em; }
.sec-num::after { content: ''; width: 44px; height: 1px; background: var(--gold-soft); opacity: .7; }
.prose h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.14; letter-spacing: -.015em; margin-bottom: 26px; max-width: 20ch; }
.prose p { font: 400 20px/1.72 var(--read); color: var(--ink-soft); margin-bottom: 1.1em; }
.prose p strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--gold-deep); text-decoration-color: var(--gold-line); text-underline-offset: 4px; }
.prose a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.prose .zh { font-weight: 400; }
.note-small, .prose p.note-small { font: 400 14.5px/1.6 var(--sans); color: var(--muted); }

/* tables: lighter frame, no awkward wraps, wide tables capped */
.sec.is-wide .tbl-wrap { margin-inline: calc(-1 * max(0px, min(160px, (100vw - var(--measure)) / 2 - 24px))); }
.tbl-wrap { background: transparent; box-shadow: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule-strong); margin: 32px 0 18px; }
.tbl { font-size: 15.5px; }
.tbl th { background: transparent; font-size: 10px; letter-spacing: .2em; color: var(--faint); padding: 16px 14px 12px; border-bottom: 1px solid var(--rule-strong); }
.tbl td { padding: 14px 14px; color: var(--ink-soft); }
.tbl td:first-child, .tbl th:first-child { padding-left: 2px; }
.tbl td:first-child { white-space: nowrap; }
.tbl tbody tr:nth-child(even) { background: rgba(255, 253, 249, .45); }
.tbl tbody tr:hover { background: rgba(198, 167, 100, .12); }
.tbl-tall thead th { background: var(--paper); }
.grid12 th, .grid12 td { border-color: var(--paper); }
.grid12 td:first-child { white-space: normal; }

/* Master Lee's note: left aligned, readable measure */
.note { max-width: 720px; text-align: left; padding: clamp(40px, 5vw, 60px) clamp(28px, 6vw, 72px) clamp(36px, 4.6vw, 52px); margin-bottom: clamp(96px, 10vw, 128px); }
.note::before, .note::after { display: none; }
.note-label { margin-bottom: 8px; letter-spacing: .26em; font-size: 10.5px; }
.note-mark { display: block; font: 400 96px/.7 var(--display); color: var(--gold-soft); margin: 18px 0 2px -6px; height: 44px; }
.note blockquote p { font: 400 italic clamp(21px, 2vw, 24px)/1.62 var(--read); color: var(--ink); }
.note-sig { display: flex; justify-content: flex-end; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); }

/* FAQ */
.faq { max-width: 1000px; }
.faq h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.015em; margin-bottom: 8px; }
.faq dl { border-top-color: var(--ink); margin-top: 32px; }
.faq-i { padding: 30px 0; gap: 12px clamp(28px, 6vw, 80px); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.faq dt { font-size: 21px; line-height: 1.38; letter-spacing: -.005em; }
.faq dd { font: 400 18px/1.68 var(--read); color: var(--ink-soft); }

/* more tools: on paper, image above a caption, before the one dark band */
.more { margin: clamp(104px, 11vw, 144px) auto clamp(72px, 8vw, 104px); }
.more-head { border-bottom: 1px solid var(--rule-strong); padding-bottom: 18px; margin-bottom: 28px; }
.more-head h2 { font-size: clamp(26px, 2.4vw, 32px); }
.more-row { grid-auto-columns: minmax(190px, 1fr); gap: 20px; padding-bottom: 12px; }
.more-card { aspect-ratio: auto; background: transparent; color: var(--ink); display: grid; grid-template-rows: auto auto; gap: 14px; overflow: visible; }
.more-card::after { display: none; }
.more-card img { aspect-ratio: 4 / 5; width: 100%; height: auto; opacity: 1; background: var(--night); box-shadow: 0 24px 40px -30px rgba(52, 34, 8, .6); }
.more-zh { top: 12px; left: 12px; width: 34px; height: 34px; font-size: 21px; }
.more-name { position: static; font-size: 19px; line-height: 1.3; }
.more-card:hover { color: var(--gold-deep); }
.more-card:hover img { transform: translateY(-4px); opacity: 1; }

/* closing band flows cleanly into site footer */
.band { margin-top: 0; min-height: 480px; }
.band p { font-size: clamp(23px, 2.4vw, 31px); line-height: 1.48; }

/* hub */
.hub-group { margin-bottom: clamp(72px, 8vw, 104px); }
.hub-gh { font-size: 11px; letter-spacing: .26em; margin-bottom: 26px; }
.hub-card h3 { font-size: 27px; letter-spacing: -.01em; }
.hub-card p { font: 400 17.5px/1.62 var(--read); color: var(--ink-soft); }
.hub-body { padding: 30px 32px 32px; }
.hub-go { font-size: 11.5px; }
.hub { padding-bottom: clamp(48px, 6vw, 80px); }

/* tool specific polish */
.dm-image { font-size: 23px; }
.dm-chart { background: transparent; box-shadow: none; padding: 34px 0 0; border-top: 1px solid var(--rule-strong); }
.dm-col { box-shadow: inset 0 0 0 1px var(--rule); }
.dm-bal-i { border-top-width: 2px; }
.dm-bal p.r-small, .dm-bal .r-small { font: 400 14.5px/1.6 var(--sans); }
.lb-list li { font-size: 16.5px; }
.st-card .st-cnat { font: 400 17px/1.6 var(--read); color: var(--ink-soft); }
.st-nat { font: 400 19px/1.62 var(--read); color: var(--ink-soft); }
.fs-valid { font-family: var(--read); font-size: 17px; }

@media (max-width: 760px) {
  .prose p { font-size: 18.5px; line-height: 1.7; }
  .prose .sec:first-child > p:first-of-type { font-size: 20px; }
  .prose h2 { font-size: 28px; }
  .r-block p, .r-notice p { font-size: 17.5px; }
  .r-notice { padding: 24px 22px 22px 22px; }
  .r-notice::before { position: static; display: grid; margin-bottom: 14px; }
  .r-cta { grid-template-columns: 1fr; }
  .r-cta .btn { width: 100%; }
  .faq dd { font-size: 17.5px; }
  .note blockquote p { font-size: 20px; }
}
/* ===== end v3 ===== */

/* ===== v3.1 fixes ===== */
.prose h2 { max-width: none; }
.r-notice strong { font-family: inherit; font-size: inherit; font-weight: 500; }
.r-notice { background: rgba(236, 229, 214, .7); box-shadow: none; border-left: 2px solid var(--seal); }
.r-notice::before { left: 24px; }
/* more tools: six even columns on desktop, a swipeable row on small screens */
.more-row { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
.more-name { font-size: 17.5px; }
@media (max-width: 1000px) { .more-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%; overflow-x: auto; } }
@media (max-width: 560px) { .more-row { grid-auto-columns: 62%; } }
/* ===== end v3.1 ===== */

/* ===== v3.2 hub ===== */
.hub-row { grid-template-columns: 1fr 1fr; gap: 24px; }
.hub-row.is-three { grid-template-columns: 1.3fr 1fr 1fr; }
.hub-row.is-single .hub-card { grid-template-columns: 1.15fr 1fr; }
.hub-row.is-single .hub-img { min-height: 300px; }
.hub-row.is-single .hub-body { justify-content: center; padding: 40px clamp(28px, 4vw, 52px); }
.hub-row.is-single .hub-card p { flex: 0 0 auto; margin-bottom: 26px; max-width: 30em; }
.hub-row.is-single .hub-card h3 { font-size: 31px; margin-bottom: 14px; }
.hub-card p { margin-bottom: 24px; }
@media (max-width: 900px) { .hub-row, .hub-row.is-three { grid-template-columns: 1fr; } }
/* ===== end v3.2 ===== */

/* ===== v3.3 almanac list, legend, centered result text ===== */
.st-list { display: block; margin: 8px 0 40px; }
.st-season { margin-top: 40px; }
.st-season:first-child { margin-top: 12px; }
.st-shead { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.st-shead .brush { font-size: 30px; color: var(--sc); letter-spacing: 0; }
.st-rows { list-style: none; margin: 0; padding: 0; }
.st-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; padding: 26px 0 24px; border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; transition: background .3s; }
.st-row.is-past { opacity: .62; }
.st-row.is-past:hover { opacity: 1; }
.st-row.is-next, .st-row.is-focus { background: linear-gradient(90deg, rgba(198, 167, 100, .14), rgba(198, 167, 100, 0) 70%); opacity: 1; }
.st-date { display: grid; align-content: start; justify-items: start; padding-left: 4px; }
.st-mon { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.st-date b { font: 400 46px/1.05 var(--display); color: var(--ink); margin: 4px 0 6px; font-variant-numeric: lining-nums; }
.st-time { font: 500 12.5px/1.4 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.st-body h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 6px; font: 400 25px/1.25 var(--display); color: var(--ink); letter-spacing: -.01em; }
.st-rzh { font-size: 24px; color: var(--seal); }
.st-row .st-pill { align-self: center; }
.st-opens { margin: 0 0 10px; font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.st-opens .zh { color: var(--seal); letter-spacing: 0; margin-left: 4px; }
.st-row .st-cnat { margin: 0 0 8px; font: 400 18px/1.62 var(--read); color: var(--ink-soft); max-width: 36em; }
.st-row .st-clive { margin: 0; font: 400 italic 17px/1.58 var(--read); color: var(--muted); max-width: 36em; }
@media (max-width: 640px) {
  .st-row { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .st-date b { font-size: 36px; }
  .st-time { font-size: 11.5px; }
  .st-body h4 { font-size: 21px; }
}
.st-bar { background: transparent; box-shadow: none; padding: 26px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
/* 2027 map legend: filled tiles (avoid checkbox look) */
.fs-key i { width: 22px; height: 14px; }
.fs-k-bright { background: linear-gradient(160deg, #fffdf8, #f2e6c9); box-shadow: inset 0 0 0 1px var(--gold-soft); }
.fs-k-plain { background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.fs-k-calm { background: #e1d8c4; box-shadow: none; }
.fs-k-tag { width: 22px; height: 16px; }
.fs-key li { font-size: 14.5px; }
/* centered result text keeps the reading serif */
.r-center p { font: 400 19px/1.66 var(--read); color: var(--ink-soft); }
.r-center .r-name { margin-bottom: 18px; }
/* ===== end v3.3 ===== */

/* ===== v3.4 past rows, mobile hero label, mobile tables ===== */
.st-row.is-past { opacity: 1; }
.st-row.is-past .st-date { opacity: .55; }
.st-row.is-past .st-body h4 { color: var(--ink-soft); }
@media (max-width: 860px) {
  .h-eyebrow { flex-wrap: wrap; gap: 8px 12px; }
  .h-rule { display: none; }
}
@media (max-width: 640px) {
  .tbl-wrap { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tbl { min-width: 540px; font-size: 14.5px; }
  .tbl td, .tbl th { padding: 12px 10px; }
  .grid12 { min-width: 760px; }
}
/* ===== end v3.4 ===== */

/* ===== v3.5 hub three-up: equal columns so images and titles align ===== */
.hub-row.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .hub-row.is-three { grid-template-columns: 1fr; } }
/* ===== end v3.5 ===== */

/* ===== v3.6 final polish: numerals, FAQ on mobile, strip captions, data figures ===== */
.sec-num { font-size: 21px; gap: 16px; margin-bottom: 20px; }
.sec-num::after { width: 56px; opacity: .9; }
.more-card { align-content: start; }
.more-name { min-height: 2.6em; }
.dm-bal { margin-top: 40px; }
.dm-bal h3 { margin-bottom: 18px; }
.dm-bal-i { padding: 16px 10px 14px; gap: 5px; }
.dm-bal-n { font-size: 30px; font-variant-numeric: lining-nums; }
.dm-bal-zh { font-size: 20px; }
.dm-tbl td:nth-child(3) { white-space: nowrap; }
.tbl, .r-block, .st-time, .lb-list { font-variant-numeric: lining-nums; }
@media (max-width: 760px) {
  .faq-i { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .faq dt { font-size: 20px; }
  .faq h2 { font-size: 30px; }
  .sec-num { font-size: 19px; }
}
/* ===== end v3.6 ===== */

/* =====================================================================
   v4 · Aligned with the live site's type system (2026-11-18)
   Source of truth: page-assets/insights/article.css and reading-room/month.css.
     Reading text in Inter (420, 18/1.8), Playfair Display for titles (500 for section titles),
     Inter 600 caps for labels, Cinzel caps for call-to-action buttons, Newsreader only in
     Master Lee's note. Chinese glosses in small gold, red kept for seals and the one answer.
   ===================================================================== */
:root { --read: Inter, "Helvetica Neue", Arial, sans-serif; --text: #2b261f; --brush-ink: #574d42; --measure: 640px; --gap-section: clamp(64px, 7vw, 88px); }
:where(main.ml-ta-main) b, :where(main.ml-ta-main) strong { font-weight: 560; color: var(--ink); }

/* labels: one voice everywhere on paper */
.r-eyebrow, .r-quote span, .d-name, .note-label, .lb-tag, .st-mon, .st-opens, .hub-gh, .st-mini, .dm-lab { color: var(--gold-deep); font-family: var(--sans); font-weight: 600; letter-spacing: .18em; }
.r-eyebrow, .note-label { font-size: 12px; }
.f-field > span { font: 600 11px/1 var(--sans); letter-spacing: .16em; color: var(--muted); }

/* Chinese glosses in small gold, as on the site; red only for seals and the answer itself */
.zh { color: inherit; }
.r-sub .zh, .tbl .zh, .d-name .zh, .fs-edge .zh, .fs-dir .zh, .st-opens .zh, .st-mbadge .zh, .h-eyebrow .zh, .r-eyebrow .zh, .dm-lab .zh { color: var(--gold-deep); font-weight: 500; }
.h-eyebrow .zh { color: var(--gold-bright); }
.st-rzh, .st-czh { color: var(--brush-ink); }
.st-row.is-next .st-rzh, .st-row.is-focus .st-rzh { color: var(--red); }
.grid12 th .brush, .dm-tstem { color: var(--brush-ink); }
.c-zh.is-good { fill: var(--gold-deep); }

/* hero */
.h-eyebrow { font: 600 12.5px/1.4 var(--sans); letter-spacing: .2em; }
.h h1 { font-weight: 400; line-height: 1.06; letter-spacing: -.014em; }
.h-lede { font: 400 clamp(18px, 1.5vw, 20px)/1.6 var(--sans); color: rgba(244, 237, 224, .8); max-width: 31em; }
.h-crumbs { font-weight: 500; }

/* tool card and form */
:where(main.ml-ta-main) legend { font: 500 clamp(22px, 2vw, 25px)/1.3 var(--display); letter-spacing: 0; }
.f-field select, .f-field input { height: 52px; font: 400 16.5px/1 var(--sans); box-shadow: none; border: 1px solid var(--rule-strong); background-color: rgba(255, 253, 248, .8); }
.f-field select:focus, .f-field input:focus { border-color: var(--gold); outline: 2px solid rgba(147, 116, 58, .35); outline-offset: -1px; box-shadow: none; }
.f-hint { font: 400 15.5px/1.6 var(--sans); color: var(--muted); }
.f-more summary { font: 500 15px/1.5 var(--sans); color: var(--text); }
.f-radio b { font: 500 18px/1.3 var(--display); }

/* buttons, as the site's: Cinzel capitals on ink (paper) or ivory (dark), quiet hover, no wipe */
.btn { min-height: 54px; padding: 0 32px; gap: 12px; background: var(--ink); color: #f5efe3; font: 500 13px/1.3 var(--cinzel); letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn::before { display: none; }
.btn::after { content: none; }
.btn:hover { background: #3a332a; color: #f5efe3; }
.btn-light, .band .btn { background: var(--ivory); color: var(--ink); font: 500 13px/1.3 var(--cinzel); letter-spacing: .14em; padding: 0 32px; min-height: 54px; }
.btn-light:hover, .band .btn:hover { background: #e6dcc4; color: var(--ink); }
.r-cta .btn { background: var(--ink); color: #f5efe3; }
.r-cta .btn:hover { background: #3a332a; color: #f5efe3; }
.f-actions .btn { min-width: 0; }
/* secondary actions: hairline outline */
.btn.lb-ics, .btn.st-ics { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); font-size: 12.5px; min-height: 50px; padding: 0 24px; }
.btn.lb-ics:hover, .btn.st-ics:hover { background: rgba(255, 253, 248, .8); box-shadow: inset 0 0 0 1px var(--gold); color: var(--ink); }
.dm-add { font: 500 11.5px/1.2 var(--cinzel); letter-spacing: .12em; }

/* results */
.r-name { font-weight: 400; letter-spacing: -.015em; }
.r-sub { font: 600 11.5px/1.5 var(--sans); letter-spacing: .14em; }
.r-block h3, .r-notice h3, .dm-chart-head h3, .dm-bal h3 { font: 500 21px/1.32 var(--display); letter-spacing: 0; }
.r-block p { font: 420 17px/1.75 var(--sans); color: var(--text); }
.r-block p.r-small, .r-small, .dm-bal p.r-small, .dm-bal .r-small { font: 400 14.5px/1.6 var(--sans); color: var(--muted); }
.r-quote p { font: 400 19px/1.5 var(--display); color: var(--ink); }
.r-notice p { font: 420 16.5px/1.72 var(--sans); color: var(--text); }
.r-notice strong { color: var(--red); font-weight: 560; }
.r-center p { font: 420 17.5px/1.75 var(--sans); color: var(--text); }
.d-use { font: 420 16px/1.65 var(--sans); color: var(--text); }
.d-dir { font-weight: 500; font-size: 22px; }
.dm-image { font: 400 italic 21px/1.35 var(--display); color: var(--gold-deep); }
.dm-two em, .fs-empty { font-family: var(--display); }
.st-nat { font: 420 17.5px/1.72 var(--sans); color: var(--text); }
.fs-valid { font: 400 15px/1.55 var(--sans); }
.fs-title, .st-nname { font-weight: 400; }
.r-cta p { font: 400 21px/1.45 var(--display); color: var(--ink); font-style: normal; }
.r-more { font: 400 15px/1.5 var(--sans) !important; }
.r-more a, .prose a, .faq a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(147, 116, 58, .45); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.r-more a:hover, .prose a:hover, .faq a:hover { color: var(--ink); text-decoration-color: var(--gold-deep); }

/* reading column: the Insights article rhythm */
.prose { max-width: var(--measure); margin-top: clamp(88px, 10vw, 128px); }
.sec { margin: 0; padding-top: var(--gap-section); }
.sec + .sec { margin-top: var(--gap-section); }
.sec:first-child { padding-top: 0; }
.sec-num { display: flex; justify-content: center; margin: 0 0 14px; font: 400 44px/1 var(--brush); color: var(--brush-ink); letter-spacing: 0; }
.sec-num::after { display: none; }
.prose h2 { margin: 0 0 32px; font: 500 clamp(25px, 2.4vw, 30px)/1.28 var(--display); letter-spacing: -.003em; text-align: center; color: var(--ink); }
.prose p { margin: 0; font: 420 18px/1.8 var(--sans); color: var(--text); }
.prose p + p, .prose .tbl-wrap + p, .prose p + .tbl-wrap { margin-top: 1.6em; }
.prose .sec:first-child > p:first-of-type { font-size: 20px; line-height: 1.7; color: var(--ink); }
.prose p strong { font-weight: 560; }
.prose .zh { color: var(--gold-deep); font: 500 .94em/1 var(--cjk); white-space: nowrap; }
.note-small, .prose p.note-small { font: 400 15px/1.65 var(--sans); color: var(--muted); }
@media (max-width: 600px) {
  .prose p { font-size: 17px; line-height: 1.76; }
  .prose .sec:first-child > p:first-of-type { font-size: 18.5px; }
  .prose h2 { font-size: 24px; margin-bottom: 26px; }
  .sec-num { font-size: 38px; }
}

/* tables: ruled like a ledger, as the site's compare tables */
.tbl-wrap { border-top: 0; border-bottom: 1px solid var(--rule-strong); margin: 40px 0 16px; }
.tbl { font-size: 15.5px; line-height: 1.6; }
.tbl th { padding: 0 14px 14px; font: 600 11px/1.45 var(--sans); letter-spacing: .14em; color: var(--gold-deep); background: transparent; vertical-align: bottom; }
.tbl td { padding: 16px 14px; color: var(--text); }
.tbl td:first-child, .tbl th:first-child { padding-left: 0; }
.tbl tbody tr:nth-child(even) { background: transparent; }
.tbl tbody tr:hover { background: rgba(198, 167, 100, .08); }
.tbl .y { font: 500 17px/1.36 var(--display); }
.tbl-tall thead th { background: var(--paper); padding-top: 12px; }
.grid12 th, .grid12 td { padding: 10px 4px; }
.grid12 thead th, .grid12 tbody th { color: var(--gold-deep); }

/* Master Lee's note: as the site's, upright reading serif, signed with the seal */
.note { max-width: 640px; padding: 40px 44px 34px; background: #fbf8f2; box-shadow: 0 0 0 1px rgba(84, 62, 30, .12), 0 18px 40px -30px rgba(60, 40, 10, .35); margin-top: var(--gap-section); }
.note-label { margin: 0 0 20px; font-size: 12.5px; letter-spacing: .18em; }
.note-mark { display: none; }
.note blockquote p { font: 400 20px/1.62 var(--letter); color: #2f2a23; font-style: normal; }
.note-sig { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 1.1em; padding: 0; border: 0; font: italic 500 23px/1.3 var(--letter); letter-spacing: 0; text-transform: none; color: var(--ink); }
.note-sig img { width: 28px; height: 28px; }
@media (max-width: 600px) { .note { padding: 30px 24px 26px; margin-left: 8px; margin-right: 8px; } .note blockquote p { font-size: 18.5px; } }

/* FAQ: every answer in view, one column on the reading axis */
.faq { max-width: var(--measure); }
.faq h2 { margin: 0 0 8px; font: 500 clamp(25px, 2.4vw, 30px)/1.28 var(--display); text-align: center; }
.faq dl { border-top: 0; margin-top: 24px; }
.faq-i { display: block; padding: 0; border: 0; }
.faq dt { margin: 44px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); font: 600 21px/1.35 var(--display); color: var(--ink); }
.faq-i:first-child dt { margin-top: 20px; }
.faq dd { margin: 0; font: 420 18px/1.8 var(--sans); color: var(--text); }
@media (max-width: 760px) { .faq-i { padding: 0; } .faq dt { font-size: 19.5px; } .faq dd { font-size: 17px; line-height: 1.76; } .faq h2 { font-size: 24px; } }

/* more tools and the closing band */
.more-head h2 { font: 500 clamp(24px, 2.3vw, 28px)/1.25 var(--display); }
.more-name { font: 500 17px/1.32 var(--display); }
.more-head a { color: var(--gold-deep); }
.band p { font: 400 clamp(22px, 2.2vw, 28px)/1.42 var(--display); font-style: normal; color: var(--ivory); max-width: 26em; margin-inline: auto; }
.band-mark { color: var(--gold-soft); }

/* hub */
.hub-card h3 { font: 500 25px/1.25 var(--display); letter-spacing: 0; }
.hub-row.is-single .hub-card h3 { font-size: 29px; }
.hub-card p { font: 420 16px/1.7 var(--sans); color: var(--text); }
.hub-go { font: 500 12px/1 var(--cinzel); letter-spacing: .14em; color: var(--gold-deep); }

/* tool details */
.st-body h4 { font-weight: 500; font-size: 23px; }
.st-row .st-cnat { font: 420 17px/1.72 var(--sans); color: var(--text); }
.st-row .st-clive { font: 400 15.5px/1.65 var(--sans); color: var(--muted); font-style: normal; padding-left: 18px; position: relative; }
.st-row .st-clive::before { content: ''; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.st-h, .st-h3 { font-weight: 500; }
.st-card .st-cnat { font: 420 15.5px/1.65 var(--sans); }
.st-ypill span { font: 500 15px/1 var(--sans); }
.lb-y { font-weight: 500; }
.dm-tname { font-weight: 500; }
.pair-side strong { font-weight: 400; }
/* ===== end v4 ===== */
/* v4.1: numerals in the brush, calmer gaps between sections */
.prose .sec-num { display: flex; justify-content: center; margin: 0 0 16px; font: 400 46px/1 var(--brush); color: var(--brush-ink); letter-spacing: 0; white-space: normal; }
.sec { padding-top: 0; }
.sec + .sec { margin-top: clamp(80px, 9vw, 112px); }
@media (max-width: 600px) { .prose .sec-num { font-size: 40px; } }
.r-center p.r-eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: .18em; color: var(--gold-deep); }
