/* ============================================================
   서지오 (SEOGEOAEO) — seogeoaeo.co.kr
   Visual world: 지하철 노선도 웨이파인딩 (transit-map wayfinding)
   Ground: 순백 · Lines: W ink / SEO green / AEO blue / GEO amber
   Red = 현위치·CTA 전용 · 역명 캡슐 · 노선번호 뱃지 · 환승 이중링
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #ffffff;          /* ground */
  --paper-dim: #f6f7f9;      /* alternating band */
  --ink: #17181a;            /* text / W line */
  --ink-soft: #3d4147;
  --dim: #6b7076;            /* secondary text (AA on white) */
  --hairline: #e3e5e8;

  --ln-w: #17181a;           /* 제작 — 본선 */
  --ln-s: #00a84d;           /* SEO */
  --ln-a: #3d5afe;           /* AEO */
  --ln-g: #f5a200;           /* GEO */
  --ln-r: #d7261d;           /* 현위치·CTA 전용 */

  /* AA text/fill variants (white text passes on these) */
  --ln-s-deep: #007233;
  --ln-a-deep: #2f45d8;
  --ln-r-deep: #c12018;

  --ln: var(--ln-w);         /* per-page line color, overridden by .ln-* */
  --ln-deep: var(--ln-w);

  --font-kr: "Wanted Sans Variable", "Wanted Sans", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --rail-w: 240px;
  --radius: 10px;
  --gap: clamp(16px, 2.4vw, 28px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
.ln-s { --ln: var(--ln-s); --ln-deep: var(--ln-s-deep); }
.ln-a { --ln: var(--ln-a); --ln-deep: var(--ln-a-deep); }
.ln-g { --ln: var(--ln-g); --ln-deep: #8a5c00; }
.ln-w { --ln: var(--ln-w); --ln-deep: var(--ln-w); }
.ln-r { --ln: var(--ln-r); --ln-deep: var(--ln-r-deep); }

/* ---------- Reset-lite & browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;          /* 마지막 줄에 낱말 하나만 떨어지는 고아 줄 방지 (제목은 아래에서 balance로 덮어씀) */
}
::selection { background: var(--ln-a); color: #fff; }
:root { caret-color: var(--ln-a); }
:focus-visible { outline: 2.5px solid var(--ln-a); outline-offset: 2px; border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: #c6c9cd #f0f1f3; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: #f0f1f3; }
*::-webkit-scrollbar-thumb { background: #c6c9cd; border-radius: 5px; border: 2px solid #f0f1f3; }

img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--ink); text-decoration-color: #b9bdc2; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ln-a); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.28; margin: 0 0 .6em; text-wrap: balance; font-weight: 800; }
p { margin: 0 0 1.1em; max-width: 70ch; }
strong { color: var(--ink); font-weight: 700; }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 700; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Shell: legend rail + content ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) 1fr; min-height: 100vh; }
.rail {
  border-right: 1px solid var(--hairline);
  background: var(--paper);
  padding: 26px 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.brand { display: block; text-decoration: none; padding: 0 6px 20px; border-bottom: 1px solid var(--hairline); margin-bottom: 14px; }
.brand-cap {
  display: inline-flex; align-items: center;
  font-size: 25px; font-weight: 800; letter-spacing: .01em; color: var(--ink);
  background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  padding: 4px 18px;
}
.brand-mark { width: 30px; height: 30px; margin-right: 9px; flex: none; }
.brand-flaps { display: inline-flex; }
.brand-flaps .c {
  font-size: 25px; font-weight: 800; color: var(--ink);
}
.brand-flaps { align-items: center; vertical-align: middle; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 16px; gap: 1px; }
.brand-sub {
  display: block; margin-top: 12px;
  font-weight: 700; font-size: 11.5px;
  letter-spacing: .2em; color: var(--dim); text-transform: uppercase;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-list a {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px 10px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 650; letter-spacing: .01em;
  color: var(--ink-soft); text-decoration: none;
  border: 1.5px solid transparent;
}
.nav-list a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; flex: none; }
.nav-list a:hover { background: var(--paper-dim); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); border-color: var(--ink); background: #fff; font-weight: 750; }
.rail-status { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.status-box {
  border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 13px;
}
.status-box .k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.status-box .v { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.lamp { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lamp.ok { background: var(--ln-s); }
.lamp.amber { background: var(--ln-g); }
.lamp.red { background: var(--ln-r); }
.digits { display: inline-flex; gap: 0; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.digits .c { font-weight: 750; font-size: 13.5px; color: var(--ink); }

.board { min-width: 0; display: flex; flex-direction: column; }
#main > * + * { margin-top: 0; }

/* ---------- Panels: stations along the page ---------- */
.panel {
  background: var(--paper);
  padding: clamp(30px, 5vw, 64px) clamp(20px, 4.5vw, 64px);
  border-bottom: 1px solid var(--hairline);
}
.panel:nth-of-type(even) { background: var(--paper-dim); }
.panel-title {
  display: flex; align-items: center; gap: 13px;
  font-size: clamp(21px, 2.5vw, 27px); font-weight: 800; color: var(--ink);
  margin-bottom: 30px; letter-spacing: -.01em;
}
.panel-title::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%; flex: none;
  background: #fff; border: 4.5px solid var(--ln);
}
.panel-title::after { content: ""; flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ln) 0 42px, var(--hairline) 42px); }
.panel-title .tno {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim); flex: none; order: 3; margin-left: 4px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

/* ---------- Buttons: station capsules ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15.5px; font-weight: 750; letter-spacing: .01em;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s;
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.btn-primary { background: var(--ln-r-deep); color: #fff; box-shadow: 0 4px 14px rgba(193,32,24,.25); }
.btn-primary:hover { background: #a91b14; color: #fff; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(193,32,24,.3); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ---------- Hero (index) ---------- */
.hero-h1 { font-size: clamp(30px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.02em; line-height: 1.22; margin: 0 0 22px; }
.hero-h1 .hl { box-shadow: inset 0 -0.34em 0 rgba(61,90,254,.16); }

/* Route diagram (SVG) */
.route-map { margin: 34px 0 8px; }
.route-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.route-map .rl { fill: none; stroke-linecap: round; stroke-width: 10; }
.route-map .rl.w { stroke: var(--ln-w); }
.route-map .rl.s { stroke: var(--ln-s); }
.route-map .rl.a { stroke: var(--ln-a); }
.route-map .rl.g { stroke: var(--ln-g); }
.route-map .stn { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.route-map .stn.s { stroke: var(--ln-s); } .route-map .stn.a { stroke: var(--ln-a); } .route-map .stn.g { stroke: var(--ln-g); }
.route-map .term-outer { fill: none; stroke: var(--ink); stroke-width: 5; }
.route-map .term-inner { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.route-map text { font-family: var(--font-kr); font-weight: 750; fill: var(--ink); }
.route-map .lbl { font-size: 17px; }
.route-map .lbl-sm { font-size: 14px; font-weight: 650; fill: var(--ink-soft); }
.route-map .here-dot { fill: var(--ln-r); }
.route-map .here-ring { fill: none; stroke: var(--ln-r); stroke-width: 3; opacity: .55; }
.route-map .here-lbl { fill: var(--ln-r-deep); font-size: 15px; font-weight: 800; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes herePulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
.js .route-map .rl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1.1s var(--ease-out) forwards; }
.js .route-map .rl.s { animation-delay: .28s; }
.js .route-map .rl.a { animation-delay: .42s; }
.js .route-map .rl.g { animation-delay: .56s; }
.js .route-map .stn, .js .route-map .term-outer, .js .route-map .term-inner,
.js .route-map text { opacity: 0; animation: popIn .5s var(--ease-out) forwards; transform-origin: center; transform-box: fill-box; }
.js .route-map .p1 { animation-delay: .55s; } .js .route-map .p2 { animation-delay: .75s; }
.js .route-map .p3 { animation-delay: .95s; } .js .route-map .p4 { animation-delay: 1.15s; }
.js .route-map .p5 { animation-delay: 1.35s; }
.route-map .here-ring { transform-origin: center; transform-box: fill-box; }
.js .route-map .here-ring { animation: popIn .4s .2s var(--ease-out) forwards, herePulse 2s 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .js .route-map .rl, .js .route-map .stn, .js .route-map .term-outer, .js .route-map .term-inner,
  .js .route-map text, .js .route-map .here-ring { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
}

/* ---------- 즉답 안내판 (ticket) ---------- */
.ticket {
  position: relative;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--hairline); border-top: 6px solid var(--ln);
  border-radius: 12px; padding: 24px 28px;
  max-width: 76ch;
  box-shadow: 0 3px 16px rgba(23,24,26,.06);
}
.ticket .tag {
  display: inline-block; margin-bottom: 13px;
  font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--ln-deep); padding: 6px 17px; border-radius: 999px;
}
.ticket p { color: var(--ink-soft); margin: 0; font-weight: 500; line-height: 1.85; max-width: none; }
.ticket p + p { margin-top: .7em; }
.ticket strong { color: var(--ink); }

/* ---------- 검색결과 바로 열기 (직접 검증 링크) ---------- */
.verify { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.verify .vk { font-size: 13px; font-weight: 800; color: var(--ink); margin-right: 4px; }
.vchip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 800; letter-spacing: .06em;
  color: var(--ln-deep); text-decoration: none;
  background: #fff; border: 2px solid var(--ln); border-radius: 999px;
  padding: 8px 16px;
  transition: background .18s, color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.vchip svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.8; fill: none; flex: none; }
.vchip:hover { background: var(--ln-deep); border-color: var(--ln-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23,24,26,.16); }
.vchip:active { transform: translateY(0); }

/* ---------- Route cards (노선 안내) ---------- */
.route {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px;
  padding: 24px; text-decoration: none; color: var(--ink-soft);
  transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s;
}
.route:hover { transform: translateY(-3px); border-color: var(--ln); box-shadow: 0 8px 22px rgba(23,24,26,.08); text-decoration: none; }
.route .code { display: inline-flex; }
.route .code .c {
  font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #fff;
}
.route .code { background: var(--ln-deep); border-radius: 999px; padding: 5px 14px; gap: 1px; align-self: flex-start; }
.route h3 { font-size: 18px; margin: 4px 0 0; }
.route p { font-size: 14.5px; color: var(--dim); margin: 0; line-height: 1.7; }
.route .go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 750; letter-spacing: .06em;
  color: var(--ln-deep);
}
.route.ln-g .go { color: #8a5c00; }
.route .go svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.6; fill: none; transition: transform .2s; }
.route:hover .go svg { transform: translateX(3px); }

/* ---------- 도착 안내 (departures table) ---------- */
.depart-wrap { overflow-x: auto; background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px; }
.depart { width: 100%; min-width: 640px; font-size: 15.5px; }
.depart th {
  text-align: left; font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); padding: 14px 18px 10px; border-bottom: 2px solid var(--ink);
}
.depart td { padding: 13px 18px; border-bottom: 1px solid var(--hairline); color: var(--ink); font-weight: 650; white-space: nowrap; }
.depart tbody tr:last-child td { border-bottom: 0; }
.depart tbody tr { transition: background .15s; }
.depart tbody tr:hover { background: var(--paper-dim); }
.depart .st { display: inline-flex; align-items: center; gap: 8px; }
.depart .st.ok { color: var(--ln-s-deep); }
.depart .st.cited { color: #8a5c00; }
.depart .st.neg { color: var(--ln-r-deep); }
.depart .ch { color: var(--dim); font-weight: 650; font-size: 13.5px; letter-spacing: .06em; }

/* ---------- Big stats: 노선번호 뱃지 ---------- */
.stats { display: flex; gap: var(--gap); flex-wrap: wrap; }
.stat { flex: 1; min-width: 130px; }
.stat .flaps { display: inline-flex; align-items: baseline; }
.stat .flaps .c { font-size: clamp(38px, 4.6vw, 56px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat .lbl {
  display: block; margin-top: 8px;
  font-size: 13px; font-weight: 650; line-height: 1.55; color: var(--dim);
}
.stat .lbl b { color: var(--ink-soft); font-weight: 700; }

/* ---------- Alert rows (지연 신고) ---------- */
.alerts { display: flex; flex-direction: column; gap: 10px; }
.alert-row {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1.5px solid var(--hairline); border-radius: 12px;
  padding: 15px 18px;
}
.alert-row .no {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff; background: var(--ink);
}
.alert-row .no.neg { background: var(--ln-r-deep); }
.alert-row p { margin: 0; color: var(--ink); font-weight: 650; font-size: 15.5px; max-width: none; }
.alert-row .sub { display: block; color: var(--dim); font-weight: 450; font-size: 13.5px; margin-top: 2px; }

/* ---------- Process (운행 절차): vertical line with stations ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0 0 0 8px; display: flex; flex-direction: column; position: relative; }
.steps::before { content: ""; position: absolute; left: 29px; top: 28px; bottom: 28px; width: 6px; border-radius: 3px; background: var(--ln); opacity: .95; }
.steps li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 44px 1fr; gap: 20px;
  padding: 20px 4px;
}
.steps .sno {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 800; color: var(--ink);
  background: #fff; border: 4px solid var(--ln);
}
.steps h3 { font-size: 17px; margin: 8px 0 6px; }
.steps p { font-size: 14.5px; color: var(--dim); margin: 0; }
.steps .dur { font-size: 12.5px; font-weight: 750; letter-spacing: .08em; color: var(--ln-deep); margin-left: 10px; }

/* ---------- Meters (체크리스트) ---------- */
.meters { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1.5px solid var(--hairline); border-radius: 12px; padding: 6px 18px; }
.meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.meter:last-child { border-bottom: 0; }
.meter .k { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.meter .dots { display: flex; gap: 4px; }
.meter .dots i { width: 10px; height: 6px; border-radius: 3px; background: var(--ln-s); }
.meter .dots i.off { background: var(--hairline); }

/* ---------- AI 인용 화면 (proof shots) ---------- */
.proof-case + .proof-case { margin-top: calc(var(--gap) * 1.5); }
.proof-q {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 17px; font-weight: 750; color: var(--ink); margin: 0 0 16px;
}
.proof-q .qmark {
  flex: none; align-self: center;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--ink); border-radius: 999px; padding: 4px 12px;
}
.proof-q .who { font-size: 13.5px; font-weight: 650; color: var(--dim); }
.proof-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: var(--gap); max-width: 1180px; }
.proof-set.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.proof-set.row3 .proof-sum { grid-column: 1 / -1; }
.proof {
  margin: 0; display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.proof:hover { border-color: var(--ln); box-shadow: 0 8px 22px rgba(23,24,26,.08); }
.proof .ai {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--hairline);
  font-size: 13.5px; font-weight: 750; letter-spacing: .03em; color: var(--ink);
}
.proof .ai::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ln-g); flex: none; }
.proof-shot { position: relative; display: block; background: var(--paper-dim); line-height: 0; }
.proof-shot img { width: 100%; height: auto; display: block; }
.proof-shot .zoom {
  position: absolute; right: 10px; bottom: 10px; line-height: 1;
  font-size: 11.5px; font-weight: 750; letter-spacing: .06em;
  color: #fff; background: rgba(23,24,26,.84); padding: 6px 12px; border-radius: 999px;
  opacity: .001; transition: opacity .2s;
}
.proof-shot:hover .zoom, .proof-shot:focus-visible .zoom { opacity: 1; }
.proof figcaption { padding: 15px 18px 18px; border-top: 1px solid var(--hairline); }
.proof .quote { margin: 0 0 8px; max-width: none; font-size: 15px; font-weight: 700; line-height: 1.65; color: var(--ink); text-wrap: balance; }
.proof .note { margin: 0; max-width: none; font-size: 13.5px; line-height: 1.65; color: var(--dim); text-wrap: pretty; }
.proof-sum {
  display: flex; flex-direction: column; justify-content: center;
  background: #fff; border: 1.5px solid var(--hairline); border-left: 6px solid var(--ln); border-radius: 14px;
  padding: 26px 28px;
}
.proof-sum h4 { font-size: 18px; margin: 0 0 12px; }
.proof-sum p { max-width: none; font-size: 15px; line-height: 1.85; color: var(--ink-soft); margin: 0 0 .9em; text-wrap: pretty; }
.proof-sum p:last-child { margin-bottom: 0; }
.proof-sum .note { font-size: 13.5px; color: var(--dim); border-top: 1px dashed var(--hairline); padding-top: 12px; }

/* 원본 보기 오버레이 */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: clamp(14px, 3vw, 40px); background: rgba(23,24,26,.84);
}
.lightbox img { max-width: min(1100px, 96vw); max-height: 92vh; width: auto; border-radius: 10px; background: #fff; }
.lb-close {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--font-kr); font-size: 13px; font-weight: 750; letter-spacing: .04em;
  color: var(--ink); background: #fff; border: 0; border-radius: 999px;
  padding: 10px 18px; cursor: pointer;
}

/* ---------- Contact form ---------- */
.c-form { background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px; padding: 24px 22px; }
.c-form .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.c-form .row { margin-bottom: 14px; }
.c-form label { display: block; font-size: 13.5px; font-weight: 750; color: var(--ink); margin-bottom: 6px; }
.c-form label .opt { color: var(--dim); font-weight: 650; }
.c-input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid var(--hairline); border-radius: 8px; padding: 11px 14px; }
.c-input:hover { border-color: #c9ccd1; }
.c-input::placeholder { color: var(--dim); }
.c-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--dim); margin: 4px 0 16px; }
.c-agree input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--ln-r-deep); }
.c-status { font-size: 14px; font-weight: 700; margin: 12px 0 0; min-height: 1.4em; }
.c-status.err { color: var(--ln-r-deep); }
.c-done { background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px; padding: 36px 26px; text-align: center; }
.c-done .stamp { display: inline-block; font-weight: 800; font-size: 17px; color: var(--ln-s-deep); background: #fff; border: 2.5px solid var(--ln-s); border-radius: 999px; padding: 7px 22px; margin-bottom: 14px; }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ: 정차역 목록 ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  background: #fff; border: 1.5px solid var(--hairline); border-radius: 12px;
  overflow: hidden; transition: border-color .2s;
}
.faq-list details[open] { border-color: var(--ln); }
.faq-list summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink); font-size: 15.5px;
  transition: background .15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--paper-dim); }
