:root {
  --bg: #f3eee4;
  --ink: #172033;
  --muted: #5d6b7c;
  --line: #e3d7c6;
  --card: #fffdf8;
  --blue: #143e72;
  --blue-2: #1f5f9e;
  --orange: #e15c2e;
  --green: #0e6b4d;
  --warn: #fff4df;
  --warn-line: #efd3a4;
  --danger: #8d2d2d;
  --shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at -10% -10%, #fde4cf 0%, transparent 55%),
    radial-gradient(800px 380px at 110% 0%, #d7e6f6 0%, transparent 50%),
    var(--bg);
  font-family: "Be Vietnam Pro", "Noto Sans KR", "Noto Sans", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 12px; }

.wrap { width: min(980px, calc(100% - 32px)); margin: 0 auto; }
.top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 14px 0 8px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--blue);
  position: relative;
  flex: none;
}
.mark::before, .mark::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #f4efe4;
}
.mark::before { left: 6px; }
.mark::after { right: 6px; background: var(--orange); }
.mark i {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 17px;
  height: 3px;
  background: #f4efe4;
}
.brand strong { display: block; font-size: 1.15rem; letter-spacing: -0.03em; }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; }
.langs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.langs a, .alert-link {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.8);
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}
.langs a[aria-current="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.topnav { display: none; gap: 6px; }
.topnav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
}
.topnav a[aria-current="page"] { background: white; }
.alert-link { justify-self: start; }

main { padding: 8px 0 96px; }
h1 { font-size: clamp(1.85rem, 5vw, 3.15rem); line-height: 1.12; letter-spacing: -0.035em; margin: 0.15rem 0 0.7rem; }
h2 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.lede { font-size: 1.08rem; color: #314155; max-width: 42rem; }
.eyebrow { margin: 0; color: var(--orange); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.78rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn.danger { background: var(--danger); }
.grid { display: grid; gap: 12px; }
.cards { grid-template-columns: 1fr; }
.card, .ticket, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card h2 { margin-top: 0; }
.card p { margin: 0.3rem 0 0; color: #314155; }
.card a.stretch { text-decoration: none; color: inherit; display: block; }
.muted { color: var(--muted); }
.callout {
  background: var(--warn);
  border: 1px solid var(--warn-line);
  border-radius: 14px;
  padding: 12px 14px;
}
.callout.review { background: #f4f0ff; border-color: #ddd4f3; font-size: 0.92rem; }
.callout.bad { background: #fdecec; border-color: #f0c6c6; }
.callout.ok { background: #e8f6ef; border-color: #b7e0cb; }
.metro { display: flex; align-items: center; gap: 28px; margin: 8px 0 4px; }
.stop {
  background: var(--blue);
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  position: relative;
}
.stop + .stop::before {
  content: "";
  position: absolute;
  right: calc(100% + 0px);
  width: 28px;
  top: 50%;
  height: 4px;
  background: var(--blue);
  transform: translateY(-50%);
}
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 0.92rem; }
.bar { height: 8px; background: #efe6d8; border-radius: 99px; overflow: hidden; grid-column: 1 / -1; }
.bar i { display: block; height: 8px; background: var(--blue); }
.bar i.alt { background: var(--orange); }
.bar i.vn { width: 58.5%; }
.bar i.uz { width: 12.6%; }
.bar i.ma { width: 34%; }
.bar i.lang { width: 33%; }
.bar i.ba { width: 22%; }

.filters, form.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
  font: inherit;
  font-weight: 450;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #cfc3b2;
  background: white;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ticket { display: grid; gap: 6px; }
.ticket .price { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.03em; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  background: #f3efe6;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
.badge {
  display: inline-flex;
  border: 1.5px dashed var(--orange);
  color: #9a3412;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.prose h2 { margin-top: 1.3rem; }
.prose p, .prose li { line-height: 1.65; }
.prose ul { padding-left: 1.2rem; }
.token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  word-break: break-all;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tabbar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 2px;
}
.tabbar a[aria-current="page"] { color: var(--blue); }
.tabbar svg { display: block; margin: 0 auto 2px; width: 22px; height: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-result { display: grid; gap: 8px; }
.hours-result strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.split { display: grid; gap: 12px; }
.checklist { padding-left: 1.1rem; }
.checklist li { margin: 0.45rem 0; }
.pre { white-space: pre-wrap; }

@media (min-width: 760px) {
  .cards, .split { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
}
@media (min-width: 900px) {
  .top { grid-template-columns: auto 1fr auto auto; }
  .topnav { display: flex; }
  .alert-link { justify-self: end; }
  .tabbar { display: none; }
  main { padding-bottom: 48px; }
}
