:root {
  --ink: #133f44;
  --muted: #4b6260;
  --paper: #fbf8ee;
  --cream: #eee8d7;
  --line: #c4cfc3;
  --deep: #103f45;
  --teal: #216367;
  --plum: #623d60;
  --gold: #bda159;
  --mist: #e2eee7;
  --white: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 5rem;
  --dock: 5.5rem;
  --wide: 76rem;
  --read: 66ch;
  --radius: .35rem;
}
* { box-sizing: border-box; }
html { scroll-padding-bottom: calc(var(--dock) + var(--s4)); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.65 var(--font); padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom)); }
button, input { font: inherit; color: inherit; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 4px; }
button { cursor: pointer; }
p { margin: 0 0 var(--s3); }
h1, h2, h3 { line-height: 1.16; margin: 0 0 var(--s3); }
h1 { font-size: clamp(3.2rem, 5.25vw, 5.3rem); font-weight: 650; letter-spacing: -.055em; max-width: 14ch; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 650; letter-spacing: -.025em; max-width: 28ch; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; }
ul, dl, figure { margin: 0; }
ul { padding-left: 1.25rem; }
li { margin: 0 0 var(--s2); padding-left: .2rem; }
li::marker { color: var(--plum); }
dd { margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--s5); }
.mast { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.mast a { display: flex; align-items: center; gap: var(--s2); min-height: 56px; text-decoration: none; font-size: 1rem; line-height: 1.4; font-weight: 650; }
.mark { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; color: var(--paper); background: var(--deep); border-radius: 50% 50% 12% 50%; font-size: 1.5rem; }
.tag { color: var(--muted); font-size: 1rem; }
.ey { font-size: 1rem; font-weight: 650; margin-bottom: var(--s3); line-height: 1.5; }
.hero { padding-block: var(--s6) var(--s5); }
.g { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s5); align-items: start; }
.lead { font-size: 1.375rem; line-height: 1.5; max-width: 39ch; }
.sc { border-left: 4px solid var(--plum); margin-top: var(--s4); padding: .2rem 0 .2rem var(--s3); max-width: var(--read); }
.sc p { margin: 0; }
.narrow { max-width: 53rem; }
.narrow h1 { max-width: 19ch; }
.map { background: var(--deep); color: var(--paper); border-radius: 46% 46% var(--radius) var(--radius); padding: var(--s5) var(--s3) var(--s4); margin-top: var(--s2); }
.map figcaption { font-size: 1.125rem; text-align: center; font-weight: 650; margin-top: var(--s2); }
.map p { margin: var(--s3) .5rem 0; font-size: 1rem; line-height: 1.6; }
.orbit { display: grid; grid-template-columns: 1fr 1fr; position: relative; margin-top: var(--s4); gap: 11rem var(--s2); }
.orbit::before { content: ""; position: absolute; width: 72%; height: 72%; left: 14%; top: 14%; border: 1px solid var(--gold); border-radius: 50%; }
.hub { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 9.5rem; background: var(--plum); border: 1px solid var(--cream); border-radius: 50%; aspect-ratio: 1; display: grid; place-content: center; text-align: center; line-height: 1.3; font-size: 1.125rem; font-weight: 650; z-index: 1; }
.node { z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; background: var(--deep); font-size: 1rem; line-height: 1.4; max-width: 11rem; justify-self: center; }
.node strong { font-size: 1.125rem; color: var(--paper); }
.dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--deep); outline: 1px solid var(--gold); margin-bottom: .5rem; }
.body-g { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--s6); align-items: start; padding-top: var(--s3); }
.prose { min-width: 0; max-width: var(--read); }
.sec { padding-block: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.sec > :last-child { margin-bottom: 0; }
.pair { border-left: 2px solid var(--teal); padding-left: var(--s3); margin-block: var(--s3) var(--s4); }
.ans p { margin-bottom: var(--s2); }
.src { display: flex; flex-wrap: wrap; }
.ref { display: flex; gap: var(--s1); align-items: center; min-height: 48px; padding-block: .45rem; font-size: 1rem; line-height: 1.5; max-width: 100%; }
.ref span { flex-shrink: 0; }
.rail { border-top: 6px solid var(--gold); background: var(--cream); padding: var(--s4) var(--s3); margin-top: var(--s4); }
.rail h2 { font-size: 1.7rem; }
.rail .ey { color: var(--muted); }
.asks { margin-block: var(--s3); }
.go { display: inline-flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 52px; padding: .65rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius); font-size: 1rem; line-height: 1.5; text-decoration: none; }
.go span { flex-shrink: 0; }
.go:hover { background: var(--mist); }
.rail .go { width: 100%; }
.rows > div { border-top: 1px solid var(--line); padding-block: var(--s3); }
.rows dt { font-size: 1.125rem; font-weight: 700; }
.rows .pair { margin-block: var(--s2) 0; }
.rows dd > p { margin-top: var(--s2); }
.costs { counter-reset: none; border-top: 1px solid var(--line); }
.costs > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s3); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.costs dt { font-weight: 700; }
.look { padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.look h3 { margin-bottom: var(--s2); }
.look p { margin-bottom: var(--s2); }
.next { display: flex; justify-content: space-between; align-items: center; gap: var(--s5); margin-block: var(--s5); padding: var(--s4); color: var(--paper); background: var(--plum); border-radius: var(--radius) 4rem var(--radius) var(--radius); }
.next > div { max-width: 45ch; }
.next .ey { margin-bottom: var(--s1); }
.next h2 { margin-bottom: var(--s2); }
.next p:last-child { margin-bottom: 0; }
.next .go { color: var(--paper); border-color: var(--paper); flex-shrink: 0; }
.next .go:hover { color: var(--plum); background: var(--paper); }
.next :focus-visible { outline-color: var(--cream); }
.foot { border-top: 1px solid var(--line); padding-block: var(--s4) var(--s5); }
.foot p { max-width: 66ch; font-size: 1rem; margin-bottom: var(--s2); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.foot-links a { display: flex; align-items: center; min-height: 48px; font-size: 1rem; padding-block: .5rem; }
.dock { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(100%, 48rem); min-height: var(--dock); padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--deep); border: 1px solid #8aa9a3; border-bottom: 0; border-radius: 1.3rem 1.3rem 0 0; }
.dock a { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 44px; min-height: 64px; gap: .45rem; text-decoration: none; font-size: 1rem; line-height: 1.4; color: var(--paper); border-radius: .7rem; }
.nav-dot { width: 8px; height: 8px; border: 1px solid var(--gold); border-radius: 50%; }
.dock a[aria-current] { background: var(--paper); color: var(--deep); }
.dock a[aria-current] .nav-dot { background: var(--plum); border-color: var(--plum); }
.dock a:hover { text-decoration: underline; text-underline-offset: .25em; }
.dock :focus-visible { outline-color: var(--gold); outline-offset: -3px; }
.flt { display: none; padding: var(--s3); background: var(--mist); margin-block: var(--s3); border-radius: var(--radius); }
.js-filter .flt { display: block; }
.flt label { display: block; font-weight: 650; margin-bottom: var(--s1); }
.find { display: flex; gap: var(--s1); }
.find input { min-width: 0; flex: 1; border: 1px solid var(--muted); padding: .6rem .7rem; border-radius: var(--radius); min-height: 48px; background: var(--white); }
.find input::placeholder { color: var(--muted); opacity: 1; }
.find button { min-height: 48px; min-width: 64px; background: var(--deep); color: var(--paper); border: 1px solid var(--deep); border-radius: var(--radius); padding: .5rem .75rem; }
.terms > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s3); padding-block: var(--s3); border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 700; }
.terms dd p { margin: 0; }
.lost { display: flex; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 30; background: var(--paper); padding: .75rem 1rem; min-height: 48px; font-size: 1rem; border: 2px solid var(--ink); }
.skip:focus { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .wrap { padding-inline: var(--s4); }
  .g { gap: var(--s4); }
  .body-g { grid-template-columns: minmax(0, 1fr) 16rem; gap: var(--s4); }
  .hub { width: 8.5rem; }
}
@media (max-width: 760px) {
  :root { --s6: 3rem; }
  .wrap { padding-inline: var(--s3); }
  .mast { padding-block: var(--s3); }
  .tag { display: none; }
  .hero { padding-block: var(--s5) var(--s4); }
  h1 { font-size: clamp(2.8rem, 10.5vw, 4rem); max-width: 14ch; }
  .narrow h1 { max-width: 17ch; }
  .lead { font-size: 1.25rem; }
  .g, .body-g { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .map { max-width: 31rem; width: 100%; margin: var(--s2) 0 0; padding-top: var(--s4); }
  .map figcaption { margin-top: var(--s3); }
  .rail { margin-top: 0; }
  .next { display: block; padding: var(--s4) var(--s3); border-top-right-radius: 2.5rem; }
  .next .go { margin-top: var(--s3); }
  .terms > div { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .costs > div { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .pair { padding-left: var(--s2); }
  .foot-links { display: block; }
  .dock { padding-inline: .35rem; border-radius: 1rem 1rem 0 0; }
  .dock a { gap: .5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: background-color 120ms ease, color 120ms ease; }
}
@media print {
  body { background: var(--white); padding: 0; color: #000000; }
  .wrap { max-width: none; padding: 0; }
  .dock, .skip, .flt { display: none; }
  .g, .body-g { display: block; }
  .map, .rail, .next { color: #000000; background: var(--white); border: 1px solid #444444; break-inside: avoid; }
  .map { border-radius: 0; }
  .map .node, .map .hub { background: var(--white); color: #000000; }
  .map .node strong, .next .go { color: #000000; }
  .hero { padding-block: 2rem; }
  h1 { font-size: 2.5rem; }
  .sec { padding-block: 1.25rem; }
  .term[hidden] { display: grid !important; }
}
