/* Charter Inc's site in the desktop app's look (docs/ui.md, Themes/Dark.xaml): warm near-black, bone text, the logo's
   gold, square corners and hairlines; Cormorant Garamond for titles, figures and buttons, a mono face for codes. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/cormorant-garamond-latin.woff2) format("woff2"); }
@font-face { font-family: "Cormorant SC"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-sc-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Cormorant SC"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/cormorant-sc-600-latin.woff2) format("woff2"); }

:root {
  --bg: #0A0A0B; --panel: #0F0F11; --hover: #151517; --line: #232226; --line2: #2E2D31; --frame: #3A3833;
  --text: #E8E3D6; --body: #CFC9BB; --muted: #8C877B; --faint: #66625A;
  --gold: #D1A868; --gold-hi: #DDB97F; --gold-soft: #1E1A14; --gold-line: rgba(209, 168, 104, .38);
  --good: #7FC88A; --warn: #E0B25C; --bad: #E06C6C; --info: #7FB8C8;
  --exec: #7FA7D8; --leisure: #5CC8B0; --medical: #E8737A; --sports: #A98BE0; --premium: #D8B173; --event: #E0915C;
  --water: #0B0B0C; --land: #161618;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sc: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Lining figures, as the app asks for: Cormorant's own are old-style, and every `font` shorthand below would reset it. */
