/* Wandurance country pages — shared stylesheet.
   Tokens mirror source/index.html so the pages read as part of the same site.
   Generated pages link to /assets/country.css; edit this file in
   tools/country-pages/ and re-run node tools/build-countries.js. */

:root {
  --ink: #12151a;
  --paper: #eef1ec;
  --amber: #e8952e;
  --amber-dim: #b9762a;
  --teal: #2f7a6c;
  --coral: #c94f3d;
  --slate: #747c7e;

  --bg: var(--paper);
  --bg-panel: #ffffff;
  --bg-panel-2: #e7e9e2;
  --text: var(--ink);
  --text-muted: #5b615f;
  --border: rgba(18,21,26,0.14);
  --border-strong: rgba(18,21,26,0.28);
  --accent: var(--amber);
  --positive: var(--teal);
  --negative: var(--coral);

  --board-bg: #0c0f12;
  --board-bg-2: #05070a;
  --board-text: var(--amber);
  --board-border: rgba(232,149,46,0.22);

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --shadow: 0 1px 2px rgba(18,21,26,0.06), 0 8px 24px -12px rgba(18,21,26,0.22);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d10; --bg-panel: #171b20; --bg-panel-2: #1d2127;
    --text: #eef1ec; --text-muted: #9aa1a3;
    --border: rgba(238,241,236,0.13); --border-strong: rgba(238,241,236,0.24);
    --board-bg: #08090b; --board-bg-2: #030405;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -14px rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d10; --bg-panel: #171b20; --bg-panel-2: #1d2127;
  --text: #eef1ec; --text-muted: #9aa1a3;
  --border: rgba(238,241,236,0.13); --border-strong: rgba(238,241,236,0.24);
  --board-bg: #08090b; --board-bg-2: #030405;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -14px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; font-size: 17.5px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16.5px; font-weight: 500; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
button { font: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }

/* ---------- Header (mirrors the calculator's) ---------- */
header.top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.brand-title { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; border-radius: 10px; }
.brand-title:hover { opacity: 0.85; }
.brand-mark { flex: none; width: 48px; height: 48px; }
@media (min-width: 560px) { .brand-mark { width: 56px; height: 56px; } }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: 0.01em; text-transform: uppercase; margin: 0; line-height: 0.9;
}
.brand-name .sub {
  display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.02em; text-transform: none; color: var(--text-muted); margin-top: 5px;
}
.theme-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--bg-panel); gap: 2px; }
.theme-toggle button {
  border: 0; background: transparent; color: var(--text-muted); padding: 5px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.theme-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .theme-toggle button[aria-pressed="true"] { background: var(--amber); color: #16110a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle button[aria-pressed="true"] { background: var(--amber); color: #16110a; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: 0.6; }

/* ---------- Page head ---------- */
.page-head { display: grid; gap: 14px; margin-bottom: 26px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em;
  font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 0.95; margin: 0; text-wrap: balance;
}
.page-head .region { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-dim); }
.page-head .summary { font-size: 1.08rem; max-width: 70ch; margin: 0; }

/* ---------- Departure-board style stat tiles ---------- */
.board {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  background: linear-gradient(180deg, var(--board-bg), var(--board-bg-2));
  border: 1px solid var(--board-border); border-radius: var(--radius); padding: 16px; margin: 0 0 28px;
  color: var(--board-text);
}
.tile { display: grid; gap: 4px; padding: 8px 10px; }
.tile .k { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(232,149,46,0.6); }
.tile .v { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 0.8rem; color: rgba(238,241,236,0.62); }

/* ---------- Layout ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.prose p { max-width: 68ch; margin: 0 0 1em; }
section { margin: 0 0 32px; }
h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1; margin: 0 0 12px; text-wrap: balance;
}
h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; }
.lede { color: var(--text-muted); max-width: 68ch; margin: 0 0 14px; }

/* ---------- Panels & tables ---------- */
.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; font-size: 0.82rem; color: var(--text-muted); padding: 0 0 8px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
tbody th { font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier-frugal { color: var(--teal); } .tier-lavish { color: var(--amber-dim); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }

/* ---------- Visa ---------- */
.visa { border-left: 3px solid var(--amber); padding: 12px 16px; background: var(--bg-panel-2); border-radius: 0 var(--radius) var(--radius) 0; max-width: 70ch; }
.visa strong { font-family: var(--font-mono); }
.small { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(180deg, var(--board-bg), var(--board-bg-2)); color: #eef1ec;
  border: 1px solid var(--board-border); border-radius: var(--radius); padding: 18px 20px;
}
.cta p { margin: 0; max-width: 52ch; }
.cta .btn {
  display: inline-block; background: var(--amber); color: #16110a; font-weight: 700; text-decoration: none;
  padding: 11px 18px; border-radius: 8px; white-space: nowrap;
}
.cta .btn:hover { background: #f2a343; }

/* ---------- Affiliate strip ---------- */
.aff { display: grid; gap: 10px; }
.aff-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--radius); }
.aff-label { font-weight: 700; flex: 1 1 160px; }
.aff-blurb { color: var(--text-muted); font-size: 0.9rem; flex: 2 1 240px; }
.aff-ctas { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 0 100%; }
.aff-cta { text-decoration: none; font-weight: 700; font-size: 0.9rem; color: var(--amber-dim); border: 1px solid var(--border-strong); padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.aff-cta:hover { background: var(--bg-panel-2); }
.aff-disclosure { font-size: 0.8rem; color: var(--text-muted); margin: 8px 0 0; }
/* Inline "find stays" link on the Accommodation row of the breakdown table */
.aff-inline { display: inline-block; margin-left: 8px; font-size: 0.8rem; font-weight: 600; color: var(--amber-dim); text-decoration: none; border-bottom: 1px dotted var(--amber-dim); white-space: nowrap; }
.aff-inline:hover { color: var(--amber); border-bottom-style: solid; }

/* ---------- Related destinations ---------- */
.related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.related li a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-decoration: none;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
.related li a:hover { border-color: var(--border-strong); }
.related .n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; max-width: 68ch; }

/* ---------- Index page ---------- */
.region-block { margin-bottom: 28px; }
.index-table td a { text-decoration: none; font-weight: 600; }
.index-table td a:hover { text-decoration: underline; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.jump a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; text-decoration: none; font-size: 0.9rem; font-weight: 600; }

/* ---------- Footer ---------- */
footer.foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
footer.foot p { margin: 0 0 6px; }
.foot-links a { color: inherit; }
.foot-sep { margin: 0 8px; }
