/* Ceraunic demo, front page. The map sits in the painted sky; the explorer is a calm reading sheet. */

:root {
  --no-cover:var(--ember);
  --with-cover:var(--cobalt);
  --gutter:clamp(16px, 3.2vw, 48px);
  --sheet-w:min(680px, 54vw);
  --sheet-pad:clamp(20px, 3vw, 40px);
}

html { -webkit-text-size-adjust:100%; }
html, body { max-width:100%; overflow-x:clip; }
body { min-height:100dvh; background:var(--cobalt); }
body.sheet-open { overflow:hidden; }

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
h1, h2, h3, h4, p, ul { margin:0; padding:0; }
ul { list-style:none; }
a { color:var(--blue); text-underline-offset:3px; }
:focus-visible { outline:2px solid var(--blue); outline-offset:2px; border-radius:4px; }

/* ---------- map screen: the map in the sky, and the harbour painting below the fold (site.css) ---------- */

.atlas {
  position:relative; display:flex; flex-direction:column; color:var(--on-sky); overflow:hidden; overflow:clip;
  background:linear-gradient(180deg, var(--cobalt-deep) 0, var(--cobalt) 70dvh);
}
.atlas a { color:var(--on-sky); }
.atlas :focus-visible { outline-color:#fff; }

.first-screen { position:relative; display:flex; flex-direction:column; min-height:calc(100dvh - var(--head-h)); }

.masthead { position:relative; z-index:3; padding:clamp(12px, 2.4vh, 24px) var(--gutter) 0; }
.masthead h1 { font-family:var(--display); font-size:clamp(34px, 3.5vw, 54px); line-height:1.06; font-weight:500; letter-spacing:-.005em; color:var(--on-sky); max-width:15em; text-wrap:balance; }
@media (min-width:900px) { .masthead h1 { font-size:clamp(30px, 2.9vw, 46px); max-width:9.2em; } }
@media (min-width:900px) {
  /* Over the sky at the upper left, so the globe gets the full height. The land round it still takes clicks. */
  .masthead { position:absolute; left:0; top:0; max-width:min(44vw, 620px); pointer-events:none; }
}

.finder-row { display:flex; gap:8px; }
#search {
  flex:1 1 200px; min-width:0; height:40px; padding:0 14px;
  font:400 16px/1 var(--sans); color:var(--ink); background:#fff;
  border:0; border-radius:var(--radius);
  transition:box-shadow .15s ease;
}
#search:focus { outline:none; box-shadow:0 0 0 3px var(--sun); }
#search::placeholder { color:#5a6684; }
.finder .btn.ghost { flex:0 0 auto; height:40px; font-size:15px; padding:0 14px; }
.search-results {
  position:absolute; z-index:6; left:0; right:0; top:40px; margin-top:6px; background:var(--surface); color:var(--ink);
  border-radius:12px; box-shadow:var(--shadow-md); overflow:hidden;
}
.search-result { padding:12px 16px; cursor:pointer; font-size:16px; }
.search-result strong { font-weight:600; }
.search-result:hover, .search-result.active { background:var(--blue-soft); }
.finder-msg { font-size:15px; margin-top:6px; color:#ffe2b0; }
.finder-msg:empty { display:none; }

.map-wrap {
  position:relative; flex:1 1 auto; min-height:clamp(170px, min(42vw, calc(100dvh - 232px)), 560px); --shift:0px;
  cursor:crosshair; overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg, #000 0, #000 90%, transparent 100%);
  mask-image:linear-gradient(180deg, #000 0, #000 90%, transparent 100%);
}
.map-land, .map-marks {
  position:absolute; left:0; top:0; display:block; transform:translateX(var(--shift));
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
.map-land { will-change:transform; pointer-events:none; }
/* All of it is clickable, water too: the fine lines over the sea wake up under the pointer. */
.map-land path[stroke="#cfe0ff"] { transition:stroke-opacity .25s ease; }
.map-wrap:hover .map-land path[stroke="#cfe0ff"] { stroke-opacity:.30; }
.map-fallback { padding:40px var(--gutter); color:var(--on-sky-soft); font-size:17px; }

.city-mark { cursor:pointer; outline:none; }
.city-mark .halo { fill:rgba(255,181,71,.34); transition:fill .15s ease; }
.city-mark .dot { fill:#fff; stroke:var(--cobalt-deep); stroke-width:1.25; }
.city-name {
  font:600 13.5px/1 var(--sans); fill:#fff; paint-order:stroke; stroke:rgba(4,26,74,.62); stroke-width:2.6px; stroke-linejoin:round;
  pointer-events:none;
}
.city-name.hover-only { display:none; }
.city-mark:hover .city-name.hover-only, .city-mark:focus .city-name.hover-only { display:block; }
.city-mark:hover .halo, .city-mark:focus .halo { fill:rgba(255,181,71,.75); }
.pin-dot { fill:#fff; stroke:var(--sun); stroke-width:3; }
.pin-ring { fill:none; stroke:var(--sun); stroke-width:1.5; transform-box:fill-box; transform-origin:center; animation:pin 2.4s ease-out infinite; }
@keyframes pin { 0% { transform:scale(.5); opacity:.95; } 100% { transform:scale(1.5); opacity:0; } }

.map-foot {
  position:relative; z-index:4; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 24px;
  padding:6px var(--gutter) clamp(14px, 2.4vh, 24px);
}
.map-hint { font-size:15.5px; color:var(--on-sky-soft); }
.city-list { position:relative; margin-left:auto; }
.city-list summary {
  display:inline-flex; align-items:center; gap:8px; cursor:pointer; list-style:none; font-size:15.5px; font-weight:600; color:var(--on-sky);
  padding:7px 14px; border:1px solid var(--on-sky-line); border-radius:var(--radius); background:rgba(255,255,255,.07);
  transition:background .15s ease;
}
.city-list summary::-webkit-details-marker { display:none; }
.city-list summary::after { content:""; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-1px) rotate(45deg); transition:transform .15s ease; }
.city-list[open] summary::after { transform:translateY(2px) rotate(-135deg); }
.city-list summary:hover { background:rgba(255,255,255,.16); }
.city-list ul {
  position:absolute; right:0; bottom:calc(100% + 10px); width:min(440px, calc(100vw - 2 * var(--gutter)));
  display:flex; flex-wrap:wrap; gap:2px 4px; padding:12px;
  background:rgba(4,26,74,.88); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-md);
}
.city-link {
  background:none; border:0; border-radius:8px; padding:6px 10px; color:#fff; cursor:pointer;
  font:400 16px/1.3 var(--sans); transition:background .15s ease, color .15s ease;
}
.city-link:hover, .city-link:focus-visible { background:rgba(255,255,255,.14); color:var(--sun); }

/* ---------- the painted globe ---------- */

/* A plain sea-coloured sphere, there from the first paint, the same size as the globe that fades in over it. */
.map-wrap::before {
  content:""; position:absolute; inset:3%; pointer-events:none; transform:translateX(var(--shift)); transition:transform .5s cubic-bezier(.2,.7,.2,1);
  background:radial-gradient(circle closest-side, #1259c9 0, #0f4db9 55%, #0a3a98 88%, #072c7c 99%, rgba(7,44,124,0) 100%);
}
.map-wrap.no-sphere::before { display:none; }
.map-wrap:not(.no-sphere) { -webkit-mask-image:none; mask-image:none; }
.map-wrap.has-globe::before { animation:sphere-out .3s linear .7s both; }
@keyframes sphere-out { to { opacity:0; visibility:hidden; } }
/* Where an early click landed, while the map finishes loading. */
.early-pin { position:absolute; width:14px; height:14px; margin:-7px 0 0 -7px; border-radius:50%; background:#fff; border:3px solid var(--sun); box-shadow:0 0 0 7px rgba(255,181,71,.3); pointer-events:none; }
.map-wrap.has-globe {
  cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; outline:none; overflow:visible;
  -webkit-mask-image:none; mask-image:none;
}
.map-wrap.has-globe.over-globe { cursor:crosshair; }
.map-wrap.has-globe.grabbing { cursor:grabbing; }
.map-wrap.has-globe:focus-visible .globe-zoom { outline:2px solid #fff; outline-offset:2px; }
.has-globe .map-land, .has-globe .map-marks { display:none; }
.globe-stage {
  position:absolute; transform:translateX(var(--shift));
  transition:transform .5s cubic-bezier(.2,.7,.2,1);
  animation:globe-in .7s ease-out both;
  -webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%);
  mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%);
}
/* A soft veil behind each block of words, shown only once the globe has grown up to them. */
.globe-veil {
  position:absolute; z-index:1; pointer-events:none; opacity:var(--scrim, 0); border-radius:28px;
  background:rgba(2,40,110,.68); filter:blur(26px);
  transform:translateX(calc(-1 * var(--shift))); transition:transform .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes globe-in { from { opacity:0; } to { opacity:1; } }
.first-screen:has(.has-globe) :is(.masthead h1, .map-hint) { text-shadow:0 0 6px rgba(2,24,70,.9), 0 1px 2px rgba(2,24,70,.8); }
@media (max-width:899px) { .globe-veil { background:rgba(2,40,110,.84); filter:blur(14px); } }
.globe-canvas { position:absolute; z-index:0; left:0; top:0; display:block; }
.globe-marks { position:absolute; z-index:2; inset:0; overflow:hidden; pointer-events:none; }

.gc-city {
  position:absolute; left:0; top:0; width:0; height:0; padding:0; margin:0; border:0; background:none; color:inherit;
  font:500 13.5px/1 var(--sans); cursor:pointer; pointer-events:auto; will-change:transform;
}
.gc-city.off { visibility:hidden; }
.gc-city:focus-visible { outline:none; }
.gc-city::before { content:""; position:absolute; left:-13px; top:-13px; width:26px; height:26px; border-radius:50%; }
.gc-dot {
  position:absolute; left:-3.5px; top:-3.5px; width:7px; height:7px; border-radius:50%; background:var(--sun);
  box-shadow:0 0 0 1.5px var(--cobalt-deep), 0 0 0 5px rgba(255,181,71,.28);
  transition:box-shadow .15s ease;
}
.gc-city:hover .gc-dot, .gc-city:focus-visible .gc-dot { box-shadow:0 0 0 1.5px var(--cobalt-deep), 0 0 0 7px rgba(255,181,71,.62); }
.gc-name {
  position:absolute; left:9px; top:-8px; white-space:nowrap; line-height:16px; color:rgba(255,250,238,.94);
  text-shadow:0 0 3px rgba(2,24,70,.95), 0 0 8px rgba(2,24,70,.75), 0 1px 2px rgba(2,24,70,.9);
  opacity:0; transition:opacity .28s ease; pointer-events:none;
}
.gc-city.left .gc-name { left:auto; right:9px; }
.gc-city.named .gc-name, .gc-city:hover .gc-name, .gc-city:focus-visible .gc-name { opacity:1; }

.gc-pin { position:absolute; left:0; top:0; width:0; height:0; pointer-events:none; will-change:transform; }
.gc-pin-dot { position:absolute; left:-6px; top:-6px; width:12px; height:12px; border-radius:50%; background:#fff; border:3px solid var(--sun); box-shadow:0 0 0 1.5px var(--cobalt-deep); }
.gc-pin-ring { position:absolute; left:-16px; top:-16px; width:32px; height:32px; border-radius:50%; border:1.5px solid var(--sun); animation:pin 2.4s ease-out infinite; }

.globe-zoom {
  position:absolute; z-index:2; left:var(--gutter); bottom:14px; display:flex; flex-direction:column;
  border:1px solid var(--on-sky-line); border-radius:var(--radius); background:rgba(2,40,110,.5); overflow:hidden;
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.globe-zoom button {
  width:40px; height:40px; padding:0; border:0; background:none; color:var(--on-sky); cursor:pointer;
  font:500 24px/1 var(--display); transition:background .15s ease, color .15s ease;
}
.globe-zoom button + button { border-top:1px solid var(--on-sky-line); }
.globe-labels { position:absolute; inset:0; }
/* Names set like an old atlas: capitals for countries, italics for the natural world. None of them catch clicks. */
.gl {
  position:absolute; left:0; top:0; white-space:nowrap; pointer-events:none; user-select:none; -webkit-user-select:none;
  font-family:var(--display); opacity:0; visibility:hidden; will-change:transform;
  transition:opacity .28s ease, visibility 0s linear .28s;
}
.gl.on { opacity:1; visibility:visible; transition:opacity .28s ease, visibility 0s; }
/* Names on land get a pale paper edge, so they read over any terrain. Names on water are pale, and only show on water. */
.gl-country, .gl-range, .gl-desert, .gl-lake, .gl-river {
  --edge:rgba(252,248,232,.92);
  text-shadow:.6px 0 1px var(--edge), -.6px 0 1px var(--edge), 0 .6px 1px var(--edge), 0 -.6px 1px var(--edge), 0 0 5px rgba(252,248,232,.7);
}
.gl-country { font-weight:600; font-size:13px; line-height:15px; letter-spacing:.11em; text-transform:uppercase; color:#22141b; }
.gl-ocean { font-style:italic; font-weight:500; font-size:19px; line-height:22px; letter-spacing:.16em; color:rgba(226,237,255,.92); text-shadow:0 0 5px rgba(2,24,70,.7); }
.gl-sea { font-style:italic; font-weight:500; font-size:15px; line-height:17px; letter-spacing:.05em; color:rgba(226,237,255,.92); text-shadow:0 0 5px rgba(2,24,70,.7); }
.gl-range { font-style:italic; font-weight:600; font-size:14.5px; line-height:16px; letter-spacing:.04em; color:#3a1a14; }
.gl-desert { font-style:italic; font-weight:600; font-size:14.5px; line-height:16px; letter-spacing:.06em; color:#4e2c10; }
.gl-lake, .gl-river { font-style:italic; font-weight:600; font-size:13.5px; line-height:14px; color:#0f3380; }

@media (hover:hover) { .globe-zoom button:hover { background:rgba(255,255,255,.14); color:var(--sun); } }
.globe-zoom button:active { background:rgba(255,255,255,.2); }
.globe-zoom button:focus-visible { outline:2px solid #fff; outline-offset:-3px; }


/* ---------- the explorer sheet ---------- */

.sheet {
  position:fixed; z-index:10; top:0; right:0; bottom:0; width:var(--sheet-w);
  overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  color:var(--ink); background:var(--bg);
  box-shadow:-18px 0 60px rgba(2,24,70,.34);
  transform:translateX(102%); transition:transform .46s cubic-bezier(.2,.7,.2,1);
  outline:none;
}
.sheet.open { transform:none; }
.sheet[hidden] { display:none; }

.sheet-top {
  position:sticky; top:0; z-index:4; display:flex; align-items:center; justify-content:space-between; gap:2px 20px; flex-wrap:wrap;
  padding:10px var(--sheet-pad); background:var(--cobalt-deep); color:var(--on-sky);
}
.sheet-sim { flex:1 1 300px; text-align:right; text-wrap:balance; font-size:13.5px; line-height:1.4; color:var(--on-sky-quiet); }
.sheet-body { padding:0 var(--sheet-pad) 40px; }

.link-btn {
  background:none; border:0; padding:4px 0; cursor:pointer; color:var(--blue); font:600 15.5px/1.2 var(--sans);
  text-decoration:none;
}
.link-btn:hover { text-decoration:underline; text-underline-offset:3px; }
.link-btn.on-paper { font-size:15px; }
.sheet-top .link-btn { color:#fff; }
.sheet-top .link-btn:focus-visible { outline-color:#fff; }

.place {
  margin:0 calc(-1 * var(--sheet-pad)); padding:clamp(36px, 7vh, 64px) var(--sheet-pad) 32px;
  color:var(--on-sky); background-color:var(--cobalt);
  background-image:
    linear-gradient(100deg, rgba(2,40,110,.92) 0%, rgba(2,40,110,.74) 46%, rgba(2,40,110,.12) 84%),
    url("hero.webp");
  background-size:auto, cover; background-position:0 0, right 40%; background-repeat:no-repeat;
}
.place h2 { font-variant-numeric:lining-nums; font-family:var(--display); font-size:clamp(46px, 5.2vw, 72px); line-height:1.02; font-weight:500; letter-spacing:-.005em; overflow-wrap:anywhere; }
.place-sub { font-size:17px; color:var(--on-sky-soft); margin-top:4px; }
.place-sub:empty { display:none; }
.climate { margin-top:14px; max-width:48ch; font-size:16.5px; line-height:1.5; color:var(--on-sky); }
.climate:empty { display:none; }
.place .facts, .place .loading { color:var(--on-sky-soft); }
.place .problem { color:#ffe2b0; }
.place .btn.outline, .place .btn.small { background:#fff; color:var(--cobalt); border-color:transparent; }
.facts { color:var(--muted); }
.loading { color:var(--muted); }
.problem { color:var(--loss); font-weight:500; font-size:16px; }
.problem-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }

.biz-form { margin-top:36px; }
.biz-form label { display:block; font-size:19px; font-weight:600; line-height:1.3; }
.biz-form label[for="details"] { font-size:16px; font-weight:600; margin-top:22px; }
.optional { font-size:14px; color:var(--muted); font-weight:400; margin-left:4px; }
.biz-form input {
  display:block; width:100%; margin-top:8px; height:50px; padding:0 16px;
  font:400 17px/1 var(--sans); color:var(--ink); background:var(--surface);
  border:1px solid var(--line-strong); border-radius:var(--radius);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.biz-form input:hover { border-color:rgba(11,31,77,.38); }
.biz-form input:focus { outline:none; border-color:var(--blue); box-shadow:var(--ring); }
.biz-form input::placeholder { color:#667190; }
.examples { display:flex; flex-wrap:wrap; align-items:center; gap:6px 6px; margin-top:12px; font-size:15px; color:var(--muted); }
.examples span { margin-right:4px; }
.example {
  background:var(--wash); border:0; border-radius:8px; padding:6px 11px; cursor:pointer; color:var(--ink); font:400 15px/1.3 var(--sans);
  transition:color .15s ease, background .15s ease;
}
.example:hover { color:var(--blue); background:rgba(2,60,150,.10); }
.biz-actions { margin-top:24px; }
.biz-note { margin-top:12px; font-size:14.5px; line-height:1.5; color:var(--muted); max-width:58ch; }

.btn.solid { background:var(--blue); color:#fff; box-shadow:0 8px 22px rgba(2,60,150,.20); }
.btn.solid:hover { background:var(--blue-hover); }
.btn.solid:disabled { background:#6f86b4; color:#fff; cursor:progress; box-shadow:none; transform:none; }
.btn.outline { background:transparent; color:var(--blue); border:1px solid var(--line-strong); }
.btn.outline:hover { border-color:var(--blue); background:var(--blue-soft); }
.btn.outline:disabled, .btn.small:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.btn.small { font-size:15px; padding:9px 15px; }

.answer { margin-top:44px; }
.answer:empty { display:none; }
/* An answer can take up to a minute: one still sentence and a slow line of light, nothing that flickers. */
.answer > .loading {
  position:relative; overflow:hidden; padding:22px 24px 26px; border-radius:12px; background:var(--wash);
  font-size:18px; line-height:1.45; color:var(--ink);
}
.answer > .loading::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background:linear-gradient(90deg, transparent 0%, var(--sun) 50%, transparent 100%);
  background-size:45% 100%; background-repeat:no-repeat;
  animation:dusk-line 3.6s ease-in-out infinite alternate;
}
@keyframes dusk-line { from { background-position:-60% 0; } to { background-position:160% 0; } }
.section-title { font-family:var(--display); font-size:32px; font-weight:500; line-height:1.15; }
.read { margin-top:10px; font-size:18px; line-height:1.55; max-width:60ch; }
.notice { margin-top:14px; padding:12px 16px; border-radius:var(--radius); background:var(--amber-soft); font-size:15.5px; line-height:1.5; }
.source-line { margin-top:10px; font-size:14.5px; color:var(--muted); }

.hedge { margin-top:56px; padding-top:44px; border-top:1px solid var(--line); }
.hedge-title { font-family:var(--display); font-size:clamp(32px, 3vw, 40px); font-weight:500; line-height:1.1; }
.hedge-sentence { margin-top:12px; font-size:19px; font-weight:500; line-height:1.45; color:var(--blue); max-width:56ch; }
.hedge-why { margin-top:8px; font-size:17px; color:var(--muted); max-width:58ch; }

.hedge-edit { margin-top:22px; padding:14px 18px; border-radius:12px; background:var(--wash); }
.hedge-edit summary { cursor:pointer; font-size:16px; font-weight:600; color:var(--ink); }
.hedge-fields { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px 24px; margin-top:16px; }
.field { border:0; margin:0; padding:0; min-width:0; }
.field-name { display:block; font-size:15px; font-weight:600; padding:0; margin-bottom:4px; }
.field input[type="number"], .field select {
  height:44px; font-size:16px; color:var(--ink); background:var(--surface);
  border:1px solid var(--line-strong); border-radius:8px; padding:0 12px; min-width:0;
}
.field input[type="number"] { width:100%; max-width:150px; display:block; }
.field input:focus, .field select:focus { outline:none; border-color:var(--blue); box-shadow:var(--ring); }
.month-pair { display:flex; align-items:center; gap:6px; }
.month-pair select { flex:1 1 0; width:0; }
.month-pair .to { font-size:14.5px; color:var(--muted); }
.field-months { grid-column:span 1; }
.money-input { display:flex; align-items:center; gap:4px; font-family:var(--sans); font-size:16px; }
.side-option { display:flex; align-items:center; gap:8px; font-size:16px; padding:2px 0; cursor:pointer; }
.side-option input { width:17px; height:17px; margin:0; accent-color:var(--blue); box-shadow:none; }
.estimate { display:block; margin-top:4px; font-size:14px; color:var(--muted); }
.small-note { margin-top:10px; font-size:14.5px; line-height:1.5; color:var(--muted); max-width:62ch; }
.small-note strong { font-weight:600; color:var(--ink); }
.edit-note:empty { display:none; }
.line-chance { display:block; margin-top:4px; font-size:14.5px; line-height:1.4; font-weight:500; color:var(--ink); }
.line-advice:empty { display:none; }
.line-advice { margin-top:14px; padding:12px 16px; border-radius:var(--radius); background:var(--amber-soft); }
.advice-text { font-size:15.5px; line-height:1.5; margin-bottom:10px; }
.cost-warning { margin:10px 0 12px; padding:12px 16px; border-radius:var(--radius); background:var(--amber-soft); font-weight:500; line-height:1.5; }
.burst-note { margin:10px 0 12px; padding:12px 16px; border-radius:var(--radius); background:rgba(179,56,44,.07); line-height:1.5; }
.hedge-part p.burst-note { font-size:15.5px; }
.position-list .burst-note { font-size:14.5px; }

.hedge-part { margin-top:40px; }
.hedge-part h4 { font-size:19px; font-weight:600; line-height:1.3; margin-bottom:8px; }
.hedge-part p { font-size:17px; line-height:1.55; max-width:62ch; }
.hedge-part p.small-note { font-size:14.5px; }

.stats { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px 24px; margin:16px 0 14px; }
.stat { min-width:0; }
.stat-value { display:block; font-size:clamp(23px, 2.2vw, 28px); line-height:1.15; font-weight:600; letter-spacing:-.01em; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.stat-label { display:block; font-size:14.5px; line-height:1.3; color:var(--muted); margin-top:5px; }
.plain-truth { font-weight:600; }
.verdict { margin-top:6px; }

.chart-holder { margin-top:18px; width:100%; min-width:0; }
.replay-chart { display:block; max-width:100%; overflow:hidden; }
.replay-chart text { font-family:var(--sans); font-size:13px; fill:var(--muted); }
.replay-chart .series-label { font-family:var(--sans); font-size:14px; font-weight:600; }
.replay-chart .series-label.no-cover, .replay-chart .value-label.no-cover { fill:#b04a1c; }
.replay-chart .series-label.with-cover { fill:var(--with-cover); }
.replay-chart .value-label { font-size:13px; font-weight:600; }
.replay-chart .bar.no-cover { fill:var(--no-cover); }
.replay-chart .bar.with-cover { fill:var(--with-cover); }
.replay-chart .zero { stroke:var(--ink); stroke-opacity:.35; stroke-width:1; }

.who-sides { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin-top:16px; }
.who-side { padding:16px 18px; min-width:0; background:var(--wash); border-radius:12px; }
.who-heading { font-weight:600; }
.who-you { margin-top:6px; color:var(--blue); font-weight:500; }
.who-ai { margin-top:14px; }
.who-ai strong { font-weight:600; }

.odds-value { font-size:36px; font-weight:600; color:var(--blue); letter-spacing:-.015em; font-variant-numeric:tabular-nums; }
.odds-label { font-size:16px; color:var(--muted); }

.quote-start { margin-top:12px; }
.quote-list { margin-top:12px; }
.quote {
  display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:14px; align-items:center;
  padding:14px 14px; border-top:1px solid var(--line); min-height:64px; border-radius:0;
}
.quote:first-child { border-top:0; }
.quote-mm { font-size:17px; font-weight:600; }
.quote-style { grid-column:1; font-size:14.5px; color:var(--muted); }
.quote-wait, .quote-declined { grid-column:1 / -1; font-size:14.5px; color:var(--muted); }
.quote-nums { grid-column:1; display:flex; flex-wrap:wrap; gap:0 16px; font-size:15px; margin-top:4px; }
.quote-num b { font-family:var(--sans); font-size:15px; font-weight:600; }
.quote .btn, .quote-done { grid-column:2; grid-row:1 / span 3; }
.quote-done { font-size:14.5px; font-weight:600; color:var(--blue); max-width:14ch; text-align:right; }
.quote.best { background:var(--blue-soft); border-top-color:transparent; border-radius:12px; }
.quote.best + .quote { border-top-color:transparent; }
.quote.best .quote-style { color:var(--blue); font-weight:600; }
.quote.declined { opacity:.7; }

.assumptions { margin-top:56px; padding-top:40px; border-top:1px solid var(--line); }
.assumptions ul { list-style:disc; padding-left:20px; margin-top:10px; }
.assumptions li { font-size:16px; line-height:1.5; margin-top:6px; }

.positions { margin-top:44px; padding:20px 22px; background:var(--amber-soft); border-radius:var(--radius-lg); }
.positions[hidden] { display:none; }
.position-list { margin-top:8px; }
.position-list li { padding:12px 0; border-top:1px solid rgba(107,66,8,.14); font-size:16px; }

.sheet-foot { margin-top:56px; font-size:14px; line-height:1.5; color:var(--muted); }
.sheet-foot p + p { margin-top:4px; }

/* ---------- smaller screens ---------- */

@media (max-width:899px) {
  :root { --sheet-w:100%; }
  .sheet { box-shadow:none; }
  .sheet-top { padding-top:9px; padding-bottom:9px; }
  .sheet-sim { flex-basis:100%; text-align:left; }
  .map-wrap { flex:0 0 auto; height:min(50vw, 56vh); min-height:176px; -webkit-mask-image:linear-gradient(180deg, #000 0, #000 80%, transparent 96%); mask-image:linear-gradient(180deg, #000 0, #000 80%, transparent 96%); }
  /* Globe size from the start, so the plain sphere matches it and nothing jumps when the land arrives. */
  .map-wrap:not(.no-sphere) { height:min(100vw, 58vh); min-height:300px; }
  /* In the free space beside "Marked cities", so it doesn't sit on the globe. */
  .globe-zoom { z-index:5; left:auto; right:var(--gutter); bottom:-80px; flex-direction:row; }
  .globe-zoom button + button { border-top:0; border-left:1px solid var(--on-sky-line); }
  .globe-zoom button { width:44px; height:44px; }
  .first-screen { min-height:0; }
  .map-foot { padding-top:8px; }
  .city-list { position:static; margin-left:0; width:100%; }
  .city-list ul { position:static; width:100%; margin-top:10px; }
}
@media (max-width:899px) and (min-width:600px) {
  :root { --sheet-w:min(620px, 100%); }
  .sheet { box-shadow:-18px 0 60px rgba(2,24,70,.34); }
}
@media (max-width:599px) {
  body { font-size:16.5px; }
  .finder-row { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px; }
  #search { flex:none; width:100%; padding:0 12px; font-size:16px; }
  .finder .btn.ghost { padding:0 10px; font-size:14.5px; white-space:nowrap; }
  .hedge-fields { grid-template-columns:minmax(0, 1fr); }
  .field input[type="number"] { max-width:none; }
  .stats { grid-template-columns:minmax(0, 1fr); gap:0; }
  .stat { display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:10px 0; border-top:1px solid var(--line); }
  .stat:first-child { border-top:0; }
  .stat-value { order:2; flex:0 0 auto; font-size:20px; }
  .stat-label { order:1; margin-top:0; }
  .who-sides { grid-template-columns:minmax(0, 1fr); }
  .quote { padding:14px 10px; }
  .place {
    padding-top:32px; background-position:0 0, 72% 36%;
    background-image:linear-gradient(180deg, rgba(2,40,110,.80) 0%, rgba(2,40,110,.66) 60%, rgba(2,40,110,.42) 100%), url("hero.webp");
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
  .pin-ring { opacity:.8; transform:none; }
}

#answer { scroll-margin-top:72px; }

.quote-markup { color:var(--muted); flex-basis:100%; }
