/* 새해일력 v0.0.1 — 2027 정미선 노선도. 역 안내판 바탕, 먹색 역명 띠, 노선색 하나(정미 주홍), 환승만 남색. 평면만. */
@font-face { font-family: SaehaeSans; src: url(fonts/saehae-sans.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: SaehaeHanja; src: url(fonts/saehae-hanja.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #F1F2EF;      /* 역 안내판 바탕. 계약의 #F4F3EE는 크림 쪽으로 읽혀(감지기 cream-palette) 법랑 안내판의 중성 흰색으로 조정 */
  --panel: #FFFFFF;
  --ink: #16181D;        /* 역명 띠 */
  --ink-2: #4A4F57;      /* 보조 글 */
  --rule: #C9CCD1;
  --rule-2: #E2E4E6;
  --line: #C23B24;       /* 2027 정미선 노선색. 계약의 #D0432B는 바탕 위 글자 대비 4.13:1(AA 미달)이라 5.3:1인 이 값으로 낮춤 */
  --transfer: #2C5D8F;   /* 환승(내 원국과 맞닿음) */
  --on-ink: #F1F2EF;
  --on-ink-2: #A9ADB4;
  --sans: SaehaeSans, "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --hanja: SaehaeHanja, "Noto Serif KR", "Noto Serif CJK KR", "Batang", serif;
  --gutter: clamp(16px, 4.5vw, 28px);
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; font-feature-settings: "tnum" 1; word-break: keep-all; overflow-wrap: break-word; }
::selection { background: var(--line); color: #fff; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--line); }
:focus-visible { outline: 3px solid var(--transfer); outline-offset: 2px; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hj { font-family: var(--hanja); font-weight: 700; letter-spacing: 0.02em; }
[hidden] { display: none !important; }

/* 역명판 띠 */
.sign { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 var(--gutter); background: var(--ink); color: var(--on-ink); }
.sign-home { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.sign-home:hover { color: inherit; }
.badge { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: -0.03em; }
.sign-name b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.sign-name small { display: block; font-size: 12px; color: var(--on-ink-2); line-height: 1.3; }
.sign-year { font-size: 20px; color: var(--on-ink-2); }

main { max-width: 1180px; margin: 0 auto; }

/* 출발역 */
.start { max-width: 36rem; margin: 0 auto; padding: 28px var(--gutter) 8px; }
.start h1 { font-size: clamp(27px, 7.4vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.lede { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; max-width: 30rem; }
.origin { position: relative; margin-top: 26px; padding: 22px 18px 18px; background: var(--panel); border: 2px solid var(--ink); }
.origin-tag { position: absolute; top: -12px; left: 14px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 9px; }
.seg { display: flex; border: 1.5px solid var(--ink); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 0; font-weight: 700; font-size: 15px; }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--transfer); outline-offset: -3px; }
.ymd { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; margin-top: 16px; }
.pick select { width: 100%; appearance: none; background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 8px 18px 8px 2px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.pick select:invalid { color: var(--ink-2); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.leap { margin-top: 12px; }
.time-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.time { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); }
.time input { margin-top: 2px; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; padding: 6px 2px; font-size: 19px; font-weight: 700; color: var(--ink); min-width: 9.5rem; }
.time input:disabled { opacity: 0.35; }
.note { margin-top: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.error { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--line); }
.error:empty { display: none; }
.go { display: block; width: 100%; margin-top: 16px; border: 0; background: var(--line); color: #fff; font-size: 17px; font-weight: 800; padding: 16px 0; letter-spacing: -0.01em; }
.go:hover { background: #A93220; }
.alt { display: block; margin: 12px auto 0; border: 0; background: none; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; padding: 6px 10px; }
.alt:hover { color: var(--line); }

/* 노선 미리보기 */
.preview { margin-top: 26px; }
.preview-free { font-size: 13px; font-weight: 700; }
.preview-line { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 8px; padding-top: 6px; }
.preview-line::before { content: ""; position: absolute; left: 4%; right: 4%; top: 15px; height: 6px; background: var(--line); }
.preview-line li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; }
.preview-line i { width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 3.5px solid var(--ink); }
.preview-line li.free i { background: var(--line); border-color: var(--line); }
.preview-line li.x i { box-shadow: 0 0 0 2.5px var(--panel), 0 0 0 5px var(--transfer); }
.preview-cap, .promise { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.promise { margin: 18px 0 8px; font-weight: 700; color: var(--ink); }

/* 결과 */
.result { padding: 0 var(--gutter) 40px; }
.result-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; max-width: 46rem; margin: 22px auto 0; font-size: 14px; color: var(--ink-2); }
.result-top .who b { color: var(--ink); }
.text-btn { border: 0; background: none; padding: 4px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--line); }
.resume { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: var(--panel); padding: 8px 12px; font-weight: 700; font-size: 14px; }
.resume::before { content: ""; width: 10px; height: 14px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }

/* 승차권 = 명식표 */
.ticket { max-width: 46rem; margin: 18px auto 0; background: var(--panel); border: 2px solid var(--ink); }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; background: var(--ink); color: var(--on-ink); padding: 10px 16px; font-size: 13px; }
.ticket-head b { font-size: 16px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1.5px solid var(--ink); }
.pillar { text-align: center; padding: 12px 4px 14px; border-left: 1px solid var(--rule); }
.pillar:first-child { border-left: 0; }
.pillar .pn { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.pillar .ch { display: block; font-family: var(--hanja); font-weight: 700; font-size: clamp(30px, 9vw, 44px); line-height: 1.15; margin-top: 4px; }
.pillar .g { display: block; font-size: 12px; color: var(--ink-2); }
.pillar .el { display: block; font-size: 11.5px; color: var(--ink-2); }
.pillar.me { background: var(--paper); }
.pillar.empty .ch { color: var(--rule); }
.ticket-body { padding: 16px; display: grid; gap: 14px; }
.dm { font-size: 16px; }
.dm b { font-size: 18px; }
.meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.meter-track { position: relative; height: 6px; background: var(--rule-2); }
.meter-track i { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--panel); border: 3.5px solid var(--ink); }
.meter-track::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1.5px; background: var(--ink-2); }
.elements { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.elements div { border-top: 3px solid var(--ink); padding-top: 6px; font-size: 13px; }
.elements div.zero { border-top-style: dashed; border-top-color: var(--rule); color: var(--ink-2); }
.elements b { display: block; font-size: 20px; line-height: 1.2; }
.small { font-size: 13.5px; color: var(--ink-2); }
.notices li { font-size: 13px; color: var(--ink-2); padding-left: 12px; position: relative; }
.notices li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; background: var(--ink-2); }

/* 한 해 한 줄 */
.yearline { max-width: 46rem; margin: 34px auto 0; }
.yearline h2 { margin-top: 6px; font-size: clamp(23px, 6vw, 32px); line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.yearline p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }

/* 레이아웃: 노선 레일 + 읽기 단 */
.journey { margin-top: 30px; }
.route { position: sticky; top: 64px; z-index: 10; background: var(--paper); margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 10px; border-bottom: 1px solid var(--rule); }
.route ol { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.route ol::before { content: ""; position: absolute; left: 4%; right: 4%; top: 9px; height: 4px; background: var(--line); }
.route a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; font-size: 11px; font-weight: 700; padding: 0 0 2px; color: var(--ink); }
.route a i { width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--ink); transition: background .25s cubic-bezier(.2,.8,.2,1), transform .25s cubic-bezier(.2,.8,.2,1); }
.route a.x i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--transfer); }
.route a.lockd { color: var(--ink-2); }
.route a.lockd i { border-color: var(--ink-2); }
.route a[aria-current="true"] i { background: var(--line); border-color: var(--line); transform: scale(1.25); }
.route a.flag::after { content: ""; position: absolute; top: -8px; right: 50%; margin-right: -12px; width: 7px; height: 10px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); }
.route-title { display: none; }

