/* Korea Travel Toolkit — shared styles
   Light, calm, English-first. No build step, no external fonts. */

:root {
  --bg: #f7f8fa;
  --bg-2: #eef2f8;
  --card: #ffffff;
  --ink: #141a22;
  --ink-2: #3a4552;
  --muted: #68737f;
  --line: #e3e7ec;
  --line-2: #eef1f5;
  --brand: #1f5eff;
  --brand-ink: #1740b5;
  --brand-soft: #e9efff;
  --teal: #0d8f84;
  --teal-soft: #e4f6f3;
  --warm: #e0502f;
  --warm-soft: #fff0ea;
  --warn: #a8620a;
  --warn-soft: #fff6e7;
  --ok: #0d7a5f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .06);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-2: #121a24;
    --card: #151b23;
    --ink: #e8edf3;
    --ink-2: #c2cbd6;
    --muted: #93a0ae;
    --line: #242c36;
    --line-2: #1c232c;
    --brand: #7fa3ff;
    --brand-ink: #a9c2ff;
    --brand-soft: #18233d;
    --teal: #52d6c6;
    --teal-soft: #102c2a;
    --warm: #ff9273;
    --warm-soft: #2c1a14;
    --warn: #efb05e;
    --warn-soft: #2a2114;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  overflow-wrap: break-word;
}

a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -.2px;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .1px; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.header-nav a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
}
.header-nav a:hover { background: var(--line-2); text-decoration: none; }
@media (max-width: 720px) {
  .header-nav a.hide-sm { display: none; }
  .brand small { display: none; }
  .brand { font-size: 15px; }
  .header-nav a { font-size: 13px; padding: 7px 7px; }
}
@media (max-width: 560px) {
  .site-header .bar { flex-wrap: wrap; gap: 4px; padding: 9px 14px 7px; }
  .header-nav { width: 100%; margin-left: 0; }
  .header-nav a { padding: 5px 8px; font-size: 12.5px; }
}

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px 64px; }
.narrow { max-width: 860px; }

.hero {
  padding: 46px 0 10px;
}
.hero .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 5px 11px;
}
.pill-warm { color: var(--warm); background: var(--warm-soft); }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.14;
  letter-spacing: -1.2px;
  font-weight: 800;
}
.hero p.lead {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 17.5px;
  max-width: 700px;
}

/* ---------- search ---------- */
.search-box { position: relative; margin: 4px 0 20px; }
.search-box input {
  width: 100%;
  padding: 15px 16px 15px 46px;
  font: inherit;
  font-size: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.search-box input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.search-box .ico {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  color: var(--muted); display: grid; place-items: center; pointer-events: none;
}

/* ---------- quick links ---------- */
.quick-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 6px 0 8px;
}
.quick {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.quick:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.quick b { font-size: 14.5px; letter-spacing: -.2px; }
.quick span { font-size: 12.5px; color: var(--muted); }

/* ---------- category chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- tool grid ---------- */
.section-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 28px 0 12px;
  font-size: 15px; font-weight: 800; letter-spacing: -.2px;
}
.section-title span { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px 15px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height: 140px;
}
.tool-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow);
}
.tool-card .ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: grid; place-items: center;
  margin-bottom: 2px;
}
.tool-card h3 { margin: 0; font-size: 16px; letter-spacing: -.3px; line-height: 1.32; }
.tool-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tool-card .cat { margin-top: auto; padding-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--teal); }

/* ---------- teaser bands ---------- */
.feature-band {
  margin-top: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-sm);
}
.feature-band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.feature-band-head h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.feature-band-head a { font-size: 13.5px; font-weight: 700; }
.feature-band p { margin: 4px 0 14px; font-size: 14px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.route-mini, .qa-mini {
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--bg);
}
.route-mini:hover, .qa-mini:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.route-mini strong, .qa-mini strong { font-size: 14px; letter-spacing: -.2px; line-height: 1.35; }
.route-mini-city { font-size: 11.5px; font-weight: 800; color: var(--warm); text-transform: uppercase; letter-spacing: .06em; }
.qa-mini .badge { align-self: flex-start; }

/* ---------- breadcrumb, tool head ---------- */
.crumbs { font-size: 12.5px; color: var(--muted); margin: 22px 0 10px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; opacity: .6; }

