/* Your design (the bodygraph in motion), the rune stave, and the Jyotish match in Compare. */
.dg-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.dg-ctl .hb-btn[aria-pressed="true"] { background: var(--jade-deep); border-color: var(--jade); color: #eef3ef; }
.dg-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .dg-wrap { grid-template-columns: minmax(0, 1fr); } }
.dg-graph { background: radial-gradient(circle at 50% 45%, rgba(95,156,134,.08), transparent 70%); border: 1px solid var(--rule); border-radius: 3px; padding: 8px; }
.dg-svg { width: 100%; height: auto; display: block; }
.dg-ch { stroke: rgba(156,180,166,.16); stroke-width: 3; stroke-linecap: round; }
.dg-ch.birth { stroke: rgba(184,146,74,.75); stroke-width: 4; }
.dg-ch.dharma { stroke: rgba(150,120,255,.75); stroke-width: 4; }
.dg-ch.both { stroke: rgba(225,222,240,.85); stroke-width: 5; }
.dg-spark { filter: drop-shadow(0 0 4px currentColor); }
.dg-spark.birth { fill: #f2d48a; color: #f2d48a; }
.dg-spark.dharma { fill: #c9b8ff; color: #c9b8ff; }
.dg-spark.both { fill: #fff; color: #fff; }
.dg-c path { fill: #0b1114; stroke: rgba(156,180,166,.45); stroke-width: 1.5; }
.dg-c.birth path { fill: rgba(184,146,74,.55); stroke: #d9b46a; }
.dg-c.dharma path { fill: rgba(150,120,255,.45); stroke: #b6a3ff; }
.dg-c.both path { fill: rgba(225,222,240,.6); stroke: #fff; }
.dg-c.motor:not(.open) path { animation: dgBreathe 3.2s ease-in-out infinite; }
.dg-c text { fill: var(--ivory); font-size: 10.5px; text-anchor: middle; pointer-events: none; }
@keyframes dgBreathe { 50% { filter: drop-shadow(0 0 7px rgba(242,212,138,.6)); } }
@media (prefers-reduced-motion: reduce) { .dg-c.motor path { animation: none; } }
.dg-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 8px 0 12px; }
.dg-facts dt { color: var(--ivory-dim); } .dg-facts dd { margin: 0; color: var(--ivory); }
.dg-cen, .dg-chs { padding-left: 18px; } .dg-cen li { margin: 6px 0; } .dg-cen li.on b { color: #f2d48a; }
.dg-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.dg-key { font-size: 13.5px; color: var(--ivory-dim); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.dg-key .k { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: -8px; }
.dg-key .k.birth { background: rgba(184,146,74,.8); } .dg-key .k.dharma { background: rgba(150,120,255,.75); }
.dg-key .k.both { background: rgba(225,222,240,.8); } .dg-key .k.open { background: #0b1114; border: 1px solid rgba(156,180,166,.45); }

.rn-svg { stroke: #e6d6a8; stroke-width: 3.2; fill: none; display: block; }
.rn-staves { display: flex; flex-wrap: wrap; gap: 24px; margin: 14px 0 6px; }
.rn-staves figure { margin: 0; display: flex; gap: 14px; align-items: center; background: rgba(184,146,74,.06); border: 1px solid var(--gold-dim); border-radius: 3px; padding: 12px 18px; }
.rn-staves .rn-svg { filter: drop-shadow(0 0 6px rgba(242,212,138,.35)); }
.rn-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.rn-row, .rn-pair { display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.rn-row p, .rn-pair p { margin: 2px 0 0; }
.rn-craft li { margin: 6px 0; max-width: 66ch; }
.rn-shared { display: flex; gap: 14px; align-items: center; margin: 10px 0; }

.kt-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 8px 0; }
.kt-big { font-size: 34px; color: #f2d48a; } .kt-or { color: var(--ivory-dim); font-size: 14px; margin-right: 12px; }
table.kt td { vertical-align: top; } .kt-n { white-space: nowrap; font-variant-numeric: tabular-nums; } .kt-f { color: var(--ivory-dim); }
.dg-c.birth text, .dg-c.both text, .dg-c.dharma text { fill: #120f1c; font-weight: 600; }

.rn-card { border-bottom: 1px solid var(--rule); padding: 14px 0 10px; }
.rn-card h3 { margin: 0 0 6px; font-weight: 400; } .rn-card.lead h3 { color: #f2d48a; }
.rn-g { font-family: var(--rune); font-size: 1.3em; margin-right: 4px; }
.rn-means { margin: 4px 0 8px; } .rn-thru { padding-left: 18px; } .rn-thru li { margin: 8px 0; } .rn-thru p { margin: 2px 0 0; }
.rn-call { color: var(--celadon); } .kar-plain { padding-left: 18px; }
/* the rune wheel (runes.js wheel) */
.rw { margin: 18px auto 26px; max-width: 620px; }
.rw svg { width: 100%; height: auto; display: block; overflow: visible; }
.rw text { text-anchor: middle; dominant-baseline: central; }
.rw figcaption { font-size: 14px; color: var(--ivory-dim); text-align: center; margin-top: 6px; }
.rw-house { opacity: .5; stroke: rgba(0,0,0,.4); stroke-width: 1; }
.rw-hn { fill: #fff; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.rw-cell { fill: #120a2e; stroke: rgba(160,140,255,.22); stroke-width: 1; }
.rw-strokes line { stroke: rgba(230,214,168,.32); stroke-width: 2.4; stroke-linecap: round; }
.rw-rune.lit .rw-cell { fill: color-mix(in srgb, var(--h) 34%, #120a2e); stroke: color-mix(in srgb, var(--h) 70%, #fff); }
.rw-rune.lit .rw-strokes line { stroke: #fff4d6; stroke-width: 2.8; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--h) 80%, #fff)); }
.rw-rune.top .rw-cell { stroke: #f2d48a; stroke-width: 2; }
.rw-rune.lit { cursor: pointer; }
.rw-rune.lit:hover .rw-cell, .rw-rune.lit:focus-visible .rw-cell { fill: color-mix(in srgb, var(--h) 55%, #120a2e); }
.rw-rune:focus-visible { outline: none; }
.rw-rank { fill: #f2d48a; } .rw-rank-n { fill: #1a0e00; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.rw-div { stroke: rgba(160,140,255,.18); stroke-width: 1; } .rw-div.house { stroke: rgba(234,243,255,.5); stroke-width: 1.4; }
.rw-tick { stroke: rgba(234,243,255,.75); stroke-width: 1.4; }
.rw-pl { fill: #eaf3ff; font-size: 19px; }
.rw-asc { stroke: #f2d48a; stroke-width: 1.4; stroke-dasharray: 5 4; opacity: .85; }
.rw-asc-l { fill: #f2d48a; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.rw-core { fill: #0b0322; stroke: rgba(160,140,255,.35); }
.rw-count { fill: #f2d48a; font-size: 30px; } .rw-count-l { fill: var(--ivory-dim); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.rn-card { scroll-margin-top: 80px; }
.rn-flash { animation: rnFlash 1.6s ease-out; }
@keyframes rnFlash { 0% { background: rgba(242,212,138,.22); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .rn-flash { animation: none; } }
.dg-chs li { margin: 10px 0; } .dg-chs p { margin: 3px 0; }
.dg-gates h5 { margin: 14px 0 4px; color: var(--celadon); font-weight: 400; font-size: 15px; }
.dg-gates ul { padding-left: 18px; margin: 0; } .dg-gates li { margin: 8px 0; } .dg-gates p { margin: 2px 0 0; }
.dg-tag { font-size: 11.5px; border: 1px solid var(--gold-dim); color: #e6c47e; border-radius: 99px; padding: 0 7px; }
.dg-tag.open { border-color: var(--rule); color: var(--ivory-dim); }

.sy-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.sy-two h5, .cp-pair h5 { font-weight: 400; color: var(--celadon); font-size: 16px; margin: 14px 0 6px; }
.sy-houses, .sy-hd { padding-left: 18px; } .sy-houses li, .sy-hd li { margin: 7px 0; }
.sy-asks li { margin: 5px 0; color: var(--celadon); }

/* ---- the divisional charts and the thread from Rashi to Dharma ---- */
.vg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.vg-chip { font: inherit; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 6px 10px; border-radius: 3px; cursor: pointer;
  color: var(--ivory-dim); background: rgba(8,8,22,.6); border: 1px solid rgba(156,180,166,.28); }
.vg-chip[aria-pressed="true"] { color: var(--ivory); border-color: var(--jade); background: rgba(38,81,74,.45); }
.vg-one { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 720px) { .vg-one { grid-template-columns: 1fr; } }
.vg-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(74px, auto)); border: 1px solid rgba(156,180,166,.35); }
.vg-cell { position: relative; border: 1px solid rgba(156,180,166,.18); padding: 4px 5px 6px; min-width: 0; }
.vg-cell small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ivory-dim); }
.vg-cell div { font-size: 19px; line-height: 1.35; color: var(--ivory); word-break: break-word; }
.vg-cell.asc { background: rgba(184,146,74,.1); }
.vg-asc { position: absolute; top: 3px; right: 5px; font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--gold); }
.vg-p.ex { color: #f3e3b0; text-shadow: 0 0 6px rgba(243,227,176,.55); } .vg-p.deb { opacity: .45; }
.vg-mid { grid-row: 2 / 4; grid-column: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--celadon); }
.vg-mid b { font-weight: 400; font-size: 28px; } .vg-mid span { font-size: 14px; color: var(--ivory-dim); }
.vg-say h4 { margin: 0 0 6px; font-weight: 400; font-size: 19px; color: var(--celadon); }
table.vg-all { border-collapse: collapse; font-size: 13px; } .vg-all th, .vg-all td { padding: 4px 6px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; font-weight: 400; }
.vg-all td.same { font-weight: 700; color: var(--ivory); } .vg-all td.exalted { color: #f3e3b0; } .vg-all td.debilitated { opacity: .5; }
table.vg-thread { border-collapse: collapse; } .vg-thread th, .vg-thread td { padding: 6px 10px; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: top; }
.vg-thread tr.same td, .vg-thread tr.same th { background: rgba(38,81,74,.22); }
.vg-read li { margin: 8px 0; }
.vg-dom { font-style: italic; color: var(--celadon); margin: 0 0 8px; }
.vg-ask { font-style: italic; color: var(--gold, #b8924a); border-left: 2px solid rgba(184,146,74,.5); padding-left: 12px; }
.vg-close { margin-top: 18px; color: var(--ivory); }

/* the Dharma Design's meaning, waiting in the reading */
.dg-lock { margin: 12px 0 4px; padding: 12px 14px; border: 1px dashed rgba(184,146,74,.6); border-left: 3px solid var(--gold); background: rgba(184,146,74,.06); }
.dg-lock b { display: block; color: var(--gold); font-weight: 400; letter-spacing: .04em; margin-bottom: 4px; }
.dg-lock p { margin: 0; }

/* why a planet can step down without being debilitated: the ladder of dignity, folded under the thread's table */
.vg-ladder { margin: 6px 0 14px; } .vg-ladder > summary { cursor: pointer; color: var(--celadon); }
.vg-ladder p { margin: 8px 0 0; }
