/* Quantum Numerology calculator (assets/js/quantum-calc.js). Loaded only where
   the calculator shows. Uses the dd-base tokens, so dark mode follows. */
.lxq{--heb:"Noto Serif Hebrew",var(--serif); margin:40px 0 0; padding:20px 20px 18px; border:1.5px solid var(--ink); background:var(--field); color:var(--ink);}
.lxq > h2{margin-top:0;}
.lxq .heb{font-family:var(--heb); unicode-bidi:isolate; direction:rtl; font-style:normal;}
.lxq-lede{color:var(--mute); margin:0 0 6px;}
.lxq-lin{font-size:13px; font-style:italic; color:var(--mute); margin:0 0 14px;}
.lxq-actions{margin:12px 0 0;}
.lxq-err{color:var(--accent); font-size:14px; margin:8px 0 0; min-height:1em;}
.lxq-err:empty{display:none;}
.lxq-out{margin:18px 0 0; border-top:1.5px solid var(--ink); padding-top:16px;}
.lxq-out[hidden]{display:none;}
.lxq-out h3{font:500 12px var(--mono); letter-spacing:.14em; text-transform:uppercase; color:var(--ink); margin:22px 0 10px;}
.lxq .k{display:block; font:500 11px var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--mute); margin-bottom:4px;}
.lxq-lead{display:grid; grid-template-columns:auto minmax(0,1fr); gap:16px; align-items:center;}
.lxq-lead .n{display:flex; align-items:baseline; gap:8px; padding-right:16px; border-right:1.5px solid var(--line);}
.lxq-lead .n .heb{font-size:48px; line-height:1; color:var(--accent);}
.lxq-lead .n b{font:400 48px/1 var(--serif); color:var(--ink);}
.lxq-lead .n b small{font-size:17px; color:var(--mute);}
.lxq-lead p{margin:0; font:400 18px/1.4 var(--serif); color:var(--ink);}
.lxq-seq{list-style:none; margin:0 0 12px -14px; padding:0; display:flex; flex-wrap:wrap; gap:8px 0;}
.lxq-seq li{position:relative; margin:0 0 0 14px; display:flex; flex-direction:column; align-items:center; gap:2px; min-width:60px; padding:7px 5px 6px; border:1.5px solid var(--ink); background:var(--field); text-align:center;}
.lxq-seq li + li::before{content:'→'; position:absolute; left:-12px; top:50%; transform:translateY(-50%); font:400 11px var(--mono); color:var(--mute);}
.lxq-seq .g{font-size:28px; line-height:1.1; color:var(--accent);}
.lxq-seq b{font:400 13.5px/1.1 var(--serif); color:var(--ink);}
.lxq-seq small{font:500 9.5px var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--mute);}
.lxq-seq li.rest{border-style:dashed; background:transparent;}
.lxq-seq li.rest .g{color:var(--mute); font-family:var(--serif);}
.lxq-rows{margin:0; display:grid;}
.lxq-rows > div{display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; padding:8px 0; border-bottom:1px solid var(--line);}
.lxq-rows dt{font:500 11px var(--mono); letter-spacing:.1em; text-transform:uppercase; color:var(--mute); padding-top:4px;}
.lxq-rows dd{margin:0; font-size:14.5px; line-height:1.4; color:var(--ink);}
.lxq-rows .v{float:right; margin-left:12px; font:400 26px/1 var(--serif); color:var(--ink);}
.lxq-rows .v .heb{color:var(--accent);}
.lxq-rows .v i{font-style:normal; color:var(--mute); font-size:16px;}
.lxq-cta{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:18px 0 0; padding-top:14px; border-top:1px dashed var(--line);}
.lxq-cta .lx-btn{flex:none; white-space:nowrap;}
.lxq-cta span{font-size:14px; color:var(--mute); flex:1 1 220px;}
/* Route map (LXQUANTUM.tree): ten numbered points drawn as a star map.
   Shared by the calculator and the My chart Quantum tab. */
