/* ==========================================================================
   长生不老协会 · design tokens
   Based on the clinic site's v4 system (宣纸黄 paper, 青花 navy, 朱砂 cinnabar,
   Newsreader / Inter / Noto Serif SC / Noto Sans SC / Ma Shan Zheng).
   Change for this site: 明黄 gold-yellow leads (buttons, bands, ornaments);
   navy steps back to heading ink, the footer and small porcelain accents.
   Layout idea: an embroidered scroll — paper sections framed by 回纹 bands,
   stitched ornaments at the corners, one gold call to action per screen.
   ========================================================================== */
:root {
  /* clinic v4 palette: 宣纸黄 rice paper, 青花 navy for actions, 朱砂 cinnabar accent, gold for lines */
  --paper: #fbfbf8;          /* page background */
  --sand: #faf7ec;           /* alternate sections */
  --wheat: #faf7ec;
  --card: #fefefc;           /* cards */
  --dark: #17223c;           /* deep navy bands: utility bar, CTA, footer */

  --navy: #1d2b4b;           /* primary actions */
  --navy-dark: #141e36;
  --navy-tint: #f0f2f4;
  --gold: #c8a35b;           /* decorative lines, stitches */
  --gold-light: #e3c27e;     /* accents on navy */
  --gold-text: #7c5e25;
  --yellow: #c8a35b;         /* legacy alias: decorative gold */
  --yellow-tint: #faf7ec;

  --ink-strong: #18233f;
  --ink: #353a4c;
  --muted: #5a5e6e;
  --cinnabar: #b63f30;
  --cinnabar-dark: #973428;
  --cinnabar-tint: #faefed;
  --jade: #4f6a55;
  --jade-tint: #f2f3ee;
  --line: #ece9e1;

  --font-en-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-en-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-zh-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-zh-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-calli: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;
  --font-display: var(--font-en-display);
  --font-body: var(--font-en-body);

  --max: 1200px;
  --read: 68ch;
  --gutter: 48px;
  --section: 104px;
  --header-h: 76px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(22, 32, 58, .05), 0 12px 28px -14px rgba(22, 32, 58, .22);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
html[lang="zh-Hans"] { --font-display: var(--font-zh-display); --font-body: var(--font-zh-body); }
@media (max-width: 1023px) { :root { --gutter: 32px; --section: 84px; } }
@media (max-width: 767px)  { :root { --gutter: 20px; --section: 64px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.75; }
html[lang="zh-Hans"] body { font-size: 17px; line-height: 1.9; letter-spacing: .01em; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-strong); font-weight: 500; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink-strong); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--cinnabar-dark); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink-strong); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section.sand { background: var(--sand); }
.section.wheat { background: var(--wheat); }
.section.card-bg { background: var(--card); }
.stack > * + * { margin-top: 1em; }
.lead { font-size: 1.15rem; color: var(--ink); max-width: var(--read); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Taoist patterns (CSS backgrounds) ---------- */
/* 回纹 key-fret band */
.huiwen { height: 22px; background-color: var(--paper); opacity: .85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 19h20V3H4v12h12V7H8v4h4M22 19h20V3H26v12h12V7h-8v4h4' fill='none' stroke='%23d4b77a' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center; border-block: 1px solid var(--line); }
.huiwen.navy { opacity: 1; background-color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 19h20V3H4v12h12V7H8v4h4M22 19h20V3H26v12h12V7h-8v4h4' fill='none' stroke='%23e3c27e' stroke-width='1.6'/%3E%3C/svg%3E");
  border-color: #2d3c5d; }
/* 祥云 cloud texture */
.clouds-off { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140' viewBox='0 0 220 140'%3E%3Cg fill='none' stroke='%23c8a35b' stroke-width='1.2' opacity='.16'%3E%3Cpath d='M20 60c0-11 9-18 18-18 4-10 20-12 26-2 8-4 18 2 17 11 9 1 13 13 4 17H28c-5 0-8-4-8-8z'/%3E%3Cpath d='M48 52c0-6 8-8 11-3m6 4c2-4 9-4 10 1'/%3E%3Cpath d='M130 112c0-9 7-15 15-15 3-8 17-10 22-2 7-3 15 2 14 9 8 1 11 11 3 14h-47c-4 0-7-3-7-6z'/%3E%3Cpath d='M154 105c0-5 6-7 9-3'/%3E%3C/g%3E%3C/svg%3E"); }
/* 锦纹 brocade lattice */
.brocade { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23b08a3e' stroke-width='1' opacity='.35'%3E%3Cpath d='M18 2l16 16-16 16L2 18z'/%3E%3Ccircle cx='18' cy='18' r='3'/%3E%3C/g%3E%3C/svg%3E"); }

/* stitched embroidery frame */
.stitched { position: relative; }
.stitched::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed var(--gold); border-radius: calc(var(--r-md) - 6px); pointer-events: none; opacity: .9; }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--dark); color: #e9e7df; font-size: .85rem; }
.utility svg { color: var(--gold-light); }
.utility .wrap { display: flex; gap: 24px; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; }
.utility span { display: inline-flex; gap: 8px; align-items: center; }
.utility svg { width: 14px; height: 14px; }
@media (max-width: 767px) { .utility .addr { display: none; } .utility .wrap { justify-content: center; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 248, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-strong); margin-right: auto; }
.brand .seal { width: 42px; height: 42px; flex: none; }
.brand b { font-family: var(--font-calli); font-weight: 400; font-size: 1.55rem; line-height: 1; display: block; letter-spacing: .04em; }

.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-size: .95rem; color: var(--ink); white-space: nowrap; }
.nav a:hover { color: var(--ink-strong); background: rgba(22,32,58,.05); }
.nav a[aria-current="page"] { color: var(--ink-strong); font-weight: 600; text-decoration: underline; text-decoration-color: var(--cinnabar); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.lang-toggle { display: inline-flex; position: relative; padding: 3px; border-radius: 999px; border: 1px solid rgba(22,32,58,.25); background: var(--card); flex: none; }
.lang-toggle button { position: relative; z-index: 1; border: 0; background: transparent; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-strong); min-width: 46px; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer; transition: color .2s var(--ease); }
.lang-toggle button[aria-pressed="true"] { color: #fefefc; }
.lang-toggle .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--navy); transition: transform .25s var(--ease); }
.lang-toggle[data-lang-state="en"] .thumb { transform: translateX(100%); }
.menu-btn { display: none; border: 1px solid rgba(22,32,58,.25); background: var(--card); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink-strong); }
@media (max-width: 1100px) { .nav, .header .btn { display: none; } .header .wrap { gap: 12px; } .menu-btn { display: inline-grid; place-items: center; } }
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(22, 32, 58, .45); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.drawer .panel a.navlink { text-decoration: none; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-family: var(--font-display); color: var(--ink-strong); }
.drawer .panel a.navlink[aria-current="page"] { color: var(--cinnabar-dark); }
.drawer .close { align-self: flex-end; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: var(--r-sm); font: inherit; font-weight: 600; font-size: 15.5px; line-height: 1.3; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out, transform .18s ease-out, box-shadow .18s ease-out; white-space: nowrap; }
html[lang="zh-Hans"] .btn { font-size: 16px; font-weight: 500; letter-spacing: .06em; }
.btn svg { width: 17px; height: 17px; transition: transform .18s ease-out; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 80ms; }
.btn-primary { background: var(--navy); color: #fefefc; border-color: var(--navy); box-shadow: 0 6px 16px -10px rgba(22,32,58,.7); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fefefc; box-shadow: 0 10px 22px -10px rgba(22,32,58,.75); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-strong); border-color: var(--ink-strong); }
.btn-ghost:hover { background: var(--ink-strong); color: var(--paper); }
.btn-light { background: var(--card); color: var(--ink-strong); border-color: var(--card); }
.btn-light:hover { background: var(--sand); color: var(--ink-strong); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { justify-self: start; width: fit-content; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1px; padding: 6px 0; }
.link-arrow:hover { color: var(--cinnabar); text-decoration-color: var(--cinnabar); }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Section headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; }
html[lang="zh-Hans"] .eyebrow { letter-spacing: .3em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--cinnabar); }
.sec-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.sec-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.sec-head .lead { margin-inline: inherit; }
.ornament { display: flex; align-items: center; gap: 14px; color: var(--gold); justify-content: center; margin: 0 auto; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 72px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.15; }
.hero h1 .calli { font-family: var(--font-calli); font-weight: 400; color: var(--ink-strong); display: block; font-size: 1.35em; letter-spacing: .06em; }
.hero .tagline { font-family: var(--font-display); color: var(--gold-text); letter-spacing: .3em; font-size: 1rem; }
.hero-copy { display: grid; gap: 22px; position: relative; z-index: 1; }
.hero .vertical-off { position: absolute; right: -6px; top: 40px; writing-mode: vertical-rl; font-family: var(--font-calli); font-size: 1.1rem; color: var(--gold-text); letter-spacing: .5em; opacity: .9; }
.hero .corner { position: absolute; width: 180px; opacity: .55; pointer-events: none; }
.hero .corner.tl { left: -30px; top: -20px; }
.hero .corner.br { right: -20px; bottom: -10px; transform: rotate(180deg); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 48px 0 64px; } .hero .vertical { display: none; } }
.page-hero { padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero .bg-char { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-family: var(--font-calli); font-size: clamp(140px, 22vw, 260px); line-height: 1; color: var(--gold); opacity: .16; pointer-events: none; }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* ---------- Image placeholders ---------- */
.ph { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); isolation: isolate; }
.ph svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ph::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(138, 106, 46, .55); border-radius: 12px; pointer-events: none; }
.ph figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; background: rgba(255, 251, 239, .93); border-radius: 10px; padding: 10px 14px; font-size: .8rem; line-height: 1.5; color: var(--ink); border: 1px solid var(--line); }
.ph figcaption code { font-family: ui-monospace, Menlo, monospace; font-size: .74rem; color: var(--cinnabar-dark); display: block; word-break: break-all; }
.ph .ratio-tag { position: absolute; top: 18px; right: 18px; background: var(--ink-strong); color: var(--gold-light); font-size: .7rem; padding: 3px 9px; border-radius: 999px; letter-spacing: .06em; }
figure { margin: 0; }

