/* The 2026 layer. Dark, geometric, one signal colour, and a map that earns the
   centre of the page. Loaded after style.css so it can retune the tokens instead
   of rewriting every component. */

:root {
  --ink: #e9f3f5;
  --ink-2: #a8bcc4;
  --ink-3: #6d828c;
  --paper: #05080a;
  --paper-2: #0a1116;
  --paper-3: #0e171d;
  --rule: #16232b;
  --rule-2: #22343e;
  --accent: #4ff0c4;
  --accent-2: #7fd4ff;
  --accent-soft: #0d2a26;
  --warn: #ffb27a;
  --warn-soft: #2a1a10;
  --bad: #ff7d6d;
  --bad-soft: #2a1214;
  --ok: #4ff0c4;
  --glow: 0 0 0 1px rgba(79, 240, 196, .35), 0 0 28px rgba(79, 240, 196, .18);

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: var(--display);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 144px;
}

/* the site is dark on purpose, in both system preferences: scrollbars, form
   controls and the caret follow this */
:root { color-scheme: dark; }

html { background: var(--paper); }
body {
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(79, 240, 196, .06), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(127, 212, 255, .05), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* a fine grid, the way a chart paper sits under a diagram */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}
main, .top, .foot { position: relative; z-index: 1; }

::selection { background: rgba(79, 240, 196, .28); color: #fff; }

h1, h2, h3, h4, .brand, .fbrand, .tile b {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 17px; }

a { color: var(--ink); text-decoration-color: rgba(79, 240, 196, .5); }
a:hover { color: var(--accent); }

.over, .maphint, .fbar, .dtag, .crumb, .subnav .over, .qbox label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lede { color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 62ch; }
.fine, .hintline { color: var(--ink-3); }

/* ------------------------------------------------------------- top bar */

.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 8, 10, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.top .bar { height: 62px; display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.brand .bn { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.brand .bn em { font-style: normal; color: var(--accent); }
.brand .mark path, .brand .mark circle { stroke: var(--accent) !important; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav a.on { color: var(--paper); background: var(--accent); }
.who { display: flex; align-items: center; gap: 14px; font-size: 13px; }
/* a link inside .who would otherwise win on specificity and repaint the button's
   label in grey on mint, which is unreadable */
.who a.btn { color: #04120e; }
.who a.btn:hover { color: #04120e; }
.who .acct { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.who .adm { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(79, 240, 196, .4); padding: 5px 9px; border-radius: 999px; }

.btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: #04120e; border: 1px solid var(--accent);
  padding: 11px 18px; border-radius: 2px; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { box-shadow: var(--glow); transform: translateY(-1px); color: #04120e; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 8px 13px; font-size: 10px; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #180505; }

/* --------------------------------------------------------------- hero */

.hero { border-bottom: 1px solid var(--rule); padding: var(--s8) 0 var(--s7); }
.hero h1 { max-width: 17ch; margin: 10px 0 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: var(--s5); }
.hgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(28px, 4vw, 56px); align-items: center; }
.heroacts { margin-top: var(--s6); display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }

/* --------------------------------------------------------------- cards */

.card, .dcard, .fact {
  background: linear-gradient(180deg, var(--paper-3), var(--paper-2));
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: var(--s5);
  transition: border-color .2s ease, transform .2s ease, box-shadow .25s ease;
}
.card:hover, .dcard:hover { border-color: var(--rule-2); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 15.5px; }
.card p { color: var(--ink-2); font-size: 14px; }
.card .meta a, .card a { text-decoration: none; }
.card .meta { font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); }

.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s4); }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s4); }

/* --------------------------------------------------------------- tables */

.tw { border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: var(--paper-2); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); text-align: left; padding: 11px 14px; background: rgba(255, 255, 255, .015);
  border-bottom: 1px solid var(--rule);
}
tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .045); color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(79, 240, 196, .035); color: var(--ink); }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- facts */

.fact.v-proven { border-left: 2px solid var(--ok); }
.fact.v-partly { border-left: 2px solid var(--warn); }
.fact.v-false { border-left: 2px solid var(--bad); }
.tag, .badge, .dtag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--rule-2); padding: 3px 8px; border-radius: 999px; color: var(--ink-2);
}
.tag.green, .v-proven .tag { color: var(--ok); border-color: rgba(79, 240, 196, .45); }
.tag.amber { color: var(--warn); border-color: rgba(255, 178, 122, .4); }
.tag.red { color: var(--bad); border-color: rgba(255, 125, 109, .4); }

/* ---------------------------------------------------------------- forms */

