/* Theme 23 · 로컬 가이드 — Infatuation guide grammar + MICHELIN detail facts.
   Tokens from docs/proto/v05/23-local-guide/tokens.json. No coloured left edges, no font-size under 12px. */
:root {
  --bg: #FDFDFD;
  --surface: #FFFFFF;
  --ink: #181818;
  --ink-2: #5C5C5C;
  --ink-3: #767676;
  --line: #DCDCDC;
  --line-2: #BFBFBF;
  --dotted: #CCCCCC;
  --accent: #0B2587;
  --highlight: #FFEF6E;
  --tag-ul: #D9D9D9;
  --tint: #F9F5ED;
  --tint-blue: #F3F5FB;
  --map-land: #EFECE6;

  --f-display: "Gothic A1", "Pretendard Variable", Pretendard, sans-serif;
  --f-lead: "Gowun Batang", "Noto Serif KR", serif;
  --f-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;

  --gut: max(24px, calc((100vw - 1200px) / 2));
  --col: 584px;
  --gap: 120px;
  --ease: 0.2s ease;
  --float: 0 0 8px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--surface); color: var(--ink); padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header: two rows ---------- */
.top { background: var(--bg); position: relative; z-index: 20; }
.top-row {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
@media (min-width: 1248px) { .top-row { padding: 0; } }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0;
  font: 900 22px/1.1 var(--f-display); color: var(--accent); text-decoration: none; letter-spacing: -0.02em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.top-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.top-link {
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
  font: 800 16px var(--f-display); color: var(--accent); text-decoration: none;
}
.top-link[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.subnav { max-width: 1280px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.subnav-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: stretch; gap: 28px; height: 56px; }
@media (min-width: 1248px) { .subnav-in { padding: 0; } }
.subnav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; position: relative; white-space: nowrap; flex: none;
  font: 800 17px var(--f-display); text-decoration: none; color: var(--ink); letter-spacing: -0.01em;
}
.subnav a:hover { color: var(--accent); }
.subnav a.city { font-size: 24px; font-weight: 900; }
.subnav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--accent); }
.subnav .vr { width: 1px; flex: none; background: var(--line); margin: 16px 0; }

/* medical one-liner under the header, every page */
.medline { background: var(--tint); border-bottom: 1px solid var(--line); }
.medline p { max-width: 1200px; margin: 0 auto; padding: 10px 24px; font: 500 13px/1.5 var(--f-body); color: var(--ink-2); }
@media (min-width: 1248px) { .medline p { padding: 10px 0; } }
.medline a { font-weight: 700; color: var(--accent); text-underline-offset: 3px; }