/* ---------- Generic layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-left { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 900px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 36px; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* philosophy blocks */
.virtue { padding: 32px 26px 28px; background: var(--card); border-radius: var(--r-md); border: 1px solid var(--line); position: relative; display: grid; gap: 12px; align-content: start; }
.virtue .roundel { width: 76px; height: 76px; }
.virtue h3 { font-size: 1.4rem; }
.virtue .zh-big { font-family: var(--font-calli); font-size: 1rem; color: var(--gold-text); letter-spacing: .2em; }

.claim-note { margin-top: 28px; display: flex; gap: 12px; padding: 16px 20px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); font-size: .92rem; color: var(--ink); }
.claim-note svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--gold-text); }

/* stages */
.stage { display: grid; gap: 16px; align-content: start; }
.stage .num { font-family: var(--font-calli); font-size: 1.2rem; color: var(--cinnabar); letter-spacing: .1em; }
.stage h3 { font-size: 1.45rem; }
.stage .art { aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.stage .art svg { width: 78%; height: 78%; }
.stage .art .ph-label { position: absolute; left: 12px; bottom: 10px; font-size: .68rem; font-family: ui-monospace, Menlo, monospace; color: var(--gold-text); }

/* Ren/Du diagram */
.zhoutian { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .zhoutian { grid-template-columns: 1fr; } }
.diagram-box { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 20px; box-shadow: var(--shadow); position: relative; }
.diagram-box svg { width: 100%; height: auto; display: block; }
.path-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip { border: 1px solid rgba(22,32,58,.25); background: var(--card); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; color: var(--ink-strong); min-height: 40px; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fefefc; }
.du-path, .ren-path { transition: opacity .3s var(--ease), stroke-width .3s; }
[data-focus="du"] .ren-path, [data-focus="du"] .ren-pt { opacity: .18; }
[data-focus="ren"] .du-path, [data-focus="ren"] .du-pt { opacity: .18; }
.path-note { min-height: 3.5em; font-size: .95rem; padding: 12px 16px; border-radius: var(--r-sm); background: var(--navy-tint); color: var(--ink-strong); }
.points { display: grid; gap: 14px; counter-reset: pt; }
.points li { list-style: none; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points li::before { counter-increment: pt; content: counter(pt); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-strong); color: var(--gold-light); font-family: var(--font-en-display); font-size: 1.05rem; }
.points { padding: 0; margin: 0; }
.points b { color: var(--ink-strong); font-weight: 600; }

/* founder */
.founder { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--ink-strong); }
.badge svg { width: 16px; height: 16px; color: var(--cinnabar); }

/* schedule */
.sched { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 700px) { .sched { grid-template-columns: 1fr; } }
.sched-card { background: var(--card); border-radius: var(--r-md); padding: 30px; border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.sched-card .day { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--navy); color: #fefefc; font-family: var(--font-display); line-height: 1.15; box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 5px rgba(227,194,126,.8); }
.sched-card .day span { color: var(--gold-light); }
.sched-card .day b { display: block; font-size: 1.6rem; font-weight: 500; font-family: var(--font-calli); }
.sched-card .day span { font-size: .78rem; }
.sched-card h3 { font-size: 1.35rem; }
.sched-card .time { font-family: var(--font-en-display); font-size: 1.6rem; color: var(--cinnabar); font-variant-numeric: tabular-nums; }
.sched-card .tag { display: inline-block; font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: var(--navy-tint); color: var(--navy); margin-top: 6px; }

/* location */
.loc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
@media (max-width: 900px) { .loc { grid-template-columns: 1fr; } }
.map-art { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--card); position: relative; min-height: 300px; }
.map-art svg { width: 100%; height: 100%; display: block; }
.addr-block { display: grid; gap: 14px; align-content: center; }
.addr-block .venue { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink-strong); }
.addr-block .addr { font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* CTA band */
.cta-band { background: var(--dark); color: #e9e7df; position: relative; overflow: hidden; }
.cta-band .wrap { display: grid; justify-items: center; text-align: center; gap: 20px; padding-block: 88px; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fefefc; }
.cta-band p { max-width: 620px; color: #d9d6cb; }
.cta-band .emb { position: absolute; width: 190px; opacity: .55; }
.cta-band .emb.l { left: 3%; top: 22%; }
.cta-band .emb.r { right: 3%; bottom: 16%; transform: scaleX(-1); }
@media (max-width: 767px) { .cta-band .emb { width: 100px; opacity: .3; } }
/* footer */
.footer { background: var(--dark); color: #d7dbe6; font-size: .92rem; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: 64px 32px; }
@media (max-width: 900px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .wrap { grid-template-columns: 1fr; } }
.footer h4, .footer .f-h { color: var(--gold-light); font-size: 1rem; margin-bottom: 12px; font-family: var(--font-display); letter-spacing: .1em; }
.footer a { color: #e9ecf3; text-decoration: none; }
.footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .brand-f b { font-family: var(--font-calli); font-weight: 400; font-size: 1.7rem; color: #fff; display: block; }
.footer .disclaimer { grid-column: 1 / -1; border-top: 1px solid #33425f; padding-top: 22px; display: grid; gap: 10px; font-size: .85rem; color: #c3c9d8; }
.footer .disclaimer strong { color: var(--gold-light); }

/* ---------- Learning depth selector ---------- */
.depth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; max-width: 880px; }
@media (max-width: 700px) { .depth { grid-template-columns: 1fr; } }
.depth button { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; cursor: pointer; font: inherit; color: var(--ink); display: grid; gap: 4px; transition: border-color .2s, transform .2s var(--ease); position: relative; }
.depth button:hover { border-color: var(--navy); transform: translateY(-2px); }
.depth button b { font-family: var(--font-display); color: var(--ink-strong); font-size: 1.1rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.depth button .lvl { font-size: .72rem; letter-spacing: .14em; color: var(--gold-text); }
.depth button span.d { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.level-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-text); background: var(--card); letter-spacing: .05em; }
.level-tag.l1 { border-color: var(--jade); color: var(--jade); }
.level-tag.l3 { border-color: var(--cinnabar); color: var(--cinnabar-dark); }
.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(29,43,75,0); } 20% { box-shadow: 0 0 0 8px rgba(29,43,75,.18); } 100% { box-shadow: 0 0 0 0 rgba(29,43,75,0); } }

/* ---------- Practice: long-form layout ---------- */
.longform { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 1023px) { .longform { grid-template-columns: 1fr; gap: 0; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .9rem; }
.toc h2 { font-size: .8rem; letter-spacing: .2em; color: var(--gold-text); margin-bottom: 10px; font-family: var(--font-body); font-weight: 500; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; line-height: 1.45; }
.toc a:hover { color: var(--ink-strong); }
.toc a.active { color: var(--ink-strong); border-color: var(--cinnabar); font-weight: 500; }
@media (max-width: 1023px) {
  .toc { top: var(--header-h); z-index: 20; background: rgba(251,251,248,.97); margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter); border-bottom: 1px solid var(--line); }
  .toc h2 { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; border: 0; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin: 0; background: var(--card); }
  .toc a.active { border-color: var(--cinnabar); }
}
.article > section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.article > section:first-child { padding-top: 24px; }
.article > section:last-child { border-bottom: 0; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.article h2 .no { font-family: var(--font-calli); color: var(--cinnabar); font-size: .8em; }
.article h3 { font-size: 1.35rem; margin: 30px 0 10px; }
.article p, .article li { max-width: var(--read); }
.article .prose > * + * { margin-top: 1em; }
.layer { margin-top: 26px; padding: 24px 26px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); display: grid; gap: 12px; }
.layer > .level-tag { justify-self: start; }
.layer.basic { background: var(--jade-tint); border-color: #cdd4c6; }
.layer.classic { background: #fdfcfa; border-color: #e6e0cf; border-left: 4px solid var(--cinnabar); }

details.more { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
details.more > summary { cursor: pointer; padding: 14px 20px; font-weight: 500; color: var(--ink-strong); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-text); line-height: 1; }
details.more[open] > summary::after { content: "−"; }
details.more > .inner { padding: 0 20px 20px; display: grid; gap: 12px; }

blockquote.quote { margin: 26px 0; padding: 26px 30px 26px 34px; background: var(--card); border-radius: var(--r-md); border: 1px solid var(--line); position: relative; font-family: var(--font-zh-display); font-size: 1.2rem; line-height: 1.9; color: var(--ink-strong); }
blockquote.quote::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 2px; background: var(--cinnabar); }
blockquote.quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-body); font-size: .88rem; color: var(--gold-text); }

/* comparison */
.compare { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 0; align-items: stretch; margin-top: 26px; }
.compare .col { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: grid; gap: 10px; align-content: start; }
.compare .col.ming { border-top: 4px solid var(--gold); }
.compare .col.xing { border-top: 4px solid var(--navy); }
.compare .col h3 { margin: 0; font-size: 1.3rem; }
.compare .col ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: .95rem; }
.compare .mid { display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; font-size: .8rem; color: var(--gold-text); }
.compare .mid svg { width: 84px; height: 84px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; gap: 14px; } .compare .mid { padding: 4px 0; } }

/* timeline (5 stages) */
.timeline { list-style: none; padding: 0; margin: 30px 0 0; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; border-left: 2px dashed var(--gold); }
.timeline > li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; position: relative; }
.timeline .knot { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-family: var(--font-en-display); font-size: 1.3rem; color: var(--gold-light); box-shadow: 0 0 0 5px var(--paper), inset 0 0 0 3px var(--navy), inset 0 0 0 4px rgba(227,194,126,.7); z-index: 1; }
.timeline .body { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; display: grid; grid-template-columns: 1fr 180px; gap: 20px; }
.timeline .body h3 { margin: 0 0 6px; font-size: 1.25rem; }
.timeline .body .mini { aspect-ratio: 1; border-radius: 12px; background: var(--sand); display: grid; place-items: center; position: relative; }
.timeline .body .mini svg { width: 72%; }
.timeline .body .mini code { position: absolute; bottom: 6px; left: 8px; right: 8px; font-size: .58rem; color: var(--gold-text); word-break: break-all; line-height: 1.3; }
.timeline .safety { margin-top: 10px; font-size: .88rem; display: flex; gap: 8px; color: var(--cinnabar-dark); }
.timeline .safety svg { width: 16px; height: 16px; flex: none; margin-top: 5px; }
.timeline .rel { margin-top: 10px; font-size: .88rem; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .timeline .body { grid-template-columns: 1fr; } .timeline .body .mini { width: 140px; } .timeline > li { grid-template-columns: 44px 1fr; gap: 12px; } .timeline .knot { width: 44px; height: 44px; font-size: 1.2rem; } .timeline::before { left: 21px; } }

