/* ==========================================================================
   SEEKER — styles
   Warm manuscript palette: cream paper, saffron, kumkum and temple gold.
   ========================================================================== */

:root {
  --bg: #FBF6EE;
  --bg-2: #F5ECDF;
  --surface: #FFFDF9;
  --ink: #2A1F1A;
  --ink-soft: #4A3B32;
  --muted: #7A6A5E;
  --line: #E8DCCB;
  --line-strong: #D9C7AF;
  --accent: #C2410C;
  --accent-ink: #9A3412;
  --accent-soft: #FDEBDD;
  --kumkum: #9F1239;
  --gold: #A87A12;
  --shadow: 0 1px 2px rgba(60, 35, 15, .06), 0 8px 24px rgba(60, 35, 15, .07);
  --shadow-lg: 0 2px 4px rgba(60, 35, 15, .06), 0 20px 50px rgba(60, 35, 15, .14);
  --radius: 14px;
  --radius-sm: 9px;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-dev: "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;

  --header-h: 62px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15100D; --bg-2: #1C1511; --surface: #211915; --ink: #F3E9DC; --ink-soft: #DCCDBB;
    --muted: #A8978A; --line: #352921; --line-strong: #4A3A2F; --accent: #F59A5B; --accent-ink: #FDBA8C;
    --accent-soft: #3A2216; --kumkum: #F1788E; --gold: #E0B84F;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 20px 50px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15100D; --bg-2: #1C1511; --surface: #211915; --ink: #F3E9DC; --ink-soft: #DCCDBB;
  --muted: #A8978A; --line: #352921; --line-strong: #4A3A2F; --accent: #F59A5B; --accent-ink: #FDBA8C;
  --accent-soft: #3A2216; --kumkum: #F1788E; --gold: #E0B84F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 20px 50px rgba(0,0,0,.45);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (max-width: 600px) { body { font-size: 17px; } }

img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.dev { font-family: var(--f-dev); font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #F59E0B, var(--accent) 60%, var(--kumkum));
  color: #FFF7EC; font-family: var(--f-dev); font-size: 21px; line-height: 1; padding-bottom: 2px;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 40%, transparent);
}
.brand-name { font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--f-ui); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }

@media (max-width: 420px) { .brand-name small { display: none; } }
.main-nav { display: none; gap: 2px; font-family: var(--f-ui); font-size: 14.5px; }
.main-nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--bg-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
@media (min-width: 900px) { .main-nav { display: flex; } }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--accent-ink); border-color: var(--line-strong); }
.icon-btn svg { width: 19px; height: 19px; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 0 12px 0 11px; border-radius: 999px; font-family: var(--f-ui); font-size: 14px; color: var(--muted); }
.search-btn kbd { font-family: var(--f-ui); font-size: 11px; border: 1px solid var(--line-strong); border-radius: 5px; padding: 1px 5px; color: var(--muted); }
.search-btn .lbl { display: none; }
@media (min-width: 600px) { .search-btn .lbl { display: inline; } }
@media (max-width: 599px) { .search-btn { width: 40px; padding: 0; justify-content: center; } .search-btn kbd { display: none; } }
.menu-btn { display: inline-grid; }
@media (min-width: 900px) { .menu-btn { display: none; } }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--gold), var(--accent), var(--kumkum)); transition: width .1s linear; }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 10, 5, .45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 71;
  width: min(380px, 88vw);
  background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-ui); font-weight: 600; }
