/* The diagram panels (tools/hanby-panels/diagrams.js): drawn to match the
   original static panels (Fraunces titles, small-caps labels, thin gold and
   green line work on deep teal). Builds on panels.css + panels-kit.css. */
.dg-scroll{margin-top:18px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.dg-svg{display:block;width:100%;height:auto;min-width:620px;overflow:visible}
.dg-svg text{font-family:var(--sans);fill:#ECF2EC}
.dg-svg .lab{font-size:22px;font-weight:600}
.dg-svg .sub{font-size:18px;font-weight:500;fill:rgba(236,242,236,.82)}
.dg-svg .cap{font-size:15px;font-weight:700;letter-spacing:.16em;fill:rgba(236,242,236,.72)}
.dg-svg .ttl{font-family:var(--serif);font-size:30px;fill:#fff}
.dg-svg .it{font-style:italic;font-family:var(--serif)}
.dg-svg .green{fill:#7fe09a}
.dg-svg .gold{fill:#E9C878}
.dg-svg .day{font-size:15px;font-weight:700;letter-spacing:.12em;fill:rgba(236,242,236,.72);text-anchor:middle}
.dg-svg .axis{stroke:#E9C878;stroke-width:2.5}
.dg-svg .tick{stroke:#E9C878;stroke-width:1.5;opacity:.8}
.dg-svg .adam{fill:#E9C878}
.dg-cross rect{fill:#E9C878;filter:drop-shadow(0 0 10px rgba(233,200,120,.75))}
.dg-hit{cursor:pointer;outline:none}
.dg-hit rect{fill:transparent;stroke:transparent;stroke-width:2;transition:stroke .2s,fill .2s}
.dg-hit:hover rect,.dg-hit:focus-visible rect{stroke:rgba(127,224,154,.6);fill:rgba(127,224,154,.06)}
.dg-sel{fill:rgba(233,200,120,.12);stroke:#E9C878;stroke-width:2;opacity:0;transition:opacity .3s;pointer-events:none}
.dg-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px 24px;flex-wrap:wrap}
.dg-row .ip-go{margin-top:16px}
.dg-info{display:none}
.dg-card{min-height:96px}

/* God's Week */
.dg-week .rays line{stroke:rgba(255,240,200,.05);stroke-width:16}
.dg-week .brace{fill:none;stroke:#E9C878;stroke-width:2;opacity:.55;transition:opacity .4s,stroke-width .4s}
.dg-week[data-span="law"] .brace-law,.dg-week[data-span="grace"] .brace-grace{opacity:1;stroke-width:3}
.dg-week .d7box{fill:rgba(233,200,120,.12);stroke:#E9C878;stroke-width:1.5;opacity:.7}
.dg-week .arrow-l{fill:none;stroke:#7fe09a;stroke-width:2}
.dg-week[data-sel="cross"] .dg-cross rect{filter:drop-shadow(0 0 22px rgba(233,200,120,1))}
.dg-week[data-sel="zion"] .dg-halo{opacity:1}
/* layered diagrams: each layer fades in when its turn comes (panels-dg.js) */
.dg-layers .ly{opacity:0;transition:opacity 1s ease}
.dg-layers .ly.on{opacity:1}
@media(prefers-reduced-motion:reduce){.dg-layers .ly{transition:none}}
/* the static week: both braces and the mountain's light fully on */
.dg-week.dg-static .brace{opacity:1}
.dg-week.dg-static .dg-halo{opacity:1}
.dg-halo{transition:opacity .5s,r .4s}

/* Light, Object, Shadow */
.dg-svg .plan .dash,.dg-inverts .dash{fill:none;stroke:rgba(236,242,236,.55);stroke-width:1.5;stroke-dasharray:6 5}
.dg-svg .plan .room{fill:rgba(236,242,236,.05);stroke:rgba(236,242,236,.7);stroke-width:1.4}
.dg-svg .plan .ico{fill:none;stroke:rgba(236,242,236,.85);stroke-width:1.4}
.dg-svg .plan .gate,.dg-svg .plan .door{stroke:rgba(236,242,236,.85);stroke-width:3}
.dg-svg .plan .veil{stroke:#E9C878;stroke-width:2;stroke-dasharray:4 3}
.dg-svg .plan .zone{font-size:11px;font-weight:700;letter-spacing:.1em;fill:rgba(236,242,236,.7)}
.dg-svg .lead{fill:none;stroke:rgba(233,200,120,.8);stroke-width:1.2}
.dg-light{max-width:520px}
.dg-range{width:100%;margin-top:10px;accent-color:var(--sagefire)}

/* Through the Shadow */
.dg-inverts .room-s{fill:rgba(236,242,236,.04);stroke:rgba(236,242,236,.45);stroke-width:1.2}
.dg-inverts .rm.brass{fill:#3b2a1a;stroke:#E9C878;stroke-width:1.5}
.dg-inverts .rm.gold{fill:#c9a24a;stroke:#ffe9a8;stroke-width:2;filter:drop-shadow(0 0 14px rgba(255,233,168,.7))}
.dg-inverts .rm-art{opacity:.92}
.dg-inverts .room-g{cursor:pointer;transition:opacity .7s,transform .7s;outline:none}
.dg-inverts .room-g:hover .rm,.dg-inverts .room-g:focus-visible .rm{stroke:#7fe09a}
.dg-inverts .room-g.on .rm{stroke:#7fe09a;stroke-width:3}
.dg-inverts .inv-arc{fill:none;stroke:#fff;stroke-width:2;stroke-dasharray:600;stroke-dashoffset:600;transition:stroke-dashoffset 1.2s ease}
.dg-inverts .inv-arc-t{opacity:0;transition:opacity .6s .6s}
.dg-inverts .grace-side{opacity:.12;transition:opacity .8s}
.dg-inverts .law-side{transition:opacity .8s}
.dg-inverts[data-state="grace"] .inv-arc{stroke-dashoffset:0}
.dg-inverts[data-state="grace"] .inv-arc-t{opacity:1}
.dg-inverts[data-state="grace"] .grace-side{opacity:1}
.dg-inverts[data-state="grace"] .law-side{opacity:.35}
.dg-inverts[data-state="grace"] .room-0{transition-delay:.6s}
.dg-inverts .room-g{opacity:1}
.dg-inverts:not([data-state="grace"]) .room-g{opacity:.4}

/* Called Out, Sent For */
.called-grid{display:grid;grid-template-columns:1fr;gap:14px}
.called-side{grid-template-columns:1fr 1fr}
@media(max-width:560px){.called-side{grid-template-columns:1fr}}
.dg-called .ring{fill:none;stroke:#7fe09a;stroke-width:2.5}
.dg-called .ring-w{filter:drop-shadow(0 0 16px rgba(127,224,154,.5))}
.dg-called .loop{fill:none;stroke:#9be3ad;stroke-width:2.5;transition:opacity .5s,stroke .5s}
.dg-called .loop-head{fill:none;stroke:#9be3ad;stroke-width:2.5;transition:opacity .5s}
/* saved from: the way out turns red and the way back is gone (owner's call 2026-10-22) */
.dg-called[data-state="from"] .loop-back,.dg-called[data-state="from"] .loop-head{opacity:0}
.dg-called[data-state="from"] .loop-out{stroke:#e07b5a}
.dg-called[data-state="from"] marker path{fill:#e07b5a}
.dg-called[data-state="from"] .traveller{fill:#ffd6c7;filter:drop-shadow(0 0 8px #e07b5a)}
.dg-called[data-state="from"] .ring-c{stroke:#e07b5a}
.dg-called .stop{stroke:#e07b5a;stroke-width:6;stroke-linecap:round;opacity:0;transition:opacity .4s}
.dg-called[data-state="from"] .stop{opacity:1}
.dg-called .traveller{fill:#fff6d8;filter:drop-shadow(0 0 8px #ffe9a8)}
.dg-called .tag-w rect,.dg-called .tag-c rect{fill:rgba(4,56,63,.85);stroke:rgba(127,224,154,.45)}
.called-side{display:grid;gap:10px}
.called-opt{display:grid;gap:4px;text-align:left;padding:14px 16px;border-radius:10px;border:1px solid rgba(236,242,236,.18);transition:border-color .3s,background .3s}
.called-opt .cap{font:700 12px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(236,242,236,.6)}
.called-opt b{font:400 20px/1.2 var(--serif);color:#fff}
.called-opt .it{font:italic 400 14.5px/1.4 var(--serif);color:rgba(236,242,236,.8)}
.called-opt[aria-pressed="true"]{border-color:var(--sagefire);background:rgba(22,166,55,.12)}
.called-opt[data-state="from"][aria-pressed="true"]{border-color:#e07b5a;background:rgba(224,123,90,.2)}
.called-opt[data-state="from"][aria-pressed="true"] .cap{color:#e07b5a}
@media(max-width:760px){.called-grid{grid-template-columns:1fr}}

/* Coming Out to Go In */
.co-wrap{position:relative;margin-top:20px}
.co-cols{display:grid;grid-template-columns:repeat(3,1fr);border-radius:10px;overflow:hidden;border:1px solid rgba(236,242,236,.12)}
.co-col{
  position:relative;display:flex;flex-direction:column;gap:6px;text-align:left;min-height:360px;padding:20px 18px 18px;
  background:linear-gradient(180deg,rgba(4,56,63,.82),rgba(4,56,63,.55) 45%,rgba(4,56,63,.9)),var(--art) center/cover;
  border-right:1px solid rgba(236,242,236,.1);transition:filter .5s,box-shadow .5s;filter:saturate(.55) brightness(.8);
}
.co-col:last-child{border-right:0}
.co-col .cap{font:700 11.5px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:rgba(236,242,236,.7)}
.co-col .ttl{font:400 clamp(21px,2.2vw,28px)/1.1 var(--serif);color:#fff}
.co-col .it{font:italic 400 14px/1.4 var(--serif);color:rgba(236,242,236,.85)}
.co-col .co-stage{margin-top:auto;padding-top:64px;display:flex;flex-direction:column;gap:4px}
.co-col.on{filter:none;box-shadow:inset 0 0 0 2px var(--sagefire)}
.co-col[data-k="c1"].on .co-stage .ttl{color:#7fe09a}
.co-path{position:absolute;left:0;right:0;top:calc(62% - 20px);width:100%;height:40px;pointer-events:none;overflow:visible}
.co-path .route{fill:none;stroke:#9be3ad;stroke-width:2.5;vector-effect:non-scaling-stroke}
.co-path .route-head{fill:none;stroke:#9be3ad;stroke-width:2.5;vector-effect:non-scaling-stroke}
.co-path .start{fill:#9be3ad}
.co-path .traveller{fill:#fff6d8;filter:drop-shadow(0 0 8px #ffe9a8)}
@media(max-width:700px){.co-cols{grid-template-columns:1fr}.co-col{min-height:0}.co-col .co-stage{padding-top:14px}.co-path{display:none}}

/* Trials as Guardrails */
.dg-trials .kline{stroke:#7fe09a;stroke-width:2.5}
.dg-trials .kdot{fill:#7fe09a}
.dg-trials .zig{fill:none;stroke:rgba(236,242,236,.6);stroke-width:2;stroke-dasharray:3 6}
.dg-trials .zig-lit{fill:none;stroke:#E9C878;stroke-width:3;filter:drop-shadow(0 0 5px rgba(233,200,120,.8));transition:stroke-dashoffset .9s ease}
.dg-trials .rail line,.dg-trials .rail path{fill:none;stroke:#7fe09a;stroke-width:2.5;transition:stroke .3s}
.dg-trials .rail.on line,.dg-trials .rail.on path{stroke:#E9C878;filter:drop-shadow(0 0 6px rgba(233,200,120,.9))}
.dg-trials .rail.on text{fill:#E9C878}
.dg-trials .traveller{fill:#fff6d8;filter:drop-shadow(0 0 8px #ffe9a8)}

/* Constants and Variables */
.cv-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr);gap:18px 30px;align-items:center}
.cv-grid .dg-svg{min-width:0}
.dg-constants .orbit{fill:none;stroke:rgba(127,224,154,.18);stroke-dasharray:3 6}
.dg-constants .star{fill:#fff;filter:drop-shadow(0 0 12px rgba(255,255,255,.9))}
.dg-constants .cv-sky{opacity:.75}
.dg-constants .core{cursor:pointer;outline:none}
.dg-constants .core-hit{fill:transparent}
.dg-constants .core .ttl{font-size:22px}
.dg-constants .var{cursor:pointer;outline:none}
.dg-constants .var circle{fill:transparent;stroke:#7fe09a;stroke-width:2}
.dg-constants .var text{font-family:var(--serif);font-size:22px;fill:#fff}
.dg-constants .var.on circle{fill:#7fe09a}
.cv-side{display:grid;gap:16px}
.cv-side .cap{margin:0;font:700 11.5px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:#7fe09a}
.cv-side p{margin:6px 0 0;font:400 15px/1.5 var(--sans);color:rgba(236,242,236,.85)}
.cv-side .it{font:italic 400 14.5px/1.45 var(--serif)}
.cv-error{padding:14px 16px;border-radius:8px;border:1px solid rgba(127,224,154,.4);background:rgba(127,224,154,.06)}
.cv-error h4{margin:6px 0 0;font:400 20px/1.25 var(--serif);color:#fff}
.cv-error.flash{animation:cv-flash 1.4s ease}
@keyframes cv-flash{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 3px #e07b5a;border-color:#e07b5a}}
@media(max-width:760px){.cv-grid{grid-template-columns:1fr}}

/* Two Paths to Transformation */
/* one set of rows for both columns: head, four tiles, closing line; each
   column is a subgrid so tile 01 lines up with tile 01 across the divide */
.tp-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto repeat(4,auto) auto;gap:26px 34px;margin-top:22px;position:relative}
.tp-col{display:grid;grid-row:1 / -1;grid-template-rows:subgrid;row-gap:26px}
.tp-col ol{display:contents}
.tp-grid::before{content:'';position:absolute;left:50%;top:0;bottom:0;border-left:1px solid rgba(236,242,236,.12)}
.tp-head{display:flex;align-items:center;gap:14px;margin-bottom:0;align-self:end}
.tp-head img{width:84px;height:63px;object-fit:cover;border-radius:8px;border:1px solid rgba(236,242,236,.18)}
.tp-head h4{margin:0;font:400 28px/1 var(--serif);color:#fff}
.tp-head .cap{font:700 11px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:rgba(236,242,236,.6)}
.tp-col ol{list-style:none;margin:0;padding:0}
.tp-box{position:relative;display:grid;grid-template-columns:30px 1fr;column-gap:10px;padding:13px 14px;border-radius:4px;border:1px solid rgba(127,224,154,.35);background:rgba(127,224,154,.04);cursor:pointer;transition:background .4s,border-color .4s,box-shadow .4s;outline:none}
.tp-box .n{grid-row:1/3;font:700 11.5px/1.6 var(--sans);color:rgba(236,242,236,.55)}
.tp-box b{font:400 18px/1.25 var(--serif);color:#fff}
.tp-box .it{font:italic 400 13.5px/1.4 var(--serif);color:rgba(236,242,236,.8)}
.tp-box:not(:last-child)::after{content:'';position:absolute;left:50%;top:100%;height:26px;border-left:1.5px solid rgba(127,224,154,.6)}
.tp-spi .tp-box{background:rgba(22,166,55,.1)}
/* the Religion tiles are red (owner's call 2026-10-22) */
.tp-rel .tp-box{border-color:rgba(224,123,90,.55);background:rgba(224,123,90,.08)}
.tp-rel .tp-box::after{border-left-color:rgba(224,123,90,.6)}
.tp-rel .tp-box.lit{background:rgba(224,123,90,.22);border-color:#e07b5a;box-shadow:0 0 18px rgba(224,123,90,.25)}
.tp-spi .tp-box.lit{background:rgba(22,166,55,.24);border-color:#7fe09a;box-shadow:0 0 18px rgba(127,224,154,.25)}
.tp-box.on{box-shadow:0 0 0 2px #E9C878}
.tp-box .tp-tag{position:absolute;right:12px;bottom:-11px;padding:3px 9px;border-radius:999px;border:1px solid rgba(127,224,154,.5);background:var(--teal);font:700 10px/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:rgba(236,242,236,.8)}
.tp-end{margin:0;align-self:start;font:italic 400 15px/1.4 var(--serif);color:#9be3ad}
@media(max-width:700px){.tp-grid{grid-template-columns:1fr;grid-template-rows:none}.tp-col{grid-row:auto;grid-template-rows:none}.tp-grid::before{display:none}}
@media(prefers-reduced-motion:reduce){.dg-inverts .inv-arc,.dg-trials .zig-lit,.dg-sel{transition:none}}
.dg-svg .tiny{font-size:14px;font-weight:600;fill:rgba(236,242,236,.85)}
.dg-svg .tiny.gold{fill:#E9C878}

/* Time and Eternity: the circle and the line */
.dg-eternity .ring{fill:rgba(233,200,120,.05);stroke:#E9C878;stroke-width:2.5;filter:drop-shadow(0 0 14px rgba(233,200,120,.55));transition:stroke-width .3s}
.dg-eternity .rim{font-size:12px;font-weight:700;letter-spacing:.1em;fill:rgba(236,242,236,.72)}
.dg-eternity .alpha{fill:#E9C878;filter:drop-shadow(0 0 8px rgba(233,200,120,.9))}
.dg-eternity .inner{font-family:var(--serif);font-style:italic;font-size:22px;fill:#fff;text-anchor:middle}
.dg-eternity .rays line{stroke:#E9C878;stroke-width:1.2;opacity:.26;transition:opacity .4s}
.dg-eternity .rays line.calv{opacity:.85;stroke-width:1.6}
.dg-eternity .ray-here{stroke:#7fe09a;stroke-width:2.2;filter:drop-shadow(0 0 6px rgba(127,224,154,.8))}
.dg-eternity .cross rect{fill:#E9C878;filter:drop-shadow(0 0 8px rgba(233,200,120,.75))}
.dg-eternity .era{font-size:16px;font-weight:600;fill:rgba(236,242,236,.72);text-anchor:middle;transition:fill .3s}
.dg-eternity .era.calv{fill:#E9C878;font-weight:700}
.dg-eternity .era.lit{fill:#7fe09a}
.dg-eternity .end{font-size:13px;font-weight:700;letter-spacing:.18em;fill:rgba(127,224,154,.9)}
.dg-eternity .note{font-size:15.5px;fill:rgba(236,242,236,.85)}
.dg-eternity .note .k{fill:#7fe09a;font-weight:700}
.dg-eternity .here{fill:#7fe09a;filter:drop-shadow(0 0 8px rgba(127,224,154,.9))}
.dg-eternity .you{font-size:14px;font-weight:600;fill:#fff}
.dg-eternity .et-here rect{fill:transparent}
.dg-eternity .dg-hit.on rect{stroke:rgba(233,200,120,.75);fill:rgba(233,200,120,.06)}
.dg-eternity .et-here.on .here{fill:#fff}
.dg-eternity[data-sel="eternity"] .ring{stroke-width:4}
.dg-eternity[data-sel="fullness"] .axis{stroke:#7fe09a}
.dg-eternity .axis{transition:stroke .3s}
.dg-picks{margin-top:18px}
.dg-eternity[data-sel="alpha"] .alpha{r:10}
@media(prefers-reduced-motion:reduce){.dg-eternity .ring,.dg-eternity .era,.dg-eternity .rays line{transition:none}}