/* reactions */
.reactions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 860px) { .reactions { grid-template-columns: 1fr; } }
.rx { border-radius: var(--r-md); padding: 22px; display: grid; gap: 10px; align-content: start; border: 1px solid; }
.rx h3 { margin: 0; font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.rx h3 svg { width: 22px; height: 22px; }
.rx ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .95rem; }
.rx.obs { background: var(--card); border-color: var(--line); }
.rx.do { background: var(--jade-tint); border-color: #cdd4c6; }
.rx.do h3 { color: var(--jade); }
.rx.stop { background: var(--cinnabar-tint); border-color: #e5bcb4; border-width: 2px; }
.rx.stop h3 { color: var(--cinnabar-dark); }

/* tabs */
.tabs [role="tablist"] { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; }
.tabs [role="tabpanel"] { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 26px; }
.tabs [role="tabpanel"] h3 { margin-top: 0; }
.tabs [role="tabpanel"][hidden] { display: none; }

/* Heart Sutra reader */
.reader { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.reader-bar { background: var(--sand); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--sand); border-bottom: 1px solid var(--line); }
.reader-bar .grp { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.reader-bar .chip { min-height: 36px; padding: 5px 13px; font-size: .85rem; }
.reader-body { padding: 26px 30px 30px; --rs: 1.25rem; }
.verse { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.verse:last-child { border-bottom: 0; }
.verse .vn { font-family: var(--font-en-display); color: var(--gold-text); font-size: .95rem; padding-top: 4px; }
.verse .orig { font-family: var(--font-zh-display); font-size: var(--rs); line-height: 2; color: var(--ink-strong); letter-spacing: .06em; }
.verse .plain { font-size: calc(var(--rs) * .78); color: var(--ink); line-height: 1.85; }
.reader[data-mode="orig"] .verse { grid-template-columns: 34px 1fr; }
.reader[data-mode="orig"] .plain { display: none; }
@media (max-width: 760px) { .verse { grid-template-columns: 1fr; gap: 8px; } .reader[data-mode="orig"] .verse { grid-template-columns: 1fr; } .reader-body { padding: 18px 20px 22px; } }
.reader[data-mode="vertical"] .reader-body { overflow-x: auto; }
.reader[data-mode="vertical"] .vert { display: block; }
.reader[data-mode="vertical"] .verses { display: none; }
.vert { display: none; writing-mode: vertical-rl; font-family: var(--font-zh-display); font-size: var(--rs); line-height: 2.2; letter-spacing: .14em; height: 30em; max-height: 70vh; color: var(--ink-strong); margin-left: auto; padding: 8px; background-image: repeating-linear-gradient(to left, transparent 0, transparent calc(2.2em - 1px), rgba(200,163,91,.35) calc(2.2em - 1px), rgba(200,163,91,.35) 2.2em); }
.draft-note { font-size: .82rem; color: var(--muted); padding: 12px 20px; border-top: 1px solid var(--line); background: #fdfcfa; }

/* chapters library */
.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
@media (max-width: 760px) { .chapters { grid-template-columns: 1fr; } }
.chapters details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); }
.chapters summary { cursor: pointer; list-style: none; padding: 14px 18px; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; }
.chapters summary::-webkit-details-marker { display: none; }
.chapters summary .cn { font-family: var(--font-en-display); color: var(--cinnabar); font-size: .9rem; letter-spacing: .05em; }
.chapters summary .ct { font-family: var(--font-zh-display); color: var(--ink-strong); font-size: 1.1rem; }
.chapters summary::after { content: "+"; color: var(--gold-text); font-size: 1.3rem; }
.chapters details[open] summary::after { content: "−"; }
.chapters details[open] { border-color: var(--gold); }
.chapters .cbody { padding: 0 18px 16px 80px; font-size: .95rem; }
@media (max-width: 500px) { .chapters .cbody { padding-left: 18px; } }

/* daily routine */
.routine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 26px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 860px) { .routine { grid-template-columns: 1fr; } }
.routine > div { padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.routine > div:nth-child(1) { background: var(--sand); }
.routine > div:nth-child(2) { background: var(--card); }
.routine > div:nth-child(3) { background: var(--navy-tint); }
.routine .when { font-family: var(--font-en-display); font-size: 1.4rem; color: var(--cinnabar-dark); }
.routine h3 { margin: 0; font-size: 1.2rem; }
.routine svg.ico { width: 46px; height: 46px; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 700px) { .rules { grid-template-columns: 1fr; } }
.rule { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.rule .x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cinnabar-tint); color: var(--cinnabar-dark); font-family: var(--font-calli); font-size: 1.4rem; }
.rule h3 { margin: 0 0 4px; font-size: 1.15rem; }

/* related */
.related { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .9rem; }
.related > span { color: var(--muted); }
.related a { text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--card); color: var(--ink-strong); border: 1px solid rgba(22,32,58,.25); }
.related a:hover { background: var(--navy); color: #fefefc; border-color: var(--navy); }

/* glossary tooltip */
.term { position: relative; display: inline; }
.term > button { font: inherit; color: inherit; background: none; border: 0; padding: 0; border-bottom: 1.5px dotted var(--gold-text); cursor: help; }
.term .tip { position: absolute; background: var(--dark) !important; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: 280px; background: var(--ink-strong); color: #f2f0e8; font-size: .85rem; line-height: 1.6; padding: 10px 14px; border-radius: 10px; z-index: 30; display: none; pointer-events: none; text-align: left; font-family: var(--font-body); letter-spacing: 0; }
.term .tip b { color: var(--gold-light); display: block; font-weight: 500; }
.term:hover .tip, .term:focus-within .tip, .term.show .tip { display: block; }
main, .footer { overflow-x: clip; }

/* class flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; top: 36px; left: 10%; right: 10%; border-top: 2px dashed var(--gold); }
.flow li { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 0 10px; position: relative; }
.flow .n { width: 72px; height: 72px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--gold); color: var(--navy); display: grid; place-items: center; z-index: 1; position: relative; }
.flow .n svg { width: 40px; height: 40px; }
.flow .n i { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; font-size: .78rem; display: grid; place-items: center; font-family: var(--font-en-display); }
.flow h3 { font-size: 1.1rem; }
.flow p { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow::before { top: 20px; bottom: 20px; left: 36px; right: auto; border-top: 0; border-left: 2px dashed var(--gold); }
  .flow li { grid-template-columns: 72px 1fr; justify-items: start; text-align: left; gap: 4px 18px; padding: 0; }
  .flow li .n { grid-row: span 2; }
}

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); align-items: start; }
.checklist li svg { width: 26px; height: 26px; color: var(--jade); }
.checklist li.warn svg { color: var(--cinnabar); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 20px; } }
.faq-cats { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 6px; }
@media (max-width: 900px) { .faq-cats { position: static; display: flex; flex-wrap: wrap; } }
.faq-group { margin-bottom: 44px; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.faq-group h2 svg { width: 30px; height: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 4px; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; color: var(--ink-strong); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 4px 20px; display: grid; gap: 10px; max-width: var(--read); }
.pending { display: inline-flex; gap: 6px; align-items: center; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--cinnabar-tint); color: var(--cinnabar-dark); justify-self: start; }
.sourced { display: inline-flex; gap: 6px; align-items: center; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--jade-tint); color: var(--jade); justify-self: start; }

/* lineage diagram */
.lineage svg { width: 100%; height: auto; }
.notice { background: var(--card); border: 2px solid var(--gold); border-radius: var(--r-md); padding: 26px 28px; display: grid; gap: 12px; position: relative; }
.notice h3 { font-size: 1.3rem; display: flex; gap: 10px; align-items: center; }
.notice h3 svg { width: 26px; height: 26px; color: var(--cinnabar); }
.notice.red { border-color: #dfaea4; background: #fbf4f2; }

.en-draft { background: var(--navy-tint); color: var(--navy); font-size: .85rem; text-align: center; padding: 8px 16px; }
main:focus { outline: none; }
@media (max-width: 767px) {
  .brand b { font-size: 1.35rem; }
  .hero .corner { display: none; }
  .ph figcaption { left: 12px; right: 12px; bottom: 12px; padding: 8px 10px; font-size: .74rem; }
}
/* refinements */
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.hero h1 .calli { font-size: 1.7em; margin-bottom: 6px; }
html[lang="en"] .hero h1 .calli { font-family: var(--font-en-display); font-size: 1.4em; letter-spacing: 0; line-height: 1.05; }
html[lang="en"] .hero .tagline { letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; font-family: var(--font-en-body); }
.brand b { white-space: nowrap; }
@media (max-width: 767px) {
  .brand .seal { width: 36px; height: 36px; }
  .brand b { font-size: 1.2rem; }
  .lang-toggle button { min-width: 40px; padding: 0 9px; }
}

/* hero: eyebrow + one headline; maps */
.hero h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1.22; font-weight: 500; }
html[lang="en"] .hero h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.12; }
.hero .corner { opacity: .45; width: 150px; }
.map-live, .map-link { display: block; min-height: 360px; }
.map-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link { color: inherit; text-decoration: none; }
.map-link svg { position: absolute; inset: 0; }
.map-open { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid rgba(22,32,58,.25); border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 600; color: var(--ink-strong); box-shadow: var(--shadow); }
.map-open svg { position: static; width: 15px; height: 15px; }
.map-link:hover .map-open { background: var(--navy); color: #fefefc; border-color: var(--navy); }
.cta-band .wrap > svg { opacity: .95; }
.footer .credit { font-size: .75rem; color: #9ea6ba; }
.nw { white-space: nowrap; }
.hero .lead, .hero h1 { text-wrap: pretty; }
html[lang="en"] .hero h1 { text-wrap: balance; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.15rem); }
@media (max-width: 480px) { html[lang="zh-Hans"] .hero h1 { font-size: 1.85rem; } }

/* language toggle: EN | 中文 */
.lang-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; border-radius: 0; }
.lang-toggle .thumb { display: none; }
.lang-toggle button { min-width: 0; min-height: 40px; padding: 0 8px; border-radius: 4px; font-size: 1rem; font-weight: 500; color: var(--muted); background: none; position: relative; }
.lang-toggle button:hover { color: var(--ink-strong); }
.lang-toggle button[aria-pressed="true"] { color: var(--ink-strong); font-weight: 700; }
.lang-toggle button[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 5px; height: 2.5px; border-radius: 2px; background: var(--cinnabar); }
.lang-toggle .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
/* one-line responsive heading */
.fit-head { max-width: none; }
.fit-head h2[data-fit] { white-space: nowrap; max-width: 100%; }
.fit-head h2.fitting { overflow: hidden; }
.fit-head h2.fit-wrap { white-space: normal; }
/* English day badge */
html[lang="en"] .sched-card .day b { font-family: var(--font-en-display); font-size: 1.45rem; font-weight: 500; letter-spacing: .02em; }
/* stage cards: links line up at the bottom */
.stage { display: flex; flex-direction: column; gap: 14px; }
.stage > .link-arrow { margin-top: auto; }
.stage > p { flex: 0 0 auto; }
.stage .art { aspect-ratio: 1 / 1; background: var(--card); }
.stage .art svg { width: 82%; height: 82%; }
/* 性命圭旨 chart */
.xm-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 10px; box-shadow: var(--shadow); }
.xm-chart { width: 100%; height: auto; display: block; overflow: visible; }
.xm-spin { animation: xmspin 40s linear infinite; transform-box: view-box; }
@keyframes xmspin { from { transform: translate(280px, 200px) rotate(0); } to { transform: translate(280px, 200px) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .xm-beads { display: none; } .xm-spin { animation: none; } }
.xm-split { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .xm-split { grid-template-columns: 1fr; } .xm-split > .xm-wrap { order: 0; } }

/* 小周天 animation */
.zt-svg { overflow: visible; }
.zt-box.still .zt-anim { display: none; }
.zt-dantian { animation: ztpulse 3.5s ease-in-out infinite; transform-origin: 236px 292px; transform-box: view-box; }
@keyframes ztpulse { 0%, 100% { opacity: .12; transform: scale(.9); } 50% { opacity: .3; transform: scale(1.15); } }
[data-focus] .zt-anim { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .zt-dantian { animation: none; } }
.xm-plain { max-width: 520px; width: 100%; justify-self: center; }
.xm-split { align-items: center; }
.stage .art svg { width: 70%; height: 70%; }

/* 小周天 diagram (new) */
.zt-box { display: grid; justify-items: center; gap: 14px; }
.zt-box .zt-svg { width: 100%; max-width: 420px; height: auto; display: block; overflow: visible; }
.zt-halo { opacity: 0; transform-box: fill-box; transform-origin: center; animation: zthalo 12s linear infinite; }
@keyframes zthalo { 0% { opacity: .75; transform: scale(1.25); } 9% { opacity: 0; transform: scale(.6); } 100% { opacity: 0; } }
.zt-legend { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: .88rem; color: var(--muted); }
.zt-legend span { display: inline-flex; align-items: center; gap: 8px; }
.zt-legend i { width: 26px; height: 0; border-top: 3px dashed; display: inline-block; }
.zt-legend i.du { border-color: var(--cinnabar); }
.zt-legend i.ren { border-color: var(--navy); }
.zt-box.still .zt-anim { display: none; }
@media (prefers-reduced-motion: reduce) { .zt-halo { animation: none; } }

/* no orphans: balance headings, avoid one-character/one-word last lines in running text */
p, li, dd, figcaption, blockquote, .lead, .desc, summary, .cap { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
.center h2[data-fit] { margin-inline: auto; }

@media (min-width: 1100px) { .sched-card .time, .sched-card h3 { white-space: nowrap; } }
.split .sched { grid-template-columns: 1fr; }

/* ---------- Micro-interactions, matched to the clinic site ---------- */
/* nav: underline slides in on hover, stays on the current page */
.nav a { position: relative; text-decoration: none !important; }
.nav a:hover { background: transparent; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--cinnabar); transform: scaleX(0); transform-origin: center; transition: transform 300ms var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 600; }
.drawer .panel a.navlink { position: relative; }
.drawer .panel a.navlink::after { content: ""; position: absolute; left: 12px; bottom: 10px; width: 28px; height: 2px; background: var(--cinnabar); transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.drawer .panel a.navlink:hover::after, .drawer .panel a.navlink[aria-current="page"]::after { transform: scaleX(1); }
/* arrows nudge forward on hover; other icons stay put */
.btn svg, .link-arrow svg { transition: transform 200ms ease-out; }
.btn:hover svg:not(.arrow-i), .link-arrow:hover svg:not(.arrow-i) { transform: none; }
.btn:hover .arrow-i, .link-arrow:hover .arrow-i, .related a:hover .arrow-i { transform: translateX(3px); }
/* cards lift gently */
.card, .virtue, .sched-card, .rule, .stage .art, .notice { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms; }
.card:hover, .virtue:hover, .sched-card:hover, .rule:hover, .stage:hover .art { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(22,32,58,.06), 0 22px 40px -18px rgba(22,32,58,.32); border-color: rgba(29,43,75,.25); }
/* accordion rows */
.faq summary, details.more > summary, .chapters summary { transition: color 200ms ease-out; }
.faq summary:hover, details.more > summary:hover, .chapters summary:hover .ct { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.faq summary::after, details.more > summary::after, .chapters summary::after { transition: transform 260ms var(--ease); }
.faq details[open] summary::after, details.more[open] > summary::after, .chapters details[open] summary::after { transform: rotate(180deg); }
/* footer and language links */
.footer a { transition: color 200ms; }
.lang-toggle button { transition: color 200ms; }
@media (prefers-reduced-motion: reduce) { .nav a::after, .card, .virtue, .sched-card, .rule, .stage .art { transition: none; } .card:hover, .virtue:hover, .sched-card:hover, .rule:hover, .stage:hover .art { transform: none; } }

/* classes page: in-page section links */
.page-nav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(251,251,248,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.page-nav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.page-nav .wrap::-webkit-scrollbar { display: none; }
.page-nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: .92rem; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(22,32,58,.18); background: var(--card); transition: background-color .2s, color .2s, border-color .2s; }
.page-nav a:hover { background: var(--navy); color: #fefefc; border-color: var(--navy); }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 12px; } }
.faq-group + .faq-group { margin-top: 30px; }
.faq-group h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--gold-text); font-family: var(--font-body); font-weight: 500; letter-spacing: .08em; }
.faq .ans .link-arrow { margin-top: 2px; }
html { scroll-padding-top: calc(var(--header-h) + 64px); }
[tabindex="-1"]:focus { outline: none; }

/* first visit: one clean list */
.visit-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .visit-wrap { grid-template-columns: 1fr; gap: 8px; } }
.visit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.visit-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink-strong); }
.visit-list li svg { width: 24px; height: 24px; color: var(--navy); }
.visit-list li.warn svg { color: var(--cinnabar); }
/* FAQ rows: no underline on hover */
.faq summary:hover { text-decoration: none; }