.drawer-body { overflow-y: auto; padding: 8px 8px 32px; font-family: var(--f-ui); font-size: 15px; }
.drawer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.drawer-links a { text-decoration: none; color: var(--ink); background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 12px; font-weight: 500; }
.nav-sec { border-radius: var(--radius-sm); }
.nav-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--radius-sm); font-weight: 600; }
.nav-sec > summary::-webkit-details-marker { display: none; }
.nav-sec > summary:hover { background: var(--bg-2); }
.nav-sec > summary .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.nav-sec > summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.nav-sec[open] > summary .chev { transform: rotate(90deg); }
.nav-sec ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 27px; }
.nav-sec li a, .nav-sec li span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; text-decoration: none; color: var(--ink-soft); font-size: 14.5px; }
.nav-sec li a:hover { background: var(--bg-2); color: var(--ink); }
.nav-sec li span { color: var(--muted); opacity: .75; }
.nav-sec li a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.nav-sec .sec-link { font-size: 13px; color: var(--accent-ink); }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.6; }
.badge.live { background: color-mix(in srgb, #16A34A 14%, transparent); color: #15803D; }
.badge.next { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-ink); }
.badge.planned { background: var(--bg-2); color: var(--muted); }
.badge.read { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
:root[data-theme="dark"] .badge.live { color: #4ADE80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.live { color: #4ADE80; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-ui); font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-size: 15px; font-weight: 600; padding: 12px 20px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--accent); color: #FFF8F0; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); }
:root[data-theme="dark"] .btn-primary { color: #1A0F08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #1A0F08; } }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 40px; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 400px at 85% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
  radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%); }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0 72px; } .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.eyebrow { font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-verse { margin-top: 30px; padding-left: 16px; border-left: 2px solid var(--gold); color: var(--muted); font-size: 16px; }
.hero-verse .dev { display: block; font-size: 20px; color: var(--ink-soft); }
.hero-art { position: relative; justify-self: center; width: min(420px, 78vw); aspect-ratio: 1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art .om { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-dev); font-size: clamp(64px, 14vw, 110px); color: var(--accent); line-height: 1; padding-bottom: 4%; text-shadow: 0 4px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.spin { animation: spin 160s linear infinite; transform-origin: 50% 50%; }
.spin-rev { animation: spin 220s linear infinite reverse; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) { .hero-art { order: -1; width: min(220px, 55vw); } }

/* ---------- sections / blocks ---------- */
.block { padding: 56px 0; }
.block + .block { padding-top: 8px; }
.block-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.block-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0; }
.block-head p { color: var(--muted); margin: 6px 0 0; font-size: 16.5px; }

/* start-here path */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 720px) { .path { grid-template-columns: repeat(3, 1fr); } }
.path li { counter-increment: step; }
.path a, .path .path-card { position: relative; display: block; height: 100%; padding: 18px 18px 18px 64px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.path a:hover { border-color: var(--c, var(--accent)); transform: translateY(-2px); box-shadow: var(--shadow); }
.path a::before, .path .path-card::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-ui); font-weight: 700; font-size: 14px; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.path .is-read::before { content: "✓"; background: var(--c, var(--accent)); color: #fff; }
.path .path-card { opacity: .7; }
.path strong { display: block; font-family: var(--f-display); font-size: 18.5px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.path small { display: block; font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.path .badge { margin-top: 10px; }

/* section cards */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  --c: var(--accent);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 22px 22px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); opacity: .85; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); color: var(--ink); }
.card-glyph { font-family: var(--f-dev); font-size: 40px; line-height: 1.1; color: var(--c); margin-bottom: 4px; }
.card-tr { font-family: var(--f-ui); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 22px; margin: 10px 0 6px; }
.card p { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 16px; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); }
.meter { flex: 1; height: 5px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: 99px; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .path a { --c-fix: 1; }
.card-glyph, .path a::before { filter: var(--glyph-filter, none); }
:root[data-theme="dark"] { --glyph-filter: brightness(1.45) saturate(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glyph-filter: brightness(1.45) saturate(.9); } }

.quote-band { margin: 24px 0 0; padding: 40px 0; text-align: center; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-band .dev { font-size: clamp(22px, 3.5vw, 30px); color: var(--accent-ink); display: block; margin-bottom: 8px; }
.quote-band .tr { font-style: italic; color: var(--muted); }
.quote-band p { font-family: var(--f-display); font-size: clamp(19px, 2.6vw, 24px); max-width: 34em; margin: 10px auto 0; }
.quote-band cite { display: block; font-family: var(--f-ui); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: .04em; }

/* ---------- page header (section/sitemap/glossary) ---------- */
.page-head { position: relative; overflow: hidden; padding: 40px 0 32px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 90% 0%, color-mix(in srgb, var(--c, var(--accent)) 12%, transparent), transparent 70%); }
@media (min-width: 720px) { .page-head { padding: 64px 0 48px; } }
.page-head h1 { font-size: clamp(32px, 5.5vw, 52px); margin-bottom: 10px; }
.page-head .lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 40em; margin: 0; }
.page-head .glyph { font-family: var(--f-dev); font-size: clamp(44px, 7vw, 64px); line-height: 1.1; color: var(--c, var(--accent)); filter: var(--glyph-filter, none); }
.page-head .watermark { position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; opacity: .5; pointer-events: none; }
@media (max-width: 720px) { .page-head .watermark { width: 220px; height: 220px; right: -70px; top: -40px; } }
.crumbs { font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .sep { opacity: .5; }

/* topic list (section page) */
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic-list li a, .topic-list li .topic-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.topic-list li a:hover { border-color: var(--c, var(--accent)); box-shadow: var(--shadow); }
.topic-list .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-ui); font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); color: var(--c, var(--accent)); filter: var(--glyph-filter, none); }
.topic-list .is-read .num { background: var(--c, var(--accent)); color: #fff; filter: none; }
.topic-list .txt { flex: 1; min-width: 0; }
.topic-list strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 18.5px; line-height: 1.3; }
.topic-list small { display: block; font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.topic-list .topic-row { opacity: .72; }

/* ---------- article layout ---------- */
.article-layout { display: grid; gap: 40px; padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 1080px) { .article-layout { grid-template-columns: 230px minmax(0, 1fr); padding-top: 48px; } }
.article { max-width: 70ch; min-width: 0; }
@media (min-width: 1080px) { .article { margin: 0 auto 0 32px; } }
.article-head .kicker { font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c, var(--accent-ink)); filter: var(--glyph-filter, none); }
.article-head h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; margin: 12px 0 14px; }
.article-head .dek { font-size: clamp(19px, 2.3vw, 22px); line-height: 1.55; color: var(--ink-soft); font-family: var(--f-display); font-weight: 400; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 22px 0 34px; }
.article-meta .grow { flex: 1; }
.article h2 { font-size: clamp(25px, 3.4vw, 31px); margin: 2.2em 0 .7em; padding-top: .2em; }
.article h3 { font-size: 21px; margin: 1.8em 0 .5em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: .4em; }
.article li::marker { color: var(--accent); }
.article strong { font-weight: 600; color: var(--ink); }
.article .lede::first-letter { float: left; font-family: var(--f-display); font-size: 4.1em; line-height: .85; padding: .06em .1em 0 0; color: var(--accent); font-weight: 600; }

