/* Pikkola — styles */

:root {
  --bg: #08090b;
  --bg-soft: #0b0d10;
  --surface: #0f1116;
  --surface-2: #12151b;
  --surface-3: #171b22;
  --border: rgba(255, 255, 255, .075);
  --border-mid: rgba(255, 255, 255, .11);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #e9ecf1;
  --text-dim: #b6bcc6;
  --muted: #8d949f;
  --faint: #666e7a;
  --accent: #8f9bff;
  --accent-ink: #0a0b10;
  --accent-soft: rgba(143, 155, 255, .13);
  --good: #3ddc97;
  --good-bg: rgba(61, 220, 151, .13);
  --good-text: #a9f2d2;
  --stretch: #efb45f;
  --stretch-bg: rgba(239, 180, 95, .12);
  --stretch-text: #f4d6a8;
  --night-bg: rgba(255, 255, 255, .022);
  --night-text: #6a7380;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 30px 60px -40px rgba(0, 0, 0, .9);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial,
    "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
  --bg: #fbfbfc;
  --bg-soft: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fcfcfd;
  --surface-3: #f4f5f7;
  --border: rgba(12, 16, 26, .085);
  --border-mid: rgba(12, 16, 26, .13);
  --border-strong: rgba(12, 16, 26, .22);
  --text: #14171d;
  --text-dim: #3d434e;
  --muted: #646b77;
  --faint: #8b919c;
  --accent: #4f5bd5;
  --accent-soft: rgba(79, 91, 213, .09);
  --good: #109c68;
  --good-bg: rgba(16, 156, 104, .12);
  --good-text: #0a6b48;
  --stretch: #b57612;
  --stretch-bg: rgba(197, 138, 33, .14);
  --stretch-text: #8a5a09;
  --night-bg: rgba(12, 16, 26, .028);
  --night-text: #8b919c;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 24px 48px -36px rgba(12, 16, 26, .45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(143, 155, 255, .11), transparent 70%),
    radial-gradient(700px 380px at 88% 6%, rgba(61, 220, 151, .05), transparent 70%);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(79, 91, 213, .08), transparent 70%),
    radial-gradient(700px 380px at 88% 6%, rgba(16, 156, 104, .04), transparent 70%);
}

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.12; }
p { margin: 0; }
button { font: inherit; color: inherit; }
svg { display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 9px; letter-spacing: -0.02em; }
.brand-mark { width: 24px; height: 24px; color: var(--accent); }
.brand-name { font-size: 16px; font-weight: 620; letter-spacing: -0.02em; }

.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  font-size: 13.5px; color: var(--muted); padding: 7px 10px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-3); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.lang-btn {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 550; letter-spacing: .01em;
  padding: 4px 8px; border-radius: 7px; cursor: pointer; transition: .15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 0 var(--border) inset; }