.tool-head { padding: 4px 0 18px; }
.tool-head h1 { margin: 0 0 8px; font-size: clamp(25px, 3.6vw, 34px); letter-spacing: -.7px; line-height: 1.22; }
.tool-head p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 760px; }

/* ---------- cards & forms ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin: 0 0 14px;
}
.card.tight { padding: 15px 16px; }
.card.tight h3 { margin: 0 0 4px; }
.card h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.3px; }
.card h2:first-child { margin-top: 0; }
.card .sub { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.h-small { font-size: 14px; margin: 0 0 6px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > label, .field > .label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .help { font-size: 12px; color: var(--muted); }
.field .mono { padding: 9px 0; }

input[type="text"], input[type="number"], input[type="date"], input[type="time"],
input[type="url"], select, textarea {
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  width: 100%;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
input[type="range"] { width: 100%; padding: 0; accent-color: var(--brand); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; flex: 0 0 auto; }

.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin: 6px 0; }
.check input { margin-top: 3px; }

.btnrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.btn {
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
.btn:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-sm { font-size: 13px; padding: 7px 11px; border-radius: 8px; }
.btn.active, .btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

/* segmented control */
.seg { display: inline-flex; align-self: flex-start; background: var(--line-2); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button {
  font: inherit; font-size: 13.5px; font-weight: 700;
  border: 0; background: transparent; color: var(--ink-2);
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* results */
.result {
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin: 6px 0 0;
}
.result .big {
  font-family: var(--mono);
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.3;
  margin: 2px 0 4px;
  word-break: break-word;
}
.result .label { font-size: 12.5px; font-weight: 700; color: var(--brand-ink); letter-spacing: .2px; }
.result .note { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }

.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 0; }
.kv dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv dd.mono { font-family: var(--mono); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
}
.stat .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat .v { font-size: 23px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.5px; line-height: 1.25; }
.stat .u { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.stat .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
table.tbl th { font-size: 12.5px; color: var(--muted); font-weight: 700; background: transparent; white-space: nowrap; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr.total td { font-weight: 800; background: var(--line-2); }
table.tbl.comp tbody tr.hl { background: var(--brand-soft); }
table.tbl.comp tbody tr.hl td { font-weight: 700; }
table.tbl input[type="number"] { padding: 6px 8px; font-size: 14px; max-width: 130px; }
table.tbl.options td:first-child { font-weight: 700; }
.scroll-x { overflow-x: auto; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.badge-blue { background: var(--brand-soft); color: var(--brand-ink); }
.badge-green { background: var(--teal-soft); color: var(--teal); }
.badge-warm { background: var(--warm-soft); color: var(--warm); }
.badge-red { background: #ffe5e0; color: #b3261e; }
.badge-gray { background: var(--line-2); color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .badge-red { background: #3a1512; color: #ff9c8f; }
}

.note-box {
  background: var(--warn-soft);
  border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--line));
  color: var(--ink-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
}
.note-box b { color: var(--warn); }

/* checklists and steps */
ul.checklist, ol.steps { margin: 0; padding-left: 0; list-style: none; }
ul.checklist li, ol.steps li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--ink-2);
}
ul.checklist li:last-child, ol.steps li:last-child { border-bottom: 0; }
ul.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
ol.steps { counter-reset: step; }
ol.steps li { counter-increment: step; padding-left: 34px; }
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 9px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}

/* ad slot: hidden until AdSense is configured (assets/js/config.js) */
.ad-slot { display: none; margin: 18px 0; text-align: center; min-height: 90px; }
.ad-slot.on { display: block; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--card); }
.ad-slot .ad-label { font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }

/* prose / FAQ */
.prose { font-size: 15px; color: var(--ink-2); }
.prose h2 { font-size: 18px; color: var(--ink); letter-spacing: -.3px; margin: 26px 0 8px; }
.prose h3 { font-size: 15.5px; color: var(--ink); margin: 18px 0 6px; }
.prose p { margin: 0 0 10px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin: 3px 0; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--line-2); padding: 1px 5px; border-radius: 5px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .bar { max-width: 1120px; margin: 0 auto; padding: 0 18px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer a { color: var(--muted); }
.site-footer .disc { flex: 1 1 340px; line-height: 1.6; }

/* misc */
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 10px);
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* ---------- tax refund ---------- */
.warn-list { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--warn); }
.warn-list li { margin: 2px 0; }
.ok-line { font-size: 13.5px; color: var(--ok); font-weight: 700; }

