/* Layout: a passport's inner page. Security-paper ground with a faint guilloche,
   navy cover ink for type, gold foil for the one accent, and every visa status
   drawn as an ink stamp in its own colour. Single centred column, max 1120px. */
:root {
  --paper: #eef2f3;
  --sheet: #fbfcfc;
  --ink: #142039;
  --ink-2: #48546b;
  --rule: #d5dde2;
  --gold: #a5761c;
  --gold-soft: #f3e7cc;
  --navy: #182a52;
  --on-navy: #f2f4f8;
  --s-free: #1b7f55;
  --s-arrival: #0f7c8f;
  --s-eta: #2f5fc4;
  --s-evisa: #7348b8;
  --s-required: #c0412b;
  --s-banned: #3b3f47;
  --s-unknown: #8a919c;
  --guilloche: rgba(24, 42, 82, 0.05);
  --shadow: 0 1px 2px rgba(20, 32, 57, 0.06), 0 6px 20px rgba(20, 32, 57, 0.06);
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1424; --sheet: #141d31; --ink: #e8edf5; --ink-2: #a3aec2; --rule: #26324a;
    --gold: #e0b45c; --gold-soft: #3a2f17; --navy: #1d2c4f; --on-navy: #f2f4f8;
    --s-free: #3fbf86; --s-arrival: #36b4c7; --s-eta: #6f97ec; --s-evisa: #a888e6; --s-required: #ee7a62; --s-banned: #9aa1ad; --s-unknown: #7d8594;
    --guilloche: rgba(224, 180, 92, 0.05); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1424; --sheet: #141d31; --ink: #e8edf5; --ink-2: #a3aec2; --rule: #26324a;
  --gold: #e0b45c; --gold-soft: #3a2f17; --navy: #1d2c4f; --on-navy: #f2f4f8;
  --s-free: #3fbf86; --s-arrival: #36b4c7; --s-eta: #6f97ec; --s-evisa: #a888e6; --s-required: #ee7a62; --s-banned: #9aa1ad; --s-unknown: #7d8594;
  --guilloche: rgba(224, 180, 92, 0.05); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0 22px, var(--guilloche) 22px 23px),
    repeating-radial-gradient(circle at 100% 0, transparent 0 30px, var(--guilloche) 30px 31px);
  background-attachment: fixed;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--ink-2); font-weight: 400; }
.fine { color: var(--ink-2); font-size: 0.82rem; }
.eyebrow { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.lede strong { color: var(--ink); }

/* frame */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--navy); color: var(--on-navy);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 22px; height: 28px; border-radius: 3px; background: var(--gold); position: relative; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.brand-mark::after { content: ""; position: absolute; inset: 8px 5px; border: 1.5px solid var(--navy); border-radius: 50%; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; max-width: 100%; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 0.9rem; padding: 6px 10px; border-radius: 999px; color: var(--on-navy); opacity: 0.82; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { opacity: 1; background: rgba(255,255,255,.14); }
@media (max-width: 720px) { .nav { margin-left: 0; width: 100%; } .topbar { gap: 6px; } }
.main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 56px; display: flex; flex-direction: column; gap: 40px; }
.main > * { min-width: 0; }
.footer { border-top: 1px solid var(--rule); background: var(--sheet); padding: 28px 16px 40px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; max-width: 100%; }
.footer > div { max-width: 46ch; display: grid; gap: 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: flex-start; }
.footer nav a { color: var(--ink-2); font-size: 0.92rem; }
.crumbs { font-size: 0.85rem; color: var(--ink-2); margin-bottom: -24px; }
.crumbs a { color: var(--ink-2); }

