:root {
  color-scheme: light dark;
  --ground: #EFEDF2; --surface: #FBFAFD; --surface2: #E5E2EB;
  --ink: #1A1823; --ink2: #4A4658; --ink3: #736E85;
  --hair: #CFCAD9; --hairs: #DFDAE7;
  --land: #E3E0E9; --landl: #C1BBCF;
  --gold: #A9760A; --goldm: #D9A02B;
  --violet: #524399; --violets: #E2DDF4;
  --warn: #A8402A; --warns: #F6E3DE;
  --ok: #26694F; --oks: #DCEBE3;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Hoefler Text", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --pad: clamp(1.1rem, 4vw, 2.75rem);
  --col: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #100F16; --surface: #191823; --surface2: #221F2E;
    --ink: #EBE8F2; --ink2: #B7B2C6; --ink3: #8B8599;
    --hair: #322E3F; --hairs: #272433;
    --land: #262233; --landl: #3D3654;
    --gold: #E6B451; --goldm: #E0A93A;
    --violet: #A398EA; --violets: #241F3D;
    --warn: #E58C74; --warns: #33201C;
    --ok: #6FBE9A; --oks: #17291F;
  }
}
:root[data-theme="dark"] {
  --ground: #100F16; --surface: #191823; --surface2: #221F2E;
  --ink: #EBE8F2; --ink2: #B7B2C6; --ink3: #8B8599;
  --hair: #322E3F; --hairs: #272433;
  --land: #262233; --landl: #3D3654;
  --gold: #E6B451; --goldm: #E0A93A;
  --violet: #A398EA; --violets: #241F3D;
  --warn: #E58C74; --warns: #33201C;
  --ok: #6FBE9A; --oks: #17291F;
}
:root[data-theme="light"] {
  --ground: #EFEDF2; --surface: #FBFAFD; --surface2: #E5E2EB;
  --ink: #1A1823; --ink2: #4A4658; --ink3: #736E85;
  --hair: #CFCAD9; --hairs: #DFDAE7;
  --land: #E3E0E9; --landl: #C1BBCF;
  --gold: #A9760A; --goldm: #D9A02B;
  --violet: #524399; --violets: #E2DDF4;
  --warn: #A8402A; --warns: #F6E3DE;
  --ok: #26694F; --oks: #DCEBE3;
}

body { background: var(--ground); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 78rem; margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em;
  line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; max-width: var(--col); }
p + p { margin-top: 0.9rem; }
ul { margin: 0; padding-left: 1.15rem; }
li + li { margin-top: 0.3rem; }
a { color: var(--gold); text-underline-offset: 0.18em; }
strong { font-weight: 640; color: var(--ink); }
.eb { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink3); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--goldm); outline-offset: 2px; border-radius: 2px; }

/* masthead */
.mast { padding: clamp(2.5rem, 8vh, 4.5rem) 0 2rem; border-bottom: 1px solid var(--hair); }
.mast h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); margin: 0.8rem 0 0; }
.dek { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--ink2); margin-top: 1rem; max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
  gap: 1.1rem 2.75rem; margin-top: 2rem; font-family: var(--mono); font-size: 0.78rem; }
.facts div { display: flex; flex-direction: column; }
.facts .k { color: var(--ink3); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.66rem; }
.facts .v { font-variant-numeric: tabular-nums; }

/* nav */
.jump { position: sticky; top: 0; z-index: 30; margin: 0 calc(-1 * var(--pad));
  padding: 0.6rem var(--pad); border-bottom: 1px solid var(--hairs);
  background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(10px); }
.jump ul { display: flex; gap: 1.4rem; list-style: none; padding: 0; max-width: none;
  overflow-x: auto; scrollbar-width: none; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; }
.jump ul::-webkit-scrollbar { display: none; }
.jump li { margin: 0; }
.jump a { color: var(--ink3); text-decoration: none; white-space: nowrap; }
.jump a:hover { color: var(--gold); }