.lxq-tw{display:grid; grid-template-columns:minmax(0,260px) minmax(0,1fr); gap:22px; align-items:start;}
.lxq-fig,.lx-prose .lxq-fig{margin:0;}
.lxq-fig figcaption,.lx-prose .lxq-fig figcaption{font:400 12.5px/1.4 var(--sans); text-transform:none; letter-spacing:0; text-align:left; color:var(--mute); margin-top:6px;}
.lxq-tree{display:block; width:100%; height:auto;}
.lxq-tree .pth line{stroke:var(--line); stroke-width:1; stroke-dasharray:1 4; stroke-linecap:round;}
.lxq-tree text{text-anchor:middle;}
.lxq-tree .nd > circle:not(.ring):not(.cm){fill:var(--field); stroke:var(--mute); stroke-width:1.2;}
.lxq-tree .nd .nn{font:500 10px var(--mono); fill:var(--mute);}
.lxq-tree .nd.on > circle:not(.ring):not(.cm){fill:var(--accent); stroke:var(--accent); filter:drop-shadow(0 0 4px color-mix(in srgb,var(--accent) 55%,transparent));}
.lxq-tree .nd.on .nn{fill:#fff; font-weight:600;}
.lxq-tree .nd .ring{fill:none; stroke:var(--gold); stroke-width:2;}
.lxq-tree .rl{fill:none; stroke:var(--accent); stroke-width:2.2; stroke-linecap:round; opacity:.85;}
.lxq-tree .rl.dl{stroke:var(--gold); stroke-dasharray:4 5;}
.lxq-tree .ar{fill:var(--accent);}
.lxq-tree .sb{fill:var(--ink);}
.lxq-tree .sn{font:600 9.5px var(--mono); fill:var(--field);}
/* Legend under the map. Swatches reuse the map's mark classes. */
.lxq-lg{list-style:none; margin:8px 0 6px; padding:0; display:grid; gap:5px;}
.lxq-lg li{display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:center; font:400 12.5px/1.35 var(--sans); color:var(--mute);}
.lxq-lg svg{width:34px; height:18px; display:block; overflow:visible;}
.lxq-lg .rl{fill:none; stroke:var(--accent); stroke-width:2.2; stroke-linecap:round;}
.lxq-lg .rl.dl{stroke:var(--gold); stroke-dasharray:4 4;}
.lxq-lg .ar{fill:var(--accent);}
.lxq-lg .ar.dla{fill:var(--gold);}
.lxq-lg .lp{stroke:var(--line); stroke-width:1.2; stroke-dasharray:1 4; stroke-linecap:round;}
.lxq-lg .lon{fill:var(--accent);}
.lxq-lg .lnd{fill:var(--field); stroke:var(--mute); stroke-width:1.2;}
.lxq-lg .ring{fill:none; stroke:var(--gold); stroke-width:2;}
.lxq-lg .cm{fill:none; stroke:var(--teal); stroke-width:1.6; stroke-dasharray:3 2.5;}
.lxq-lg .sb{fill:var(--ink);}
.lxq-lg .sn{font:600 7px var(--mono); fill:var(--field); text-anchor:middle;}
.lxq-lgn{display:block; font-size:12.5px; line-height:1.4; color:var(--mute);}
.lxq-tree .cm{fill:none; stroke:var(--teal); stroke-width:1.6; stroke-dasharray:3 2.5;}
.lxq-tree .ct{font:600 10px var(--mono); letter-spacing:.06em; fill:var(--teal);}
@media (max-width:640px){ .lxq-tree .ct{font-size:12px;} .lxq-tree .sn{font-size:11px;} .lxq-tree .st{font-size:10px;} }
/* Paths view: each letter lights its Golden Dawn path, labelled with the letter. */
.lxq-tree .pl line{stroke:var(--orchid); stroke-linecap:round; opacity:.85;}
.lxq-tree .plb circle{fill:var(--field); stroke:var(--orchid); stroke-width:1.4;}
.lxq-tree .plb text{text-anchor:middle; font:400 11px var(--heb); fill:var(--orchid);}
.lxq-tree .plb .px{font:600 8.5px var(--mono); fill:var(--orchid); text-anchor:start;}
.lxq-tree .nd.pe > circle:not(.ring):not(.cm){stroke:var(--orchid); stroke-width:2;}
.lxq-tree .nd.pe .nn{fill:var(--orchid); font-weight:600;}
.lxq-lg .lpl{stroke:var(--orchid); stroke-width:3; stroke-linecap:round;}
.lxq-lg .lpc{fill:var(--field); stroke:var(--orchid); stroke-width:1.4;}
/* Map view switch (Route / Paths: birth date / Paths: name). */
.lxq-sw{display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px;}
.lxq-sw button{font:500 10.5px var(--mono); letter-spacing:.08em; text-transform:uppercase; padding:6px 10px; border:1.2px solid var(--line); border-radius:999px; background:var(--field); color:var(--mute); cursor:pointer;}
.lxq-sw button[aria-pressed="true"]{border-color:var(--ink); background:var(--ink); color:var(--field);}
.lxq-sw button:focus-visible{outline:2px solid var(--accent); outline-offset:2px;}
.lxq-tree .st{font:600 8.5px var(--mono); letter-spacing:.12em; fill:var(--accent);}
.lxq-fig figcaption b{display:block; color:var(--ink); font-weight:600; margin-bottom:3px;}
@container cw (max-width:700px){ .lxq-tw{grid-template-columns:minmax(0,1fr);} .lxq-fig,.lx-prose .lxq-fig{max-width:260px; margin:0 auto;} }
@media (max-width:640px){ .lxq-tw{grid-template-columns:minmax(0,1fr);} .lxq-fig,.lx-prose .lxq-fig{max-width:260px; margin:0 auto;} }
@media (max-width:560px){
	.lxq{padding:16px 14px;}
	.lxq-lead{grid-template-columns:minmax(0,1fr);}
	.lxq-lead .n{border-right:0; padding-right:0;}
	.lxq-rows > div{grid-template-columns:minmax(0,1fr); gap:2px;}
}
