/* AstroHealX — VEDA library theme: deep navy, antique gold, parchment */
.vd { --vd-navy: #10163a; --vd-gold: #b98a2a; --vd-gold2: #e2c070; --vd-parch: #f7efdc; --vd-parch2: #efe3c6; --vd-ink: #2a2112; }
.vd-hero { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(ellipse at 20% 10%, #2a2f6a 0%, var(--vd-navy) 45%, #090c22 100%); color: #f6efdf; padding: 48px 28px 40px; margin-bottom: 20px; isolation: isolate; }
.vd-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(226,192,112,.18), transparent 40%), radial-gradient(circle at 10% 90%, rgba(226,192,112,.12), transparent 35%); pointer-events: none; }
.vd-hero::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(226,192,112,.35); border-radius: 12px; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(226,192,112,.07) 18px 19px) top/100% 1px no-repeat, repeating-linear-gradient(90deg, transparent 0 18px, rgba(226,192,112,.07) 18px 19px) bottom/100% 1px no-repeat; }
.vd-hero .vd-om { font-family: 'Noto Serif Devanagari', serif; font-size: 2.6rem; color: var(--vd-gold2); opacity: .9; line-height: 1; }
.vd-hero h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: .04em; margin: 10px 0 8px; color: #fff; }
.vd-hero h1 small { display: block; font-family: 'Noto Serif Devanagari', serif; font-size: .55em; color: var(--vd-gold2); letter-spacing: 0; margin-top: 4px; }
.vd-hero p { max-width: 640px; color: rgba(246,239,223,.85); font-size: 1.05rem; line-height: 1.6; }
.vd-hero .row { margin-top: 18px; position: relative; z-index: 1; }
.vd-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vd-card { position: relative; background: linear-gradient(180deg, var(--vd-parch) 0%, var(--vd-parch2) 100%); color: var(--vd-ink); border: 1px solid rgba(185,138,42,.4); border-radius: 14px; padding: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 8px 24px rgba(16,22,58,.08); }
.vd-card::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(185,138,42,.25); border-radius: 10px; pointer-events: none; }
.vd-card .sa { font-family: 'Noto Serif Devanagari', serif; font-size: 1.5rem; color: var(--vd-gold); line-height: 1.2; }
.vd-card h3 { margin: 4px 0 8px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; color: var(--vd-navy); }
.vd-card p { font-size: .9rem; line-height: 1.5; margin: 0 0 6px; color: #4a3f2a; }
.vd-card .kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .84rem; margin: 8px 0 10px; }
.vd-card .kv dt { color: var(--vd-gold); font-weight: 600; }
.vd-card .kv dd { margin: 0; }
.vd-card .row { gap: 6px; }
.vd-page h2.vd-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--vd-navy); margin: 0; }
.vd-page .vd-sec { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--vd-gold); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.vd-page .vd-sec h3 { margin: 0 0 8px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; color: var(--vd-navy); }
.vd-page .vd-sec p { line-height: 1.65; margin: 0 0 10px; }
.vd-page .vd-sec ul { padding-left: 20px; margin: 4px 0; } .vd-page .vd-sec li { margin: 4px 0; line-height: 1.55; }
.vd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vd-split > div { background: rgba(185,138,42,.06); border-radius: 10px; padding: 12px 14px; }
.vd-split .vd-side { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vd-gold); font-weight: 700; margin-bottom: 6px; }
.vd-timeline { position: relative; padding-left: 22px; border-left: 2px solid rgba(185,138,42,.5); margin: 6px 0 6px 6px; }
.vd-timeline .t { position: relative; margin-bottom: 14px; }
.vd-timeline .t::before { content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--vd-gold); box-shadow: 0 0 0 3px var(--bg); }
.vd-timeline .t b { display: block; color: var(--vd-navy); }
.vd-timeline .t span { font-size: .92rem; color: var(--fg-2); }
/* reader */
.vd-reader { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
.vd-toc { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; font-size: .88rem; }
.vd-toc select { width: 100%; margin-bottom: 8px; }
.vd-toc .vd-mlist { display: flex; flex-wrap: wrap; gap: 4px; }
.vd-toc .vd-mlist button { font: inherit; font-size: .78rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--fg-2); cursor: pointer; }
.vd-toc .vd-mlist button.on { background: var(--vd-gold); color: #1a1405; border-color: var(--vd-gold); }
.vd-toc .vd-mlist button.read { border-color: var(--vd-gold); }
.vd-read { background: linear-gradient(180deg, var(--vd-parch) 0%, #fbf6ea 100%); color: var(--vd-ink); border: 1px solid rgba(185,138,42,.4); border-radius: 14px; padding: 22px 26px; }
.vd-read .vd-ref { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vd-gold); font-weight: 700; }
.vd-read .vd-sa { font-family: 'Noto Serif Devanagari', serif; font-size: 1.55rem; line-height: 1.9; color: #1a1405; margin: 10px 0; }
.vd-read .vd-tr { font-style: italic; color: #5a4a2a; line-height: 1.7; margin: 6px 0 12px; }
.vd-read .vd-trans { border-top: 1px dashed rgba(185,138,42,.5); padding-top: 10px; margin-top: 10px; line-height: 1.65; }
.vd-read .vd-trans b { color: var(--vd-gold); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.vd-read .vd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: #6a5a3a; margin-top: 12px; }
.vd-read .vd-note { background: rgba(185,138,42,.1); border-radius: 8px; padding: 10px 12px; font-size: .9rem; margin-top: 12px; }
.vd-read .vd-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.vd-avail { font-size: .82rem; color: var(--fg-2); background: rgba(185,138,42,.1); border: 1px solid rgba(185,138,42,.35); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.vd-mantra { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.vd-mantra .vd-sa { font-family: 'Noto Serif Devanagari', serif; font-size: 1.25rem; line-height: 1.8; color: var(--fg); }
.vd-mantra .tags span { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(185,138,42,.12); color: var(--vd-gold); margin: 2px 2px 0 0; }
.vd-result mark { background: rgba(226,192,112,.5); color: inherit; padding: 0 2px; }
.vd-chat { display: flex; flex-direction: column; gap: 10px; }
.vd-chat .m { padding: 10px 14px; border-radius: 12px; max-width: 90%; line-height: 1.55; font-size: .95rem; }
.vd-chat .m.u { align-self: flex-end; background: var(--accent); color: #0b0e2e; }
.vd-chat .m.a { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); }
.vd-chat .m.a cite { display: block; font-size: .8rem; color: var(--vd-gold); margin-top: 6px; font-style: normal; }
@media (max-width: 900px) { .vd-grid4 { grid-template-columns: 1fr 1fr; } .vd-reader { grid-template-columns: 1fr; } .vd-toc { position: static; max-height: none; } .vd-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vd-grid4 { grid-template-columns: 1fr; } .vd-hero { padding: 34px 18px 28px; } }
@media print { .vd-toc, .vd-read .vd-nav, .vd-hero .row { display: none !important; } .vd-read { background: #fff; border: 0; } }
