/* The chart page: the map, the tabs and the lands.
   The map is drawn like an old park map: the chart is the hub at the centre,
   a rail circles it, and a path runs out from the hub to every land. */
[hidden] { display: none !important; }

/* ---- the hub ---- */
.hub { position: relative; overflow: hidden; isolation: isolate; background: #04030c; }
.hub .sky-cv { position: absolute; inset: 0; z-index: -1; }
.hub-in { width: min(980px, 100% - 32px); margin: 0 auto; padding: 28px 0 40px; text-align: center; }
.hub-crumb { text-align: left; margin: 0 0 18px; font-size: 14px; }
.hub-crumb a { color: var(--ivory-dim); text-decoration: none; }
.hub-crumb a:hover { color: var(--celadon); }
.hub h1 { font-weight: 300; font-size: clamp(34px, 7vw, 58px); line-height: 1; margin: 0 0 8px; color: #e6e1f4;
  text-shadow: 0 0 40px rgba(150,120,255,.35); }
.hub .meta { margin: 0 0 10px; }
.map-hint { color: var(--ivory-dim); font-style: italic; font-size: 14.5px; margin: 8px 0 0; }

/* ---- the map: the torus, then the path in order ---- */
.hub-torus { width: min(100%, 520px); margin: 22px auto 0; }
.hub-torus .map-core.tz-core { position: relative; left: auto; top: auto; transform: none; width: 100%; }
.map { width: min(100%, 980px); margin: 26px auto 0; text-align: left; }
.path-h { font-weight: 400; font-size: 22px; color: var(--celadon); margin: 30px 0 12px; text-align: center; }
.path-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; counter-reset: none; }
.path-step { position: relative; display: block; height: 100%; box-sizing: border-box; padding: 14px 14px 15px 14px; text-decoration: none;
  background: rgba(8,8,22,.82); border: 1px solid rgba(150,130,230,.26); border-radius: 4px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: border-color 260ms var(--ease), background 260ms var(--ease); }
.path-step:hover, .path-step:focus-visible { border-color: var(--jade); background: rgba(14,24,26,.92); outline: none; }
.path-n { position: absolute; top: 10px; right: 12px; font-family: var(--mono); font-size: 12px; color: var(--jade); letter-spacing: .1em; }
.path-step b { display: block; font-weight: 400; font-size: 16.5px; color: var(--ivory); margin-top: 2px; }
.path-step small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--celadon); }
.path-step em { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--ivory-dim); }
.path-reading { display: block; margin: 14px 0 0; padding: 16px 18px; text-align: center; text-decoration: none; border-radius: 4px;
  border: 1px solid rgba(184,146,74,.55); background: rgba(28,20,8,.85); }
.path-reading .land-mark, .path-reading b { color: var(--gold); }
.path-reading b { display: block; font-weight: 400; font-size: 18px; }
.path-reading small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ivory-dim); }
.path-reading:hover, .path-reading:focus-visible { border-color: var(--gold); outline: none; }
.path-explore { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.path-explore .land { position: static; transform: none; width: auto; }
.path-explore .land:hover, .path-explore .land:focus-visible { transform: none; }
.land-panel .sec-h, .land-panel details.dg-more { scroll-margin-top: 64px; }
details.dg-more { margin-top: 28px; } details.dg-more > summary { cursor: pointer; list-style: none; }
details.dg-more > summary::-webkit-details-marker { display: none; }
details.dg-more > summary h3 { display: inline; } details.dg-more > summary::after { content: " ▾"; color: var(--jade); }
details.dg-more[open] > summary::after { content: " ▴"; }
.dg-master { margin: 6px 0 22px; }
details.dg-fold { margin: 14px 0; } details.dg-fold > summary { cursor: pointer; color: var(--celadon); font-size: 16px; }
.tab.ex { opacity: .75; }
.map-core { position: absolute; left: 50%; top: 50%; width: 47%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(10,12,26,.95) 55%, rgba(10,12,26,.6) 72%, transparent 74%);
  box-shadow: 0 0 60px rgba(150,120,255,.18); transition: box-shadow 300ms var(--ease); }
