/* Spherography: the connections atlas (sg_atlas.js, 2026-11-30): "How the courses connect", laid over the map by the
   bar's "Connections" button. sg-at- classes only, under .sg-root (every /assets stylesheet loads on every page).
   The stage is a fixed design (2100 x 1206 px) scaled by a CSS transform: its sizes are design px, not rem, and they do
   not follow the reader's text size (--sg-ts) - the wheel zooms the whole picture instead. Same tokens as the map:
   glass rgba(4,9,16,.72), text #e8e8e8, muted #9fb3c8, gold #ffd46b, Oxanium for names, Cambria Math for formulas. */

/* the map's own HUD steps away while the atlas is open; the bar stays on top of it */
.sg-root.sg-atlas-on .sg-who, .sg-root.sg-atlas-on .sg-gems, .sg-root.sg-atlas-on .sg-legend, .sg-root.sg-atlas-on .sg-club,
.sg-root.sg-atlas-on .sg-depth, .sg-root.sg-atlas-on .sg-focus { opacity: 0 !important; pointer-events: none !important; transition: opacity .25s; }
.sg-root.sg-atlas-on .sg-bar { z-index: 14; }
.sg-root .sg-btn[data-a="atlas"].on { color: var(--sg-gold); background: rgba(255,212,107,.12); border-color: rgba(255,212,107,.55); }

.sg-atlas { position: absolute; inset: 0; z-index: 12; overflow: hidden; opacity: 0; transition: opacity .3s ease; cursor: grab; touch-action: none;
  background: radial-gradient(120% 95% at 50% 42%, rgba(3,7,14,.64), rgba(2,5,11,.92) 72%); backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); }
.sg-atlas.sg-at-in { opacity: 1; }
.sg-atlas.sg-at-grab { cursor: grabbing; }
.sg-at-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; color: #e8e8e8; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }

/* the head (title + controls, at the map's own size) and the three rows */
.sg-at-head { position: absolute; top: 8px; left: 14px; right: 10px; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; pointer-events: none; }
.sg-at-title { min-width: 0; pointer-events: auto; cursor: default; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.sg-at-title h2 { margin: 2px 0 0; font: 700 1.25rem/1.15 Oxanium, "Segoe UI", sans-serif; color: var(--sg-gold); letter-spacing: .02em; text-shadow: 0 0 22px rgba(255,212,107,.35); }
.sg-at-title h2 i { font-size: 1.05rem; margin-right: 3px; }
.sg-at-title p { margin: 3px 0 0; font-size: .8rem; color: #b9c8d8; }
.sg-at-row { position: absolute; left: 18px; width: 46px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.sg-at-row::after { content: ''; position: absolute; right: 2px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0)); }
.sg-at-row span { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 13px/1 Oxanium, "Segoe UI", sans-serif; letter-spacing: .17em;
  text-transform: uppercase; color: #9fb3c8; white-space: nowrap; }

/* the arrows */
.sg-at-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.sg-at-l { transition: opacity .2s; }
.sg-at-l path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sg-at-l .sg-at-gw { stroke-width: 10; opacity: .1; }
.sg-at-l .sg-at-ln { stroke-width: 2.3; opacity: .88; transition: stroke-width .2s; }
.sg-at-l.sg-at-big .sg-at-ln { stroke-width: 2.8; }
.sg-at-l.sg-at-big .sg-at-gw { stroke-width: 14; opacity: .12; }
.sg-at-l .sg-at-fl { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 2 28; opacity: 0; transition: opacity .6s; }
.sg-atlas.sg-at-live .sg-at-l .sg-at-fl { opacity: .5; animation: sgat-flow 1.9s linear infinite; }
.sg-atlas.sg-at-live .sg-at-l.sg-at-big .sg-at-fl { animation-duration: 3.2s; }
.sg-at-l path.sg-at-hd { fill-opacity: 1; stroke: none; opacity: 0; transition: opacity .35s ease; }
.sg-atlas.sg-at-drawn .sg-at-l path.sg-at-hd { opacity: .95; }
.sg-at-l path.sg-at-hit { stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: default; }
@keyframes sgat-flow { to { stroke-dashoffset: -30; } }

/* the labels of the arrows: a pill whose border runs from one course's colour to the other's */
.sg-at-lab { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); max-width: 320px; padding: 3px 11px 4px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1.25; color: #e8eef4; text-align: center; white-space: nowrap; opacity: 0; transition: opacity .45s ease;
  background: linear-gradient(rgba(5,10,18,.95), rgba(5,10,18,.95)) padding-box, linear-gradient(90deg, var(--c), var(--c2)) border-box;
  border: 1px solid transparent; box-shadow: 0 2px 14px rgba(0,0,0,.55); }
.sg-atlas.sg-at-drawn .sg-at-lab { opacity: 1; }
.sg-at-lab.sg-at-tall { white-space: normal; width: 166px; border-radius: 14px; padding: 7px 10px; font-size: 14px; line-height: 1.32; }
.sg-at-lab.sg-at-big { font-size: 15px; padding: 5px 16px 6px; color: #fff; }

/* the courses */
.sg-at-card { position: absolute; display: flex; flex-direction: column; padding: 11px 16px 12px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(130% 90% at 0% 0%, var(--cs), rgba(0,0,0,0) 60%), linear-gradient(165deg, rgba(10,18,30,.93), rgba(4,9,16,.92));
  border: 1px solid var(--cl); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 50px var(--cg); transition: filter .2s, box-shadow .2s;
  animation: sgat-in .6s cubic-bezier(.2,.7,.2,1) var(--d, 0s) backwards; cursor: inherit; }
@keyframes sgat-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.sg-at-card.sg-at-wide { padding: 12px 18px 12px; }
.sg-at-h { display: flex; align-items: center; gap: 9px; min-height: 28px; cursor: pointer; }
.sg-at-h b { font: 700 19.5px/1.15 Oxanium, "Segoe UI", sans-serif; color: #fff; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sg-at-card.sg-at-wide .sg-at-h b { font-size: 22px; }
.sg-at-h:hover b { color: var(--c); }
.sg-at-orb { flex: 0 0 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 42%, rgba(0,0,0,.55) 100%);
  box-shadow: 0 0 12px var(--cl), 0 0 28px var(--cg); }
.sg-at-card.sg-at-wide .sg-at-orb { flex-basis: 22px; height: 22px; }
.sg-at-n { flex: 0 0 auto; margin-left: auto; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
  font: 700 14px/1 Oxanium, "Segoe UI", sans-serif; color: #08111c; background: var(--c); box-shadow: 0 0 14px var(--cl); }
.sg-at-go { flex: 0 0 auto; margin-left: 4px; font-size: 13px; color: var(--sg-muted); opacity: .55; transition: opacity .15s, color .15s; }
.sg-at-n + .sg-at-go { margin-left: 6px; }
.sg-at-h b + .sg-at-go { margin-left: auto; }
.sg-at-h:hover .sg-at-go { opacity: 1; color: var(--c); }
.sg-at-q { margin-top: 6px; font-size: 15.5px; line-height: 1.3; font-weight: 600; color: var(--c); }
.sg-at-card.sg-at-wide .sg-at-q { margin-top: 0; font-size: 16.5px; }
.sg-at-f { position: relative; flex: 0 0 auto; margin-top: 0; padding: 4px 8px 5px; border-radius: 10px; text-align: center; color: #fff; white-space: nowrap;
  font-family: 'Cambria Math', Cambria, 'Times New Roman', serif; font-size: 17px; line-height: 1.35; background: rgba(255,255,255,.035); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.sg-at-card.sg-at-wide .sg-at-f { font-size: 20px; padding: 6px 10px; }
.sg-at-f sub, .sg-at-f sup { font-size: .68em; line-height: 0; }
.sg-at-f .sg-at-fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .12em; font-size: .92em; line-height: 1.25; }
.sg-at-f .sg-at-fr > span:first-child { border-bottom: 1px solid rgba(255,255,255,.85); padding: 0 .25em .06em; }
.sg-at-f .sg-at-fr > span:last-child { padding: .1em .25em 0; }
.sg-at-f .sg-at-sig { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1; margin: 0 .1em 0 .05em; font-size: 1.3em; }
.sg-at-f .sg-at-sig small { font-size: .46em; line-height: 1.15; }
.sg-at-f .sg-at-gap { display: inline-block; width: 1.1em; }
.sg-at-fn { margin-left: 10px; font-family: "Segoe UI", system-ui, sans-serif; font-size: 12px; font-style: italic; color: var(--sg-muted); }
.sg-at-b { display: flex; gap: 14px; margin-top: 8px; min-height: 0; flex: 1 1 auto; }
.sg-at-v { flex: 0 0 210px; min-width: 0; display: flex; align-items: center; justify-content: center; }
.sg-at-card.sg-at-wide .sg-at-b { margin-top: 8px; gap: 20px; }
.sg-at-card.sg-at-wide .sg-at-v { flex-basis: 471px; }
.sg-at-sv { display: block; width: 100%; height: 100%; overflow: visible; }
.sg-at-sv text { font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
.sg-at-c { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.sg-at-card.sg-at-wide .sg-at-c .sg-at-f { margin-top: 0; }
.sg-at-card.sg-at-fw > .sg-at-f { margin-top: 7px; font-size: 17.5px; }
.sg-at-t { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; margin: 0; font-size: 14.2px; line-height: 1.42; color: #cfdcea; }
.sg-at-card.sg-at-wide .sg-at-t { font-size: 15px; line-height: 1.45; }
.sg-at-io { display: none; }

/* hover: a course (or an arrow) and what it is linked to stay, the rest steps back */
.sg-at-stage.sg-at-hl .sg-at-card:not(.sg-at-on) { filter: brightness(.42) saturate(.55); }
.sg-at-stage.sg-at-hl .sg-at-l:not(.sg-at-on) { opacity: .1; }
.sg-at-stage.sg-at-hl .sg-at-lab:not(.sg-at-on) { opacity: .14; }
.sg-at-stage.sg-at-hl .sg-at-l.sg-at-on .sg-at-ln { stroke-width: 3.4; }
.sg-at-stage.sg-at-hl .sg-at-card.sg-at-on { box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 60px var(--cl); }

/* the ground every course stands on */
.sg-at-found { position: absolute; height: 46px; display: flex; align-items: center; gap: 24px; padding: 0 18px; border-radius: 14px; white-space: nowrap;
  font-size: 14.5px; color: #dfe7ee; border: 1px solid var(--cl); box-shadow: 0 0 44px var(--cg);
  background: linear-gradient(90deg, rgba(255,212,107,.12), rgba(255,212,107,.03) 55%, rgba(92,208,179,.07)); animation: sgat-in .6s ease .25s backwards; }
.sg-at-found .sg-at-h { flex: 0 0 auto; }
.sg-at-found .sg-at-h b { font-size: 18px; color: var(--sg-gold); }
.sg-at-fl { color: var(--sg-muted); font-style: italic; }
.sg-at-fi em { font-style: normal; color: #cfdcea; margin-right: 9px; }
.sg-at-ff { font-family: 'Cambria Math', Cambria, 'Times New Roman', serif; font-size: 18px; color: #fff; }
.sg-at-ff sub, .sg-at-ff sup { font-size: .68em; line-height: 0; }
.sg-at-fm { margin-left: auto; color: #5cd0b3; }

/* the controls, at the map's own size (outside the scaled stage) */
.sg-at-ctl { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 5px; pointer-events: auto;
  background: rgba(4,9,16,.72); border: 1px solid rgba(255,255,255,.09); border-radius: 13px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: default; }
.sg-at-hint { margin: 0 6px 0 4px; font-size: .72rem; color: var(--sg-muted); white-space: nowrap; }
@media (max-width: 980px) { .sg-at-hint { display: none; } }

/* reduced motion: no drawing, no running light */
.sg-atlas.sg-at-still .sg-at-card, .sg-atlas.sg-at-still .sg-at-found { animation: none; }
.sg-atlas.sg-at-still .sg-at-l .sg-at-fl { display: none; }

/* the phone: a column to scroll, each course with what it builds on and what it feeds */
.sg-atlas.sg-at-flow { overflow-y: auto; overflow-x: hidden; touch-action: pan-y; cursor: default; -webkit-overflow-scrolling: touch; }
.sg-atlas.sg-at-flow .sg-at-head { position: relative; top: auto; left: auto; right: auto; padding: 12px 10px 0; }
.sg-atlas.sg-at-flow .sg-at-stage { position: relative; width: auto; padding: 10px 10px 96px; display: flex; flex-direction: column; gap: 12px; transform: none; }
.sg-atlas.sg-at-flow .sg-at-card, .sg-atlas.sg-at-flow .sg-at-found { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; }
.sg-atlas.sg-at-flow .sg-at-svg, .sg-atlas.sg-at-flow .sg-at-lab, .sg-atlas.sg-at-flow .sg-at-row { display: none; }
.sg-atlas.sg-at-flow .sg-at-b { flex-direction: column; }
.sg-atlas.sg-at-flow .sg-at-v, .sg-atlas.sg-at-flow .sg-at-card.sg-at-wide .sg-at-v { flex-basis: auto; width: 100%; max-width: 420px; align-self: center; }
.sg-atlas.sg-at-flow .sg-at-f { white-space: normal; font-size: 16px; }
.sg-atlas.sg-at-flow .sg-at-t { overflow: visible; }
.sg-atlas.sg-at-flow .sg-at-found { flex-wrap: wrap; white-space: normal; gap: 8px 14px; padding: 12px 14px; }
.sg-atlas.sg-at-flow .sg-at-fm { margin-left: 0; }
.sg-atlas.sg-at-flow .sg-at-io { display: block; margin-top: 10px; font-size: 12.5px; color: #cfdcea; }
.sg-atlas.sg-at-flow .sg-at-io em { display: block; margin: 6px 0 3px; font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-muted); }
.sg-atlas.sg-at-flow .sg-at-io ul { margin: 0; padding: 0; list-style: none; }
.sg-atlas.sg-at-flow .sg-at-io li { padding: 2px 0 2px 10px; border-left: 2px solid var(--c); margin: 3px 0; }
.sg-atlas.sg-at-flow .sg-at-io li b { color: var(--c); }
.sg-atlas.sg-at-flow .sg-at-ctl { position: fixed; top: auto; bottom: 70px; right: 12px; }