.reading { max-width: 46rem; margin: 0 auto; }
.block-title { margin: 44px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.block-sub { font-size: 14px; color: var(--ink-2); }

/* 정차역 = 달 */
.stops { position: relative; margin-top: 8px; }
.stop { position: relative; padding: 30px 0 30px 34px; border-left: 6px solid var(--line); margin-left: 9px; }
.stop.lockd { border-left-color: var(--rule); }
.stops .stop:last-child { padding-bottom: 8px; }
.stop-dot { position: absolute; left: -16px; top: 32px; width: 26px; height: 26px; border-radius: 50%; background: var(--panel); border: 5px solid var(--ink); }
.stop.x .stop-dot { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--transfer); }
.stop.now .stop-dot { background: var(--line); border-color: var(--line); animation: fill .5s cubic-bezier(.2,.8,.2,1); }
@keyframes fill { from { transform: scale(.7); } to { transform: scale(1); } }
.stop-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stop-num b { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.stop-num b small { font-size: 20px; margin-left: 1px; }
.stop-range { font-size: 13.5px; color: var(--ink-2); }
.stop-range .hj { color: var(--ink); font-size: 16px; }
.stop h3 { margin-top: 10px; font-size: clamp(21px, 5.6vw, 26px); line-height: 1.35; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.gods { margin-top: 4px; font-size: 13px; color: var(--ink-2); }

.transfers { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.transfers li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--transfer); }
.mark { display: inline-block; width: 28px; height: 8px; flex: none; }
.mark.r-합 { border-top: 2.5px solid var(--transfer); border-bottom: 2.5px solid var(--transfer); }
.mark.r-충 { background: linear-gradient(90deg, var(--transfer) 0 40%, transparent 40% 60%, var(--transfer) 60%) center / 100% 3px no-repeat; }
.mark.r-형 { background: linear-gradient(var(--transfer), var(--transfer)) center / 100% 3px no-repeat, repeating-linear-gradient(90deg, var(--transfer) 0 2px, transparent 2px 7px) center / 100% 8px no-repeat; }
.mark.r-해 { background: repeating-linear-gradient(90deg, var(--transfer) 0 4px, transparent 4px 7px) center / 100% 3px no-repeat; }
.mark.r-반합 { border-top: 2.5px solid var(--transfer); background: repeating-linear-gradient(90deg, var(--transfer) 0 4px, transparent 4px 7px) bottom / 100% 2.5px no-repeat; }

.stop-body { margin-top: 16px; max-width: var(--measure); }
.stop-body p { font-size: 16.5px; line-height: 1.75; }
.stop-body p + p { margin-top: 10px; }
.stop-body .link { font-size: 14.5px; color: var(--ink-2); padding-top: 10px; border-top: 1px dashed var(--rule); margin-top: 14px; }

.areas { margin-top: 22px; border-top: 1.5px solid var(--ink); max-width: var(--measure); }
.area { display: grid; grid-template-columns: 3.2rem 1fr; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.area dt { font-weight: 800; font-size: 15px; }
.area .lv { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.area dd { grid-column: 1 / -1; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; width: 4.6rem; }
.steps i { height: 5px; background: var(--rule-2); }
.steps i.on { background: var(--ink); }
.area dd { font-size: 15px; line-height: 1.6; }
/* 주의·조심은 색이 아니라 굵기와 빈 칸으로: 칸이 비고 테두리만 남는다 */
.area[data-lv="-2"] .lv, .area[data-lv="-1"] .lv { font-weight: 800; }
.area[data-lv="-2"] .steps i.on, .area[data-lv="-1"] .steps i.on { background: none; box-shadow: inset 0 0 0 1.5px var(--ink); }

.days { margin-top: 22px; display: grid; gap: 18px; max-width: var(--measure); }
.days h4 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.days h4::before { content: ""; width: 14px; height: 14px; flex: none; }
.days .bad h4::before { border: 3px solid var(--ink); border-radius: 50%; }
.days .good h4::before { background: var(--ink); border-radius: 50%; }
.days li { display: grid; grid-template-columns: 5.6rem 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-2); }
.days time { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.days time small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.days time .hj { font-size: 14px; color: var(--ink); }
.days p { font-size: 15px; line-height: 1.6; }
.days .why { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.days .none { font-size: 14px; color: var(--ink-2); }

.todo { margin-top: 22px; max-width: var(--measure); display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; background: var(--ink); color: var(--on-ink); }
.todo b { flex: none; font-size: 13px; color: var(--on-ink-2); }
.todo span { font-size: 16px; font-weight: 700; }

details.why-box { margin-top: 14px; max-width: var(--measure); border-top: 1.5px solid var(--transfer); }
details.why-box summary { cursor: pointer; list-style: none; padding: 10px 0; font-size: 14.5px; font-weight: 800; color: var(--transfer); display: flex; align-items: center; gap: 8px; }
details.why-box summary::-webkit-details-marker { display: none; }
details.why-box summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
details.why-box[open] summary::before { transform: rotate(45deg); }
.why-box ul { padding: 2px 0 12px; }
.why-box li { font-size: 14px; line-height: 1.6; padding: 4px 0 4px 14px; position: relative; }
.why-box li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 2px; background: var(--transfer); }
.why-box h5 { font-size: 13px; font-weight: 800; color: var(--ink-2); margin-top: 6px; }
.why-box .fact { font-weight: 700; }

.lock-note { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); max-width: var(--measure); }

/* 결제 벽 자리: 안내판 */
.board { margin: 36px 0 8px; background: var(--ink); color: var(--on-ink); padding: 22px 20px 20px; max-width: 46rem; }
.board h2 { margin-top: 0; font-size: clamp(20px, 5.4vw, 25px); line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; }
.board p { margin-top: 8px; font-size: 15px; color: var(--on-ink-2); }
.board p b { color: var(--on-ink); }
.vote { margin-top: 18px; }
.vote legend { font-size: 15.5px; font-weight: 700; margin-bottom: 10px; color: var(--on-ink); }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote button { border: 1.5px solid var(--on-ink); background: transparent; color: var(--on-ink); padding: 12px 6px; font-weight: 700; font-size: 15px; }
.vote button:hover { background: var(--on-ink); color: var(--ink); }
.vote button[aria-pressed="true"] { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.vote-thanks { font-size: 14px; color: var(--on-ink); margin-top: 10px; }
.unlock { margin-top: 16px; width: 100%; border: 0; background: var(--line); color: #fff; font-weight: 800; padding: 14px 0; font-size: 16px; }

/* 한 해 분야별 */
.year-body { max-width: var(--measure); margin-top: 14px; }
.year-body p { font-size: 16.5px; line-height: 1.75; }
.year-body p + p { margin-top: 10px; }
.year-areas { margin-top: 18px; border-top: 1.5px solid var(--ink); max-width: var(--measure); }
.year-areas > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.year-areas dt { font-weight: 800; font-size: 16px; }
.year-areas dd { font-size: 15.5px; line-height: 1.65; margin-top: 4px; }
.year-areas .months { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.year-areas .months b { color: var(--ink); }

/* 조심할 날 모아 보기 */
.all-days { max-width: var(--measure); margin-top: 12px; }
.all-days table { width: 100%; border-collapse: collapse; font-size: 14px; }
.all-days th, .all-days td { text-align: left; padding: 8px 6px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.all-days th { font-size: 12.5px; color: var(--ink-2); font-weight: 700; border-bottom: 1.5px solid var(--ink); }
.all-days td:first-child { font-weight: 800; white-space: nowrap; }

/* 하차 = 저장 */
.exit { max-width: 46rem; margin: 44px 0 0; padding: 20px; border: 2px solid var(--ink); background: var(--panel); }
.exit h2 { font-size: 20px; font-weight: 800; }
.exit p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.exit-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.exit-btns button { border: 2px solid var(--ink); background: var(--panel); padding: 13px 6px; font-weight: 800; font-size: 15px; }
.exit-btns button.primary { background: var(--ink); color: var(--on-ink); }
.exit-btns button:hover { border-color: var(--ink-2); }
.exit-btns .wide { grid-column: 1 / -1; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; padding: 6px; }
.exit .msg { font-size: 14px; color: var(--ink); font-weight: 700; min-height: 1.4em; }

.foot { max-width: 46rem; margin: 0 auto; padding: 28px var(--gutter) 40px; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 6px; }

/* 넓은 화면: 노선 레일을 왼쪽 세로로 */
@media (min-width: 960px) {
  .start { padding-top: 56px; max-width: 40rem; }
  .journey { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 48px; max-width: 64rem; margin-left: auto; margin-right: auto; }
  .route { top: 88px; align-self: start; margin: 0; padding: 0; border: 0; background: none; }
  .route-title { display: block; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
  .route ol { grid-template-columns: 1fr; gap: 0; }
  .route ol::before { left: 7px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; }
  .route a { flex-direction: row; gap: 12px; font-size: 14px; padding: 6px 0; }
  .route a.flag::after { top: 4px; right: auto; left: -14px; margin: 0; }
  .reading { margin: 0; }
  .result-top, .ticket, .yearline { margin-left: auto; margin-right: auto; max-width: 64rem; }
  .ticket { display: grid; grid-template-columns: 1.1fr 1fr; }
  .ticket-head { grid-column: 1 / -1; }
  .pillars { border-bottom: 0; border-right: 1.5px solid var(--ink); }
}

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

/* 인쇄(PDF) */
@media print {
  @page { margin: 14mm 12mm; }
  body { background: #fff; font-size: 11pt; }
  .sign { position: static; }
  .start, .route, .board .vote, .board .unlock, .exit, .foot a, .result-top button, .resume { display: none !important; }
  .journey { display: block; }
  .stop { break-inside: auto; padding-top: 18px; }
  .stop h3, .stop-num, .days li, .area { break-inside: avoid; }
  details.why-box summary::before { display: none; }
  .board { background: none; color: var(--ink); border: 1.5px solid var(--ink); }
  .board p, .board h2 { color: var(--ink); }
  .todo { background: none; color: var(--ink); border: 1.5px solid var(--ink); }
}

/* 보조 페이지(개인정보 안내·404·운영 집계) */
.page { max-width: 40rem; margin: 0 auto; padding: 32px var(--gutter) 56px; }
.page h1 { font-size: clamp(26px, 6.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.page h2 { margin-top: 28px; font-size: 18px; font-weight: 800; }
.page p { margin-top: 10px; font-size: 15.5px; max-width: var(--measure); }
.page-date { color: var(--ink-2); font-size: 13.5px !important; }
.page code { font-size: 14px; background: var(--panel); border: 1px solid var(--rule); padding: 1px 5px; }
.as-link { display: inline-block; width: auto; padding: 14px 22px; color: #fff; text-decoration: none; }
.as-link:hover { color: #fff; }
.page .origin { margin-top: 22px; }
.page .time input { min-width: 100%; }
.stats-out h2 { margin-top: 28px; }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.stats-out table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--panel); }
.stats-out th, .stats-out td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
.stats-out thead th { border-bottom: 1.5px solid var(--ink); font-size: 12.5px; color: var(--ink-2); }
.stats-out .num { text-align: right; font-weight: 700; }

/* 시각: 시·분 고르기 */
.hm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1 1 12rem; }
.hm legend { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); padding: 0; margin-bottom: 2px; }
.pick select:disabled { opacity: 0.35; }
/* 다음 역 안내 */
.next { margin-top: 18px; max-width: var(--measure); font-size: 14.5px; color: var(--ink-2); }
.next a { text-decoration: none; display: inline-flex; gap: 6px; align-items: baseline; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; color: var(--ink); }
.next a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