.map-core:hover, .map-core:focus-visible { box-shadow: 0 0 80px rgba(150,120,255,.38); outline: none; }
.map-core svg { width: 100%; height: 100%; display: block; }
.map-core text { text-anchor: middle; dominant-baseline: central; font-family: var(--serif); }
.w-ring { fill: none; stroke: rgba(156,180,166,.3); stroke-width: .6; }
.w-in { stroke: rgba(184,146,74,.3); }
.w-div { stroke: rgba(156,180,166,.22); stroke-width: .5; }
.w-hor { stroke: var(--gold); stroke-width: .7; stroke-dasharray: 2 2; opacity: .7; }
.w-sign { fill: var(--ivory-dim); font-size: 9px; }
.w-body { fill: var(--ivory); font-size: 10.5px; }
.w-tick { fill: var(--celadon); }
.w-core { fill: var(--celadon); font-size: 9px; }

.land { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: clamp(124px, 21%, 172px); padding: 12px 12px 13px; text-decoration: none; text-align: center;
  background: rgba(8,8,22,.82); border: 1px solid rgba(150,130,230,.26); border-radius: 4px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: border-color 260ms var(--ease), transform 260ms var(--ease), background 260ms var(--ease); }
.land:hover, .land:focus-visible { border-color: var(--jade); background: rgba(14,24,26,.92); outline: none;
  transform: translate(-50%, -50%) scale(1.04); }
.land-mark { display: block; font-size: 22px; line-height: 1; color: var(--jade); margin-bottom: 6px; }
.land b { display: block; font-weight: 400; font-size: 15.5px; line-height: 1.2; color: var(--ivory); }
.land small { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.35; color: var(--ivory-dim); }
.land.gold { border-color: rgba(184,146,74,.55); background: rgba(28,20,8,.85); }
.land.gold .land-mark, .land.gold b { color: var(--gold); }
.land.gold:hover, .land.gold:focus-visible { border-color: var(--gold); }

/* ---- the tabs ---- */
.tabs { position: sticky; top: 0; margin: 0; z-index: 15; background: rgba(5,8,10,.92); border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tabs-in { width: min(980px, 100% - 16px); margin: 0 auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; padding: 14px 13px 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ivory-dim); text-decoration: none; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--celadon); }
.tab[aria-current="page"] { color: var(--celadon); border-bottom-color: var(--jade); }
.tab.gold { color: rgba(184,146,74,.8); }
.tab.gold[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.tab-map { color: var(--jade); }

/* ---- the lands ---- */
.land-panel { padding: 34px 0 20px; overflow-x: clip; }
.land-panel > h2 { font-weight: 400; font-size: 30px; color: var(--celadon); margin: 0 0 6px; }
.land-panel .lede { color: var(--ivory-dim); margin: 0 0 20px; }
.land-panel .offer { margin: 0; }
.land-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 0 10px;
  border-top: 1px solid var(--rule); margin-top: 20px; font-size: 14.5px; }
.land-nav a { color: var(--ivory-dim); text-decoration: none; }
.land-nav a:hover { color: var(--celadon); }
.land-nav .to-map { color: var(--jade); }
@media (max-width: 560px) {
  .land-panel > h2 { font-size: 26px; }
  .land-nav { justify-content: center; text-align: center; }
  .land-nav .to-map { order: -1; flex-basis: 100%; }
}