.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  border-radius: 10px; cursor: pointer; transition: .15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.small { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.small svg { width: 15px; height: 15px; }

.ico-sun { display: none; }
[data-theme="light"] .ico-sun { display: block; }
[data-theme="light"] .ico-moon { display: none; }

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

.hero { padding: 56px 0 26px; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, var(--border-mid) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(760px 300px at 50% 10%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(760px 300px at 50% 10%, #000 0%, transparent 78%);
  opacity: .5;
}
.hero .wrap { z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 550;
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 3px var(--good-bg);
}

.hero h1 {
  margin-top: 14px;
  text-wrap: balance;
  font-size: clamp(2.05rem, 1.35rem + 3.1vw, 3.5rem);
  max-width: 19ch;
  letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero .lede {
  margin-top: 18px; max-width: 60ch; color: var(--muted); font-size: 15.5px;
}

/* ---------- card / planner ---------- */

.planner-section { padding-top: 26px; }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.people { display: flex; flex-wrap: wrap; gap: 8px; }

.person {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 8px 6px 10px; min-height: 38px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 11px;
}
.person-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.person-main { display: flex; flex-direction: column; line-height: 1.15; }
.person-name {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  font-size: 13px; font-weight: 560; color: var(--text);
}
.person-name:hover { color: var(--accent); }
.person-meta { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.person-clock { color: var(--text-dim); }
.person-hours {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}
.person-hours:hover { color: var(--text); }
.person-x {
  border: 0; background: none; color: var(--faint); cursor: pointer;
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; padding: 0;
}
.person-x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
[data-theme="light"] .person-x:hover { background: rgba(12, 16, 26, .06); }
.person-x svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface-3); color: var(--text-dim);
  font-size: 13px; font-weight: 540; cursor: pointer; transition: .15s ease; white-space: nowrap;
}
.btn:hover { color: var(--text); border-color: var(--border-strong); }
.btn .ico { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.btn-ghost { background: transparent; border-style: dashed; color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-3); }
.btn-quiet { background: transparent; padding: 6px 10px; font-size: 12.5px; }
.btn-quiet:hover { background: var(--surface-3); }
.btn-primary {
  background: var(--text); color: var(--bg); border-color: transparent; font-weight: 600;
}
.btn-primary:hover { background: var(--text); color: var(--bg); opacity: .9; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-3) 40%, transparent);
}
.date-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.date-field { position: relative; display: inline-flex; }
.date-field input {
  font: inherit; font-size: 13px; font-weight: 550; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  padding: 7px 10px; min-width: 150px;
}
.date-field input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

.toolbar-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.select-field {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 550;
}
.select-field select {
  font: inherit; font-size: 12.5px; font-weight: 520; text-transform: none; letter-spacing: 0;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 8px;
}

/* ---------- best hours ---------- */

.best { padding: 16px 16px 4px; }
.best-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.best-head h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 560; }
.best-head p { font-size: 11.5px; color: var(--faint); }