/* FAQ: heading on top, tabs, questions below */
.faq-stack > * { max-width: 920px; }
.faq-stack .sec-head { margin-bottom: 28px; }
.faq-tabs [role="tablist"] { margin: 0 0 8px; }
.faq-tabs [role="tabpanel"] { background: transparent; border: 0; padding: 0; margin-top: 18px; }
.faq-tabs [role="tabpanel"] details:first-of-type { border-top: 1px solid var(--line); }
.faq .ans, .faq .ans p { max-width: none; }
/* hero breathing room below the sticky header */
.hero { padding: 112px 0 120px; }
.page-hero { padding: 128px 0 112px; min-height: 420px; display: flex; align-items: center; }
.page-hero > .wrap { width: 100%; }
.page-hero .bg-char { font-size: clamp(150px, 20vw, 240px); }
@media (max-width: 900px) { .hero { padding: 64px 0 72px; } .page-hero { padding: 72px 0 64px; min-height: 0; } }
/* hero corner frets sit fully inside the hero, clear of the header */
.hero .corner { width: 132px; opacity: .5; }
.hero .corner.tl { left: 24px; top: 28px; }
.hero .corner.br { right: 24px; bottom: 28px; }
/* quotes: no container — large serif lines with a faint corner bracket and a short rule before the source */
blockquote.quote { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 0 4px 34px; margin: 30px 0; font-size: 1.42rem; line-height: 1.85; letter-spacing: .04em; }
blockquote.quote::before { content: "「"; position: absolute; left: -4px; top: -10px; bottom: auto; width: auto; border-radius: 0; background: none; font-family: var(--font-zh-display); font-size: 2.6rem; line-height: 1; color: var(--gold); }
html[lang="en"] blockquote.quote { font-size: 1.3rem; letter-spacing: 0; }
html[lang="en"] blockquote.quote::before { content: "“"; font-family: var(--font-en-display); font-size: 3.4rem; top: -14px; }
blockquote.quote cite { display: flex; align-items: center; gap: 10px; margin-top: 14px; letter-spacing: .06em; }
blockquote.quote cite::before { content: ""; width: 24px; height: 1px; background: var(--gold); }