/* ---------- guide grid: text column + map rail to the right edge ---------- */
.guide { display: grid; grid-template-columns: var(--gut) minmax(0, var(--col)) var(--gap) minmax(0, 1fr); }
.guide > .col { grid-column: 2; padding: 0 0 96px; min-width: 0; }
.guide > .rail { grid-column: 4; }
.rail-in { position: sticky; top: 0; height: 100vh; padding-top: 35px; }
.mapbox { position: relative; height: calc(100% - 35px); background: var(--map-land); overflow: hidden; }
.mapbox > svg { display: block; width: 100%; height: 100%; }
.m-land { fill: var(--map-land); }
.m-x-edge { stroke: #DDD7CC; stroke-width: 15; }
.m-x { stroke: #FFFFFF; stroke-width: 12; }
.m-road-edge { stroke: #D3CDC2; stroke-width: 37; stroke-linecap: round; }
.m-road-line { stroke: #FFFFFF; stroke-width: 34; stroke-linecap: round; }
.m-road { font: 800 13px var(--f-display); fill: #8A8478; letter-spacing: .3em; }
.m-dot { fill: var(--accent); stroke: #FFFFFF; stroke-width: 3; }
.m-st { font: 900 16px var(--f-display); fill: var(--accent); paint-order: stroke; stroke: var(--map-land); stroke-width: 5px; stroke-linejoin: round; }
.map-credit {
  position: absolute; left: 12px; top: 12px; right: 12px; margin: 0; padding: 4px 8px; width: fit-content; max-width: calc(100% - 24px);
  background: rgba(253, 253, 253, .92); font: 600 12px/1.4 var(--f-body); color: var(--ink-2);
}
.map-float {
  position: absolute; right: 24px; bottom: 48px; width: 300px; background: var(--surface); box-shadow: var(--float);
  padding: 16px; font: 400 15px/1.6 var(--f-body);
}
.map-float p { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.btn-black {
  display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 8px;
  background: #000; color: #fff; font: 600 16px var(--f-body); text-decoration: none;
}
.btn-black:hover { background: var(--accent); }

/* ---------- article head ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 8px 0 0; padding: 0; list-style: none; font: 600 12px/1.4 var(--f-body); color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { text-decoration: none; display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-3); }
.crumbs [aria-current] { color: var(--ink); }

.h1 { font: 900 48px/1.08 var(--f-display); letter-spacing: -0.03em; margin: 32px 0 16px; }
.crumbs + .h1, .samplebar + .h1 { margin-top: 8px; }
.hl {
  background: linear-gradient(to bottom, transparent 52%, var(--highlight) 52%, var(--highlight) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font: 400 24px/1.3 var(--f-lead); margin: 0 0 20px; letter-spacing: -0.01em; }

.photo { margin: 0 0 8px; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #E4E1DB; }

.byline { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.byline .mark { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--accent); }
.byline .mark svg { width: 26px; height: 26px; }
.byline b { display: block; font: 900 16px/1.3 var(--f-display); }
.byline p { margin: 2px 0 0; font: 600 13px/1.5 var(--f-body); color: var(--ink-2); }
.byline a { color: var(--accent); }

.cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; font: 600 12px var(--f-body); color: var(--ink-2); }
.cats span { margin-right: 4px; }
.cats a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 9999px;
  font: 700 14px var(--f-body); color: var(--ink); text-decoration: none; transition: border-color var(--ease);
}
.cats a:hover { border-color: var(--ink); }

.samplebar { background: var(--tint); border: 1px solid var(--line-2); border-radius: 4px; font-size: 15px; line-height: 1.6; padding: 10px 14px; margin: 16px 0 8px; }

/* ---------- boxes: tint + 1px border (never a coloured left edge) ---------- */
.box { background: var(--tint); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; margin: 0 0 32px; }
.box h3, .box .box-h { font: 900 16px/1.3 var(--f-display); margin: 0 0 8px; }
.box h3 + p { margin-top: 0; }
.box p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.box p:last-child { margin-bottom: 0; }
.box a { font-weight: 700; color: var(--accent); }
.toc ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.6; }
.toc li { margin: 2px 0; }
.toc li a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.label { display: inline-block; font: 700 12px/1 var(--f-body); color: var(--accent); background: #E8ECF7; padding: 6px 8px; border-radius: 4px; margin: 0 0 12px; }

/* ---------- spot / card grammar (one post = one place block) ---------- */
.spot { border-bottom: 1px solid var(--line); padding-bottom: 40px; margin: 40px 0; }
.spot-title { font: 900 28px/1.15 var(--f-display); letter-spacing: -0.03em; margin: 0 0 10px; }
.spot-title.big { font-size: 36px; line-height: 1.1; }
.spot-title a { display: block; min-height: 44px; padding: 2px 0; text-decoration: none; }
.spot-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.spot .photo { margin-bottom: 16px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 12px; padding: 0; list-style: none; font: 600 12px/1.4 var(--f-body); color: var(--ink); }
.meta li { position: relative; padding: 0 12px; }
.meta li:first-child { padding-left: 0; }
.meta li + li::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: var(--line-2); }
.say { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 800 14px var(--f-display); color: var(--accent); text-decoration: none; }
.more svg { width: 16px; height: 16px; }
.more:hover { text-decoration: underline; }

.h2 { font: 900 36px/1.1 var(--f-display); letter-spacing: -0.03em; margin: 56px 0 24px; }
.h2.sm { font-size: 28px; margin: 40px 0 6px; }
.h2-sub { margin: -8px 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.cards { list-style: none; margin: 0; padding: 0; }
.card { border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 28px; }
.card h3 { font: 900 24px/1.2 var(--f-display); letter-spacing: -0.02em; margin: 0 0 10px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card p { font-size: 15px; line-height: 1.6; margin: 0 0 8px; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.row h3 { font: 900 22px/1.25 var(--f-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.row .meta { margin-bottom: 6px; }
.row p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* ---------- list page: chips + category sections (no-JS: :target shows one section) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 9999px; background: var(--bg);
  font: 700 14px var(--f-body); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: border-color var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip .n { color: var(--ink-3); font-weight: 500; }
.chip[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-current="true"] .n { color: #CFCFCF; }
.cat-sec { display: none; }
.cat-sec#c0 { display: block; }
.cat-sec:target { display: block; }
.lists:has(.cat-sec:target) .cat-sec#c0:not(:target) { display: none; }
.cat-sec .count { font: 600 12px/1.4 var(--f-body); color: var(--ink-2); margin: 0 0 12px; }
.empty { color: var(--ink-2); font-size: 15px; }

/* ---------- post body (core HTML) ---------- */
.prose > p, .prose li { font-size: 17px; line-height: 1.7; }
.prose > p { margin: 0 0 18px; }
.prose h2 { font: 900 30px/1.15 var(--f-display); letter-spacing: -0.03em; margin: 48px 0 16px; scroll-margin-top: 16px; }
.prose h3 { font: 900 22px/1.25 var(--f-display); letter-spacing: -0.02em; margin: 32px 0 12px; }
.prose h4 { font: 800 18px/1.3 var(--f-display); margin: 24px 0 8px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
p.disclaim { background: var(--tint); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; font-size: 17px; line-height: 1.7; margin: 0 0 24px; }
p.adnote { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; }
p.adnote a { color: var(--accent); font-weight: 700; }
a.cite {
  display: inline; font: 700 12px/1.5 var(--f-body); color: var(--accent); text-decoration: none; white-space: nowrap;
  background: var(--tint-blue); border: 1px solid #C9CFE6; border-radius: 4px; padding: 1px 4px; margin: 0 1px; vertical-align: 1px;
}
a.cite:hover { border-color: var(--accent); }
.prose figure.fig { margin: 8px 0 28px; }
.prose figure.fig img { width: 100%; height: auto; border-radius: 8px; }
.prose figure.fig figcaption { font: 600 12px/1.5 var(--f-body); color: var(--ink-2); margin-top: 8px; }
.prose blockquote { margin: 0 0 24px; background: var(--tint); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; }
.prose blockquote p { margin: 0 0 8px; font-size: 16px; line-height: 1.65; }
.prose blockquote p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; margin: 8px 0 24px; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 2px solid var(--accent); }
table.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
table.cmp thead th { text-align: left; font: 700 12px/1.4 var(--f-body); color: var(--ink-2); padding: 0 12px 10px 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
table.cmp td, table.cmp tbody th { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp tbody th { font: 900 15px/1.35 var(--f-display); }
.prose p.table-note { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: -12px 0 24px; }
.todo { background: var(--highlight); padding: 0 6px; font-weight: 600; }
.k { color: var(--ink-2); }

/* sources: 8px ink bar, opened list */
.sources { border-top: 8px solid var(--ink); margin-top: 56px; padding-top: 20px; }
.sources h2 { font: 900 28px/1.2 var(--f-display); margin: 0 0 12px; letter-spacing: -0.02em; }
.sources .src-note { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin: 0 0 16px; }
.sources ol { margin: 0; padding-left: 24px; }
.sources li { font-size: 15px; line-height: 1.6; margin-bottom: 10px; scroll-margin-top: 24px; }
.sources li:target { background: var(--highlight); }
.sources li a { color: var(--accent); word-break: break-all; }
.endline { margin: 32px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.endline a { color: var(--accent); font-weight: 700; }
.reads { margin-top: 16px; }

/* pages */
.prose.page > p, .prose.page li { font-size: 16px; line-height: 1.65; }
.prose.page h2 { font-size: 26px; margin-top: 40px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #E2E2E8; border-radius: 8px;
  background: var(--surface); color: #48484A; font: 500 14px var(--f-body); text-decoration: none; transition: border-color var(--ease);
}
.pill:hover { border-color: var(--ink); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 32px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 1248px) { .foot-in { padding: 32px 0 40px; } }
.foot b { color: var(--accent); font: 900 18px var(--f-display); display: block; margin-bottom: 8px; }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; align-content: start; }
.foot nav a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--ink); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* ---------- mobile map bar + overlay ---------- */
.mapbar { display: none; }
.map-close { display: none; }

@media (max-width: 1023px) {
  :root { --gap: 32px; }
  .guide { grid-template-columns: 24px minmax(0, 1fr) var(--gap) 40%; }
  .map-float { width: auto; left: 16px; right: 16px; bottom: 32px; }
}
@media (max-width: 767px) {
  .guide { grid-template-columns: 24px minmax(0, 1fr) 24px; }
  .guide > .rail { display: none; }
  body.map-open { overflow: hidden; }
  body.map-open .guide > .rail { display: block; position: fixed; inset: 0; z-index: 50; background: var(--map-land); }
  body.map-open .rail-in { padding-top: 0; height: 100%; }
  body.map-open .mapbox { height: 100%; }
  body.map-open .map-credit { top: auto; bottom: 12px; }
  body.map-open .map-close {
    display: inline-flex; position: absolute; top: 12px; right: 12px; z-index: 3; min-height: 44px; padding: 0 16px; align-items: center;
    border-radius: 9999px; border: 1px solid var(--line-2); background: var(--bg); font: 800 15px var(--f-display); color: var(--accent); cursor: pointer;
  }
  .map-float { display: none; }
  .mapbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 64px; background: var(--bg);
    box-shadow: 0 -1px 0 var(--line), 0 -6px 16px rgba(0, 0, 0, .06);
  }
  .mapbar > * {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: none; border: 0; padding: 0;
    font: 900 18px var(--f-display); color: var(--accent); text-decoration: none; cursor: pointer; min-height: 44px;
  }
  .mapbar > * + * { box-shadow: -1px 0 0 var(--line); }
  .mapbar svg { width: 22px; height: 22px; }
  body { padding-bottom: 64px; }
  .top-link.hide-sm { display: none; }
  .subnav-in { gap: 20px; height: 52px; overflow-x: auto; scrollbar-width: none; }
  .subnav-in::-webkit-scrollbar { display: none; }
  .subnav a { font-size: 16px; }
  .subnav a.city { font-size: 22px; }
  .h1 { font-size: 34px; line-height: 1.12; margin-top: 24px; }
  .lead { font-size: 20px; line-height: 1.4; }
  .h2 { font-size: 28px; margin: 44px 0 20px; }
  .h2.sm { font-size: 24px; }
  .spot-title, .spot-title.big { font-size: 26px; }
  .card h3 { font-size: 22px; }
  .prose h2 { font-size: 26px; }
  .prose > p, .prose li, p.disclaim { font-size: 16px; line-height: 1.7; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .top-row { padding: 0 16px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .guide { grid-template-columns: 16px minmax(0, 1fr) 16px; }
  .subnav-in { padding: 0 16px; }
  .medline p { padding: 10px 16px; }
  .foot-in { padding: 32px 16px 40px; }
  .h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