/* TOC */
.toc { display: none; }
@media (min-width: 1080px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; font-family: var(--f-ui); font-size: 13.5px; }
}
.toc h4, .toc-mobile summary { font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol, .toc-mobile ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a, .toc-mobile a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
.toc-mobile { margin: 0 0 28px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-family: var(--f-ui); font-size: 14.5px; }
.toc-mobile summary { cursor: pointer; margin: 0; list-style: none; display: flex; justify-content: space-between; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 16px; }
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile ol { margin-top: 10px; }
@media (min-width: 1080px) { .toc-mobile { display: none; } }

/* verse */
.verse { margin: 1.8em 0; padding: 22px 22px 18px; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); position: relative; }
.verse .dev { display: block; font-size: 21px; line-height: 1.75; color: var(--ink); }
.verse .tr { display: block; font-style: italic; color: var(--muted); font-size: 16px; margin-top: 8px; line-height: 1.6; }
.verse .en { display: block; margin-top: 12px; font-family: var(--f-display); font-size: 19px; line-height: 1.5; }
.verse .src { display: block; margin-top: 10px; font-family: var(--f-ui); font-size: 12.5px; letter-spacing: .05em; color: var(--gold); text-transform: uppercase; font-weight: 600; }
.verse-toggle { position: absolute; top: 12px; right: 12px; font-family: var(--f-ui); font-size: 11.5px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.verse.hide-tr .tr { display: none; }

/* callout */
.callout { margin: 1.6em 0; padding: 16px 18px 4px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); border-left: 3px solid var(--accent); }
.callout-title { font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; }
.callout.note { background: var(--bg-2); border-left-color: var(--gold); }
.callout.note .callout-title { color: var(--gold); }