/* ---- the wheel ---- */
.wwheel { width: 100%; height: auto; display: block; font-family: var(--serif); }
.wwheel text { text-anchor: middle; dominant-baseline: central; }
.wh-back { fill: #121417; }
.wh-cell { stroke: rgba(217,212,196,.09); stroke-width: 1; }
.wh-tro { fill: #2a221c; } .wh-tro.alt { fill: #2f2720; }
.wh-sid { fill: #24231c; } .wh-sid.alt { fill: #29281f; }
.wh-run { fill: #1d2024; } .wh-run.lit { fill: #3b3e43; stroke: rgba(217,212,196,.8); stroke-width: 2; }
.wh-gate { fill: #1a1c1f; } .wh-gate.pers { fill: #3a3c40; } .wh-gate.des { fill: #1e3a39; }
.wh-gate.both { fill: #3a3c40; stroke: var(--jade); stroke-width: 2; }
.wh-nak { fill: #17191c; } .wh-nak.alt { fill: #1b1d21; } .wh-nak.moon { fill: #24302c; }
.wh-house { opacity: .62; stroke: rgba(0,0,0,.35); stroke-width: 1; }
.wh-badge { fill: #5b3d8a; stroke: rgba(200,170,255,.35); }
.wh-badge-g { fill: #f1eaff; font-size: 17px; }
.wwheel.compact .wh-badge-g { font-size: 26px; }
.wh-abbr { fill: #c9a25b; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.wh-tiny { fill: rgba(217,212,196,.42); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.wh-rune { fill: rgba(217,212,196,.5); font-size: 19px; }
.wh-rune.lit { fill: #f3efe4; }
.wwheel.compact .wh-rune { font-size: 30px; }
.wh-gn { fill: rgba(217,212,196,.32); font-family: var(--mono); font-size: 11.5px; }
.wh-gn.pers, .wh-gn.both { fill: #f3efe4; font-weight: 600; } .wh-gn.des { fill: #a8d8c6; font-weight: 600; }
.wh-nk { fill: rgba(217,212,196,.45); font-size: 10px; } .wh-nk.moon { fill: var(--celadon); }
.wh-hn { fill: #fff; font-family: var(--mono); font-size: 15px; font-weight: 600; }
.wwheel.compact .wh-hn { font-size: 22px; }
.wh-ang { stroke: rgba(217,212,196,.45); stroke-width: 1.4; stroke-dasharray: 6 5; }
.wh-ang.main { stroke: #eee8d8; stroke-dasharray: none; stroke-width: 2; }
.wh-angn { fill: #eee8d8; font-family: var(--mono); font-size: 14px; }
.wh-tick { stroke: rgba(217,212,196,.8); stroke-width: 1.5; }
.wh-lead { stroke: rgba(217,212,196,.22); stroke-width: 1; }
.wh-glyph { fill: #f1ece0; font-size: 25px; }
.wwheel.compact .wh-glyph { font-size: 38px; }
.wh-glyph.des { fill: #6fb7a0; font-size: 21px; }
.wh-deg { fill: rgba(217,212,196,.55); font-family: var(--mono); font-size: 10px; }
.wh-core { fill: #15171b; stroke: rgba(217,212,196,.25); stroke-width: 1.2; }
.wh-c1 { fill: #f1ece0; font-size: 26px; }
.wh-c2 { fill: rgba(217,212,196,.62); font-family: var(--mono); font-size: 13px; }
.wh-c3 { fill: var(--jade); font-size: 19px; }
.wh-c4 { fill: var(--celadon); font-family: var(--mono); font-size: 13px; }
.wh-cc { fill: var(--celadon); font-size: 34px; }
.wh-pl { cursor: default; }
.chart-wheel { max-width: 860px; margin: 0 auto 30px; }
.wh-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13.5px; color: var(--ivory-dim); margin: 0 0 30px; }
.wh-key i { display: inline-block; width: .9em; height: .9em; vertical-align: -.1em; margin-right: .4em; border: 1px solid rgba(217,212,196,.4); }
.wh-asp { stroke-width: 1.1; opacity: .4; }
.wh-aspring { fill: none; stroke: rgba(217,212,196,.14); stroke-width: 1; }
.wh-aspdot { fill: rgba(217,212,196,.6); }

/* ---- the explorable wheel ---- */
.wx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.wx-lv { font: inherit; font-size: 14px; color: var(--ivory-dim); background: none; cursor: pointer;
  border: 1px solid rgba(156,180,166,.3); padding: 7px 14px; border-radius: 2px; }
.wx-lv[aria-pressed="true"] { color: var(--ivory); border-color: var(--jade); background: rgba(95,156,134,.18); }
.wx-hint { font-size: 14px; color: var(--ivory-dim); font-style: italic; }
.wx-stage { max-width: 860px; margin: 0 auto; }
.wx-card { max-width: 560px; margin: 14px auto 26px; padding: 16px 18px; border: 1px solid rgba(150,130,230,.25); border-radius: 3px;
  background: rgba(8,8,22,.55); min-height: 3em; }
.wx-card h4 { font-weight: 400; font-size: 20px; color: var(--ivory); margin: 0 0 8px; }
.wx-card h4 small, .wx-card dd small { color: var(--ivory-dim); font-size: .8em; }
.wx-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.wx-card dt { color: var(--ivory-dim); } .wx-card dd { margin: 0; }
.wx-card p { margin: 6px 0 0; font-size: 15px; }
.wx-kind { color: var(--ivory-dim); }
.wx-idle { color: var(--ivory-dim); font-style: italic; }
.wx-g { font-size: 1.2em; margin-right: 4px; } .wx-g.des { color: #6fb7a0; }
.wh-hit { fill: transparent; }
.wh-pl { cursor: pointer; outline: none; }
.wh-pl:focus-visible .wh-hit { stroke: var(--gold); stroke-width: 2; }
.wwheel [data-k] { cursor: pointer; }
.wwheel .ring { transition: opacity 300ms var(--ease); }
.wwheel.focusing .ring:not(.in-focus) { opacity: .3; }
.wwheel.focusing.selecting .wh-cell:not(.hi), .wwheel.focusing.selecting .wh-pl:not(.hi) { opacity: 1; }
.wwheel.selecting .wh-cell:not(.hi) { opacity: .45; }
.wwheel.selecting .wh-pl:not(.hi) { opacity: .35; }
.wwheel .wh-cell.hi { stroke: var(--gold); stroke-width: 2.5; opacity: 1; }
.wwheel .wh-pl.hi .wh-glyph { fill: var(--gold); }
.wh-glyph.other { fill: #d9a35a; font-size: 21px; }
.wh-tick.other { stroke: #d9a35a; }
.wx-stage .wwheel.lv-simple .wh-glyph { font-size: 30px; }
.wx-stage .wwheel.lv-simple .wh-rune { font-size: 22px; }

/* ---- the glossary ---- */
.gl { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help;
  text-decoration: underline dotted rgba(156,180,166,.6); text-underline-offset: 3px; }
.gl:hover, .gl[aria-expanded="true"] { color: var(--celadon); }
.gl-i { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; margin-left: .25em; border-radius: 50%;
  border: 1px solid rgba(156,180,166,.55); font-family: var(--mono); font-size: .62em; font-style: normal; vertical-align: .2em; color: var(--celadon); }
.gl-pop { position: absolute; z-index: 50; background: #0d1018; border: 1px solid var(--jade); border-radius: 4px; padding: 14px 34px 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6); font-size: 15px; line-height: 1.55; color: var(--ivory); }
.gl-pop b { display: block; font-weight: 400; color: var(--celadon); font-size: 16.5px; margin-bottom: 4px; }
.gl-pop p { margin: 0; }
.gl-x { position: absolute; top: 6px; right: 8px; font: inherit; font-size: 22px; line-height: 1; color: var(--ivory-dim); background: none; border: 0; cursor: pointer; padding: 4px; }
.gl-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0 0 22px; font-size: 14.5px; color: var(--ivory-dim); }
.gl-row span:first-child { font-style: italic; }
.gl-all { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; margin: 0; }
.gl-all dt { color: var(--celadon); } .gl-all dd { margin: 2px 0 0; font-size: 14.5px; color: rgba(217,212,196,.8); }

/* ---- the torus at the map's centre ---- */
.map-core.tz-core { width: 56%; aspect-ratio: auto; border-radius: 0; background: none; box-shadow: none; }
.tz-cv { display: block; width: 100%; cursor: grab; touch-action: none; border-radius: 50%; }
.tz-cv:active { cursor: grabbing; }
.tz-cv:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.tz-layers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px auto 6px; max-width: 760px; }
.tz-chip { font: inherit; font-size: 14px; color: var(--ivory-dim); background: rgba(8,8,22,.7); border: 1px solid rgba(150,130,230,.3);
  border-radius: 18px; padding: 6px 13px; cursor: pointer; text-decoration: none; }
.tz-chip[aria-pressed="true"] { color: var(--ivory); border-color: var(--jade); background: rgba(38,81,74,.35); }
.tz-chip.open { color: var(--gold); border-color: rgba(184,146,74,.5); }
.tz-cap { min-height: 1.6em; color: var(--celadon); font-size: 15px; margin: 4px 0 0; }
@media (max-width: 720px) { .map-core.tz-core { width: 100%; margin: 0 auto 10px; } }

/* ---- the Wyrd Mandala room: the instrument takes more width than the other lands ---- */
#p-mandala { overflow-x: visible; }
#p-mandala .wm { --wm-sticky: 58px; --mw: min(1240px, 100vw - 32px); width: var(--mw); margin-inline: calc((100% - var(--mw)) / 2); }
.mand-intro { color: var(--ivory); max-width: 68ch; margin: 0 0 22px; }
.mand-learn { margin-top: 36px; }
.mand-learn h3 { font-weight: 400; font-size: 22px; color: var(--celadon); margin: 0 0 8px; }
.to-st { color: inherit; text-decoration: underline dotted rgba(156,180,166,.5); text-underline-offset: 3px; }
.to-st:hover { color: var(--celadon); }