/* ---------- staff cards ---------- */
.phrase-group { margin-bottom: 14px; }
.phrase-group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.phrase-btns { display: flex; flex-wrap: wrap; gap: 7px; }
.phrase-btn {
  font: inherit; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  padding: 7px 11px; border-radius: 999px; cursor: pointer; text-align: left;
}
.phrase-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.phrase-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.staff-cards { display: grid; gap: 12px; }
.staff-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--warm);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg);
}
.staff-card .sc-ko { font-size: 24px; font-weight: 800; letter-spacing: -.4px; line-height: 1.4; }
.staff-card .sc-rom { font-size: 13px; color: var(--warm); font-weight: 700; margin-top: 4px; }
.staff-card .sc-en { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.staff-card .sc-actions { display: flex; gap: 6px; margin-top: 8px; }

.present-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: #0b0e13;
  color: #fff;
  display: flex; flex-direction: column;
  padding: 22px;
}
.present-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10px 8px; }
.present-stage .p-ko { font-size: clamp(30px, 6.2vw, 76px); font-weight: 800; line-height: 1.35; letter-spacing: -.5px; }
.present-stage .p-rom { font-size: clamp(14px, 1.8vw, 24px); color: #ffb199; margin-top: 18px; font-weight: 700; }
.present-stage .p-en { font-size: clamp(15px, 2vw, 26px); color: #cfd6df; margin-top: 12px; max-width: 900px; }
.present-close {
  align-self: flex-end; background: transparent; border: 1px solid #3a4350; color: #cfd6df;
  width: 42px; height: 42px; border-radius: 50%; font-size: 22px; cursor: pointer;
}
.present-nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 10px; }
.present-nav .btn { background: #1a212b; border-color: #313b47; color: #e6ebf1; }
.present-nav .muted { color: #8a95a3; }

/* ---------- address ---------- */
.taxi-card {
  border: 2px dashed color-mix(in srgb, var(--warm) 45%, var(--line));
  border-radius: 14px;
  padding: 20px;
  background: var(--warm-soft);
  text-align: center;
}
.taxi-ko { font-size: clamp(20px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.3px; line-height: 1.35; }
.taxi-rom { font-size: 13.5px; color: var(--warm); font-weight: 700; margin-top: 6px; }
.taxi-en { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- romanizer ---------- */
.pron { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.pron li { margin: 4px 0; }
.pron b { color: var(--ink); font-family: var(--mono); }

/* ---------- routes ---------- */
.planner .filter-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-label { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 8px; min-width: 92px; }
.planner .chips { margin-bottom: 0; }
.planner-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line-2); margin-top: 6px; flex-wrap: wrap; }

.route-list { display: grid; gap: 16px; }
.route-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.route-card.hidden { display: none; }
.route-city { font-size: 11.5px; font-weight: 800; color: var(--warm); text-transform: uppercase; letter-spacing: .08em; }
.route-head h2 { margin: 3px 0 6px; font-size: 21px; letter-spacing: -.5px; line-height: 1.28; }
.route-head p { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; }
.route-best { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.route-best b { color: var(--ink-2); }
.route-days { display: grid; gap: 8px; }
details.day { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
details.day summary {
  cursor: pointer; list-style: none; padding: 11px 14px;
  font-size: 14px; font-weight: 400; color: var(--ink-2);
  display: flex; gap: 8px; align-items: baseline;
}
details.day summary b { color: var(--brand-ink); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
details.day summary::-webkit-details-marker { display: none; }
details.day summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 800; }
details.day[open] summary::after { content: "–"; }
details.day[open] summary { border-bottom: 1px solid var(--line); background: var(--card); }
.stops { margin: 0; padding: 6px 14px 10px; list-style: none; }
.stops li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.stops li:last-child { border-bottom: 0; }
.stop-time { flex: 0 0 48px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--brand-ink); padding-top: 2px; }
.stop-body b { font-size: 14.5px; }
.stop-body .ko { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.stop-body p { margin: 2px 0 4px; font-size: 13.5px; color: var(--ink-2); }
.stop-body .tip { display: block; font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 5px 9px; }
.route-tips { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.route-tips h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.route-tips ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.route-tips li { margin: 3px 0; }

/* ---------- community ---------- */
.community-toolbar .chips { margin-bottom: 0; }
.qa-list { display: grid; gap: 12px; }
.qa-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}
.qa-card.hidden { display: none; }
.qa-head { display: flex; align-items: flex-start; gap: 10px; }
.qa-head h3 { margin: 0; font-size: 16px; letter-spacing: -.3px; line-height: 1.35; }
.qa-q { margin: 8px 0 8px; font-size: 13.5px; color: var(--muted); }
details.qa-a { border-top: 1px solid var(--line-2); padding-top: 8px; }
details.qa-a summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--brand-ink); list-style: none; }
details.qa-a summary::-webkit-details-marker { display: none; }
details.qa-a summary::before { content: "+"; display: inline-block; width: 14px; color: var(--brand-ink); font-weight: 800; }
details.qa-a[open] summary::before { content: "–"; }
details.qa-a p { margin: 10px 0 4px; font-size: 14px; color: var(--ink-2); }
.qa-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.vote {
  font: inherit; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.vote[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.vote-n { font-variant-numeric: tabular-nums; }
.ask-form .field { margin-bottom: 12px; }
.my-post { border-left: 4px solid var(--teal); }
.qa-delete { font-size: 12px; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; }

/* ---------- holidays ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.cal {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 12px;
  background: var(--bg);
}
.cal h3 { margin: 0 0 6px; font-size: 13.5px; text-align: center; letter-spacing: -.2px; }
.cal table { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; }
.cal th { color: var(--muted); font-weight: 700; font-size: 10.5px; padding-bottom: 3px; }
.cal td { text-align: center; padding: 3px 0; border-radius: 6px; height: 22px; }
.cal td.sun { color: var(--warm); }
.cal td.holiday { background: var(--warm); color: #fff; font-weight: 800; }
.cal td.sub { background: var(--warn-soft); color: var(--warn); font-weight: 800; }
.cal td.weekend:not(.holiday):not(.sub) { color: var(--muted); }
.cal td.today { outline: 2px solid var(--brand); outline-offset: -2px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-holiday { background: var(--warm); }
.sw-sub { background: var(--warn-soft); border: 1px solid var(--warn); }
.sw-weekend { background: var(--line); }

/* ---------- airport ---------- */
.best-pick {
  background: var(--teal-soft);
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink-2);
}
.best-pick b { color: var(--teal); }
.best-pick .bp-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 800; margin-bottom: 4px; }
tr.recommended td { background: var(--teal-soft); font-weight: 700; }

/* ---------- budget ---------- */
.budget-tbl input[type="number"] { max-width: 110px; }

/* ---------- essentials ---------- */
.emergency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.em {
  display: flex; flex-direction: column; gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
}
.em:hover { text-decoration: none; border-color: var(--warm); }
.em b { font-size: 22px; font-family: var(--mono); letter-spacing: -.5px; color: var(--warm); }
.em span { font-size: 13.5px; font-weight: 700; }
.em small { font-size: 11.5px; color: var(--muted); }
.plug-card { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg); }
.plug-icon { color: var(--brand-ink); flex: 0 0 auto; }
.plug-card .kv { grid-template-columns: auto 1fr; font-size: 13px; }
.app-list { display: grid; gap: 8px; }
.app { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--bg); cursor: pointer; }
.app input { margin-top: 3px; }
.app:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.phrase-list { display: grid; gap: 6px; }
.phrase-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.phrase-row div { display: flex; flex-direction: column; }
.phrase-row b { font-size: 16px; }
.phrase-row span { font-size: 12px; color: var(--warm); font-weight: 700; }
.phrase-row small { font-size: 12.5px; color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding-top: 34px; }
  .quick-row { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px; }
  .route-card, .qa-card { padding: 16px; }
  .stop-time { flex-basis: 42px; }
  .filter-label { min-width: 100%; padding-top: 0; }
}

/* ---------- print: phrase cards only ---------- */
@media print {
  body.printing { background: #fff; color: #000; }
  body.printing .site-header,
  body.printing .site-footer,
  body.printing .crumbs,
  body.printing .tool-head,
  body.printing .ad-slot,
  body.printing .prose,
  body.printing .toast,
  body.printing .present-overlay,
  body.printing .btnrow,
  body.printing .card:first-of-type { display: none !important; }
  body.printing .wrap { padding: 0; max-width: none; }
  body.printing .card { border: 0; box-shadow: none; padding: 0; margin: 0; }
  body.printing .staff-cards { display: block; }
  body.printing .staff-card {
    border: 1px solid #111; border-left: 6px solid #111;
    padding: 18px; margin: 0 0 12px; background: #fff;
    page-break-inside: avoid;
  }
  body.printing .staff-card .sc-ko { font-size: 34px; color: #000; }
  body.printing .staff-card .sc-rom { color: #444; }
  body.printing .staff-card .sc-en { color: #222; }
  body.printing .staff-card .sc-actions { display: none; }
}

/* ---------- 100-route hub (2026 expansion) ---------- */
.hub-hero { padding: 8px 0 2px; }
.hub-hero h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -1.2px; line-height: 1.1; margin: 10px 0 12px; }
.hub-hero .lead { font-size: 17px; color: var(--ink-2); max-width: 760px; margin: 0 0 18px; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hub-stats .pill { font-size: 12.5px; }

.hub-panel {
  z-index: 20;
  background: color-mix(in srgb, var(--card) 96%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 6px 0 16px; box-shadow: var(--shadow-sm);
}
.hub-panel .filter-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.hub-panel .filter-row:last-child { margin-bottom: 0; }
.hub-panel .filter-label { padding-top: 7px; min-width: 82px; }
.hub-panel .chips { margin-bottom: 0; gap: 6px; }
.hub-panel .chip { font-size: 12.5px; padding: 6px 11px; }
.hub-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; }
.hub-search input { border: 0; background: transparent; font: inherit; font-size: 15px; width: 100%; color: var(--ink); outline: none; }
.hub-search .ico { color: var(--muted); display: inline-flex; }
.hub-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.hub-foot .sort-note { font-size: 12.5px; color: var(--muted); }

.rcard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .rcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rcard-grid { grid-template-columns: 1fr; } }

.rcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.rcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow); }
.rcard.hidden { display: none; }
.rcard > a { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.rcard > a:hover { text-decoration: none; }
.rcard-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.rcard-media picture { display: block; height: 100%; }
.rcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.01); transition: transform .35s ease; }
.rcard:hover .rcard-media img { transform: scale(1.05); }
.rcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,20,.34) 0%, rgba(8,12,20,0) 42%, rgba(8,12,20,.18) 100%); }
.rcard-media .rcard-city, .rcard-media .rcard-days { position: absolute; top: 10px; z-index: 1; }
.rcard-media .rcard-city { left: 10px; color: #fff; background: rgba(10,14,22,.55); border-radius: 999px; padding: 3px 9px; backdrop-filter: blur(4px); }
.rcard-media .rcard-days { right: 10px; color: #fff; background: rgba(31,94,255,.92); }
.rcard-body { display: flex; flex-direction: column; gap: 7px; padding: 13px 15px 14px; flex: 1; }
.rcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rcard-city { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--warm); }
.rcard-days { font-size: 11px; font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.rcard h3 { margin: 0; font-size: 17px; line-height: 1.28; letter-spacing: -.35px; }
.rcard p { margin: 0; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.rcard-meta span { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.rcard-meta span.hard { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); background: var(--warn-soft); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 22px 0 6px; }
.pg { font: inherit; font-size: 13.5px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.pg:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-ink); }
.pg.is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pg:disabled { opacity: .4; cursor: default; }
.pg-gap { color: var(--muted); padding: 0 2px; }

.region-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (max-width: 980px) { .region-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .region-strip { grid-template-columns: 1fr; } }
.region-card { display: block; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.region-card:hover { border-color: var(--brand); text-decoration: none; }
.region-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.region-card span { font-size: 12.5px; color: var(--muted); }
.region-card em { display: block; font-style: normal; font-size: 12px; font-weight: 800; color: var(--brand-ink); margin-top: 6px; }

/* ---------- route detail page ---------- */
.route-hero { padding: 4px 0 0; }
.route-hero h1 { font-size: clamp(27px, 4vw, 40px); letter-spacing: -1px; line-height: 1.12; margin: 8px 0 10px; }
.route-hero .deck { font-size: 17px; color: var(--ink-2); max-width: 780px; margin: 0 0 16px; }
.route-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.route-kicker .route-city { font-size: 11.5px; }

.statbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); margin: 10px 0 18px; }
.statbar > div { padding: 12px 14px; border-right: 1px solid var(--line-2); }
.statbar > div:last-child { border-right: 0; }
.statbar dt { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 3px; }
.statbar dd { margin: 0; font-size: 14px; font-weight: 650; color: var(--ink); line-height: 1.35; }
@media (max-width: 820px) { .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .statbar > div:nth-child(2n) { border-right: 0; } .statbar > div { border-bottom: 1px solid var(--line-2); } }
@media (max-width: 460px) { .statbar { grid-template-columns: 1fr; } .statbar > div { border-right: 0; } }

.route-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .route-cols { grid-template-columns: 1fr; } }