/* 宗旨愿景: two lines, each kept whole on wider screens */
.two-line { max-width: none; }
.two-line h2 { font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.5; }
.two-line h2 .line { display: block; }
@media (min-width: 900px) { .two-line h2 .line { white-space: nowrap; } }

/* 传承脉络: two labelled statements instead of bullets; diagram without a container */
.lineage-pair { display: grid; gap: 22px; margin-top: 6px; }
.lp { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
.lp-k { font-family: var(--font-calli); font-size: 1.9rem; line-height: 1.1; }
html[lang="en"] .lp-k { font-family: var(--font-en-display); font-size: 1.45rem; }
.lp.ming .lp-k { color: var(--cinnabar); }
.lp.xing .lp-k { color: var(--navy); }
.lineage { background: none; border: 0; box-shadow: none; padding: 0; }
.lineage svg { width: 100%; height: auto; display: block; }
/* 郑重声明: solid cinnabar */
.notice.red { background: var(--cinnabar); border-color: var(--cinnabar); color: #fbf4f2; }
.notice.red h3, .notice.red p { color: #fefefc; }
.notice.red h3 svg { color: #fefefc; }
.notice.red .link-arrow { color: #fefefc; text-decoration-color: rgba(255,251,239,.6); }
.notice.red .link-arrow:hover { color: #fefefc; text-decoration-color: #fefefc; }
/* 郑重声明: subtle red instead of solid */
.notice.red { background: #fbf4f2; border: 1px solid #e2b6ad; color: var(--ink); }
.notice.red h3 { color: var(--cinnabar-dark); }
.notice.red p { color: var(--ink); }
.notice.red h3 svg { color: var(--cinnabar); }
.notice.red .link-arrow { color: var(--cinnabar-dark); text-decoration-color: rgba(182,63,48,.45); }
.notice.red .link-arrow:hover { color: var(--cinnabar); text-decoration-color: var(--cinnabar); }
.notice.notice-red-line { border: 1.5px solid var(--cinnabar); }

/* ===== Practice page v2: sticky page tabs, 性命 tabs, visuals ===== */
html:has(.ptabs) { scroll-padding-top: calc(var(--header-h) + 76px); }
.ptabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(251, 251, 248, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ptabs ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(20px, 3.4vw, 44px); overflow-x: auto; scrollbar-width: none; }
.ptabs ol::-webkit-scrollbar { display: none; }
.ptabs a { display: block; position: relative; padding: 17px 2px 16px; text-decoration: none; color: var(--muted); font-size: .95rem; white-space: nowrap; transition: color .2s; }
.ptabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cinnabar); transform: scaleX(0); transform-origin: center; transition: transform .32s var(--ease); }
.ptabs a:hover { color: var(--ink-strong); }
.ptabs a:hover::after { transform: scaleX(1); opacity: .45; }
.ptabs a.active { color: var(--ink-strong); font-weight: 500; }
.ptabs a.active::after { transform: scaleX(1); opacity: 1; }
@media (max-width: 900px) { .ptabs ol { justify-content: flex-start; } .ptabs a { padding: 14px 2px 13px; font-size: .9rem; } }
@media (prefers-reduced-motion: reduce) { .ptabs a::after { transition: none; } }

.wrap.article > section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.wrap.article > section:first-child { padding-top: 72px; }
.wrap.article > section:last-child { border-bottom: 0; }
.wrap.article > section > .lead { margin-top: 4px; }

/* 总纲 */
.zg-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; margin-top: 18px; }
.zg-split .prose > * + * { margin-top: 1.1em; }
.zg-split blockquote.quote { margin: 26px 0 0; }
.zg-art { display: grid; place-items: center; }
.xm-taiji { width: 100%; max-width: 360px; height: auto; overflow: visible; }
@media (max-width: 900px) { .zg-split { grid-template-columns: 1fr; gap: 36px; } .zg-art { order: -1; } .xm-taiji { max-width: 260px; } }

/* 性命双修 tabs */
.gf { margin-top: 32px; }
.gf-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .gf-tabs { grid-template-columns: 1fr; gap: 12px; } }
.gf-tab { text-align: left; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; font: inherit; color: var(--ink); position: relative; transition: background-color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.gf-tab:hover { border-color: rgba(29, 43, 75, .35); transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(22, 32, 58, .35); }
.gf-tab .seal-ch { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-calli); font-size: 2.1rem; line-height: 1; border: 1.5px solid var(--gold); box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px rgba(200, 163, 91, .55); color: var(--navy); background: var(--card); transition: inherit; }
.gf-tab.ming .seal-ch { color: var(--cinnabar); }
.gf-tab .eyebrow { margin: 0; }
.gf-tab b { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink-strong); margin: 4px 0 8px; }
.gf-tab .d { display: block; font-size: .92rem; color: var(--muted); line-height: 1.7; }
.gf-tab .more { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); transition: transform .35s var(--ease), background-color .3s, border-color .3s; }
.gf-tab .more svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.gf-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fefefc; transform: none; box-shadow: 0 18px 36px -22px rgba(22, 32, 58, .55); }
.gf-tab[aria-selected="true"] b { color: #fefefc; }
.gf-tab[aria-selected="true"] .d { color: rgba(255, 251, 239, .78); }
.gf-tab[aria-selected="true"] .eyebrow { color: var(--gold-light); }
.gf-tab[aria-selected="true"] .seal-ch { background: var(--navy); box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 5px rgba(227, 194, 126, .6); color: var(--gold-light); }
.gf-tab[aria-selected="true"] .more svg { transform: rotate(90deg); }
.gf-tab[aria-selected="true"] .more { border-color: rgba(227, 194, 126, .5); color: var(--gold-light); }
.gf-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; background: var(--navy); transform: translateX(-50%) rotate(45deg); border-radius: 0 0 4px 0; }
@media (max-width: 760px) { .gf-tab[aria-selected="true"]::after { display: none; } .gf-tab { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; padding: 18px; } .gf-tab .seal-ch { width: 54px; height: 54px; font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { .gf-tab, .gf-tab .more { transition: none; } .gf-tab:hover { transform: none; } }

.gf-panel { margin-top: 26px; }
.gf-panel:focus { outline: none; }
.gf-panel[hidden] { display: none; }
.gf-panel .sub { padding: 52px 0; border-bottom: 1px dashed rgba(200, 163, 91, .55); }
.gf-panel .sub:first-child { padding-top: 30px; }
.gf-panel .sub:last-child { border-bottom: 0; padding-bottom: 0; }
.gf-panel .sub > h3, .gf-panel .zt-sub h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 0 0 10px; }
.gf-panel h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink-strong); }
@media (min-width: 761px) { .gf-panel.anim { animation: gfin .45s var(--ease); } }
@keyframes gfin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gf-panel { animation: none; } }