* { font-variant-numeric: lining-nums !important; }
html { color-scheme: dark; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p a, li a, .link { color: var(--gold); border-bottom: 1px solid var(--gold-line); }
p a:hover, li a:hover, .link:hover { border-bottom-color: var(--gold); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
.mono { font-family: var(--mono); }
.t-exec { color: var(--exec); } .t-leisure { color: var(--leisure); } .t-medical { color: var(--medical); } .t-sports { color: var(--sports); }
.t-muted { color: var(--muted); } .t-warn { color: var(--warn); } .t-bad { color: var(--bad); } .t-good { color: var(--good); } .t-info { color: var(--info); } .t-premium { color: var(--premium); }
svg.ico { width: 16px; height: 16px; fill: currentColor; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--gold); color: #0E0D0B; padding: 8px 12px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

/* Header and footer (site.js draws them) */
header.site { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 22px; height: 62px; padding: 0 var(--gutter); background: rgba(10, 10, 11, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; border: 0; }
.brand .em { height: 22px; width: auto; }
.brand .wm { height: 12px; width: auto; }
nav.main { display: flex; gap: 2px; margin-left: 6px; }
nav.main a { font-family: var(--sc); font-size: 16.5px; font-weight: 500; letter-spacing: .05em; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid transparent; white-space: nowrap; }
nav.main a:hover { color: var(--text); }
nav.main a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
nav.main a.nav-cta { display: none; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; }
.utc { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.utc b { color: var(--text); font-weight: 600; }
.menu-btn { display: none; border: 1px solid var(--frame); padding: 7px 11px; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
footer.site { padding: 46px var(--gutter) 60px; border-top: 1px solid var(--line); }
.foot-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-links { display: flex; gap: 6px 24px; flex-wrap: wrap; font-family: var(--sc); font-size: 17px; letter-spacing: .05em; color: var(--muted); }
.foot-links a:hover { color: var(--gold); }
.legal { font: 11.5px/1.65 var(--mono); color: var(--faint); margin-top: 16px; max-width: 640px; }

/* Buttons, chips */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sc); font-weight: 600; font-size: 17px; letter-spacing: .08em; line-height: 1; padding: 13px 24px; background: var(--gold); color: #0E0D0B; border: 1px solid var(--gold); white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--frame); }
.btn.ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn.small { font-size: 15px; padding: 8px 15px; }
.btn[disabled], .btn[aria-disabled="true"] { background: transparent; color: var(--muted); border-color: var(--line2); cursor: default; }
.btn svg.ico { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 600 10px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border: 1px solid currentColor; white-space: nowrap; }
.chip.soon { color: var(--gold); vertical-align: middle; margin-left: 6px; }
.livedot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 8px; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 200, 138, .55); } 70% { box-shadow: 0 0 0 7px rgba(127, 200, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 200, 138, 0); } }
@media (prefers-reduced-motion: reduce) { .livedot, .ring { animation: none !important; } }

/* Home: hero over the night map */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 640px; padding: 84px var(--gutter) 76px; border-bottom: 1px solid var(--line); }
.hero .bgmap { position: absolute; inset: 0; }
.hero .bgmap svg { width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(10, 10, 11, .88) 0%, rgba(10, 10, 11, .72) 45%, rgba(10, 10, 11, .35) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero .em-big { width: 210px; margin: 0 auto; }
.hero .wm-big { width: 340px; margin: 22px auto 0; }
.tagline { margin-top: 16px; font: 11.5px var(--mono); letter-spacing: .18em; color: var(--muted); }
.hairline-gold { width: 120px; height: 1px; background: var(--gold); margin: 26px auto; }
.hero h1 { font: 500 60px/1.04 var(--serif); }
.hero .lede { margin: 22px auto 0; max-width: 660px; font-size: 17px; color: var(--body); }
.cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fine { margin-top: 18px; font: 11.5px/1.6 var(--mono); color: var(--muted); letter-spacing: .03em; }
.water { fill: var(--water); }
.land { fill: var(--land); stroke: rgba(209, 168, 104, .22); stroke-width: .75; }
.borders { fill: none; stroke: #2E2D33; stroke-width: .6; }
.grat { fill: none; stroke: rgba(209, 168, 104, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.npc use { fill: #8C877B; opacity: .75; }
.pl use { fill: var(--gold); stroke: #0B0B0C; stroke-width: 1.2; }
.ring { fill: none; stroke: var(--gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.45); opacity: .85; } 100% { transform: scale(1.6); opacity: 0; } }

/* Home: the live band */
.band { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tile { position: relative; padding: 22px 26px; border-right: 1px solid var(--line); }
.tile:last-child { border-right: 0; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); opacity: .6; }
.tile .lbl { font: 600 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.tile .val { font: 500 42px/1.1 var(--serif); margin-top: 6px; }
.tile .foot { font: 11.5px var(--mono); color: var(--muted); margin-top: 2px; }

/* Sections */
.sec { padding: 88px var(--gutter); border-bottom: 1px solid var(--line); }
.sec:last-of-type { border-bottom: 0; }
.sec-inner { max-width: 1180px; margin: 0 auto; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head p { max-width: 520px; color: var(--muted); }
.eyebrow { font: 11.5px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
h2.title { font: 500 42px/1.08 var(--serif); margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { padding: 24px 22px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step .n { font: 12px var(--mono); color: var(--gold); }
.step i { display: block; color: var(--gold); margin: 16px 0 12px; }
.step i svg.ico { width: 24px; height: 24px; }
.step h3 { font: 500 24px/1.15 var(--serif); }
.step p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.step .btn { margin-top: 16px; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 60px 0; border-top: 1px solid var(--line); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:last-child { padding-bottom: 0; }
.feature.flip .shot { order: 2; }
.shot { border: 1px solid var(--line2); background: var(--panel); }
/* The app's screenshots, wider than the text and as near full size as the screen allows, so their text can be read. */
.feature.stack { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.feature.stack .copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.feature.stack .points { margin-top: 8px; }
.shot.wide { width: min(1652px, calc(100vw - 2 * var(--gutter))); position: relative; left: 50%; transform: translateX(-50%); }
.shot .zoom { display: block; cursor: zoom-in; border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 100; overflow: auto; background: rgba(5, 5, 6, .95); padding: 56px 16px 24px; text-align: center; cursor: zoom-out; }
.lightbox img { display: inline-block; max-width: none; border: 1px solid var(--line2); cursor: default; }
.lightbox .close { position: fixed; top: 10px; right: 14px; width: 40px; height: 40px; font: 28px/1 var(--sans); color: var(--text); background: rgba(15, 15, 17, .9); border: 1px solid var(--line2); }
.lightbox .close:hover { color: var(--gold); border-color: var(--gold); }
.shot figcaption { font: 10.5px var(--mono); letter-spacing: .09em; color: var(--muted); padding: 9px 12px; border-top: 1px solid var(--line); text-transform: uppercase; }
.feature h3, .pair h3 { font: 500 36px/1.1 var(--serif); margin-top: 8px; }
.feature p, .pair p { color: var(--body); margin-top: 14px; }
.points { list-style: none; margin-top: 20px; border-top: 1px solid var(--line); }
.points li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--body); }
.points i { flex: none; color: var(--gold); margin-top: 2px; }
.points i svg.ico { width: 18px; height: 18px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-top: 60px; }
.pair > div { padding: 34px 32px; }
.pair > div + div { border-left: 1px solid var(--line); }
.pair h3 { font-size: 30px; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.pricing > div { padding: 36px 34px; }
.pricing > div + div { border-left: 1px solid var(--line); }
.price { font: 500 66px/1 var(--serif); margin-top: 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price small { font: 13px var(--mono); color: var(--muted); }
.price-row { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.needs { margin-top: 28px; padding: 30px 34px 32px; border: 1px solid var(--line); }
.needs .points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font: 500 23px/1.3 var(--serif); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 24px/1 var(--sans); color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 22px; color: var(--body); max-width: 780px; }

/* Inner pages: a page header as the app's (title in the serif, a mono subtitle, a hairline) */
.page { padding: 56px var(--gutter) 88px; }
.page-inner { max-width: 1180px; margin: 0 auto; }
.page-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head h1 { font: 500 48px/1.05 var(--serif); }
.page-head .sub { font: 11.5px var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-top: 10px; }

/* Forms (sign-up, confirm, reset) */
.auth { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 56px; align-items: start; }
.card { border: 1px solid var(--line2); background: var(--panel); border-top: 2px solid var(--gold); padding: 30px 30px 32px; }
.card h2 { font: 500 30px/1.1 var(--serif); }
.card > p { color: var(--body); margin-top: 10px; }
.form { display: grid; gap: 18px; margin-top: 24px; }
.field label { display: block; font: 600 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.field input { width: 100%; padding: 12px 13px; background: var(--bg); border: 1px solid var(--line2); color: var(--text); font: 15px var(--sans); border-radius: 0; outline: none; }
.field input:focus { border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.err { font-size: 12.5px; color: var(--bad); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); cursor: pointer; }
.turnstile { min-height: 65px; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--frame); background: var(--bg); flex: none; margin-top: 2px; display: grid; place-content: center; cursor: pointer; }
.check input:checked { border-color: var(--gold); background: var(--gold); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #0E0D0B; border-bottom: 2px solid #0E0D0B; transform: rotate(-45deg) translate(1px, -1px); }
.alert { padding: 12px 14px; border: 1px solid var(--line2); border-left: 2px solid var(--bad); color: var(--body); font-size: 14px; background: rgba(224, 108, 108, .05); }
.alert.good { border-left-color: var(--good); background: rgba(127, 200, 138, .05); }
.alert.info { border-left-color: var(--gold); background: var(--gold-soft); }
.form .btn { justify-self: start; }
.after { border-top: 1px solid var(--line); }
.after li { list-style: none; display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.after .n { font: 12px var(--mono); color: var(--gold); padding-top: 4px; }
.after h3 { font: 500 21px/1.2 var(--serif); }
.after p { grid-column: 2; color: var(--muted); font-size: 14px; }
.big-icon { color: var(--gold); margin-bottom: 18px; }
.big-icon svg.ico { width: 34px; height: 34px; }
.addr { font-family: var(--mono); color: var(--text); word-break: break-all; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.row-actions.tight { margin-top: 0; }
.guide-sec { padding-top: 72px; }

/* Download and get started */
.dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); }
.dl > div { padding: 32px 32px 34px; }
.dl > div + div { border-left: 1px solid var(--line); }
.dl .ver { font: 500 44px/1 var(--serif); margin-top: 12px; }
.dl .meta { font: 12px/1.7 var(--mono); color: var(--muted); margin-top: 12px; word-break: break-all; }
.dl .new-in { margin-top: 30px; }
.dl .new-in + .points { margin-top: 10px; }
.dl[data-alpha="soon"] .new-in, .dl[data-alpha="soon"] .new-in + .points, .dl[data-alpha="soon"] #dlButton { display: none; }
.guide { counter-reset: guide; list-style: none; border-top: 1px solid var(--line); margin-top: 8px; }
.guide > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.guide > li::before { counter-increment: guide; content: counter(guide, decimal-leading-zero); font: 13px var(--mono); color: var(--gold); padding-top: 6px; }
.guide h3 { font: 500 27px/1.15 var(--serif); }
.guide p, .guide li li { color: var(--body); margin-top: 8px; }
.guide ul { margin: 8px 0 0 18px; }
.guide .note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
kbd { font: 12px var(--mono); border: 1px solid var(--line2); padding: 1px 5px; color: var(--text); }

/* Legal and support pages */
.prose { max-width: 780px; }
.prose h2 { font: 500 30px/1.15 var(--serif); margin: 40px 0 10px; }
.prose h3 { font: 500 22px/1.2 var(--serif); margin: 26px 0 6px; }
.prose p, .prose li { color: var(--body); margin-top: 10px; }
.prose ul { margin: 6px 0 0 20px; }
.draft { margin-bottom: 30px; padding: 12px 14px; border: 1px dashed var(--gold); color: var(--gold); font: 12px/1.6 var(--mono); }
.fill { color: var(--gold); border-bottom: 1px dashed var(--gold); }

/* The guide (/guide): a chapter a part of the app, with its steps, its points and a screenshot; it prints as a booklet */
.g-cover { display: none; }
.g-intro { max-width: 820px; }
.g-intro p { color: var(--body); font-size: 16.5px; }
.g-toc { margin-top: 36px; border-top: 1px solid var(--line); }
.g-toc ol { list-style: none; counter-reset: toc; columns: 3; column-gap: 44px; }
.g-toc li { counter-increment: toc; break-inside: avoid; display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.g-toc li::before { content: counter(toc, decimal-leading-zero); font: 12px var(--mono); color: var(--gold); }
.g-toc a { font: 500 19px/1.25 var(--serif); color: var(--text); }
.g-toc a:hover { color: var(--gold); }
.g-ch { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.g-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 12px; align-items: baseline; }
.g-num { font: 15px var(--mono); color: var(--gold); }
.g-ch h2 { font: 500 44px/1.08 var(--serif); }
.g-lede { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 760px; }
.g-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 56px; margin-top: 30px; }
.g-ch h3 { font: 600 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.g-ch h3.g-sub { margin-top: 34px; }
.g-ch .points { margin-top: 10px; }
.g-ch .points b, .g-steps b { color: var(--text); font-weight: 600; }
.g-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; margin-top: 26px !important; }
.g-steps { list-style: none; counter-reset: step; margin-top: 10px; border-top: 1px solid var(--line); }
.g-steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--body); }
.g-steps li::before { content: counter(step); font: 500 21px/1 var(--serif); color: var(--gold); }
.g-ch figure.shot { margin-top: 30px; }
.g-ch figure.shot + figure.shot { margin-top: 22px; }
.g-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 30px; }
.g-ch .g-pair figure.shot { margin-top: 0; }
.g-table { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 14px; }
.g-table th { padding: 8px 10px; text-align: left; font: 600 10.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line2); }
.g-table td { padding: 9px 10px; color: var(--body); border-bottom: 1px solid var(--line); vertical-align: top; }
.g-table td:first-child { white-space: nowrap; }
.g-end { margin-top: 44px; padding: 22px 24px 24px; border: 1px solid var(--line2); border-top: 2px solid var(--gold); }
.g-end h3 { font: 500 28px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--text); }
.t-event { color: var(--event); }

/* Toasts, as the app's: bottom right, gone after a few seconds */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 90; max-width: 380px; background: #161618; border: 1px solid var(--line2); border-left: 2px solid var(--gold); padding: 12px 15px; font-size: 13.5px; color: var(--body); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* The live map (/map): a bar (search, the layers, the status), the map, and the board beside it, as the app's Charter board */
/* The page is the window's height under the header (not main's flex: 1, which would grow it to the board's length). */
.livemap { flex: none; display: flex; flex-direction: column; height: calc(100vh - 62px); height: calc(100dvh - 62px); min-height: 540px; }
.lm-bar { display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
.lm-search { position: relative; flex: 0 1 470px; min-width: 260px; }
.lm-search input { width: 100%; padding: 10px 12px 10px 38px; background: var(--panel); border: 1px solid var(--line2); color: var(--text); font: 15px var(--sans); border-radius: 0; outline: none; }
.lm-search input:focus { border-color: var(--gold); }
.lm-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; color: var(--muted); pointer-events: none; }
.lm-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; max-height: min(420px, 60vh); overflow-y: auto; background: #131315; border: 1px solid var(--line2); border-top: 2px solid var(--gold); box-shadow: 0 12px 32px rgba(0, 0, 0, .6); }
.lm-sugg li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 1px 11px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.lm-sugg li:last-child { border-bottom: 0; }
.lm-sugg li[aria-selected="true"], .lm-sugg li[data-i]:hover { background: var(--hover); }
.lm-sugg .i { grid-row: 1 / span 2; color: var(--gold); padding-top: 2px; }
.lm-sugg .t { font-size: 14.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-sugg .t b { font: 600 13px var(--mono); margin-right: 8px; }
.lm-sugg .s { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.lm-sugg .none { display: block; color: var(--muted); font-size: 13.5px; cursor: default; }
.lm-toggles { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.lm-toggles .check { align-items: center; white-space: nowrap; }
.lm-toggles .check input { margin-top: 0; }
.lm-status { margin-left: auto; font: 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.lm-status.bad { color: var(--warn); white-space: normal; }
.lm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 430px; grid-template-rows: minmax(0, 1fr); }
.lm-map { height: 100%; min-height: 0; isolation: isolate; }
.lm-panel { min-height: 0; overflow-y: auto; padding: 22px 22px 30px; background: var(--panel); border-left: 1px solid var(--line); }
.lm-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lm-head h1 { font: 500 40px/1.05 var(--serif); margin-top: 4px; }
.lm-head .mono-h { font: 500 30px var(--mono); color: var(--gold); margin-right: 6px; }
.lm-crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 12px; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.lm-crumbs button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--gold); }
.lm-crumbs button:hover { color: var(--gold-hi); text-decoration: underline; }
.lm-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.lm-alert { margin-top: 18px; }
.lm-at { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; color: var(--body); }
.lm-at svg.ico { color: var(--info); margin-top: 3px; }
.lm-at b { font: 600 13px var(--mono); color: var(--info); margin-right: 4px; }
.lm-codes { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.lm-codes li { font: 12px var(--mono); color: var(--body); border: 1px solid var(--line2); padding: 2px 6px; }
.lm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line); }
.lm-stats div { padding: 9px 12px 10px; border-left: 1px solid var(--line); }
.lm-stats div:first-child { border-left: 0; }
.lm-stats dt { font: 600 10px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.lm-stats dd { font: 500 27px/1.15 var(--serif); margin-top: 2px; }
.lm-how { list-style: none; margin-top: 16px; }
.lm-how li { display: flex; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--body); }
.lm-how svg.ico { color: var(--gold); margin-top: 3px; }
.lm-list-head { margin: 22px 0 4px; font: 600 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--gold); }
.lm-regions { list-style: none; border-top: 1px solid var(--line); margin-top: 8px; }
.lm-regions button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; padding: 9px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.lm-regions button:hover { background: var(--hover); }
.lm-regions .nm { font: 500 20px/1.2 var(--serif); color: var(--text); }
.lm-regions .ct { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.lm-regions .n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 24px var(--serif); color: var(--gold); }
.lm-jobs { list-style: none; border-top: 1px solid var(--line); margin-top: 18px; }
.lm-job { border-bottom: 1px solid var(--line); }
.lm-job-btn { width: 100%; display: grid; gap: 3px; padding: 11px 6px 12px 10px; text-align: left; border-left: 2px solid transparent; }
.lm-job-btn:hover { background: var(--hover); }
.lm-job.taken .lm-job-btn { opacity: .62; }
.lm-job.sel .lm-job-btn { opacity: 1; background: var(--gold-soft); border-left-color: var(--gold); }
.lm-job .r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.lm-job .rt { font: 600 13.5px var(--mono); color: var(--text); }
.lm-job .pr { margin-left: auto; font: 500 20px/1 var(--serif); color: var(--gold); }
.lm-job .r2 { font-size: 13.5px; color: var(--body); }
.lm-job .r3 { font-size: 13px; color: var(--muted); }
.lm-job .r4 { font: 11.5px/1.5 var(--mono); color: var(--muted); }
.lm-detail { padding: 6px 12px 14px 12px; background: var(--gold-soft); border-left: 2px solid var(--gold); }
.lm-legs { list-style: none; border-bottom: 1px solid var(--gold-line); margin-bottom: 8px; padding-bottom: 6px; }
.lm-legs li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 12px; padding: 4px 0; font-size: 12.5px; color: var(--body); }
.lm-legs .rt { font: 600 12.5px var(--mono); color: var(--text); grid-row: 1 / span 2; }
.lm-legs span:last-child { font: 11.5px var(--mono); color: var(--muted); }
.lm-facts div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 3px 0; font-size: 13px; }
.lm-facts dt { color: var(--muted); }
.lm-facts dd { color: var(--body); }
.lm-taken, .lm-rules { margin-top: 20px; }
.lm-taken summary, .lm-rules summary { list-style: none; cursor: pointer; padding: 6px 0; font: 600 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lm-taken summary::-webkit-details-marker, .lm-rules summary::-webkit-details-marker { display: none; }
.lm-taken summary::before, .lm-rules summary::before { content: "+"; display: inline-block; width: 16px; color: var(--gold); font: 300 16px/1 var(--sans); }
.lm-taken[open] summary::before, .lm-rules[open] summary::before { content: "\2212"; }
.lm-taken .lm-jobs { margin-top: 8px; }
/* The events (the app's Events page): the panel's tabs, the tier filter, a row an event, the tiers' rules */
.lm-tabs { display: flex; margin-top: 16px; border-bottom: 1px solid var(--line); }
.lm-tabs button { padding: 10px 14px 9px; margin-bottom: -1px; font: 600 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.lm-tabs button:hover { color: var(--text); }
.lm-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.lm-tabs button span { margin-left: 7px; font: 11px var(--mono); color: var(--faint); }
.lm-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.lm-tiers button { padding: 5px 9px; font: 600 11px var(--sans); letter-spacing: .06em; border: 1px solid var(--line2); }
.lm-tiers button:not([class]) { color: var(--body); }
.lm-tiers button:hover { border-color: currentColor; }
.lm-tiers button[aria-pressed="true"] { background: var(--hover); border-color: currentColor; }
.lm-tiers button[aria-pressed="true"]:not([class]) { color: var(--gold); }
.lm-count { margin-top: 12px; font: 11.5px var(--mono); color: var(--muted); }
.lm-events { list-style: none; border-top: 1px solid var(--line); margin-top: 10px; }
.lm-ev { width: 100%; display: grid; gap: 3px; padding: 11px 6px 12px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.lm-ev:hover { background: var(--hover); }
.lm-ev .r1 { display: flex; align-items: center; gap: 10px; }
.lm-ev .nm { font: 500 19px/1.2 var(--serif); color: var(--text); }
.lm-ev .r2 { font-size: 13px; color: var(--body); }
.lm-ev .r3, .lm-ev .r4 { font: 11.5px/1.5 var(--mono); color: var(--muted); }
.lm-ev .r5 { font-size: 12.5px; color: var(--gold); }
.lm-rules ul { list-style: none; margin-top: 8px; border-top: 1px solid var(--line); }
.lm-rules li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--body); }
.lm-evfacts { margin-top: 14px; }
.lm-job .r1 .chip + .chip { margin-left: -4px; }
.lm-cta { margin-top: 26px; padding: 18px 18px 20px; border: 1px solid var(--line2); border-top: 2px solid var(--gold); }
.lm-cta h2 { font: 500 25px/1.2 var(--serif); }
.lm-cta .row-actions { margin-top: 12px; }
/* Leaflet in the app's colours (the desktop's MapHtml.cs) */
.lm-map.leaflet-container { background: var(--water); font: 12px/1.45 var(--sans); }
.lm-map .leaflet-bar { border: 1px solid #26252A; border-radius: 0; box-shadow: none; }
.lm-map .leaflet-bar a { background: #161618; color: var(--text); border-bottom-color: #26252A; border-radius: 0 !important; }
.lm-map .leaflet-bar a:hover { background: #222125; color: var(--gold); }
.lm-map .leaflet-bar a.leaflet-disabled { background: #111113; color: var(--faint); }
.lm-map .leaflet-control-attribution { background: rgba(10, 10, 11, .75); color: var(--muted); font-size: 10px; }
.lm-map .leaflet-control-attribution a { color: var(--gold); }
.lm-map .leaflet-tooltip { background: #161618; color: var(--text); border: 1px solid #2E2D31; border-radius: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); font: 12px/1.45 var(--sans); }
.lm-map .leaflet-tooltip-top::before { border-top-color: #2E2D31; }
.lm-map .leaflet-tooltip-bottom::before { border-bottom-color: #2E2D31; }
.lm-map .leaflet-tooltip-left::before { border-left-color: #2E2D31; }
.lm-map .leaflet-tooltip-right::before { border-right-color: #2E2D31; }
.lm-lbl { color: var(--text); font: 600 11px var(--sans); white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
.lm-lbl.gold { color: var(--gold); font: 600 11px var(--mono); }
.lm-lbl.blue { color: var(--info); font: 600 11px var(--mono); }
.lm-lbl[class*="tier-"] { font: 600 11px var(--mono); }
.lm-ac svg { display: block; overflow: visible; }
.lm-ac.npc path { fill: #B9B2A3; stroke: #0B0B0C; stroke-width: 1; }
.lm-ac.pl path { fill: var(--gold); stroke: #0B0B0C; stroke-width: 1.2; }
.lm-ac.off { opacity: .45; }
/* The events' tiers in the app's chip tones (Chip.Tier), after the labels' colour so a tier label takes its own */
.tier-S { color: var(--premium); } .tier-A { color: var(--event); } .tier-B { color: var(--warn); } .tier-C { color: var(--exec); }
.tier-D { color: var(--good); } .tier-E, .tier-F { color: var(--muted); }
@media (max-width: 1180px) {
  .lm-body { grid-template-columns: minmax(0, 1fr) 370px; }
}
@media (max-width: 900px) {
  .livemap { height: auto; min-height: 0; }
  .lm-bar { gap: 10px 18px; }
  .lm-search { flex: 1 1 100%; min-width: 0; }
  .lm-status { margin-left: 0; white-space: normal; }
  .lm-body { display: block; }
  .lm-map { height: 58vh; height: 58svh; min-height: 300px; }
  .lm-panel { overflow: visible; padding: 20px 16px 28px; border-left: 0; border-top: 1px solid var(--line); }
  .lm-head h1 { font-size: 34px; }
}

/* The header's six links, the clock and the button fit down to about 1,230 px; the clock goes first, then the links fold
   into the Menu button (measured at each width, Oct 28 2026, when the Live map link came). */
@media (max-width: 1260px) {
  .utc { display: none; }
}
@media (max-width: 1180px) {
  nav.main a { padding: 6px 7px; font-size: 15.5px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1040px) {
  header.site { gap: 12px; }
  nav.main { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--line); padding: 6px 0; margin: 0; }
  nav.main.open { display: flex; }
  nav.main a { padding: 11px var(--gutter); border-bottom: 0; font-size: 18px; }
  nav.main a.nav-cta { display: block; color: var(--gold); }
  .menu-btn { display: inline-block; }
  .hdr-right { gap: 10px; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .hdr-right .btn { display: none; }
  .hero { min-height: 0; padding: 56px 16px 52px; }
  .hero h1 { font-size: 40px; }
  .hero .em-big { width: 150px; }
  .hero .wm-big { width: 250px; }
  .hero .lede { font-size: 16px; }
  .band { grid-template-columns: 1fr; }
  .tile { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .tile .val { font-size: 34px; }
  .sec { padding: 56px 16px; }
  .page { padding: 36px 16px 64px; }
  .page-head h1 { font-size: 38px; }
  h2.title { font-size: 34px; }
  .steps, .steps.four { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .feature.flip .shot { order: 0; }
  .feature.stack .copy { grid-template-columns: 1fr; }
  .feature h3 { font-size: 30px; }
  .pair, .pricing, .dl, .auth { grid-template-columns: 1fr; }
  .pair > div, .pricing > div, .dl > div, .needs { padding: 26px 20px; }
  .needs .points { grid-template-columns: 1fr; }
  .pair > div + div, .pricing > div + div, .dl > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .auth { gap: 32px; }
  .card { padding: 24px 18px 26px; }
  .price { font-size: 52px; }
  .guide > li { grid-template-columns: 1fr; gap: 6px; }
  .g-toc ol { columns: 1; }
  .g-ch { margin-top: 44px; padding-top: 40px; }
  .g-head { grid-template-columns: 40px minmax(0, 1fr); }
  .g-ch h2 { font-size: 34px; }
  .g-cols, .g-wide, .g-pair { grid-template-columns: minmax(0, 1fr); }
  .g-table { font-size: 13px; }
  .g-table th, .g-table td { padding: 8px 6px; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .g-toc ol { columns: 2; }
}
body.locked { overflow: hidden; }

/* The guide as a booklet (the browser's Print or Save as PDF, and /guide.pdf): A4, the app's dark pages, a cover, then a
   page for the contents and a new page for each chapter. */
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: var(--bg) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { display: block; min-height: 0; font-size: 13px; }
  header.site, footer.site, .skip, .toast, .lightbox, .booklet .page-head, .g-intro .row-actions, .g-end .row-actions { display: none !important; }
  .booklet { padding: 0; }
  .booklet .page-inner { max-width: none; padding: 15mm 15mm; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .g-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 267mm; text-align: center; break-after: page; }
  .g-cover .em { width: 62mm; }
  .g-cover .wm { width: 96mm; margin-top: 9mm; }
  .g-cover-title { font: 500 46pt/1 var(--serif); margin-top: 2mm; }
  .g-cover .tagline { margin-top: 7mm; }
  .g-toc { break-after: page; }
  .g-toc ol { columns: 2; }
  .g-ch { break-before: page; margin-top: 0; padding-top: 0; border-top: 0; }
  .g-ch h2 { font-size: 34px; }
  .g-cols, .g-wide, .g-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .g-cols { gap: 16px 28px; margin-top: 18px; }
  .g-wide { column-gap: 28px; }
  .g-ch figure.shot img { max-height: 150mm; width: auto; margin: 0 auto; }
  .g-steps li, .points li, .g-table tr { break-inside: avoid; }
  .g-ch figure.shot { break-inside: avoid; margin-top: 18px; }
  .shot.wide { width: auto; left: 0; transform: none; }
  a, p a, li a { color: inherit; border-bottom: 0; }
  .zoom-hint { display: none; }
}