.best-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.best-card {
  text-align: left; padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-3);
  cursor: pointer; transition: .16s ease; display: flex; flex-direction: column; gap: 3px;
}
.best-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.best-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.best-rank { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.best-time { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.best-meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.best-flag { display: inline-flex; align-items: center; gap: 4px; }
.best-flag i { width: 5px; height: 5px; border-radius: 50%; }
.best-empty {
  grid-column: 1 / -1; font-size: 12.5px; color: var(--muted);
  padding: 10px 12px; border: 1px dashed var(--border-mid); border-radius: 11px;
}

/* ---------- grid ---------- */

.grid-wrap {
  overflow-x: auto; overflow-y: hidden; padding: 4px 16px 0;
  scrollbar-width: thin;
}
.grid-wrap::-webkit-scrollbar { height: 6px; }
.grid-wrap::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
.grid-wrap::-webkit-scrollbar-track { background: transparent; }

.grid {
  display: grid;
  grid-template-columns: 118px repeat(24, minmax(40px, 1fr));
  min-width: 100%;
  outline: none;
}
.grid .gh {
  font-size: 10.5px; color: var(--muted); font-weight: 550; letter-spacing: .02em;
  text-align: center; padding: 6px 0 7px; border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.grid .gh.weekend { color: var(--faint); }
.grid .gh.sel-col { color: var(--text); }
.grid .gh.sel-col::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.grid .city {
  position: sticky; left: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 2px; height: 40px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  font-size: 12.5px; font-weight: 550; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grid-wrap.scrolled .city { box-shadow: 8px 0 12px -12px rgba(0, 0, 0, .8); }
.grid .city .person-dot { flex: none; }
.grid .cell {
  height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-variant-numeric: tabular-nums; letter-spacing: .01em;
  border-bottom: 1px solid transparent; cursor: pointer; position: relative;
  transition: background .12s ease, box-shadow .12s ease;
}
.grid .cell.good { background: var(--good-bg); color: var(--good-text); }
.grid .cell.stretch { background: var(--stretch-bg); color: var(--stretch-text); }
.grid .cell.night { background: var(--night-bg); color: var(--night-text); }
.grid .cell.hour-edge { border-left: 1px solid var(--border); }
.grid .cell.sel-col { box-shadow: inset 1px 0 0 var(--accent), inset -1px 0 0 var(--accent); }
.grid .cell.row-start.sel-col { box-shadow: inset 1px 0 0 var(--accent), inset -1px 0 0 var(--accent), inset 0 1px 0 var(--accent); }
.grid .cell.sel-col.row-end { box-shadow: inset 1px 0 0 var(--accent), inset -1px 0 0 var(--accent), inset 0 -1px 0 var(--accent); }
.grid .cell.hover-col { background-color: color-mix(in srgb, var(--accent) 12%, transparent); }
.grid .gh.corner {
  text-align: left; padding-left: 2px; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--faint); font-weight: 600;
  display: flex; align-items: center; border-right: 1px solid var(--border);
  background: var(--surface); position: sticky; left: 0; z-index: 3;
}
.grid .cell:hover { filter: brightness(1.18); }
.grid .city:hover { color: var(--text); }
.grid .now-line {
  position: absolute; top: 0; bottom: 0; width: 1px; background: var(--accent);
  opacity: .55; pointer-events: none;
}

.legend {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 18px 0; font-size: 11.5px; color: var(--muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend .sw.good { background: var(--good); opacity: .85; }
.legend .sw.stretch { background: var(--stretch); opacity: .85; }
.legend .sw.night { background: var(--night-text); opacity: .55; }
.legend-hint { margin-left: auto; color: var(--faint); }

/* ---------- detail ---------- */

.detail {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px;
  align-items: start; padding: 16px 18px 18px; margin-top: 12px;
  border-top: 1px solid var(--border);
}
.detail-main { min-width: 0; }
.detail-kicker {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600;
}
.detail-when { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 3px; }
.detail-when span { font-variant-numeric: tabular-nums; }
.detail-cities { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 12px; }
.detail-city {
  display: inline-flex; align-items: baseline; gap: 7px;
  border: 1px solid var(--border); background: var(--surface-3);
  border-radius: 8px; padding: 5px 9px; font-size: 12px;
}
.detail-city b { font-weight: 550; color: var(--text); }
.detail-city span { color: var(--muted); font-variant-numeric: tabular-nums; }
.detail-city.tone-good { border-color: color-mix(in srgb, var(--good) 32%, transparent); }
.detail-city.tone-stretch { border-color: color-mix(in srgb, var(--stretch) 30%, transparent); }
.detail-city.tone-night { border-color: color-mix(in srgb, var(--night-text) 34%, transparent); }

.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.detail-note { font-size: 11.5px; color: var(--faint); margin-top: 10px; }

.under-card { margin-top: 12px; font-size: 12px; color: var(--faint); text-align: center; }

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

.section { padding: 76px 0 0; }
.section h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin-top: 12px; max-width: 22ch; text-wrap: balance; }

.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin-top: 32px; background: var(--border); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
}
.step { background: var(--surface); padding: 22px 22px 26px; }
.step-no { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .1em; }
.step h3 { font-size: 15.5px; margin-top: 14px; letter-spacing: -0.015em; }
.step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.note-block {
  margin-top: 28px; padding: 26px 28px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-soft);
}
.note-block h3 { font-size: 15.5px; }
.note-block p { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 78ch; line-height: 1.7; }

.faq-list { margin-top: 30px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary {
  cursor: pointer; padding: 16px 30px 16px 2px; font-size: 14.5px; font-weight: 550;
  list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--faint); font-size: 17px; font-weight: 400; transition: .2s ease;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { padding: 0 40px 18px 2px; color: var(--muted); font-size: 13.5px; line-height: 1.7; max-width: 88ch; }

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

.site-footer { margin-top: 88px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 30px 0 34px;
}
.footer-brand { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.footer-brand .brand-name { font-size: 14px; }
.footer-brand p { font-size: 12.5px; color: var(--faint); }
.footer-nav { display: flex; gap: 18px; margin-left: auto; }
.footer-nav a { font-size: 12.5px; color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-fine { font-size: 12px; color: var(--faint); width: 100%; }

.noscript {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--stretch-bg); color: var(--stretch-text);
  padding: 12px 20px; font-size: 13px; text-align: center; border-top: 1px solid var(--border-mid);
}

/* ---------- modal / picker ---------- */

.modal {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  padding: 20px; background: rgba(4, 5, 8, .66); backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal-panel {
  width: min(500px, 100%); max-height: min(78vh, 620px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border-mid); border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); overflow: hidden;
}
.modal-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.search-wrap { position: relative; margin-top: 10px; }
.search-wrap svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; stroke: var(--faint); fill: none; stroke-width: 1.8; stroke-linecap: round;
}
#citySearch {
  width: 100%; font: inherit; font-size: 13.5px; color: var(--text);
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 10px 9px 32px;
}
#citySearch::placeholder { color: var(--faint); }
.city-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.city-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; background: transparent; border-radius: 8px;
  cursor: pointer; text-align: left;
}
.city-opt:hover, .city-opt.active { background: var(--surface-3); }
.city-flag { font-size: 15px; width: 20px; text-align: center; }
.city-opt-name { font-size: 13px; font-weight: 520; }
.city-opt-region { font-size: 11.5px; color: var(--faint); margin-left: auto; font-variant-numeric: tabular-nums; }
.city-empty { padding: 22px 12px; text-align: center; font-size: 12.5px; color: var(--faint); }

/* ---------- hours editor ---------- */

.hours-panel {
  width: min(340px, 100%); padding: 16px;
  background: var(--surface); border: 1px solid var(--border-mid); border-radius: 12px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.hours-panel h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.hours-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.hours-row select {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface-3);
  border: 1px solid var(--border); border-radius: 7px; padding: 6px 8px; flex: 1;
}
.hours-presets { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.hours-presets button { font-size: 11.5px; padding: 5px 8px; }
.hours-foot { display: flex; justify-content: flex-end; margin-top: 14px; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 550;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  opacity: 0; pointer-events: none; transition: .22s ease; z-index: 90;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- legal pages ---------- */

.doc { padding: 56px 0 0; max-width: 720px; }
.doc h1 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); }
.doc .updated { margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.doc h2 { font-size: 15.5px; margin: 34px 0 8px; }
.doc p, .doc li { font-size: 14px; color: var(--text-dim); line-height: 1.75; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc .lede-doc { margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.lang-block[hidden] { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .site-nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .best-list { grid-template-columns: 1fr; }
  .best-card { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .best-time { font-size: 16px; }
  .bestMeta { margin-left: auto; }
  .detail { grid-template-columns: 1fr; }
  .detail-actions { justify-content: flex-start; }
  .detail-when { font-size: 18px; }
  .grid { grid-template-columns: 104px repeat(24, minmax(40px, 1fr)); }
  .legend-hint { display: none; }
}

@media (max-width: 640px) {
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .date-nav { width: 100%; gap: 4px; }
  .date-field { flex: 1; min-width: 0; }
  .date-field input { width: 100%; min-width: 0; }
  .toolbar-end { justify-content: space-between; }
  .hero h1 { font-size: clamp(1.9rem, 1.2rem + 6vw, 2.6rem); }
}

@media (max-width: 560px) {
  .wrap { width: min(1120px, 100% - 24px); }
  .header-inner { height: 56px; gap: 10px; }
  .lang-btn { padding: 4px 6px; font-size: 11.5px; }
  .hero h1 { max-width: 100%; }
  .hero .lede { font-size: 14.5px; }
  .card-top, .toolbar, .best { padding-left: 12px; padding-right: 12px; }
  .grid-wrap { padding-left: 12px; padding-right: 12px; }
  .grid { grid-template-columns: 96px repeat(24, 40px); }
  .grid .city { font-size: 11.5px; }
  .detail { padding: 14px 12px 16px; }
  .footer-inner { gap: 14px; }
  .footer-nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .hero::after, .best, .toolbar, .legend, .detail-actions, .site-footer, .section, .under-card { display: none !important; }
  body { background: #fff; color: #000; }
}