/* 丹道次第: home-page stage style */
.ming-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; position: relative; }
.ming-steps li { display: flex; flex-direction: column; gap: 12px; position: relative; }
.ming-steps .art { aspect-ratio: 1 / 1; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms; }
.ming-steps li:hover .art { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(22,32,58,.06), 0 22px 40px -18px rgba(22,32,58,.32); border-color: rgba(29,43,75,.25); }
.ming-steps .art svg { width: 76%; height: 76%; }
.ming-steps li:not(:last-child) .art::after { content: ""; position: absolute; top: 50%; right: -23px; width: 22px; border-top: 1.5px dashed var(--gold); }
.ming-steps .num { font-family: var(--font-calli); font-size: 1.2rem; color: var(--cinnabar); letter-spacing: .1em; display: block; }
.ming-steps h4 { font-size: 1.15rem; margin: 2px 0 8px; }
.ming-steps p { font-size: .95rem; line-height: 1.75; }
.ming-steps .rel { margin-top: 10px; font-size: .9rem; }
@media (max-width: 1100px) {
  .ming-steps { grid-template-columns: 1fr; gap: 22px; }
  .ming-steps li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: center; }
  .ming-steps li:not(:last-child) .art::after { top: auto; bottom: -23px; right: auto; left: 50%; width: 0; height: 22px; border-top: 0; border-left: 1.5px dashed var(--gold); }
}
@media (max-width: 520px) { .ming-steps li { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; } }
@media (prefers-reduced-motion: reduce) { .ming-steps .art { transition: none; } .ming-steps li:hover .art { transform: none; } }

.reactions .rx h4 { margin: 0; font-size: 1.15rem; display: flex; gap: 10px; align-items: center; }
.reactions .rx h4 svg { width: 22px; height: 22px; }
.rx.do h4 { color: var(--jade); }
.rx.stop h4 { color: var(--cinnabar-dark); }
.zt-sub .zt-box { justify-self: center; }