.console input, .filters input { background: #06090c; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  width: 100%; background: #06090c; color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: 2px; padding: 11px 12px;
  font-family: var(--sans); font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus, select:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 240, 196, .13);
}
label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); }
.stack > div { margin-bottom: var(--s4); }
.err { border: 1px solid rgba(255, 125, 109, .45); background: var(--bad-soft); color: #ffd9d4;
  padding: 11px 13px; border-radius: 2px; font-size: 14px; }
.ok { border: 1px solid rgba(79, 240, 196, .4); background: var(--accent-soft); color: #d5fff2;
  padding: 11px 13px; border-radius: 2px; font-size: 14px; }

/* --------------------------------------------------------------- prose */

.prose p { color: var(--ink-2); }
.prose h2 { border-top: 1px solid var(--rule); }
.prose .lede { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: rgba(79, 240, 196, .55); }
.prose a:hover { color: var(--accent); }
.prose ol.steps > li { border-bottom: 1px solid var(--rule); }
.prose ol.steps > li::before { background: transparent; color: var(--accent);
  border: 1px solid rgba(79, 240, 196, .45); font-family: var(--mono); }
.prose .note { background: var(--paper-3); border-left: 2px solid var(--accent); }
.prose .note.warn { background: var(--warn-soft); border-left-color: var(--warn); }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--rule); background: linear-gradient(180deg, transparent, #04070a); }
.foot h3 { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); }
.foot a { color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ------------------------------------------------------------ the ad */

.domusband { border: 1px solid var(--rule); background:
  radial-gradient(700px 220px at 20% 0%, rgba(79, 240, 196, .09), transparent 70%), var(--paper-2); }
.domusad { border: 1px solid var(--rule-2); background: var(--paper-3); }

/* --------------------------------------------------------------- console */

.cbar h1 { font-size: 26px; }
.tile { border: 1px solid var(--rule); background: var(--paper-2); }
.tile b { font-family: var(--mono); font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.case { border: 1px solid var(--rule); background: var(--paper-2); }

/* ---------------------------------------------------------- transitions */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* ===================================================================== map ==
   The map is the front door. A dark plate, hairline seams, one accent, and
   motion that is always a transform: nothing here re-lays out the page. */

.mapbox {
  position: relative;
  padding: 0;
  border: 1px solid var(--rule-2);
  border-radius: 2px;
  background:
    radial-gradient(600px 380px at 62% 38%, rgba(79, 240, 196, .07), transparent 70%),
    linear-gradient(180deg, #081014, #050a0d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 70px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
  isolation: isolate;
}
/* engineering grid, drawn behind the country */
.mapbox::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(122, 200, 200, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(122, 200, 200, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 55% 45%, #000 40%, transparent 82%);
  pointer-events: none;
}
/* corner marks, the way a technical drawing is cropped */
.mapbox::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(79, 240, 196, .10);
  clip-path: polygon(0 0, 22px 0, 22px 1px, 1px 1px, 1px 22px, 0 22px,
                     0 100%, 22px 100%, 22px calc(100% - 1px), 1px calc(100% - 1px),
                     1px calc(100% - 22px), 0 calc(100% - 22px),
                     100% 100%, calc(100% - 22px) 100%, calc(100% - 22px) calc(100% - 1px),
                     calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 22px),
                     100% calc(100% - 22px), 100% 0, calc(100% - 22px) 0,
                     calc(100% - 22px) 1px, calc(100% - 1px) 1px,
                     calc(100% - 1px) 22px, 100% 22px);
  pointer-events: none;
}

.mapbox svg {
  display: block; width: 100%; height: auto;
  max-height: 72vh; margin: 0 auto;
  padding: 18px 14px 10px;
  touch-action: none;
  cursor: grab;
  overflow: hidden;
}
.mapbox svg.grabbing { cursor: grabbing; }
.hero .mapbox svg { max-height: min(660px, 78vh); padding: 26px 16px 14px; }
.mapbox .zoom { will-change: transform; }

/* land */
.mapbox .rg {
  fill: #0e1c23;
  stroke: rgba(120, 205, 196, .34);
  stroke-width: .5;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .22s ease, stroke .22s ease, stroke-width .18s ease;
  vector-effect: non-scaling-stroke;
}
.mapbox .rg.hot {
  fill: #102c2b;
  stroke: var(--accent);
  stroke-width: 1;
  filter: drop-shadow(0 0 5px rgba(79, 240, 196, .45));
}
.mapbox .rg.on, .mapbox .rg.sel {
  fill: #14403a;
  stroke: var(--accent);
  stroke-width: 1.1;
}
/* the island goes quiet when its provinces are open */
.mapbox.drilled .rg[data-region="sardegna"] { opacity: .18; }

/* the provinces, revealed on demand and staggered from the JS */
.mapbox .provlayer { opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.mapbox.drilled .provlayer { opacity: 1; visibility: visible; }
.mapbox .pv {
  fill: #0e1f26;
  stroke: rgba(127, 212, 255, .3);
  stroke-width: .5;
  cursor: pointer;
  opacity: 0;
  transition: opacity .4s ease, fill .2s ease, stroke .2s ease;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
}
.mapbox .pv.in { opacity: 1; }
.mapbox .pv.hot { fill: #16323d; stroke: var(--accent-2); }
.mapbox .pv.on, .mapbox .pv.sel { fill: #1a4250; stroke: var(--accent-2); stroke-width: 1; }

/* labels */
.mapbox .lbl {
  font: 500 9.6px/1 var(--mono);
  letter-spacing: .07em;
  fill: #9db3ba;
  text-transform: uppercase;
  pointer-events: none;
  transition: fill .2s ease;
}
.mapbox .pv-lbl {
  font: 500 6.4px/1 var(--mono);
  letter-spacing: .04em;
  fill: #9db6bd;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease .15s;
}
.mapbox.drilled .pv-lbl { opacity: 1; }

/* city dots */
.mapbox .dots { pointer-events: none; }
.mapbox .ct {
  fill: rgba(79, 240, 196, .7);
  stroke: rgba(5, 12, 14, .9);
  stroke-width: .4;
  transition: fill .2s ease;
}
.mapbox .rg.hot ~ * .ct { fill: rgba(79, 240, 196, .9); }

/* a single breath of the coastline when the page settles */
@keyframes breathe {
  0%   { filter: drop-shadow(0 0 0 rgba(79, 240, 196, 0)); }
  45%  { filter: drop-shadow(0 0 10px rgba(79, 240, 196, .35)); }
  100% { filter: drop-shadow(0 0 0 rgba(79, 240, 196, 0)); }
}
.mapbox.breathe .rg { animation: breathe 2.2s ease-out 1; }

/* chrome over the plate */
.mapchrome {
  position: absolute; top: 12px; left: 14px; right: 14px; z-index: 3;
  display: flex; align-items: center; gap: 12px; pointer-events: none;
}
.maphud {
  font: 500 10px/1 var(--mono); letter-spacing: .16em; color: var(--accent);
  padding: 5px 8px; border: 1px solid rgba(79, 240, 196, .3); border-radius: 2px;
  background: rgba(5, 12, 14, .7); backdrop-filter: blur(6px);
}
.mapkeys {
  font: 400 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); opacity: .8;
}
.mapbtns { margin-left: auto; display: flex; gap: 6px; pointer-events: auto; }
.mapbtns button {
  font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  width: 30px; height: 28px; display: grid; place-items: center;
  color: var(--ink-2); background: rgba(6, 13, 16, .8);
  border: 1px solid var(--rule-2); border-radius: 2px; cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.mapbtns button:last-child { width: auto; padding: 0 10px; }
.mapbtns button:hover { color: var(--accent); border-color: var(--accent); background: rgba(79, 240, 196, .1); }

/* the readout */
.maptip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, -140%);
  font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: #04120e; background: var(--accent);
  padding: 6px 9px; border-radius: 2px; white-space: nowrap;
  opacity: 0; transition: opacity .14s ease;
  box-shadow: 0 6px 18px -8px rgba(79, 240, 196, .8);
}
.maptip.on { opacity: 1; }

/* the panel that slides out of the plate */
.mappanel {
  position: absolute; z-index: 6; right: 12px; bottom: 12px; width: min(310px, calc(100% - 24px));
  background: rgba(6, 13, 17, .93);
  border: 1px solid var(--rule-2); border-radius: 2px;
  padding: 14px 15px 15px;
  transform: translateY(14px); opacity: 0; visibility: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .22s ease, visibility .3s;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px -30px #000;
}
.mappanel.show { transform: none; opacity: 1; visibility: visible; }
.phead { display: flex; align-items: baseline; gap: 10px; }
.pv { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.px {
  margin-left: auto; background: none; border: 0; color: var(--ink-3);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.px:hover { color: var(--accent); }
.pmeta { display: flex; gap: 12px; margin: 4px 0 10px;
  font: 400 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pseg { display: flex; gap: 4px; margin-bottom: 10px; }
.pseg button {
  flex: 1; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); background: #070e12; border: 1px solid var(--rule-2);
  border-radius: 2px; padding: 7px 6px; cursor: pointer; transition: all .16s ease;
}
.pseg button.on { color: #04120e; background: var(--accent); border-color: var(--accent); }
.plist { margin: 0 0 8px; padding: 0; list-style: none; }
.plist li {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  padding-left: 12px; position: relative; margin-bottom: 5px;
}
.plist li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; background: var(--accent); border-radius: 50%;
}
.pmood { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; margin: 0 0 10px; }
.plist + .pmood { border-top: 1px solid var(--rule); padding-top: 8px; }
.ploading { font: 400 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0; }

.maphint {
  font: 400 10.5px/1.5 var(--mono); letter-spacing: .06em; color: var(--ink-3);
  margin-top: 10px; text-transform: none;
}

@media (max-width: 760px) {
  .mapkeys { display: none; }
  .mapbox .lbl { display: none; }   /* eight point type on a phone is noise */
  .hero .mapbox svg { max-height: 360px; }
  .mappanel { right: 8px; left: 8px; bottom: 8px; width: auto; }
}

/* ------------------------------------------------------------ small screens */

.navbtn {
  display: none; margin-left: auto;
  width: 40px; height: 34px; background: none; border: 1px solid var(--rule-2);
  border-radius: 2px; cursor: pointer; padding: 0; place-items: center; gap: 4px;
}
.navbtn span {
  display: block; width: 16px; height: 1px; background: var(--ink-2);
  transition: transform .2s ease, opacity .2s ease;
}
.navbtn span + span { margin-top: 5px; }
header.top.menu-open .navbtn span:first-child { transform: translateY(3px) rotate(45deg); }
header.top.menu-open .navbtn span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 980px) {
  .navbtn { display: grid; }
  .top .bar { gap: 12px; }
  .nav {
    position: fixed; inset: 62px 0 auto 0;
    display: none; flex-direction: column; gap: 0; margin: 0;
    background: rgba(5, 8, 10, .98);
    border-bottom: 1px solid var(--rule-2);
    padding: 8px 20px 22px;
    backdrop-filter: blur(16px);
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  header.top.menu-open .nav { display: flex; }
  .nav a {
    font-family: var(--display); font-size: 20px; letter-spacing: -.01em;
    text-transform: none; padding: 13px 0; border-radius: 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav a.on { background: none; color: var(--accent); }
  .who { margin-left: auto; }
  .who .acct, .who .adm, .who .fine { display: none; }
  .who .btn { padding: 9px 13px; font-size: 10px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hgrid { grid-template-columns: minmax(0, 1fr); }
  .hero .mapbox { order: -1; }
  .hero .mapbox svg { max-height: 58vh; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  h1 { font-size: clamp(30px, 10vw, 40px); }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .subnav { position: static; }
  .maphint { display: none; }
}

/* Source URLs are long and have no spaces. They must break, not push the page. */
.prose a, .src a, .srcs a, .fact a, .dblock a, .plist a, .pmood a {
  overflow-wrap: anywhere; word-break: break-word;
}

/* the region index: twenty names, no second map */
.rchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.rchip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 2px; background: var(--paper-2);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.rchip span { font-size: 13.5px; color: var(--ink); letter-spacing: -.01em; }
.rchip em { font: 400 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  font-style: normal; color: var(--ink-3); }
.rchip:hover { border-color: var(--accent); background: rgba(79, 240, 196, .06); transform: translateY(-1px); }
.rchip:hover em { color: var(--accent); }

/* the console keeps the display face for headings, the mono for figures */
.console h1, .cbar h1, .case h3, .tile .v { font-family: var(--display); letter-spacing: -.02em; }
.console .tile .k { font-family: var(--mono); letter-spacing: .14em; }
.console table th { font-family: var(--mono); }

/* the country assembles on load: quick, staggered, then gone. Cheap because it
   runs once and the class is dropped afterwards, so hover never fights it. */
@keyframes rgIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
.mapbox.intro .layers a.rlink { animation: rgIn .62s cubic-bezier(.2, .8, .2, 1) both; }
.mapbox.intro .dots { animation: rgIn .8s ease .35s both; }

/* city dots light up with their region */
.mapbox .ct.lit { fill: var(--accent); }

/* ============================================================ light theme ==
   The same system, on white. Tokens first, then the handful of components that
   had a dark value baked in. Anything new should read from the tokens above
   this block, not from here. */

:root {
  --ink: #0e161a;
  --ink-2: #46555d;
  --ink-3: #4f5f68;
  --paper: #fbfcfd;
  --paper-2: #ffffff;
  --paper-3: #f3f7f9;
  --rule: #e3e9ed;
  --rule-2: #c8d4db;
  --accent: #0e9c78;
  --accent-ink: #0a7a5f;
  --accent-2: #2f8ed8;
  --accent-soft: #e6f8f2;
  --warn: #94571a;
  --warn-soft: #fdf3e7;
  --bad: #bb3a2c;
  --bad-soft: #fdecea;
  --ok: #0a7a5f;
  --glow: 0 0 0 1px rgba(14, 156, 120, .35), 0 10px 30px -12px rgba(14, 156, 120, .35);
  color-scheme: light;
}

html { background: var(--paper); }
body {
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(14, 156, 120, .07), transparent 62%),
    radial-gradient(800px 520px at 6% 0%, rgba(47, 142, 216, .05), transparent 58%),
    var(--paper);
  color: var(--ink);
}
body::before {
  background-image:
    linear-gradient(to right, rgba(12, 60, 48, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 60, 48, .045) 1px, transparent 1px);
}
::selection { background: rgba(14, 156, 120, .22); color: #07120f; }

a { color: var(--ink); text-decoration-color: rgba(14, 156, 120, .5); }
a:hover { color: var(--accent-ink); }

.top { background: rgba(251, 252, 253, .86); border-bottom: 1px solid var(--rule); }
.brand .bn em { color: var(--accent-ink); }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a.on { color: #ffffff; background: var(--ink); }
.who .adm { color: var(--accent-ink); border-color: rgba(14, 156, 120, .45); }

.btn { background: var(--ink); color: #ffffff; border: 1px solid var(--ink); }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #ffffff;
  box-shadow: 0 8px 22px -10px rgba(10, 122, 95, .6); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.who a.btn, .who a.btn:hover { color: #ffffff; }

.card, .dcard, .fact {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(14, 24, 30, .04);
}
.card:hover, .dcard:hover { border-color: var(--rule-2); box-shadow: 0 12px 28px -18px rgba(14, 24, 30, .35); }
.card .meta { color: var(--accent-ink); }

.tw { background: var(--paper-2); }
thead th { background: var(--paper-3); color: var(--ink-3); border-bottom: 1px solid var(--rule); }
tbody td { border-bottom: 1px solid var(--rule); color: var(--ink-2); }
tbody tr:hover td { background: var(--accent-soft); color: var(--ink); }

.tag, .badge, .dtag { color: var(--ink-2); border-color: var(--rule-2); }
.tag.green, .v-proven .tag { color: var(--ok); border-color: rgba(10, 122, 95, .45); }
.tag.amber { color: var(--warn); border-color: rgba(148, 87, 26, .4); }
.tag.red { color: var(--bad); border-color: rgba(187, 58, 44, .4); }

input[type=text], input[type=email], input[type=password], input[type=search], textarea, select {
  background: #ffffff; color: var(--ink); border: 1px solid var(--rule-2);
}
.console input, .filters input { background: #ffffff; }
input:focus, textarea:focus, select:focus { border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 156, 120, .16); }
.err { background: var(--bad-soft); border-color: rgba(187, 58, 44, .35); color: #6d1b12; }
.ok { background: var(--accent-soft); border-color: rgba(14, 156, 120, .4); color: #0a5c48; }

.foot { background: linear-gradient(180deg, transparent, #ffffff); border-top: 1px solid var(--rule); }
.domusband { background: radial-gradient(700px 220px at 20% 0%, rgba(14, 156, 120, .09), transparent 70%), var(--paper-2); }
.domusad { background: var(--paper-3); }
.tile { background: var(--paper-2); box-shadow: 0 1px 2px rgba(14, 24, 30, .05); }
.case { background: var(--paper-2); }

/* ------------------------------------------------------------- the map, day */

.mapbox {
  background:
    radial-gradient(620px 420px at 60% 40%, rgba(14, 156, 120, .07), transparent 72%),
    linear-gradient(180deg, #fbfdfd, #f4f8fa);
  border: 1px solid var(--rule-2);
  box-shadow: 0 2px 3px rgba(14, 24, 30, .04),
              0 30px 60px -34px rgba(14, 24, 30, .35),
              inset 0 1px 0 #ffffff;
  perspective: 1400px;
  /* the tilt itself is written by map.js; this only says it may be tilted */
  transform-style: preserve-3d;
}
.mapbox::before {
  background-image:
    linear-gradient(to right, rgba(12, 70, 56, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12, 70, 56, .06) 1px, transparent 1px);
  background-size: 34px 34px;
}
.mapbox::after { border: 1px solid rgba(14, 156, 120, .18); }

.mapbox svg { padding: 22px 16px 12px; filter: drop-shadow(0 10px 14px rgba(14, 24, 30, .10)); }

.mapbox .rg {
  fill: #ffffff;
  stroke: #c3d0d7;
  stroke-width: .6;
  transition: fill .26s ease, stroke .2s ease, filter .26s ease, transform .34s cubic-bezier(.16, 1, .3, 1);
}
.mapbox .rg.hot {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.1;
  filter: drop-shadow(0 6px 10px rgba(14, 156, 120, .35));
}
.mapbox .rg.on, .mapbox .rg.sel {
  fill: #d7f2e9;
  stroke: var(--accent-ink);
  stroke-width: 1.2;
}

.mapbox .pv { fill: #ffffff; stroke: #c3d0d7; }
.mapbox .pv.hot { fill: var(--accent-soft); stroke: var(--accent); }
.mapbox .pv.on, .mapbox .pv.sel { fill: #d7f2e9; stroke: var(--accent-ink); }

/* names: the part that has to be readable without hunting */
.mapbox .lbl {
  font: 600 13px/1 var(--display);
  letter-spacing: .01em;
  text-transform: none;
  fill: #1b262c;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
  transition: fill .2s ease;
}
.mapbox .lbl.small { font-size: 10px; }
.mapbox.drilled .lbl { opacity: .25; }
.mapbox .pv-lbl {
  font: 600 9px/1 var(--display);
  text-transform: none;
  fill: #1b262c;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 2.6px;
  pointer-events: none;
}

.mapbox .ct { fill: var(--accent-ink); stroke: #ffffff; stroke-width: .7; }
.mapbox .ct.lit { fill: #0a5c48; }

.mapbox .mapchrome .maphud {
  color: var(--accent-ink); border-color: rgba(14, 156, 120, .35);
  background: rgba(255, 255, 255, .8);
}
.mapbox .mapkeys { color: var(--ink-3); }
.mapbox .mapbtns button {
  color: var(--ink-2); background: #ffffff; border-color: var(--rule-2);
  box-shadow: 0 1px 2px rgba(14, 24, 30, .06);
}
.mapbox .mapbtns button:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }

.maptip { background: var(--ink); color: #ffffff; box-shadow: 0 10px 24px -12px rgba(14, 24, 30, .5); }

.mappanel {
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--rule-2);
  box-shadow: 0 26px 60px -28px rgba(14, 24, 30, .45);
}
.px { color: var(--ink-3); }
.px:hover { color: var(--accent-ink); }
.pseg button { background: #ffffff; border-color: var(--rule-2); color: var(--ink-2); }
.pseg button.on { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.plist li::before { background: var(--accent); }
.pmood { color: var(--ink-3); }
.plist + .pmood { border-top: 1px solid var(--rule); }

.rchip { background: var(--paper-2); border-color: var(--rule); }
.rchip span { color: var(--ink); }
.rchip:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---------------------------------------------------------- depth, on white */

/* the country sits on the plate: one soft shadow under the landmass, cast down
   and right, so it reads as a slab rather than a printed outline */
.mapbox .layers { filter: drop-shadow(2px 4px 3px rgba(14, 24, 30, .13)); }

@media (prefers-reduced-motion: reduce) {
  .mapbox { perspective: none; }
  .mapbox svg { filter: none; }
}

/* the tilt needs a bit of geometry to read as 3d, and never while dragging */
.mapbox svg {
  transform-origin: 50% 55%;
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
  will-change: transform;
}
.mapbox svg.grabbing { transition: none; }

/* the ring that follows a click */
.mapbox .ripple {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: .9;
  pointer-events: none;
  transition: r .62s cubic-bezier(.16, 1, .3, 1), opacity .62s ease-out;
}
.mapbox .ripple.go { r: 26; opacity: 0; }

/* the hero column is narrower than the map page, so its names get their own size */
.hero .hgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
@media (max-width: 1080px) { .hero .hgrid { grid-template-columns: 1fr; } }
.hero .mapbox .lbl { font-size: 14px; }
.hero .mapbox .lbl.small { display: none; }
.hero .mapbox svg { padding: 18px 12px 10px; }

/* the remember me row on the sign in form */
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); padding: 2px 0 6px; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent-ink);
  flex: 0 0 auto; }
.check span { display: block; line-height: 1.35; }
.check .sub { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; max-width: 46ch; }

/* ------------------------------------------------------- the standing offer
   One strip, always there, under the header. Dark ink because it has to hold
   its own against a white page and because the mint on white is too quiet for
   something that is meant to be noticed. */
.stickytop { position: sticky; top: 0; z-index: 45; }
.stickytop .top { position: static; }

.betaband {
  background: linear-gradient(90deg, #0e161a, #10262b 55%, #0b3f36);
  color: #f3fbf9;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.betaband .bb {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 72px; padding: 14px 0;
}
.bbtag {
  font: 700 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: #0e161a; background: var(--accent); padding: 8px 11px; border-radius: 3px;
  white-space: nowrap; flex: 0 0 auto;
}
.bbline { margin: 0; font-size: 16px; line-height: 1.35; color: #e8f5f1; flex: 1 1 auto; }
.bbline b { color: #ffffff; font-weight: 600; }
.bbpct {
  color: #0e161a; background: var(--accent); padding: 1px 6px; border-radius: 3px;
  font-weight: 700; white-space: nowrap;
}
.bbsub { display: block; color: #a8c8c2; font-size: 13px; margin-top: 3px; }
.bbgo {
  flex: 0 0 auto; background: #ffffff; color: #0e161a; border: 1px solid #ffffff;
  font-size: 14px; padding: 12px 22px; font-weight: 600;
}
.bbgo:hover { background: var(--accent); border-color: var(--accent); color: #06231c; }

@media (max-width: 780px) {
  .betaband .bb { gap: 10px; min-height: 0; padding: 8px 0; }
  .bbtag { display: none; }
  .bbline { font-size: 12.5px; }
  .bbsub { font-size: 11px; }
  .bbgo { font-size: 11.5px; padding: 8px 12px; }
}
@media (max-width: 520px) {
  .bbsub { display: none; }
  .bbline { font-size: 12px; }
}
@media print { .betaband { display: none !important; } }

/* ----------------------------------------- the offer, down the right gutter
   It sits in the margin the page already leaves. The wrap was narrowed by 60px
   once, so the gutter is real and the plate never covers a line of text: no
   padding on the body, nothing shifted, the content stays where it was. */
/* hidden until there is a gutter to sit in */
.betarail { display: none; }

@media (min-width: 1400px) {
  .betaband { display: none; }

  .betarail {
    display: block;
    position: fixed; left: auto; right: 16px; top: 50%; bottom: auto;
    transform: translateY(-50%);
    width: min(212px, calc((100vw - 1100px) / 2 - 26px));
    z-index: 46;
  }
  .betarail .rail-in {
    position: relative; display: flex; flex-direction: column; gap: 9px;
    padding: 16px 14px 15px; border-radius: 16px; overflow: hidden;
    background:
      radial-gradient(220px 160px at 100% 0%, rgba(79, 240, 196, .16), transparent 70%),
      linear-gradient(165deg, #0b1418 0%, #0b2a25 58%, #07332b 100%);
    border: 1px solid rgba(79, 240, 196, .26);
    box-shadow: 0 28px 55px -30px rgba(8, 26, 22, .8),
                inset 0 1px 0 rgba(255, 255, 255, .07);
    text-decoration: none; color: #eaf7f3;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .25s ease;
  }
  .betarail .rail-in:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 240, 196, .55); color: #ffffff;
  }

  /* the sticker, because a discount that is not a sticker is not a discount */
  .rstick {
    position: absolute; top: 12px; right: -26px; transform: rotate(38deg);
    background: var(--accent); color: #052019;
    font: 800 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 30px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .6);
  }
  .rtag {
    align-self: flex-start; font: 700 9px/1 var(--mono); letter-spacing: .16em;
    text-transform: uppercase; color: #052019; background: #4ff0c4;
    padding: 5px 7px; border-radius: 3px;
  }

  /* the questions, faded and stacked: this is what the product is */
  .rqs { position: relative; height: 92px; margin: 2px 0 0; }
  .rq {
    position: absolute; left: 0; right: 0;
    font: 600 10.5px/1.25 var(--sans);
    padding: 7px 9px; border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    color: rgba(233, 247, 242, .62);
    box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .rq.q1 { top: 0;    transform: rotate(-3.2deg) scale(.9);  opacity: .38; }
  .rq.q2 { top: 20px; transform: rotate(1.8deg)  scale(.95); opacity: .55; }
  .rq.q3 { top: 41px; transform: rotate(-1.2deg);            opacity: .78; }
  .rq.q4 { top: 63px; transform: rotate(.8deg);              opacity: 1;
           background: rgba(79, 240, 196, .16); border-color: rgba(79, 240, 196, .45);
           color: #eafff9; }

  .rbig { margin: 2px 0 0; font: 700 17px/1.1 var(--display); letter-spacing: -.02em; color: #fff; }
  .rbig span { color: var(--accent); }
  .rsmall { margin: 0; font-size: 11px; line-height: 1.4; color: #a6c6c0; }
  .rlist { margin: 2px 0 0; padding: 0; list-style: none; }
  .rlist li {
    position: relative; padding-left: 14px; font-size: 10.5px; line-height: 1.5;
    color: #bfd8d3;
  }
  .rlist li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px;
    border-radius: 50%; background: var(--accent); opacity: .8;
  }
  .rgo {
    margin-top: 4px; text-align: center; font: 600 11.5px/1 var(--sans);
    padding: 10px 6px; border-radius: 8px; background: #ffffff; color: #0b1418;
    white-space: nowrap; letter-spacing: -.005em;
  }
  .betarail .rail-in:hover .rgo { background: var(--accent); color: #052019; }
  .rfine {
    font-size: 9.5px; text-align: center; color: #7fa39c; letter-spacing: .01em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .betarail .rail-in { transition: none; }
}

/* the site / admin centre switch: one segmented control, two links */
.hswitch {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px;
  border: 1px solid var(--rule-2); border-radius: 999px;
  background: #ffffff; box-shadow: inset 0 1px 2px rgba(14, 24, 30, .05);
  margin-right: 6px;
}
.hswitch a {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 var(--display); letter-spacing: -.01em;
  padding: 7px 13px; border-radius: 999px; color: var(--ink-2); white-space: nowrap;
  text-decoration: none; transition: background .16s ease, color .16s ease;
}
.hswitch a svg { width: 14px; height: 14px; display: block; opacity: .75; }
.hswitch a:hover { background: var(--paper-3); color: var(--ink); }
.hswitch a.on {
  background: var(--ink); color: #ffffff;
  box-shadow: 0 3px 10px -5px rgba(14, 24, 30, .65);
}
.hswitch a.on svg { opacity: 1; }
.hswitch a.on:hover { background: var(--ink); color: #ffffff; }
.hswitch .short { display: none; }
@media (max-width: 1120px) {
  .hswitch .long { display: none; }
  .hswitch .short { display: inline; }
}
@media (max-width: 760px) {
  .hswitch a { padding: 6px 10px; font-size: 11.5px; }
  .hswitch a svg { width: 13px; height: 13px; }
}

/* between the hamburger breakpoint and a wide desktop the header runs out of
   room for handle, settings and the switch at once; the switch wins */
@media (max-width: 1240px) {
  .who .acct, .who .fine { display: none; }
}

/* the question above the map, so nobody mistakes it for an illustration */
.mapask { margin: 0 0 14px; }
.hero .mapask { margin-bottom: 10px; }
.mapask .over { margin: 0 0 4px; }
.mapask h2 {
  margin: 0; font-size: clamp(19px, 2.1vw, 27px); letter-spacing: -.02em; line-height: 1.12;
}
.mapask .maphow {
  margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2);
  max-width: 46ch;
}
.hero .mapask h2 { font-size: clamp(17px, 1.5vw, 21px); }
.hero .mapask .maphow { font-size: 12px; }
.mapbox { cursor: grab; }
.mapbox:active { cursor: grabbing; }

/* ---------------------------------------------- the backdrop behind the page
   Canvas at the very back, then a paper veil that is opaque enough to keep the
   text at full contrast but thin enough that the drawing reads as movement.
   Nothing here touches the console: page() only emits it for the public site. */
#bgc { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }
#bgstack { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bglayer {
  position: absolute; left: -6.5%; top: -6.5%; width: 113%; height: 113%;
  opacity: 0; will-change: opacity, transform;
  animation: bgdrift 20s ease-in-out infinite;
}
.bglayer.l0 { animation: bgf0 20s linear infinite; }
.bglayer.l1 { animation: bgf1 20s linear infinite; }
.bglayer.l2 { animation: bgf2 20s linear infinite; }
/* the drift is compositor work; a slow machine drops it and keeps the dissolves */
#bgstack:not(.bg-lite) .bglayer.l0 { animation: bgf0 20s linear infinite, bgdrift 20s ease-in-out infinite; }
#bgstack:not(.bg-lite) .bglayer.l1 { animation: bgf1 20s linear infinite, bgdrift 20s ease-in-out infinite; }
#bgstack:not(.bg-lite) .bglayer.l2 { animation: bgf2 20s linear infinite, bgdrift 20s ease-in-out infinite; }
/* each act owns one third of the loop, with a 0.9s dissolve on both sides */
@keyframes bgf0 { 0% {opacity:1} 29% {opacity:1} 33% {opacity:0} 96% {opacity:0} 100% {opacity:1} }
@keyframes bgf1 { 0% {opacity:0} 29% {opacity:0} 33% {opacity:1} 62% {opacity:1} 66% {opacity:0} 100% {opacity:0} }
@keyframes bgf2 { 0% {opacity:0} 62% {opacity:0} 66% {opacity:1} 96% {opacity:1} 100% {opacity:0} }
/* the drift runs a full loop and comes back, so nothing jumps when it repeats */
@keyframes bgdrift {
  0%   { transform: translate3d(-2.2%, -1%, 0); }
  50%  { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(2.2%, -1%, 0); }
}
.bgveil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(251, 252, 253, .86) 0%, rgba(251, 252, 253, .74) 32%,
    rgba(251, 252, 253, .74) 68%, rgba(249, 251, 252, .88) 100%);
}
body { background-color: transparent; }
@media (prefers-reduced-motion: reduce) {
  .bglayer { animation: none !important; opacity: 0; }
  .bglayer.l1 { opacity: 1; }
}