.faq-list summary .qno {
  flex: none; min-width: 46px; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  color: var(--ln-deep); background: #fff; border: 2px solid var(--ln);
  border-radius: 999px; padding: 3px 8px;
}
.ln-g .faq-list summary .qno { color: #8a5c00; }
.faq-list summary .chev { margin-left: auto; flex: none; width: 16px; height: 16px; stroke: var(--dim); stroke-width: 2.2; fill: none; transition: transform .25s var(--ease-out); }
.faq-list details[open] summary .chev { transform: rotate(180deg); }
.faq-list details[open] summary { border-bottom: 1px solid var(--hairline); background: var(--paper-dim); }
.faq-a { padding: 18px 22px 20px 78px; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.faq-a p { margin: 0 0 .9em; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul, .faq-a ol { margin: 0 0 .9em; padding-left: 1.3em; }
.faq-a li { margin-bottom: .35em; }
.faq-a li::marker { color: var(--ln-deep); font-weight: 700; }

/* ---------- Long-form article ---------- */
.article { max-width: 74ch; }
.article h2 { font-size: clamp(21px, 2.6vw, 27px); margin: 2em 0 .7em; padding-top: 1.3em; border-top: 1px solid var(--hairline); letter-spacing: -.01em; }
.article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article h3 { font-size: 18px; margin: 1.6em 0 .5em; }
.article p, .article li { font-size: 15.5px; line-height: 1.9; color: var(--ink-soft); }
.article ul, .article ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.article li { margin-bottom: .45em; }
.article li::marker { color: var(--ln-deep); font-weight: 700; }
.article .ticket { margin: 1.6em 0; }
.article table { width: 100%; margin: 1.4em 0; font-size: 14.5px; background: #fff; }
.article th { text-align: left; color: var(--ink); font-weight: 750; padding: 11px 14px; border-bottom: 2px solid var(--ink); font-size: 13.5px; }
.article td { padding: 11px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.article td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; border: 1.5px solid var(--hairline); border-radius: 12px; padding: 4px 14px 10px; background: #fff; }

.src { font-size: 13px; color: var(--dim); border-top: 1px dashed var(--hairline); padding-top: 12px; margin-top: 1.8em; }

/* ---------- Breadcrumb: 이전역 표시 ---------- */
.crumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; font-weight: 650; color: var(--dim);
  margin-bottom: 22px;
}
.crumb a { color: var(--dim); text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb .sep { color: #c2c5c9; }

/* ---------- Page hero: 역명판 ---------- */
.page-hero { border-bottom: 6px solid var(--ln); }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.page-hero h1 .flaps {
  display: inline-flex; align-items: center;
  background: #fff; border: 3px solid var(--ln); border-radius: 999px;
  padding: .12em .55em; gap: .02em;
}
.page-hero h1 .flaps .c { color: var(--ink); }
.flaps .c.gap { width: .3em; }   /* 캡슐 안 단어 공백: flex 아이템의 공백 텍스트는 0폭으로 접히므로 폭을 직접 준다 */
.page-hero h1 .sub {
  display: block; margin-top: 18px;
  font-size: clamp(17px, 2.1vw, 23px); font-weight: 650;
  color: var(--ink-soft); letter-spacing: -.01em;
}
.page-hero .lede { font-size: 17px; color: var(--ink-soft); max-width: 72ch; }

/* ---------- CTA terminal: 종착역 ---------- */
.cta-panel { text-align: center; padding: clamp(48px, 7vw, 84px) clamp(22px, 4vw, 48px); }
.cta-panel::before {
  content: ""; display: block; width: 26px; height: 26px; border-radius: 50%;
  margin: 0 auto 22px;
  background: #fff; border: 6px solid var(--ln-r);
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--ink);
}
.cta-panel h2 { font-size: clamp(24px, 3.6vw, 38px); margin-bottom: 14px; letter-spacing: -.02em; }
.cta-panel p { margin: 0 auto 28px; max-width: 58ch; color: var(--ink-soft); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: #b9bdc2;
  padding: clamp(30px, 4.5vw, 52px) clamp(20px, 4.5vw, 64px);
  font-size: 13.5px;
  border-top: 6px solid var(--ln-r);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); margin-bottom: 28px; }
.footer h3 { font-size: 12.5px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer p { color: #b9bdc2; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #b9bdc2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-biz {
  font-style: normal;
  border-top: 1px solid #33363b; padding-top: 18px; margin-bottom: 18px;
  font-size: 12.5px; line-height: 1.95; color: #8d9298;
}
.footer-biz strong { display: block; color: #b9bdc2; font-weight: 750; font-size: 13px; margin-bottom: 3px; }
.footer-biz span { display: block; }
.footer-biz i { font-style: normal; color: #5c6167; margin: 0 4px; }
.footer-biz a { color: #8d9298; }
.footer-biz a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid #33363b; padding-top: 18px;
  font-size: 12px; letter-spacing: .06em; color: #8d9298;
}

/* ---------- Mobile ---------- */
.mobile-bar, .mobile-tabs { display: none; }

@media (max-width: 1023px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .board { padding-bottom: 66px; }

  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hairline);
    padding: 10px 16px; position: sticky; top: 0; z-index: 50;
  }
  .mobile-bar .brand { border: 0; padding: 0; margin: 0; }
  .mobile-bar .brand-mark { width: 21px; height: 21px; margin-right: 7px; }
  .mobile-bar .brand-flaps { padding: 3px 12px; border-width: 2px; }
  .mobile-bar .brand-flaps .c { font-size: 17px; }
  .mobile-bar .menu-btn {
    background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink);
    padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-kr); font-size: 12.5px; font-weight: 750; letter-spacing: .1em;
  }
  .mobile-bar .menu-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
  .mobile-menu {
    display: none; position: absolute; left: 10px; right: 10px; top: calc(100% + 8px);
    background: #fff; border: 1.5px solid var(--hairline); border-radius: 14px;
    padding: 10px; z-index: 60; box-shadow: 0 14px 34px rgba(23,24,26,.14);
  }
  .mobile-menu.open { display: block; }

  .mobile-tabs {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--hairline);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-tabs a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; text-decoration: none; border-radius: 10px;
    font-size: 11px; font-weight: 650; color: var(--dim);
  }
  .mobile-tabs a svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; fill: none; }
  .mobile-tabs a[aria-current="page"] { color: var(--ln-r-deep); font-weight: 750; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .proof-set.row3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .faq-a { padding-left: 20px; }
  .steps::before { left: 25px; }
  .steps li { grid-template-columns: 40px 1fr; gap: 14px; }
  .steps .sno { width: 40px; height: 40px; font-size: 15px; }
  .depart { font-size: 14.5px; }
  .route-map { margin-top: 24px; }
  .route-map .lbl { font-size: 21px; }
  .route-map .lbl-sm { font-size: 17px; }
  .route-map .here-lbl { font-size: 19px; }
}

@media (min-width: 1024px) {
  .hero-grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: calc(var(--gap) * 1.6); align-items: start; }
}

/* Print: 노선 안내 인쇄물 */
@media print {
  body { background: #fff; color: #000; }
  .rail, .mobile-bar, .mobile-tabs, .cta-panel, .btn { display: none !important; }
  .panel { border-bottom: 1px solid #999; }
  .footer { background: #fff; color: #000; border-top: 2px solid #000; }
}