.access-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.access-box h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-ink); margin: 0 0 6px; }
.access-box p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.dayhead { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dayhead b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.dayhead span { font-size: 14.5px; color: var(--ink-2); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.timeline > li:last-child { border-bottom: 0; }
.timeline .t { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--brand-ink); padding-top: 3px; }
.timeline h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.35; }
.timeline h3 .ko { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.timeline p { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.timeline .tip { display: block; font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 6px 10px; }
.timeline .maplink { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--brand-ink); border-bottom: 1px dotted var(--brand); }

.sidestack { display: grid; gap: 14px; position: sticky; top: 70px; }
@media (max-width: 900px) { .sidestack { position: static; } }
.sidecard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; box-shadow: var(--shadow-sm); }
.sidecard h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.sidecard ul { margin: 0; padding-left: 0; list-style: none; font-size: 13.5px; }
.sidecard li { margin: 0 0 8px; color: var(--ink-2); }
.sidecard li:last-child { margin-bottom: 0; }
.sidecard p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.tool-mini { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.tool-mini:last-child { border-bottom: 0; }
.tool-mini .ico { flex: 0 0 auto; color: var(--brand); }
.tool-mini b { display: block; font-size: 13.5px; }
.tool-mini span { font-size: 12px; color: var(--muted); }

.prevnext { display: flex; gap: 10px; justify-content: space-between; margin: 26px 0 10px; flex-wrap: wrap; }
.prevnext a { flex: 1 1 220px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--card); font-size: 13.5px; }
.prevnext a span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.prevnext a:hover { border-color: var(--brand); text-decoration: none; }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }

.region-head { padding: 4px 0 0; }
.region-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; margin: 8px 0 10px; }
.region-head .lead { font-size: 16.5px; color: var(--ink-2); max-width: 780px; }
.region-notes { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 14px 0 20px; }
.region-notes h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.region-notes ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.region-notes li { margin: 4px 0; }
.timeline + .dayhead, .dayhead:first-of-type { margin-top: 18px; }

/* ---------- illustrated covers (art pass) ---------- */
.cover-hero {
  position: relative;
  margin: 6px 0 18px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.cover-hero-media { display: block; height: clamp(250px, 34vw, 430px); }
.cover-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,10,18,.42) 0%, rgba(6,10,18,.12) 30%, rgba(6,10,18,.55) 62%, rgba(6,10,18,.86) 100%);
}
.cover-hero-inner {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(16px, 3vw, 30px);
  display: flex; align-items: flex-end;
}
.cover-hero-text { max-width: 780px; color: #fff; }
.cover-hero h1 {
  font-size: clamp(25px, 3.6vw, 40px);
  line-height: 1.1; letter-spacing: -1px;
  margin: 8px 0; color: #fff;
  text-wrap: balance;
  text-shadow: 0 1px 20px rgba(4,8,16,.4);
}
.cover-hero .deck { font-size: clamp(13.5px, 1.4vw, 16px); line-height: 1.5; color: rgba(255,255,255,.92); margin: 0; max-width: 700px; }
.cover-hero .pill-row { margin: 0 0 2px; }
.cover-hero .pill { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px); font-size: 12px; }
.cover-hero .route-kicker { margin-bottom: 4px; }
.cover-hero .route-kicker .route-city { color: #fff; background: rgba(31,94,255,.92); border-radius: 999px; padding: 3px 10px; }
.cover-hero .route-kicker .pill { font-size: 11.5px; }
@media (max-width: 620px) {
  .cover-hero-media { height: 260px; }
  .cover-hero .deck { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.region-cover .cover-hero-media { height: clamp(210px, 26vw, 320px); }
.hub-cover .cover-hero-media { height: clamp(280px, 38vw, 460px); }

/* travel-style strip on the hub */
.style-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
@media (max-width: 900px) { .style-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .style-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.style-card { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--bg-2); }
.style-card:hover { text-decoration: none; border-color: var(--brand); }
.style-pic { display: block; aspect-ratio: 4 / 3; }
.style-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.style-card:hover .style-pic img { transform: scale(1.06); }
.style-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,18,0) 35%, rgba(6,10,18,.78) 100%); }
.style-body { position: absolute; left: 11px; right: 11px; bottom: 9px; z-index: 1; color: #fff; display: flex; flex-direction: column; gap: 1px; }
.style-body b { font-size: 13.5px; line-height: 1.2; letter-spacing: -.2px; }
.style-body span { font-size: 11.5px; color: rgba(255,255,255,.78); }

/* homepage featured routes */
.route-mini .mini-pic { display: block; aspect-ratio: 16 / 9; margin: -12px -14px 8px; overflow: hidden; border-radius: 11px 11px 0 0; }
.route-mini .mini-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.route-mini-body { display: flex; flex-direction: column; gap: 3px; }

/* ---------- route map (Leaflet + OpenStreetMap) ---------- */
.routemap { margin: 4px 0 24px; }
.routemap-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.routemap-head .section-title { margin: 0; }
.routemap-head p { margin: 0; flex: 1 1 260px; }
.routemap-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .routemap-grid { grid-template-columns: 1fr; } }