/* idea cards (expandable) */
.ideas { display: grid; gap: 10px; margin: 1.4em 0 1.8em; }
@media (min-width: 640px) { .ideas { grid-template-columns: 1fr 1fr; } }
.idea { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.idea[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.idea summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.idea summary::-webkit-details-marker { display: none; }
.idea .glyph { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-dev); font-size: 21px; background: var(--accent-soft); color: var(--accent-ink); }
.idea .t { font-family: var(--f-display); font-weight: 600; font-size: 18.5px; line-height: 1.25; }
.idea .s { display: block; font-family: var(--f-ui); font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.idea summary::after { content: "+"; margin-left: auto; font-family: var(--f-ui); color: var(--muted); font-size: 20px; transition: transform .2s; }
.idea[open] summary::after { transform: rotate(45deg); }
.idea .body { padding: 0 16px 14px; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); }
.idea .body p:last-child { margin-bottom: 0; }
.idea .more { font-family: var(--f-ui); font-size: 13.5px; }

/* perspectives tabs */
.tabs { margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.tablist { display: flex; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.tablist button { flex: 1; font-family: var(--f-ui); font-size: 14px; font-weight: 600; padding: 12px 10px; border: 0; background: none; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tablist button[aria-selected="true"] { color: var(--accent-ink); border-bottom-color: var(--accent); background: var(--surface); }
.tabpanel { padding: 18px 20px 4px; font-size: 17px; }
.tabpanel[hidden] { display: none; }

/* FAQ accordion */
.faq { margin: 1.2em 0 1.6em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 36px 16px 0; position: relative; font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 8px; color: var(--ink-soft); }

/* reflect */
.reflect { margin: 2.4em 0 1.4em; padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: var(--surface); }
.reflect h3 { margin: 0 0 12px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.reflect ol { margin: 0; }
.reflect textarea { width: 100%; min-height: 90px; margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.reflect .hint { font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

/* key terms */
.keyterms { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 2em; }

/* glossary term (inline) */
.term { border-bottom: 1px dotted var(--accent); cursor: help; color: inherit; }
.term:hover { color: var(--accent-ink); }
.popover { position: absolute; z-index: 80; width: min(320px, calc(100vw - 32px)); padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); font-family: var(--f-ui); font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.popover .pt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.popover .pt b { font-family: var(--f-display); font-size: 18px; color: var(--ink); }
.popover .pt .dev { font-size: 17px; color: var(--accent-ink); }
.popover .pt i { color: var(--muted); font-size: 13px; }
.popover a { font-size: 13px; font-weight: 600; }

/* prev/next & mark read */
.done-box { margin: 3em 0 1.5em; padding: 22px; border-radius: var(--radius); text-align: center; background: var(--bg-2); border: 1px solid var(--line); }
.done-box p { font-family: var(--f-ui); font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.pager { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 600px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a, .pager .soon { display: block; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--accent); }
.pager .dir { display: block; font-family: var(--f-ui); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager strong { font-family: var(--f-display); font-size: 18px; font-weight: 600; }
.pager .next { text-align: right; }
.pager .soon { opacity: .65; }

.sources { font-size: 15.5px; color: var(--ink-soft); }
.sources li { margin-bottom: .5em; }

/* ---------- sitemap ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; max-width: 760px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 600; line-height: 1.1; }
.stat span { font-family: var(--f-ui); font-size: 12.5px; color: var(--muted); }
.toolbar { position: relative; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
@media (min-width: 720px) { .toolbar { position: sticky; top: var(--header-h); } }
.toolbar input { flex: 1 1 220px; min-width: 0; font-family: var(--f-ui); font-size: 15px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.toolbar .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar .tools { display: flex; gap: 6px; margin-left: auto; }
.tree { display: grid; gap: 14px; }
.tree-sec { --c: var(--accent); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tree-sec > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-left: 4px solid var(--c); }
.tree-sec > summary::-webkit-details-marker { display: none; }
.tree-sec .g { font-family: var(--f-dev); font-size: 30px; line-height: 1; color: var(--c); filter: var(--glyph-filter, none); width: 64px; text-align: center; }
.tree-sec h3 { margin: 0; font-size: 20px; }
.tree-sec .sum-sub { font-family: var(--f-ui); font-size: 13px; color: var(--muted); margin-top: 2px; }
.tree-sec .sum-right { display: flex; flex-direction: column; align-items: end; gap: 6px; font-family: var(--f-ui); font-size: 12px; color: var(--muted); min-width: 70px; }
.tree-sec .sum-right .meter { width: 70px; flex: none; }
@media (max-width: 520px) { .tree-sec .g { width: 40px; font-size: 24px; } .tree-sec > summary { gap: 10px; padding: 14px; } .tree-sec .sum-right { min-width: 54px; } .tree-sec .sum-right .meter { width: 54px; } }
.tree-sec ul { list-style: none; margin: 0; padding: 4px 18px 16px 18px; border-left: 4px solid var(--c); }
.tree-sec li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-family: var(--f-ui); font-size: 15px; }
.tree-sec li::before { content: ""; position: absolute; left: 6px; top: 50%; width: 12px; height: 1px; background: var(--line-strong); }
.tree-sec li .nm { flex: 1; min-width: 0; }
.tree-sec li .nm a { color: var(--ink); font-weight: 600; text-decoration: none; }
.tree-sec li .nm a:hover { color: var(--accent-ink); text-decoration: underline; }
.tree-sec li .nm small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.tree-sec li .nm .pl { color: var(--ink-soft); }
.tree-sec li .badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: end; }
.tree-sec .open-sec { display: inline-block; margin: 0 0 0 26px; padding-top: 10px; font-family: var(--f-ui); font-size: 13.5px; }
.empty { text-align: center; color: var(--muted); font-family: var(--f-ui); padding: 40px 0; }
mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .roadmap { grid-template-columns: repeat(5, 1fr); } }
.roadmap li { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.roadmap .ph { font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.roadmap h4 { font-size: 19px; margin: 4px 0 6px; }
.roadmap p { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 10px; }
.roadmap .secs { display: flex; flex-wrap: wrap; gap: 5px; }
.roadmap .secs span { font-family: var(--f-ui); font-size: 12px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, transparent); color: color-mix(in srgb, var(--c) 70%, var(--ink)); }

/* ---------- glossary page ---------- */
.az { display: flex; flex-wrap: wrap; gap: 4px; }
.az button { font-family: var(--f-ui); font-size: 13px; font-weight: 600; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.az button:disabled { opacity: .3; cursor: default; }
.az button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gloss { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gloss { grid-template-columns: 1fr 1fr; } }
.gl { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 80px); }
.gl:target { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.gl .h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.gl h3 { font-size: 21px; margin: 0; }
.gl .dev { font-size: 21px; color: var(--accent-ink); }
.gl .tr { font-style: italic; color: var(--muted); font-size: 15px; }
.gl p { margin: 8px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.gl .lk { display: inline-block; margin-top: 8px; font-family: var(--f-ui); font-size: 13px; }

/* ---------- search ---------- */
.search-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(20, 10, 5, .5); backdrop-filter: blur(3px); }
.search-modal.open { display: flex; }
.search-box { width: 100%; max-width: 620px; max-height: 76vh; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line-strong); overflow: hidden; }
.search-box .in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-box .in svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-family: var(--f-ui); font-size: 17px; color: var(--ink); }
.search-box .esc { font-family: var(--f-ui); font-size: 12px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 8px; background: none; color: var(--muted); cursor: pointer; }
.results { overflow-y: auto; padding: 6px; font-family: var(--f-ui); }
.results .grp { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.results a, .results .r { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.results a.sel, .results a:hover { background: var(--accent-soft); }
.results .r { opacity: .6; }
.results .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.results .rt { flex: 1; min-width: 0; }
.results .rt b { display: block; font-weight: 600; font-size: 15px; }
.results .rt small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results .none { padding: 24px; text-align: center; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 32px; font-family: var(--f-ui); font-size: 14px; color: var(--muted); }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-ink); }
.site-footer .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.site-footer .shanti { font-family: var(--f-dev); font-size: 16px; color: var(--ink-soft); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .toc, .toc-mobile, .done-box, .pager, .read-progress, .verse-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
