/* 144Hi — editorial travel-guide styling.
   No external fonts or assets: the whole site must render on a hotel wifi
   in 200ms, and our readers are frequently on a metered roaming connection. */

:root {
  --ink: #1a1714;
  --ink-soft: #5c534a;
  --ink-faint: #8a7f74;
  --paper: #fbf8f4;
  --card: #ffffff;
  --line: #e8e0d6;
  --accent: #c8352c;
  --accent-soft: #fdf0ee;
  --gold: #a97b1f;
  --gold-soft: #fbf3e0;
  --good: #2f7d59;
  --good-soft: #ecf7f1;
  --radius: 12px;
  --wrap: 1080px;
  --shadow: 0 1px 2px rgba(26, 23, 20, .05), 0 8px 24px -12px rgba(26, 23, 20, .18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0ebe4;
    --ink-soft: #b3a89c;
    --ink-faint: #857b71;
    --paper: #16130f;
    --card: #1f1b17;
    --line: #302a24;
    --accent: #ef7a70;
    --accent-soft: #2c1a18;
    --gold: #d8ab54;
    --gold-soft: #2a2115;
    --good: #64c095;
    --good-soft: #16281f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 ui-sans-serif, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
        "Noto Sans", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; top: 0; z-index: 99; }

/* focus ring — never remove the outline without replacing it */
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.head-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 62px; flex-wrap: wrap; padding-block: 8px;
}
.brand { display: flex; align-items: baseline; gap: 7px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark {
  background: var(--accent); color: #fff; font-size: 15px; letter-spacing: .5px;
  padding: 3px 7px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.brand-name { font-size: 18px; letter-spacing: -.2px; }

.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 6px 10px; border-radius: 7px; white-space: nowrap;
}
.nav a:hover { background: var(--card); color: var(--ink); }
.nav a[aria-current] { color: var(--accent); background: var(--accent-soft); }

.lang { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang a {
  font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 6px;
  color: var(--ink-faint); text-decoration: none;
}
.lang a.on { background: var(--accent); color: #fff; }

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

.hero { padding: 56px 0 40px; }
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
h1 {
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.12; letter-spacing: -.022em;
  margin: 0 0 18px; max-width: 20ch; font-weight: 700;
}
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 62ch; margin: 0 0 26px; }

/* ---------- sections ---------- */

section { padding: 34px 0; }
h2 {
  font-size: clamp(22px, 3.2vw, 29px); line-height: 1.2; letter-spacing: -.018em;
  margin: 0 0 8px; font-weight: 700;
}
h3 { font-size: 18px; margin: 26px 0 6px; letter-spacing: -.01em; }
.sub { color: var(--ink-soft); margin: 0 0 22px; max-width: 66ch; }
p { margin: 0 0 15px; max-width: 70ch; }
ul, ol { max-width: 70ch; padding-left: 22px; }
li { margin-bottom: 7px; }

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

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: 12px;
  background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 15px;
}

/* ---------- callouts ---------- */

.note {
  border-left: 3px solid var(--gold); background: var(--gold-soft);
  padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 22px 0;
}
.note.warn { border-color: var(--accent); background: var(--accent-soft); }
.note.ok { border-color: var(--good); background: var(--good-soft); }
.note p:last-child { margin-bottom: 0; }
.note strong { font-weight: 700; }

/* ---------- checker ---------- */

.checker {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin: 26px 0;
}
.checker label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.checker select {
  width: 100%; max-width: 420px; font: inherit; font-size: 16px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); color: var(--ink);
}
.result { margin-top: 20px; }
.result:empty { display: none; }
.route {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px;
  background: var(--paper);
}
.route.best { border-color: var(--good); background: var(--good-soft); }
.route-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 5px; margin-bottom: 8px;
  background: var(--good); color: #fff;
}
.route:not(.best) .route-tag { background: var(--ink-faint); }
.route h4 { margin: 0 0 6px; font-size: 17px; }
.route p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- table ---------- */

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 700; }
tbody tr:hover { background: var(--card); }

/* ---------- country pills ---------- */

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding: 0; list-style: none; max-width: none; }
.pills li {
  font-size: 13.5px; background: var(--card); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 20px; margin: 0; color: var(--ink-soft);
}

/* ---------- faq ---------- */

.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 14px; color: var(--ink-soft); }

/* ---------- cta ---------- */

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15.5px;
  padding: 12px 22px; border-radius: 9px; background: var(--accent); color: #fff;
}
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* ---------- checklist ---------- */

.check { list-style: none; padding: 0; max-width: 70ch; }
.check li {
  padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line); position: relative;
}
.check li::before {
  content: ''; position: absolute; left: 2px; top: 17px;
  width: 15px; height: 15px; border: 2px solid var(--ink-faint); border-radius: 4px;
}
.check strong { display: block; }
.check span { color: var(--ink-soft); font-size: 15px; }

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

.site-foot {
  border-top: 1px solid var(--line); margin-top: 50px; padding: 30px 0 46px;
  font-size: 14px; color: var(--ink-faint);
}
.site-foot p { max-width: 78ch; margin-bottom: 8px; }
.foot-verified { font-weight: 600; color: var(--ink-soft); }

@media (max-width: 640px) {
  .hero { padding: 34px 0 26px; }
  .head-inner { gap: 10px; }
  .nav { order: 3; width: 100%; }
  .checker { padding: 20px; }
}