.map-canvas {
  position: relative;
  height: 430px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  z-index: 0;
}
@media (max-width: 860px) { .map-canvas { height: 340px; } }
.map-canvas.map-offline {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(31,94,255,.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(31,94,255,.06) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(31,94,255,.06) 0 1px, transparent 1px 44px),
    var(--bg-2);
}
.map-note {
  display: none;
  position: absolute; left: 10px; top: 10px; right: 10px; z-index: 500;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 11px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.map-canvas.map-offline .map-note, .map-canvas.map-failed .map-note { display: block; }
.map-noscript { padding: 16px; font-size: 13.5px; color: var(--ink-2); }

/* numbered pins */
.rm-pin {
  background: var(--brand);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font: 700 12.5px/1 var(--mono);
  box-shadow: 0 2px 6px rgba(10,20,40,.35);
  cursor: pointer;
}
.rm-pin.is-active { background: var(--warm); transform: scale(1.15); }
.leaflet-container { font: inherit; background: var(--bg-2); }
.leaflet-tile-pane { filter: saturate(.74) contrast(1.01) brightness(1.05); }
.leaflet-popup-content { margin: 10px 12px; font-size: 13px; }
.leaflet-popup-content b { display: block; font-size: 14px; margin-bottom: 1px; }
.leaflet-popup-content .ko { color: var(--muted); font-size: 12.5px; }
.leaflet-popup-content .lk { display: inline-block; margin-top: 6px; font-weight: 700; }
.leaflet-popup-content .tm { font-family: var(--mono); font-size: 11.5px; color: var(--brand-ink); }

.map-side { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-sm); padding: 12px 14px 8px; max-height: 430px; overflow: auto; }
@media (max-width: 860px) { .map-side { max-height: none; } }
.map-side-title { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.map-index { list-style: none; margin: 0; padding: 0; }
.map-index li { margin: 0; }
.map-index li.mi-day { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--warm); padding: 10px 4px 4px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.map-index li.mi-day:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.map-index a { display: flex; align-items: center; gap: 9px; padding: 7px 4px; border-radius: 9px; color: inherit; border-bottom: 1px solid var(--line-2); }
.map-index li:last-child a { border-bottom: 0; }
.map-index a:hover, .map-index a.is-active { background: var(--brand-soft); text-decoration: none; }
.mi-n { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 11.5px/22px var(--mono); text-align: center; }
.map-index a.is-active .mi-n { background: var(--warm); }
.mi-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mi-t b { font-size: 13px; line-height: 1.25; letter-spacing: -.15px; }
.mi-t i { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-time { font-family: var(--mono); font-size: 11.5px; color: var(--brand-ink); font-weight: 700; }

.pin-no { display: inline-block; min-width: 19px; height: 19px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font: 700 10.5px/19px var(--mono); text-align: center; margin-right: 7px; vertical-align: 1px; }