/* section intros */
.intro { padding-top: 4rem; }
.intro h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0.5rem 0 0.9rem; max-width: 30ch; }
.intro p { color: var(--ink2); }

/* dark eclipse panel */
.dark { margin-top: 4rem; padding: clamp(2.5rem, 7vw, 4rem) var(--pad);
  background: #0C0B12; color: #EDEAF5; position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; top: -26rem; right: -14rem; width: 52rem;
  height: 52rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224,169,58,.2) 0%, rgba(224,169,58,.05) 42%, rgba(224,169,58,0) 66%); }
.dark .inner { position: relative; max-width: 78rem; margin: 0 auto; }
.dark .eb { color: #C8A768; }
.dark h2 { color: #FDFBF6; font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin: 0.6rem 0 1rem; }
.dark p { color: #C4BFD4; }
.dark strong { color: #FDFBF6; }
.dark a { color: #E6B451; }
.dark .rec { margin-top: 1.5rem; }
.dark .last { margin-top: 2rem; }

.ring { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.4rem 2rem; margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.13); }
.ring div { display: flex; flex-direction: column; gap: 0.2rem; }
.ring .k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #8F8AA0; }
.ring .v { font-family: var(--mono); font-size: 1.4rem; color: #FDFBF6;
  font-variant-numeric: tabular-nums; line-height: 1.2; }
.ring .n { font-size: 0.8rem; color: #A29DB3; line-height: 1.45; }

/* callouts */
.co { border: 1px solid var(--hair); border-left: 3px solid var(--goldm); background: var(--surface);
  padding: 1.15rem 1.3rem; margin: 1.6rem 0; border-radius: 3px; }
.co.warn { border-left-color: var(--warn); }
.co .eb { display: block; margin-bottom: 0.35rem; }
.dark .co { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.13);
  border-left-color: #E0A93A; }
.dark .co.warn { border-left-color: #E58C74; }
.dark .co p { color: #D6D1E4; }

/* maps */
figure { margin: 0; }
.emap, .dfig { background: var(--surface); border: 1px solid var(--hair); border-radius: 3px;
  padding: 0.9rem; margin: 2.2rem 0 0; }
.dark .emap { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.13); }
svg { display: block; width: 100%; height: auto; }
figcaption { font-family: var(--mono); font-size: 0.7rem; line-height: 1.65; color: var(--ink3);
  margin-top: 0.7rem; }
.dark figcaption { color: #8F8AA0; }
.land { fill: var(--land); stroke: var(--landl); stroke-width: 2; }
.dark .land { fill: #262233; stroke: #3D3654; }
.band { fill: var(--violet); opacity: .17; }
.limit { stroke: var(--violet); stroke-width: 2; stroke-dasharray: 7 6; fill: none; }
.lead { stroke: var(--ink3); stroke-width: 1.5; opacity: .55; }
.dark .lead { stroke: #8F8AA0; }
.mdot { fill: var(--ink); }
.dark .mdot { fill: #EDEAF5; }
.base { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.dark .base { fill: #0C0B12; stroke: #EDEAF5; }
.ml { font-family: var(--mono); font-size: 20px; fill: var(--ink); }
.ms { font-family: var(--mono); font-size: 17px; fill: var(--ink3); }
.mt { font-family: var(--mono); font-size: 18px; fill: var(--gold); font-weight: 600; }
.mz { font-family: var(--mono); font-size: 19px; fill: var(--violet); letter-spacing: .14em;
  text-transform: uppercase; }
.mzo { font-family: var(--mono); font-size: 19px; fill: var(--ink3); letter-spacing: .14em;
  text-transform: uppercase; }
.dark .ml { fill: #EDEAF5; } .dark .ms { fill: #A29DB3; } .dark .mzo { fill: #8F8AA0; }
.spot { cursor: pointer; }
.spot .pin { fill: var(--goldm); }
.spot .halo { fill: none; stroke: var(--goldm); stroke-width: 3; opacity: 0;
  transition: opacity .15s; }
.spot .tip { opacity: 0; pointer-events: none; transition: opacity .12s; }
.spot .tip rect { fill: #16141E; stroke: rgba(224,169,58,.55); stroke-width: 1.5; }
.spot .tipline { stroke: var(--goldm); stroke-width: 2; }
.spot .tipn { font-family: var(--mono); font-size: 21px; fill: #FDFBF6; }
.spot .tipt { font-family: var(--mono); font-size: 18px; fill: #E6B451; }
.spot:hover .halo, .spot:focus .halo, .spot:focus-visible .halo, .spot.on .halo { opacity: 1; }
.spot:hover .tip, .spot:focus .tip, .spot:focus-visible .tip, .spot.on .tip { opacity: 1; }
.spot:focus { outline: none; }
.spot:focus-visible .pin { stroke: #FDFBF6; stroke-width: 3; }

/* day map routes */
.rt { transition: opacity .18s; }
.rt:not(.on) { opacity: .15; }
.rt:not(.on) text { display: none; }
.rline { stroke: var(--goldm); fill: none; stroke-linejoin: round; stroke-linecap: round; }
.rdot { fill: var(--goldm); }
.rlab { font-family: var(--mono); fill: var(--ink); }
.scale line { stroke: var(--ink3); opacity: .6; }
.scale text { font-family: var(--mono); fill: var(--ink3); }
/* option card doubles as the map control */
.opts[data-map] .opt { cursor: pointer; }
.pane { display: none; }
.pane.on { display: block; }
.pane .nomap { margin: 0.4rem 0; }
.opt.sel { border-color: var(--goldm); box-shadow: inset 0 0 0 1px var(--goldm); }
.pickmap { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .04em; cursor: pointer;
  border: 0; background: transparent; padding: 0; color: var(--ink3); margin-left: auto; }
.pickmap .on-txt { display: none; }
.opt.sel .pickmap { color: var(--gold); }
.opt.sel .pickmap .on-txt { display: inline; }
.opt.sel .pickmap .off-txt { display: none; }
.pickmap:hover { color: var(--gold); }
.nomap { color: var(--ink2); margin-top: 1.6rem; font-size: 0.92rem; }

/* tables */
.tw { overflow-x: auto; margin: 2rem 0 0; border: 1px solid var(--hair); border-radius: 3px;
  background: var(--surface); }
.dark .tw { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.13); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
caption { text-align: left; font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  padding: 1rem 1rem 0.15rem; }
caption .sub { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink3); font-weight: 400; margin-top: 0.3rem; }
.dark caption { color: #FDFBF6; } .dark caption .sub { color: #8F8AA0; }
th, td { text-align: left; padding: 0.62rem 1rem; border-bottom: 1px solid var(--hairs);
  vertical-align: top; }
thead th { font-family: var(--mono); font-size: 0.65rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink3); font-weight: 400;
  border-bottom: 1px solid var(--hair); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.dark th, .dark td { border-bottom-color: rgba(255,255,255,.09); }
.dark thead th { color: #8F8AA0; border-bottom-color: rgba(255,255,255,.18); }
.note { color: var(--ink2); font-size: 0.86rem; }
.fac { color: var(--ink2); font-size: 0.86rem; }
.dark .note, .dark .fac { color: #A29DB3; }
tbody tr:hover { background: color-mix(in srgb, var(--goldm) 7%, transparent); }
.barc { width: 12.5rem; }
.slot { display: inline-block; width: 6.5rem; vertical-align: middle; }
.bar { display: block; height: 9px; background: var(--goldm); border-radius: 0 4px 4px 0; }
.bar.off { background: var(--ink3); opacity: .5; }
.bval { font-family: var(--mono); font-size: 0.78rem; font-variant-numeric: tabular-nums;
  margin-left: 0.7rem; white-space: nowrap; }
.dark .bval { color: #FDFBF6; }
.pill { display: inline-block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 0.16rem 0.44rem; border-radius: 3px; white-space: nowrap; }
.pill.no { background: var(--warns); color: var(--warn); }
.pill.ok { background: var(--oks); color: var(--ok); }
.pill.care { background: color-mix(in srgb, var(--goldm) 20%, var(--surface)); color: var(--gold); }

/* days */
.day { display: grid; grid-template-columns: 11rem 1fr; gap: 2rem; padding: 2.75rem 0;
  border-top: 1px solid var(--hair); }
.rail { position: sticky; top: 3.4rem; align-self: start; }
.rdate { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink3); }
.rnum { font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin: 0.3rem 0 0.7rem; }
.rmeta { list-style: none; padding: 0; font-family: var(--mono); font-size: 0.7rem; line-height: 1.7;
  color: var(--ink2); }
.dbody h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); }
.lead { color: var(--ink2); margin-top: 0.55rem; }

.opts { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 50rem) { .opts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .opts { grid-template-columns: repeat(3, 1fr); } }
.opt { background: var(--surface); border: 1px solid var(--hair); border-radius: 3px;
  padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; cursor: pointer;
  min-width: 0; }
.opt.sel { border-color: var(--goldm); box-shadow: inset 0 0 0 1px var(--goldm); }
.opt-h { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.okey { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .14em; color: var(--ink3); }
.tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--goldm); color: #17140C; padding: 0.14rem 0.42rem; border-radius: 3px; }
.opt h4 { font-size: 1.08rem; margin-bottom: 0.7rem; }
.stops { font-family: var(--mono); font-size: 0.68rem; color: var(--ink3); line-height: 1.75;
  max-width: none; margin: 0.85rem 0 0.7rem; }
.stops a { color: var(--ink2); text-decoration-color: var(--hair); }
.stops a:hover { color: var(--gold); text-decoration-color: currentColor; }
.arw { color: var(--ink3); opacity: .7; }
.nl { font-size: 0.85rem; color: var(--ink2); max-width: none; }
.more { font-size: 0.78rem; margin-top: 0.75rem; max-width: none; display: flex; flex-wrap: wrap;
  gap: 0.15rem 0.8rem; align-items: baseline; }
.more .lbl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink3); }
.more a { color: var(--gold); text-decoration: none; font-size: 0.79rem; }
.more a:hover { text-decoration: underline; }
.opt-f { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.3rem 0.85rem; font-family: var(--mono); font-size: 0.67rem; color: var(--ink3);
  font-variant-numeric: tabular-nums; }
.gm { color: var(--gold); text-decoration: none; }
.gm:hover { text-decoration: underline; }
.pickmap { font-family: var(--mono); font-size: 0.67rem; cursor: pointer; border: 0;
  background: transparent; padding: 0; color: var(--ink3); }
.pickmap .on-txt { display: none; }
.opt.sel .pickmap { color: var(--gold); }
.opt.sel .pickmap .on-txt { display: inline; }
.opt.sel .pickmap .off-txt { display: none; }
.pickmap:hover { color: var(--gold); }

/* gallery preview: one big, the rest small */
.gwrap { display: flex; flex-direction: column; gap: 0.4rem; }
.gbig, .gsm { border: 0; padding: 0; background: var(--surface2); cursor: zoom-in; display: block;
  border-radius: 2px; overflow: hidden; line-height: 0; }
.gbig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: opacity .15s; }
.gbig:hover img, .gsm:hover img { opacity: .85; }
.gcred { font-family: var(--mono); font-size: 0.59rem; line-height: 1.45; color: var(--ink3);
  max-width: none; margin: 0; word-break: break-word; }
.gcred a { color: var(--ink3); text-decoration-color: var(--hair); }
.gcred a:hover { color: var(--gold); }
.gthumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 0.15rem; }
.gsm img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gmore { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink2); line-height: 1;
  background: var(--surface2); }
.gmore:hover { color: var(--gold); }
.gall { align-self: flex-start; border: 0; background: transparent; padding: 0.1rem 0;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: .06em; color: var(--gold);
  cursor: pointer; }
.gall:hover { text-decoration: underline; }
.dark .gcred, .dark .gcred a { color: #8F8AA0; }
.dark .gcred a:hover { color: #E6B451; }
.dark .gbig, .dark .gsm, .dark .gmore { background: rgba(255,255,255,.07); }
.dark .gmore { color: #B7B2C6; }
.dark .gall { color: #E6B451; }

/* practical *//* practical */
.grid2 { display: grid; gap: 1.6rem 2.5rem; margin-top: 1.7rem; }
@media (min-width: 56rem) { .grid2 { grid-template-columns: repeat(2, 1fr); } }
.blk h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.blk p { font-size: 0.9rem; color: var(--ink2); max-width: 56ch; }

/* sources */
.src { padding-top: 4rem; margin-top: 4rem; border-top: 1px solid var(--hair); padding-bottom: 5rem; }
.src h2 { font-size: 1.35rem; margin: 0.5rem 0 1.1rem; }
.srcl, .crl { list-style: none; padding: 0; columns: 2; column-gap: 2.5rem; font-size: 0.82rem;
  max-width: none; }
.crl { font-size: 0.74rem; font-family: var(--mono); line-height: 1.5; }
@media (max-width: 46rem) { .srcl, .crl { columns: 1; } }
.srcl li, .crl li { margin: 0 0 0.5rem; break-inside: avoid; }
.srcl a, .crl a { color: var(--ink2); }
.srcl a:hover, .crl a:hover { color: var(--gold); }
.ct { font-size: 1.05rem; margin-top: 2.5rem; }
.checked { font-size: 0.86rem; color: var(--ink2); margin-top: 1.6rem;
  border-left: 3px solid var(--goldm); padding-left: 0.9rem; max-width: 60ch; }
.cn { font-size: 0.86rem; color: var(--ink2); margin: 0.45rem 0 1rem; }

/* popup gallery */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,7,12,.985);
  backdrop-filter: blur(6px); display: grid;
  grid-template-rows: 1fr auto; align-items: center; padding: clamp(1rem, 3vw, 2rem); gap: 1rem; }
.lb[hidden] { display: none; }
.lbstage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb img { max-width: 100%; max-height: 68vh; width: auto; height: auto; border-radius: 2px; }
.lbmeta { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.lbc { font-family: var(--mono); font-size: 0.74rem; color: #A29DB3; text-align: center;
  max-width: 70ch; line-height: 1.7; }
.lbc #lbs { color: #EDEAF5; }
.lbcount { color: #6F6A80; }
.lbc a { color: #E6B451; }
.lbstrip { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; max-width: 44rem; }
.lbstrip button { border: 0; padding: 0; background: transparent; cursor: pointer; line-height: 0;
  border-radius: 2px; overflow: hidden; opacity: .45; transition: opacity .15s; }
.lbstrip button.on, .lbstrip button:hover { opacity: 1; }
.lbstrip img { width: 54px; height: 40px; object-fit: cover; display: block; }
.lbx { position: absolute; top: 0.8rem; right: 1rem; background: transparent; border: 0;
  color: #EDEAF5; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; }
.lbnav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.07);
  border: 0; color: #EDEAF5; font-size: 2rem; line-height: 1; cursor: pointer;
  padding: 0.5rem 0.85rem; border-radius: 3px; }
.lbnav:hover { background: rgba(255,255,255,.16); }
.lbprev { left: clamp(0.4rem, 2vw, 1.5rem); }
.lbnext { right: clamp(0.4rem, 2vw, 1.5rem); }
@media (max-width: 40rem) { .lbnav { font-size: 1.5rem; padding: 0.4rem 0.6rem; } }

@media (max-width: 50rem) {
  .day { grid-template-columns: 1fr; gap: 0.9rem; }
  .rail { position: static; }
  .rnum { display: none; }
  .rmeta { display: flex; flex-wrap: wrap; gap: 0.15rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