/* stamps: the status of a route, drawn like an entry stamp */
.stamp {
  --c: var(--s-unknown);
  display: inline-flex; align-items: baseline; gap: 6px; flex-shrink: 0;
  color: var(--c); border: 2px solid var(--c); border-radius: 6px;
  padding: 3px 9px; font-family: var(--f-mono); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.25;
  background: color-mix(in srgb, var(--c) 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  transform: rotate(-1.2deg);
}
.stamp-days { font-weight: 500; opacity: 0.85; text-transform: none; letter-spacing: 0; }
.stamp-xs { font-size: 0.66rem; padding: 1px 6px; border-width: 1.5px; transform: none; }
.stamp-sm { font-size: 0.72rem; padding: 2px 7px; }
.stamp-xl { font-size: clamp(1rem, 0.8rem + 1.4vw, 1.5rem); padding: 10px 18px; border-width: 3px; border-radius: 10px; transform: rotate(-2.5deg); box-shadow: inset 0 0 0 3px var(--sheet), inset 0 0 0 4.5px color-mix(in srgb, var(--c) 55%, transparent); flex-wrap: wrap; }
.s-free { --c: var(--s-free); } .s-arrival { --c: var(--s-arrival); } .s-eta { --c: var(--s-eta); }
.s-evisa { --c: var(--s-evisa); } .s-required { --c: var(--s-required); } .s-banned { --c: var(--s-banned); } .s-unknown { --c: var(--s-unknown); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--s-unknown)); margin-right: 6px; vertical-align: 0; flex-shrink: 0; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--ink-2); }

