:root {
  --ground: #F2F5F7;
  --surface: #FFFFFF;
  --surface-2: #E8EDF1;
  --ink: #17222C;
  --ink-2: #4A5964;
  --ink-3: #7A8894;
  --line: #D3DBE2;
  --accent: #1F6E8C;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEBF2;
  --ok: #3F7D5A;
  --ok-soft: #DFF0E6;
  --warn: #A65A1E;
  --warn-soft: #F6E7D8;
  --hero: #17222C;
  --hero-ink: #E6ECF1;
  --hero-ink-2: #AEBAC5;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121920;
    --surface: #1A2330;
    --surface-2: #222D3A;
    --ink: #E6ECF1;
    --ink-2: #AEBAC5;
    --ink-3: #7F8D99;
    --line: #2E3A47;
    --accent: #6FB6D6;
    --accent-ink: #0F1A22;
    --accent-soft: #1C3140;
    --ok: #7FC59A;
    --ok-soft: #1E3328;
    --warn: #E4A26A;
    --warn-soft: #3A2A1B;
    --hero: #0E151C;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.r { text-align: right; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 32px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.wordmark { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark span { color: var(--accent); }
.topnav { display: flex; gap: 18px; align-items: center; }
.topnav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.topnav a:hover { color: var(--accent); }
.saved-link .cnt[hidden] { display: none; }
.saved-link .cnt { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 11px; text-align: center; line-height: 18px; vertical-align: 1px; }

/* Hero */
.hero { background: var(--surface); color: var(--ink); padding: 40px 32px 44px; border-bottom: 1px solid var(--line); }
.hero .eyebrow { color: var(--accent); }
.titlerow { display: flex; align-items: flex-start; gap: 14px; }
.titlerow .save { margin-top: 18px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.02; letter-spacing: -0.015em; margin: 12px 0 16px; max-width: 16ch; text-wrap: balance;
}
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin: 0 0 14px; }
.hero .answer { font-size: 15px; color: var(--ink-2); max-width: 68ch; margin: 0 0 28px; line-height: 1.55; }
.hero .answer b { color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; max-width: 1100px; }
.tile { background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.tile.hi { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.tile.hi .k { color: var(--accent-ink); opacity: 0.85; }
.tile .v { font-family: var(--display); font-weight: 700; font-size: 26px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.tile.hi .sub { color: var(--accent-ink); opacity: 0.85; }

/* Sections */
main section:not(.hero) { padding: 44px 32px 8px; max-width: 1180px; margin: 0 auto; }
h2 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.01em; text-wrap: balance; }
.explain { color: var(--ink-2); max-width: 78ch; margin: 0 0 20px; }
.note { color: var(--ink-3); font-size: 14px; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 7px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.chk { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chk input { accent-color: var(--accent); width: 15px; height: 15px; }
.sel { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
select, input[type=number] {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px;
}

/* Comparison table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
#cmp th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 500; text-align: left; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}
#cmp th.r { text-align: right; }
#cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#cmp tr.row:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
#cmp tr.row.open td { background: var(--accent-soft); border-bottom-color: transparent; }
.op { min-width: 190px; }
.op .name { font-weight: 600; }
.op .meta { font-size: 12px; color: var(--ink-3); }
.orig { font-size: 11px; color: var(--ink-3); }
td.hidden { color: var(--warn); }
td.true .tc { font-weight: 600; font-size: 15px; }
.row.nosolo .pkg::after { content: "pair price"; display: block; font: 11px var(--body); color: var(--warn); }
.pair-note:empty { display: none; }
.pair-note { display: block; font-size: 12px; color: var(--warn); }
.bar-h { width: 210px; }
.bar-c { width: 210px; padding-left: 4px !important; }
.bar { height: 10px; border-radius: 3px; overflow: hidden; display: flex; background: var(--warn-soft); min-width: 6px; }
.bar .b1 { background: var(--accent); height: 100%; display: block; }
.bar .b2 { background: var(--warn-soft); height: 100%; display: block; }
.bar .b3 { flex: 1; height: 100%; background: repeating-linear-gradient(135deg, var(--warn-soft) 0 3px, var(--surface-2, #fff) 3px 6px); }
.chips { white-space: normal; min-width: 250px; line-height: 1.9; }
.chip { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 4px; margin-right: 3px; border: 1px solid transparent; }
.chip.y { background: var(--ok-soft); color: var(--ok); }
.chip.n { background: var(--warn-soft); color: var(--warn); text-decoration: line-through; }
.chip.u { background: transparent; color: var(--ink-3); border-color: var(--line); }
.chip.u::after { content: " ?"; }
td.x { width: 36px; text-align: center; }
.expand {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font: 500 16px/1 var(--mono); cursor: pointer;
}
.expand[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
tr.detail td { background: var(--accent-soft); padding: 6px 16px 20px 16px; }
.detail-grid { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 1fr); gap: 28px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
table.bd { width: 100%; max-width: 520px; font-size: 14px; margin-top: 8px; }
table.bd td { padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: top; }
table.bd tr.sum td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 600; padding-top: 8px; }
a.src { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
a.src:hover { color: var(--accent); border-color: var(--accent); }
.unk { font-size: 13px; color: var(--ink-2); background: var(--surface); border-left: 3px solid var(--warn); padding: 8px 12px; border-radius: 4px; margin: 12px 0 0; max-width: 520px; }
.facts p { margin: 8px 0 12px; }
.facts dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 13.5px; }
.facts dt { color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; }
.visit { display: inline-block; font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 12px; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); }
.visit:hover { background: var(--accent); color: var(--accent-ink); }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.2fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc-form { display: grid; gap: 12px; align-content: start; }
.calc-form label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.calc-form select, .calc-form input { width: 100%; }
.calc-out .total { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }

/* Reference items */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
@media (min-width: 1000px) { .items { grid-template-columns: repeat(4, 1fr); } }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.item .k { font-weight: 600; font-size: 14px; }
.item .v { font-size: 20px; margin: 2px 0 4px; }
.item .per { font-size: 12px; color: var(--ink-3); }
.item .d { font-size: 13px; color: var(--ink-2); }

/* Fees */
table.fees th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; text-align: left; padding: 10px 12px; background: var(--surface-2); }
table.fees th.r { text-align: right; }
table.fees td { padding: 10px 12px; border-top: 1px solid var(--line); }

.method p { max-width: 78ch; margin: 0 0 12px; color: var(--ink-2); }
.method strong { color: var(--ink); }

footer { max-width: 1180px; margin: 40px auto 0; padding: 20px 32px 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; display: grid; gap: 4px; }

@media (max-width: 640px) {
  .top, .hero, main section:not(.hero), footer { padding-left: 18px; padding-right: 18px; }
  .sel { margin-left: 0; }
  .bar-h, .bar-c { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- site chrome: header search, currency, crumbs ---------- */
.top { flex-wrap: wrap; row-gap: 10px; }
.hsearch { position: relative; flex: 1 1 260px; max-width: 460px; }
.hsearch input, .bigsearch input {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
}
.hsearch input { font-size: 14px; background: var(--ground); }
.hsearch input:focus { background: var(--surface); outline: 2px solid var(--accent); outline-offset: 0; }
@media (min-width: 900px) { .hsearch.hide-wide { visibility: hidden; } }
.cur { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.cur select { font-family: var(--mono); font-size: 13px; padding: 6px 8px; }
.sresults {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18); overflow: hidden; text-align: left;
}
.sr { display: grid; grid-template-columns: 78px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 9px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.sr:last-child { border-bottom: 0; }
.sr:hover, .sr.first { background: var(--accent-soft); }
.sr-t { grid-row: 1 / span 2; align-self: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sr-n { font-weight: 600; font-size: 14px; }
.sr-s { font-size: 12px; color: var(--ink-2); }
.sr-empty { padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.crumbs { max-width: 1180px; margin: 0 auto; padding: 16px 32px 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 8px; }
.crumbs .here { color: var(--ink); font-weight: 500; }

/* ---------- home ---------- */
.hero.home { padding: 56px 32px 60px; background: linear-gradient(180deg, var(--surface) 0%, var(--ground) 100%); }
.hero.home h1 { max-width: 20ch; font-size: clamp(38px, 6vw, 68px); }
.bigsearch { position: relative; max-width: 640px; }
.bigsearch input { font-size: 18px; padding: 16px 18px; border-radius: 10px; box-shadow: 0 8px 28px rgba(23,34,44,0.10); }
.bigsearch input:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.cgrid { display: grid; gap: 12px; }
.cgrid.continents { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cgrid.countries { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cbox { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; text-decoration: none; color: var(--ink); min-height: 120px; }
a.cbox:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(31,110,140,0.12); }
.cbox.off { opacity: 0.6; background: transparent; border-style: dashed; }
.cb-name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.cb-blurb { font-size: 13px; color: var(--ink-2); margin: 6px 0 10px; }
.cb-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: auto; }
.cb-meta b { color: var(--accent); font-weight: 500; }
.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.fcard { display: block; background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; padding: 18px; text-decoration: none; color: var(--ink); }
.fcard:hover { box-shadow: 0 6px 20px rgba(31,110,140,0.16); }
.fc-name { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 4px 0 12px; }
.fc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fc-stats .k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.fc-stats .v { font-size: 16px; font-weight: 500; }
.fc-cta { margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1180px; margin: 0 auto; }
.two section { padding-left: 32px; padding-right: 32px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.explain.small { font-size: 14px; }
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; font-size: 14px; color: var(--ink-2); }
.steps3 b { display: block; color: var(--ink); margin-bottom: 4px; font-family: var(--display); font-size: 16px; }

/* ---------- section head (continent, country, planned trek) ---------- */
.head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.05; letter-spacing: -0.01em; margin: 8px 0 10px; text-wrap: balance; }
.head .lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; margin: 0; }
main section.head { padding-bottom: 0; }

/* ---------- ranked trek list ---------- */
.tl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.tl li { display: grid; grid-template-columns: 40px minmax(160px, 1.5fr) minmax(150px, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tl li:last-child { border-bottom: 0; }
.tl.compact li { grid-template-columns: 32px 1fr auto; }
.tl .rank { color: var(--ink-3); font-size: 13px; }
.tl-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.tl-name:hover { color: var(--accent); }
.tl-meta, .tl-sub { font-size: 12px; color: var(--ink-3); }
.tl-pop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; }
.badge { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.badge.up { background: var(--ok-soft); color: var(--ok); }
.badge.down { background: var(--surface-2); color: var(--ink-3); }
.pill { display: inline-block; font-size: 13px; padding: 5px 10px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.pill.live { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.pill.live:hover { filter: brightness(1.08); }
.pill.queue { border: 1px dashed var(--line); color: var(--ink-3); }
.tl li.planned .tl-name { color: var(--ink-2); }
@media (max-width: 640px) {
  .tl li { grid-template-columns: 28px 1fr; }
  .tl-pop, .tl-status { grid-column: 2; }
  .crumbs { padding-left: 18px; padding-right: 18px; }
}

/* ---------- planned trek page ---------- */
.facts-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, 1.2fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr; } }
.factbox { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.factbox dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.factbox dt { color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 3px; }
.factbox dd { margin: 0; }
.callout { background: var(--accent-soft); border-radius: 8px; padding: 16px 18px; }
.callout p { margin: 6px 0 0; max-width: 60ch; }

.kpap { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; padding: 1px 5px; border-radius: 3px; background: var(--ok-soft); color: var(--ok); vertical-align: middle; margin-left: 4px; }

/* ---------- hearts and lists ---------- */
.save { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; }
.save svg { fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.15s; }
.save:hover { color: var(--accent); border-color: var(--accent); }
.save.on { color: #C2415B; border-color: #C2415B; }
.save.on svg { fill: currentColor; }
.save.pulse svg { transform: scale(1.25); }
.tl-status { display: flex; align-items: center; gap: 8px; }
.listpop { position: absolute; z-index: 40; width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.18); padding: 10px 12px; }
.lp-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.lp-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.lp-row input { accent-color: var(--accent); }
.lp-n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.lp-new { display: flex; gap: 6px; margin-top: 8px; }
.lp-new input { flex: 1; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--ground); color: var(--ink); }
.lp-new button, .btn { font: inherit; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { font-size: 12px; padding: 4px 9px; }
.lp-link { display: block; margin-top: 8px; font-size: 12px; }
.saved-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.newlist, .signin { display: flex; gap: 8px; }
.newlist input, .signin input { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); min-width: 280px; }
.slist { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 14px; }
.slist-head { display: flex; align-items: baseline; gap: 12px; }
.slist-head h2 { font-size: 20px; margin: 0; }
.slist-head h2[contenteditable="true"]:hover { outline: 1px dashed var(--line); outline-offset: 4px; cursor: text; }
.slist-head .btn { margin-left: auto; }
.stl { list-style: none; margin: 10px 0 0; padding: 0; }
.stl li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.stl a { font-weight: 500; color: var(--ink); text-decoration: none; }
.stl a:hover { color: var(--accent); }
.stl .x { margin-left: auto; border: 0; background: transparent; color: var(--ink-3); font-size: 18px; cursor: pointer; }
.stl .x:hover { color: #C2415B; }

/* ---------- budget planner ---------- */
.calc-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .calc-form .two-col { grid-template-columns: 1fr; } }
.chk-inline { display: flex !important; align-items: center; gap: 8px; align-self: end; padding-bottom: 8px; }
.chk-inline input { accent-color: var(--accent); width: 15px; height: 15px; }
.slider input[type=range] { width: 100%; accent-color: var(--accent); }
.slider .mono { float: right; color: var(--ink); }
.hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.gear { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px 10px; margin: 0; }
.gear legend { font-size: 13px; color: var(--ink-2); padding: 0 4px; }
.gear-item { display: flex !important; align-items: center; gap: 8px; font-size: 14px !important; color: var(--ink) !important; padding: 4px 0; }
.gear-item input { accent-color: var(--accent); width: 15px; height: 15px; }
.gear-item .money { margin-left: auto; color: var(--ink-2); }
.perday { font-size: 13px; color: var(--ink-2); margin: -4px 0 10px; }
.calc-out .btn { margin-top: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* who has looked at a price: read by the system, or checked by a person */
.op .read { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.op .read + .read { margin-top: 1px; }
.op .read .d { white-space: nowrap; }
.op .read.ok { color: var(--ok, #2f7d4f); }
.op .read.stale { color: var(--warn, #b4541a); }
footer .honest { margin: 6px 0; }

/* true cost as a range when the operator leaves items unstated */
td.true .upto { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
td.true .upto .th { font-weight: 600; color: var(--ink); }
td.true .unstated { font-family: var(--sans, inherit); font-size: 11.5px; color: var(--warn); margin-top: 2px; white-space: nowrap; }
.bd .bd-unk td { color: var(--ink-2); font-style: italic; }
.bd .bd-high td { border-top: 1px dashed var(--line, #d9dde3); }
.explain.rule { border-left: 3px solid var(--warn); padding-left: 12px; }
.solo-note { font-size: 12.5px; color: var(--ink-2); align-self: center; }
td.hidden .upto { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* where an operator is from: a flag instead of a country name */
.flag { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); vertical-align: -2px; object-fit: cover; }
.flag-txt { font-family: var(--mono, monospace); font-size: 10.5px; letter-spacing: 0.04em; padding: 1px 4px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); text-decoration: none; }
.flagbar { flex-wrap: wrap; }
.flagbar button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; }
.flagbar .n { font-family: var(--mono, monospace); font-size: 12px; opacity: 0.75; }
.home-hint { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ---------- pictures: hero with a photo, place and trek cards, rows ---------- */
.hero.has-pic { position: relative; overflow: hidden; color: #fff; background: var(--hero); padding: 0; border-bottom: 0; min-height: 360px; display: grid; }
.hero.has-pic .hero-pic { position: absolute; inset: 0; }
.hero.has-pic .hero-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.has-pic .hero-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,26,0.25) 0%, rgba(10,18,26,0.55) 60%, rgba(10,18,26,0.72) 100%); }
.hero.has-pic .hero-in { position: relative; z-index: 1; max-width: 1180px; width: 100%; margin: 0 auto; padding: 64px 32px 56px; align-self: end; }
.hero.has-pic .eyebrow { color: #CFE3EC; }
.hero.has-pic h1, .hero.has-pic .lead { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.hero.has-pic .lead { color: #E6ECF1; }
.hero.home.has-pic { min-height: 480px; }
.hero.home.has-pic h1 { max-width: 14ch; margin-bottom: 10px; }
.hero.home.has-pic .lead { margin-bottom: 22px; font-size: 19px; }
.hero.home.has-pic .bigsearch input { border: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 14px; color: #E6ECF1; }
.hero-facts span::before { content: "✓ "; color: #9FD3BC; }
.credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-size: 11px; color: rgba(255,255,255,0.75); text-decoration: none; background: rgba(10,18,26,0.45); padding: 3px 8px; border-radius: 4px; }
.credit:hover { color: #fff; }
.hero.place.has-pic .hero-in { padding-top: 56px; }
.hero.place.has-pic h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.5vw, 56px); line-height: 1.02; letter-spacing: -0.015em; margin: 8px 0 10px; }

.prow { }
.prow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.prow-head h2 { margin: 0; }
.prow-head .more { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; }
.prow-sub { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; max-width: 70ch; }
.prow-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 0 12px; scrollbar-width: thin; }
.prow-track > .pc { scroll-snap-align: start; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; padding: 4px 0 12px; }
@media (min-width: 1000px) { .prow-track { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } .prow-track > .pc:nth-child(n+9) { display: none; } }
@media (min-width: 1000px) and (max-width: 1199px) { .prow-track { grid-template-columns: repeat(3, 1fr); } .prow-track > .pc:nth-child(n+7) { display: none; } }

.pc { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.pc:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(23,34,44,0.12); }
.pc-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.pc-img img, .pc-img .noimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-img .noimg { background: linear-gradient(135deg, var(--surface-2), var(--line)); }
.pc-continent .pc-img, .pc-country .pc-img { aspect-ratio: 16 / 10; }
.pc-tag { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.92); color: var(--ink); padding: 3px 9px; border-radius: 999px; }
.pc-tag.soon { background: rgba(23,34,44,0.7); color: #fff; }
.pc.planned .pc-img img { filter: saturate(0.6); }
.pc-body { padding: 12px 14px 14px; display: grid; gap: 3px; }
.pc-name { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }
.pc-continent .pc-name, .pc-country .pc-name { font-size: 20px; }
.pc-meta { font-size: 13px; color: var(--ink-3); }
.pc-price { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.pc-price b { color: var(--ink); font-weight: 600; }
.pc-price.muted { color: var(--ink-3); }
.how { border-top: 1px solid var(--line); margin-top: 24px; }
@media (max-width: 640px) {
  .hero.has-pic .hero-in { padding: 44px 18px 36px; }
  .hero.home.has-pic { min-height: 420px; }
  .prow-track { grid-auto-columns: 72vw; }
  .pc-name { font-size: 16px; }
}
@media (prefers-color-scheme: dark) { .pc-tag { background: rgba(26,35,48,0.92); color: #E6ECF1; } }

.credits { width: 100%; font-size: 14px; border-collapse: collapse; }
.credits th, .credits td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