/* 性功 topics */
.xing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
@media (max-width: 900px) { .xing-grid { grid-template-columns: 1fr; } }
.xg { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms; }
.xg:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(22,32,58,.06), 0 22px 40px -18px rgba(22,32,58,.32); border-color: rgba(29,43,75,.25); }
.xg .mo, .huiguang .mo { width: 64px; height: 64px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.xg .mo svg, .huiguang .mo svg { width: 46px; height: 46px; }
.xg h4 { font-size: 1.2rem; margin: 6px 0 0; }
.xg p { font-size: .95rem; line-height: 1.75; }
.xg .sutra-line { font-family: var(--font-zh-display); color: var(--ink-strong); border-left: 2px solid var(--gold); padding-left: 12px; }
.huiguang { margin-top: 18px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start; background: var(--navy); color: #fefefc; border-radius: var(--r-md); padding: 30px 32px; }
.huiguang .mo { width: 96px; height: 96px; background: rgba(255, 251, 239, .08); }
.huiguang .mo svg { width: 70px; height: 70px; }
.huiguang .mo svg [stroke="#1d2b4b"] { stroke: #fefefc; }
.huiguang h4 { color: #fefefc; font-size: 1.3rem; margin: 0 0 14px; }
.hg-steps { margin: 0; padding: 0; list-style: none; counter-reset: hg; display: grid; gap: 12px; }
.hg-steps li { counter-increment: hg; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; color: rgba(255, 251, 239, .86); max-width: none; }
.hg-steps li::before { content: counter(hg); width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(227, 194, 126, .6); color: var(--gold-light); display: grid; place-items: center; font-family: var(--font-en-display); font-size: .9rem; margin-top: 2px; }
@media (max-width: 640px) { .huiguang { grid-template-columns: 1fr; padding: 24px; gap: 16px; } .huiguang .mo { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .xg { transition: none; } .xg:hover { transform: none; } }
#sutra .reader { margin-top: 18px; }

/* 典籍: bamboo slips */
.slips-wrap { margin-top: 30px; display: grid; gap: 22px; justify-items: center; }
.slips { display: flex; gap: 6px; justify-content: center; position: relative; padding: 0 14px; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.slips::before, .slips::after { content: ""; position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--gold); pointer-events: none; z-index: 2; }
.slips::before { top: 30px; } .slips::after { bottom: 30px; }
.slip { flex: none; width: 58px; height: 236px; border-radius: 6px; border: 1px solid #d6cdb3; background: linear-gradient(90deg, #f1edde, #f9f6ee 45%, #ebe6d3); cursor: pointer; font: inherit; color: var(--ink-strong); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 0 40px; transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.slip .n { font-family: var(--font-calli); color: var(--cinnabar); font-size: 1.05rem; line-height: 1; writing-mode: vertical-rl; }
.slip .st { writing-mode: vertical-rl; font-family: var(--font-zh-display); font-size: 1.12rem; letter-spacing: .18em; line-height: 1.2; max-height: 150px; }
html[lang="en"] .slip .st { font-family: var(--font-display); font-size: .88rem; letter-spacing: .02em; line-height: 1.15; }
html[lang="en"] .slip .n { font-family: var(--font-en-display); writing-mode: horizontal-tb; font-size: 1rem; }
.slip:hover { transform: translateY(-6px); }
.slip[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fefefc; transform: translateY(-6px); box-shadow: 0 16px 30px -16px rgba(22, 32, 58, .6); }
.slip[aria-selected="true"] .n { color: var(--gold-light); }
.slip-panel { width: 100%; max-width: 720px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 32px; position: relative; }
.slip-panel[hidden] { display: none; }
.slip-panel .cn { font-family: var(--font-calli); color: var(--cinnabar); font-size: 1.15rem; letter-spacing: .1em; }
html[lang="en"] .slip-panel .cn { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.slip-panel h3 { margin: 4px 0 10px; font-size: 1.5rem; }
.slip-panel p { margin-inline: auto; }
@media (max-width: 1100px) { .slips { justify-content: flex-start; } }
@media (max-width: 640px) { .slip { width: 50px; height: 240px; padding: 34px 0 30px; } .slips::before { top: 24px; } .slips::after { bottom: 24px; } .slip .st { font-size: 1rem; max-height: 160px; } }
@media (prefers-reduced-motion: reduce) { .slip { transition: none; } }

/* 日课 figures */
.routine .fig { width: 132px; height: 132px; border-radius: 50%; background: rgba(255, 251, 239, .7); display: grid; place-items: center; margin-bottom: 8px; border: 1px solid rgba(200, 163, 91, .45); }
.routine > div:nth-child(2) .fig { background: var(--sand); }
.routine .fig svg { width: 104px; height: 104px; }

/* images without containers: home 功法三阶 + practice 丹道次第 */
.stage .art, .ming-steps .art { background: none; border: 0; border-radius: 0; box-shadow: none; }
.stage:hover .art, .ming-steps li:hover .art { box-shadow: none; border: 0; }
.stage .art, .ming-steps .art { aspect-ratio: 6 / 5; }
.stage .art svg, .ming-steps .art svg { width: 80%; height: 100%; }
.ming-steps li:not(:last-child) .art::after { display: none; }
/* 《性命圭旨》 note: vertical book-title slip beside the text, no card */
.book-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 30px; }
.book-note .bk-title { writing-mode: vertical-rl; font-family: var(--font-zh-display); font-size: 1.2rem; letter-spacing: .2em; color: var(--ink-strong); padding: 4px 12px 4px 0; border-right: 2px solid var(--cinnabar); line-height: 1; }
.book-note > div { display: grid; gap: 8px; padding-top: 2px; }
.book-note .small { font-size: .88rem; color: var(--muted); }

/* ===== round 3 ===== */
/* no hover lift on illustration and schedule blocks */
.stage:hover .art, .ming-steps li:hover .art { transform: none; box-shadow: none; }
.sched-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
/* home schedule: no container */
.sched-plain .sched-card { background: none; border: 0; box-shadow: none; padding: 8px 0; }
.sched-plain .sched-card.stitched::after { display: none; }
.sched-plain .sched-card:hover { border: 0; }

/* lineage: diagram takes the larger column */
.lineage-split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.lineage-split .lineage svg { max-width: 640px; margin-inline: auto; }
@media (max-width: 900px) { .lineage-split { grid-template-columns: 1fr; } }

/* 《性命圭旨》 first: a book-title label (题签) beside the description */
.book-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tiqian { width: 54px; padding: 6px; background: var(--paper); outline: 1px solid var(--cinnabar); outline-offset: -1px; box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(182, 63, 48, .55); }
.tiqian span { display: block; writing-mode: vertical-rl; margin-inline: auto; padding: 12px 0; font-family: var(--font-calli); font-size: 1.55rem; line-height: 1; letter-spacing: .12em; color: var(--ink-strong); text-align: center; }
.book-intro p { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.85; color: var(--ink-strong); }
html[lang="en"] .book-intro p { font-size: 1.15rem; }
.book-intro .src { display: inline-block; margin-left: 8px; font-family: var(--font-body); font-size: .85rem; color: var(--gold-text); }
.zg-split .prose > .book-intro + p { margin-top: 0; }

/* hierarchy inside the 性命双修 tabs: section h2 > tab tile > sub-heading */
.wrap.article > section > h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.gf-panel .sub-h, .gf-panel .zt-sub .sub-h { display: flex; align-items: center; gap: 12px; font-size: clamp(1.2rem, 1.8vw, 1.4rem); margin: 0 0 10px; color: var(--ink-strong); }
.gf-panel .sub-h::before { content: ""; width: 9px; height: 9px; flex: none; transform: rotate(45deg); background: var(--gold); }
.gf-panel .sub > .lead, .gf-panel .zt-sub .lead { font-size: 1.02rem; color: var(--muted); }
.gf-panel { border-top: 2px solid var(--navy); margin-top: 26px; padding-top: 4px; }
@media (max-width: 760px) { .gf-panel { border-top-width: 1px; } }

/* numbered markers centred on their text */
.points li { align-items: center; }
.hg-steps li { align-items: center; }
.hg-steps li::before { margin-top: 0; }
.rule { align-items: center; }

/* 典籍: chapter line without a card */
.slip-panel { background: none; border: 0; border-radius: 0; padding: 6px 24px 0; max-width: 640px; }
.slip-panel::before { content: ""; display: block; width: 120px; height: 12px; margin: 0 auto 14px; background:
  radial-gradient(circle, var(--cinnabar) 3px, transparent 3.5px) center / 12px 12px no-repeat,
  linear-gradient(var(--gold), var(--gold)) left center / 50px 1px no-repeat,
  linear-gradient(var(--gold), var(--gold)) right center / 50px 1px no-repeat; }
.slip-panel h3 { font-family: var(--font-calli); font-size: 2rem; font-weight: 400; margin: 2px 0 8px; }
html[lang="en"] .slip-panel h3 { font-family: var(--font-display); font-size: 1.6rem; }
.slip-panel p { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-strong); }
@media (max-width: 900px) { .flow li { align-items: center; } .flow li h3 { align-self: end; } .flow li p { align-self: start; } }
.book-intro { align-items: center; }

/* ===== round 4 ===== */
.rx.stop { border-width: 1px; }
.gf-panel .sub > .lead { max-width: none; }
#gongfa { border-bottom: 2px solid var(--navy); }
@media (max-width: 760px) { #gongfa { border-bottom-width: 1px; } }
/* 要诀与禁忌: icons, no cards, no hover */
.rules-plain { gap: 34px 48px; margin-top: 30px; }
.rules-plain .rule { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.rules-plain .rule:hover { transform: none; box-shadow: none; border: 0; }
.rules-plain .rule .x { width: 52px; height: 52px; background: var(--cinnabar-tint); color: var(--cinnabar-dark); }
.rules-plain .rule .x svg { width: 24px; height: 24px; }
.rules-plain .rule h3 { margin: 0 0 6px; min-height: 52px; display: flex; align-items: center; line-height: 1.4; }
.rules-plain .rule p { margin-top: -4px; }

/* ===== round 5 ===== */
/* 要诀与禁忌: 2×2 with a cross of dividers */
.rules-plain { gap: 0; }
.rules-plain .rule { padding: 30px 36px 30px 0; }
.rules-plain .rule:nth-child(odd) { border-right: 1px solid var(--line); }
.rules-plain .rule:nth-child(even) { padding-left: 36px; padding-right: 0; }
.rules-plain .rule:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-top: 8px; }
.rules-plain .rule:nth-child(n+3) { padding-bottom: 8px; }
@media (max-width: 700px) {
  .rules-plain .rule, .rules-plain .rule:nth-child(even) { padding: 24px 0; border-right: 0; }
  .rules-plain .rule:not(:last-child) { border-bottom: 1px solid var(--line); }
  .rules-plain .rule:first-child { padding-top: 6px; }
}

/* 回光守中: light panel (the open tab above is already navy) */
.huiguang { background: var(--sand); color: var(--ink); border: 1px solid rgba(200, 163, 91, .45); }
.huiguang .mo { background: var(--card); }
.huiguang .mo svg [stroke="#1d2b4b"] { stroke: #1d2b4b; }
.huiguang h4 { color: var(--ink-strong); }
.hg-steps li { color: var(--ink); }
.hg-steps li::before { border-color: var(--gold); color: var(--navy); background: var(--card); }

/* 心经: interlinear lines, plain reading beneath each line */
.sutra { margin-top: 20px; }
.sutra-bar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.switch { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font: inherit; font-size: .92rem; color: var(--ink-strong); padding: 6px 0; min-height: 40px; }
.switch .knob { width: 40px; height: 22px; border-radius: 999px; background: rgba(22, 32, 58, .2); position: relative; transition: background-color .25s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fefefc; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch[aria-pressed="true"] .knob { background: var(--navy); }
.switch[aria-pressed="true"] .knob::after { transform: translateX(18px); }
.sutra-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sutra-lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px dashed rgba(200, 163, 91, .55); max-width: none; }
.sutra-lines .vn { font-family: var(--font-calli); color: var(--cinnabar); font-size: 1.35rem; line-height: 1.5; text-align: center; }
html[lang="en"] .sutra-lines .vn { font-family: var(--font-en-display); font-size: 1.2rem; }
.sutra-lines .orig { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.9; color: var(--ink-strong); letter-spacing: .04em; max-width: none; }
html[lang="en"] .sutra-lines .orig { letter-spacing: 0; font-size: 1.22rem; }
.sutra-lines .plain { margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--gold); font-size: .98rem; color: var(--muted); max-width: none; }
.sutra.no-plain .plain { display: none; }
@media (max-width: 640px) { .sutra-lines li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; } .sutra-lines .orig { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .switch .knob, .switch .knob::after { transition: none; } }
.sutra-lines .vn { line-height: 2.508rem; }
html[lang="en"] .sutra-lines .vn { line-height: 2.318rem; }
@media (max-width: 640px) { .sutra-lines .vn { line-height: 2.185rem; } }

/* ===== round 6 ===== */
.routine > div:nth-child(3) { background: var(--jade-tint); }
/* 要诀与禁忌 item titles */
.rules-plain .rule h3 { font-size: 1.3rem; font-weight: 600; color: var(--ink-strong); }
.rules-plain .rule p { color: var(--muted); font-size: .97rem; }
/* 心经观照: no cards, vertical dividers */
.xing-grid { gap: 0; }
.xg { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 6px 32px; }
.xg:hover { transform: none; box-shadow: none; border: 0; }
.xg:first-child { padding-left: 0; }
.xg:last-child { padding-right: 0; }
.xg + .xg { border-left: 1px solid var(--line); }
@media (max-width: 900px) { .xg, .xg:first-child, .xg:last-child { padding: 22px 0; } .xg + .xg { border-left: 0; border-top: 1px solid var(--line); } }

/* ===== round 7 ===== */
.routine h3 { font-size: 1.25rem; font-weight: 600; color: var(--ink-strong); }
.routine p { color: var(--muted); font-size: .97rem; }

/* mobile menu: full width, only as tall as its content, drops from the top */
.drawer .panel { left: 0; right: 0; top: 0; bottom: auto; width: 100%; max-height: 100dvh; padding: 18px var(--gutter) 26px; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 18px 40px -10px rgba(22, 32, 58, .35); }
.drawer.open .panel { animation: drawerdrop .32s var(--ease); }
@keyframes drawerdrop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer.open .panel { animation: none; } }

/* Classes hero: image sits left of the large background character, overlapping it only slightly */
@media (min-width: 901px) { .page-hero [data-placeholder="CLASS_HERO_IMAGE_PLACEHOLDER"] { width: min(100%, clamp(340px, 34vw - 20px, 470px)); justify-self: start; margin-left: -12px; } }

/* 协会宗旨 disclaimer: plain note, no box */
.claim-note { background: none; border: 0; border-radius: 0; padding: 0; margin-top: 30px; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; }
.claim-note svg { margin-top: 0; width: 18px; height: 18px; }
.addr-block .sec-head { margin-bottom: 0; }
.addr-block { gap: 12px; }

/* footer brand with the red seal */
.footer .brand-f { display: flex; align-items: center; gap: 14px; align-self: start; }
.footer .brand-f .seal-f { width: 44px; height: 44px; flex: none; }
/* footer links: comfortable tap targets */
.footer ul a { display: inline-block; padding: 4px 0; min-height: 28px; }
.footer ul { gap: 4px; }

/* ===== final QA: tablet layout ===== */
@media (min-width: 640px) and (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .stage h3 { font-size: 1.2rem; } }
@media (max-width: 1023px) { [data-placeholder="FOUNDER_PORTRAIT_PLACEHOLDER"] { width: min(100%, 420px); } }
@media (max-width: 900px) { .gf-tabs { grid-template-columns: 1fr; gap: 12px; } .gf-tab[aria-selected="true"]::after { display: none; } }

.lineage .lin-tall { display: none; }
@media (max-width: 600px) { .lineage .lin-wide { display: none; } .lineage .lin-tall { display: block; max-width: 400px; margin-inline: auto; } }

/* ===== QA round: alignment and widths ===== */
/* class flow (desktop): titles and descriptions share rows so they line up */
@media (min-width: 901px) {
  .flow { grid-template-rows: auto auto 1fr; row-gap: 10px; }
  .flow li { grid-row: span 3; grid-template-rows: subgrid; align-items: start; gap: 0; row-gap: 10px; }
}
/* 丹道次第 (desktop): art, number, title, text on shared rows */
@media (min-width: 1101px) {
  .ming-steps { grid-template-rows: auto auto auto 1fr; row-gap: 0; }
  .ming-steps li { display: grid; grid-row: span 4; grid-template-rows: subgrid; gap: 0; }
  .ming-steps li .txt { display: contents; }
  .ming-steps .num { margin-top: 12px; }
  .ming-steps h4 { align-self: start; margin: 4px 0 8px; }
}
/* full-width text where requested */
.visit-list li, .visit-list li span { max-width: none; }
#jinhua > .lead, .routine p, .routine h3 { max-width: none; }
/* disclaimer icon aligns with the first line */
.claim-note { align-items: flex-start; }
.claim-note svg { margin-top: .32em; }
.ming-steps h4 { text-wrap: pretty; }

/* ===== text fills its container (no artificial measure), headings wrap only when needed ===== */
h2, h3, h4, p, li, dd, figcaption, blockquote, .lead, .desc, summary, .cap { text-wrap: wrap; }
.ming-steps h4 { text-wrap: wrap; }
.lead, .sec-head, .sec-head .lead, .article p, .article li, .cta-band p, .slip-panel, .slip-panel p, .page-hero .lead, .xg .sutra-line { max-width: none; }
.cta-band h2 + p { max-width: none; }

/* ===== painted artwork ===== */
.hero-art { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 2px 4px rgba(22, 32, 58, .05), 0 28px 50px -26px rgba(22, 32, 58, .35); position: relative; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; display: block; }
.hero-art::after { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(200, 163, 91, .55); border-radius: calc(var(--r-lg) - 6px); pointer-events: none; }
.stage .art.painted { aspect-ratio: 1 / 1; }
.stage .art.painted img, .stage .art.painted svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-art { border-radius: 0; }
.hero-art::after { border-radius: 0; }
.hero-art { box-shadow: none; }

/* 小周天: painted figure version */
.zt-painted .zt-svg { width: 100%; max-width: 440px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.zt-painted .zt-legend i { border-top-style: solid; }
.zt-painted .zt-legend i.du { border-color: #a84735; }
.zt-painted .zt-legend i.ren { border-color: #24374b; }

/* 丹道次第: painted stages */
.ming-steps .art.painted { aspect-ratio: 1 / 1; }
.ming-steps .art.painted img, .ming-steps .art.painted svg { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 日课建议: painted scenes across the top of each card */
.routine > div { padding: 0 0 28px; }
.routine > div > :not(.scene) { margin-inline: 24px; }
.routine .scene { margin: 0 0 10px; aspect-ratio: 3 / 2; overflow: hidden; }
.routine .scene img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 课程专区 hero: painted classroom (square corners, no shadow, like the home hero) */
.class-hero-art { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.class-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; display: block; }
.class-hero-art::after { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(200, 163, 91, .55); pointer-events: none; }
@media (min-width: 901px) { .page-hero .class-hero-art { width: min(100%, clamp(340px, 34vw - 20px, 470px)); justify-self: start; margin-left: -12px; } }

/* 长生久视之道: full-bleed landscape above the text */
.section.dao-sec { padding-top: 0; }
.dao-banner { margin: 0 0 var(--section); width: 100%; aspect-ratio: 16 / 6; overflow: hidden; }
.dao-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.dao-text > div { max-width: none; }
@media (max-width: 760px) { .dao-banner { aspect-ratio: 16 / 9; margin-bottom: 56px; } }

/* home 课堂: one full-width classroom painting */
.class-banner { margin: 8px 0 32px; width: 100%; aspect-ratio: 16 / 6.5; overflow: hidden; }
.class-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
@media (max-width: 760px) { .class-banner { aspect-ratio: 16 / 10; } }

/* banners sit inside the content container */
.section.dao-sec { padding-top: var(--section); }
.dao-banner { margin: 0 0 56px; }
.dao-text { display: block; }
.dao-text > div { max-width: none; }
.class-banner { margin: 8px 0 28px; }
#schedule .class-banner { margin: 32px 0 0; }

/* section heading with an action on the same row */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.head-row > .sec-head { flex: 1 1 520px; min-width: 0; margin-bottom: 0; }
.head-row > .btn { flex: none; margin-bottom: 6px; }
.head-row + .class-banner { margin: 0; }

.xm-emblem { width: 100%; max-width: 480px; height: auto; display: block; margin-inline: auto; }

/* founder */
.founder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.founder-art { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.founder-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder .stack > .sec-head { margin-bottom: 4px; }
.fd-block { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.fd-label { margin: 0; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.fd-lineage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fd-lineage li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--cinnabar); max-width: none; }
.fd-lineage b { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--ink-strong); }
.fd-lineage span { font-size: .92rem; color: var(--muted); }
.fd-note { color: var(--ink); max-width: none; }
.fd-aims { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fd-aims li { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-strong); max-width: none; }
.fd-aims li::before { content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg); background: var(--gold); }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 520px) { .fd-lineage { grid-template-columns: 1fr; } }

/* 日课建议: three separate items, no card, no fills */
.routine { border: 0; border-radius: 0; overflow: visible; gap: 32px; background: none; }
.routine > div, .routine > div:nth-child(1), .routine > div:nth-child(2), .routine > div:nth-child(3) { background: none; padding: 0; border: 0; }
.routine > div > :not(.scene) { margin-inline: 0; }
.routine .scene { margin: 0 0 8px; }
@media (max-width: 900px) { .routine { gap: 40px; } }

/* lineage items: name and discipline on one line */
.fd-lineage li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; padding: 4px 0 4px 14px; }
.fd-lineage span { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-strong); }
html[lang="en"] .fd-lineage b, html[lang="en"] .fd-lineage span { font-size: 1.05rem; }
html[lang="en"] .fd-lineage span { color: var(--muted); }
html:not([lang="en"]) .fd-lineage li { gap: 0; }

.fd-block.fd-first { border-top: 0; padding-top: 0; }
.founder .stack { gap: 22px; }
.founder .stack > .sec-head h2 { margin: 0; }

/* 性命圭旨总纲: animated emblem */
.tj-anim { position: relative; margin: 0; width: 100%; max-width: 420px; aspect-ratio: 100 / 106.901; }
.tj-anim .tj-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.tj-anim .tj-disc { position: absolute; left: 24.930%; top: 25.428%; width: 50.141%; height: auto; aspect-ratio: 1; animation: tj-spin 48s linear infinite; filter: drop-shadow(0 0 0 rgba(200,163,91,0)); }
.tj-anim::after { content: ""; position: absolute; left: 24.930%; top: 25.428%; width: 50.141%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 0 rgba(200, 163, 91, .35); animation: tj-breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes tj-spin { to { transform: rotate(360deg); } }
@keyframes tj-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 163, 91, 0); } 50% { box-shadow: 0 0 34px 6px rgba(200, 163, 91, .28); } }
@media (prefers-reduced-motion: reduce) { .tj-anim .tj-disc, .tj-anim::after { animation: none; } }
@media (max-width: 900px) { .tj-anim { max-width: 300px; margin-inline: auto; } }
blockquote.quote cite { align-items: flex-start; } blockquote.quote cite::before { margin-top: .78em; flex: none; }
/* 日课建议 titles: hierarchy by size and colour, not weight */
.routine h3 { font-weight: 400; font-size: 1.32rem; color: var(--ink-strong); margin: 4px 0 8px; }
.routine p { font-size: .95rem; color: var(--muted); }