/* flags */
.flag { width: 24px; height: 18px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex-shrink: 0; vertical-align: -3px; margin-right: 8px; background: var(--rule); }
.flag-lg { width: 36px; height: 27px; border-radius: 3px; }
.flag-xl { width: 72px; height: 54px; border-radius: 5px; margin: 0; }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--f-body); border-radius: 999px; padding: 12px 20px; border: 0; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-gold { background: var(--gold); color: #1a1405; }
.btn-gold:hover { filter: brightness(1.08); }
.input, select { font: 500 1rem var(--f-body); color: var(--ink); background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 8px; padding: 10px 12px; min-width: 0; max-width: 100%; }
.input:focus, select:focus { border-color: var(--gold); outline: none; }
.more { font-weight: 600; color: var(--gold); text-decoration: none; white-space: nowrap; font-size: 0.95rem; }
.more:hover { text-decoration: underline; }

/* home hero */
.hero { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; padding-top: 12px; position: relative; }
.hero-text { display: grid; gap: 14px; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); line-height: 1.02; }
.finder { background: var(--navy); color: var(--on-navy); border-radius: 16px; padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.finder-row { display: grid; gap: 6px; }
.finder label { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.finder select { background: rgba(255,255,255,.08); color: var(--on-navy); border-color: rgba(255,255,255,.2); font-size: 1.05rem; padding: 12px; }
.finder select option { color: #142039; background: #fff; }
.finder .btn { background: var(--gold); color: #1a1405; padding: 14px 20px; }
.mrz { grid-column: 1 / -1; font-family: var(--f-mono); font-size: clamp(0.62rem, 0.45rem + 0.7vw, 0.95rem); letter-spacing: 0.18em; color: var(--ink-2); opacity: 0.55; display: grid; overflow: hidden; white-space: nowrap; border-top: 1px dashed var(--rule); padding-top: 10px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

/* summary tiles */
.summary { display: grid; gap: 16px; }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.summary .summary-head { margin-bottom: 0; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; text-decoration: none; display: grid; gap: 4px; transition: border-color .15s; }
.tile:hover { border-color: var(--gold); }
.tile-n { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.tile-l { font-size: 0.85rem; color: var(--ink-2); display: flex; align-items: center; }
.tile-rank { background: var(--gold-soft); border-color: transparent; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-rank { grid-column: 1 / -1; } }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--rule); gap: 2px; }
.bar-seg { background: var(--c); }

/* unlock teaser */
.unlock-teaser { background: var(--navy); color: var(--on-navy); border-radius: 16px; padding: 24px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.unlock-teaser > div { display: grid; gap: 8px; max-width: 60ch; }
.unlock-teaser p:not(.eyebrow) { opacity: 0.85; }
.unlock-teaser::after { content: "APPROVED"; position: absolute; right: -10px; top: -6px; font: 800 4.4rem var(--f-display); color: var(--gold); opacity: 0.09; transform: rotate(-8deg); pointer-events: none; }

/* destination cards and covers */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dest-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.dest-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dest-body { padding: 12px 14px 14px; display: grid; gap: 6px; justify-items: start; }
.dest-name { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; display: flex; align-items: center; }
.dest-tag { color: var(--ink-2); font-size: 0.9rem; line-height: 1.35; }
.cover { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--navy); }
.cover-flag { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(9px) saturate(1.2); transform: rotate(-4deg) scale(1.08); opacity: 0.95; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-grain { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,16,30,.55)), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px); mix-blend-mode: normal; }
.cover-code { position: absolute; left: 14px; bottom: 6px; font: 800 3.2rem/1 var(--f-display); color: rgba(255,255,255,.92); letter-spacing: -0.03em; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.cover-ll { position: absolute; right: 12px; bottom: 10px; font: 500 0.7rem var(--f-mono); color: rgba(255,255,255,.85); letter-spacing: 0.06em; }
.cover-credit { position: absolute; right: 8px; top: 6px; font: 0.6rem var(--f-body); color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 4px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-img .cover-code { font-size: 2rem; }
.cover-big { aspect-ratio: 21 / 8; border-radius: 16px; }
.cover-big .cover-code { font-size: clamp(4rem, 2rem + 8vw, 8rem); left: 20px; bottom: 4px; }
@media (max-width: 600px) { .cover-big { aspect-ratio: 16 / 9; } }

/* lists */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.rank-list, .ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rank-list li, .rank-row { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 10px; background: var(--sheet); border-radius: 8px; }
.rank-list a, .rank-row a { display: flex; align-items: center; text-decoration: none; font-weight: 600; min-width: 0; }
.rank-n { font: 600 0.9rem var(--f-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rank-s { font: 700 1rem var(--f-mono); font-variant-numeric: tabular-nums; }
.ranking .rank-row { grid-template-columns: 2.4rem minmax(0, 1.2fr) 3rem minmax(0, 1fr); }
@media (max-width: 600px) { .ranking .rank-row { grid-template-columns: 2.2rem minmax(0, 1fr) 2.6rem; } .rank-bar { grid-column: 1 / -1; } }
.change-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.change-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; background: var(--sheet); border-radius: 8px; flex-wrap: wrap; }
.change-list a { display: flex; align-items: center; text-decoration: none; font-weight: 600; }
.chg { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.arrow { color: var(--ink-2); }

.rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; }
.row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; min-width: 0; }
.row > a { display: flex; align-items: center; text-decoration: none; min-width: 0; flex: 1; }
.row-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row a:hover .row-name { text-decoration: underline; }
.row.is-me { border-color: var(--gold); background: var(--gold-soft); }
.hint { font-size: 0.72rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.rows.compact { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
@media (max-width: 400px) { .rows, .rows.compact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .dest-card .cover-code { font-size: 2rem; } .dest-card .cover-ll { display: none; } .dest-body { padding: 10px; } .dest-name { font-size: 0.98rem; } .dest-tag { font-size: 0.82rem; } }
.empty { color: var(--ink-2); padding: 20px; text-align: center; border: 1px dashed var(--rule); border-radius: 10px; }

/* page heads */
.page-head { display: flex; gap: 20px; align-items: flex-start; }
.page-head > div { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 600px) { .page-head { flex-direction: column; } }
.callout { display: block; padding: 16px 18px; border-radius: 12px; background: var(--gold-soft); text-decoration: none; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.callout:hover { border-color: var(--gold); }

/* tile map */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 14px; }
@media (max-width: 400px) { .regions { grid-template-columns: 1fr; } }
.region { display: grid; gap: 8px; align-content: start; }
.region h3 { font-size: 0.95rem; display: flex; justify-content: space-between; }
.region h3 .muted { font: 500 0.78rem var(--f-mono); }
.tilemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 3px; }
.tm { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; text-decoration: none; border-radius: 4px; font: 600 0.66rem var(--f-mono); color: #fff; background: var(--c); transition: transform .1s; }
.tm:hover { transform: scale(1.12); position: relative; z-index: 1; }
.tm.s-required, .tm.s-banned { background: color-mix(in srgb, var(--c) 22%, var(--sheet)); color: var(--c); }
.tm.s-evisa { background: color-mix(in srgb, var(--c) 70%, var(--sheet)); }

/* filters */
.filters { display: grid; gap: 10px; margin: 14px 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-b { font: 600 0.88rem var(--f-body); color: var(--ink); background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.seg-b span { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-2); margin-left: 4px; }
.seg-b.is-on { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.seg-b.is-on span { color: var(--on-navy); opacity: 0.75; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-row .input[type="search"] { flex: 1 1 220px; }

/* answer page */
.answer { display: grid; gap: 14px; justify-items: start; background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(20px, 3vw, 36px); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.answer::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 110% -10%, transparent 0 18px, var(--guilloche) 18px 19px); pointer-events: none; }
.answer > * { position: relative; }
.answer-flags { display: flex; align-items: center; gap: 10px; }
.answer-flags .flag { margin: 0; }
.plane { color: var(--gold); font-size: 1.1rem; }
.answer-stamp { padding: 8px 0; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; max-width: 75ch; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.rule-box { border: 2px dashed color-mix(in srgb, var(--gold) 60%, transparent); border-radius: 16px; padding: 20px; display: grid; gap: 12px; background: color-mix(in srgb, var(--gold-soft) 55%, transparent); }
.warn { color: var(--s-required); font-weight: 600; }
.warn-inline { color: var(--s-required); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips.static { list-style: none; }
.chip { display: inline-flex; align-items: center; font-size: 0.86rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--sheet); border: 1.5px solid var(--rule); }
.chip-toggle { cursor: pointer; user-select: none; }
.chip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip-toggle:has(input:checked) { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.chip-toggle:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.facts-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.facts-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font: 500 0.74rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 400px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
.guide-teaser { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.faq details { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; margin-top: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--ink-2); max-width: 75ch; }

/* country page */
.country-hero { display: grid; gap: 18px; }
.country-hero-text { display: grid; gap: 8px; }
.country-hero h1 { font-size: clamp(2.4rem, 1.4rem + 5vw, 4.8rem); line-height: 1; }
.viewer-check { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.viewer-check label { font: 500 0.74rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.guide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 820px) { .guide { grid-template-columns: 1fr; } }
.guide-intro { display: grid; gap: 14px; font-size: 1.1rem; max-width: 65ch; }
.india-note { background: var(--gold-soft); border-radius: 10px; padding: 12px 14px; font-size: 1rem; }
.guide-side { display: grid; gap: 8px; align-content: start; border-left: 3px solid var(--gold); padding-left: 18px; }
.guide-side h2 { font-size: 1rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); font-weight: 600; margin-top: 6px; }
.places { list-style: none; counter-reset: p; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.places li { counter-increment: p; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; position: relative; }
.places li::before { content: counter(p, decimal-leading-zero); font: 600 0.75rem var(--f-mono); color: var(--gold); }
.place-where { font: 500 0.78rem var(--f-mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.pill-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill-links a { display: inline-flex; align-items: center; text-decoration: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px 5px 8px; font-size: 0.9rem; font-weight: 500; }
.pill-links a .flag { width: 20px; height: 15px; margin-right: 6px; }
.pill-links a:hover { border-color: var(--gold); }
.region-h { margin-top: 18px; font-size: 0.85rem; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }

/* unlock page */
.unlock { display: grid; gap: 16px; }
.unlock-count { font-size: 1.1rem; }
.unlock-count strong { font-family: var(--f-display); font-size: 1.6rem; }
.unlock-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
@media (max-width: 400px) { .unlock-list { grid-template-columns: 1fr; } }
.unlock-item { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.unlock-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.unlock-top > a, .unlock-top > span:first-child { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.history li { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 10px; background: var(--sheet); border-radius: 8px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.prose { display: grid; gap: 12px; max-width: 70ch; }
.prose h2 { margin-top: 12px; }
.prose ol { padding-left: 1.2rem; display: grid; gap: 8px; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.places li.has-photo { padding: 0; overflow: hidden; }
.places li.has-photo::before { position: absolute; top: 10px; left: 12px; z-index: 1; background: var(--sheet); padding: 1px 6px; border-radius: 4px; }
.place-photo { margin: 0; position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--rule); }
.place-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-photo figcaption { position: absolute; right: 6px; bottom: 6px; font-size: 0.6rem; background: rgba(0,0,0,.45); color: #fff; padding: 1px 6px; border-radius: 4px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-photo figcaption a { color: #fff; }
.place-body { display: grid; gap: 6px; padding: 14px 16px 18px; }
.places li:not(.has-photo) .place-body { padding: 0; }
