/* 패스쿠폰 — 승차권 느낌: 짙은 슬레이트 + 빨간 띠, Noto Sans KR */
:root {
  --ink: #1b2329;
  --ink-2: #3b4852;
  --muted: #5d6a74;
  --line: #d9dfe3;
  --bg: #ffffff;
  --paper: #f3f5f6;
  --slate: #1f2a33;
  --main: #a8251c;
  --main-dark: #861c15;
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .55em; font-weight: 900; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--r); font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; }
.btn-main { background: var(--main); color: #fff; }
.btn-main:hover { background: var(--main-dark); }
.btn-line { background: #fff; color: var(--slate); border-color: var(--slate); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }

/* 상단 */
.bar { position: sticky; top: 0; z-index: 20; background: var(--slate); border-bottom: 4px solid var(--main); }
.bar-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.bar-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; }
.logo-mark .lm-card { fill: #fff; }
.logo-mark .lm-stripe { stroke: var(--main); stroke-width: 5; }
.logo-mark .lm-text { stroke: var(--slate); stroke-width: 2; }
.bar-name { font-weight: 900; font-size: 1.2rem; display: flex; align-items: baseline; gap: 10px; }
.bar-sub { font-weight: 500; font-size: .82rem; color: #b9c4cc; }
.bar-nav { display: flex; gap: 2px; margin-left: auto; }
.bar-nav a { color: #e3e9ee; text-decoration: none; padding: 7px 10px; font-weight: 500; font-size: .96rem; }
.bar-nav a:hover, .bar-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--main); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.bar-nav .bar-nav-go { display: none; }
.bar-menu { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 12px; background: transparent; color: #fff; border: 2px solid #4a5a66; border-radius: var(--r); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* 첫 화면 */
.lead { background: var(--paper); }
.lead-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 46px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.lead-photo { margin: 0; }
.lead-photo img { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--r); }
.lead-text h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); white-space: nowrap; }
.lead-text p { font-size: 1.1rem; color: var(--ink-2); }
.lead-points { list-style: none; margin: 0; padding: 0; }
.lead-points li { padding: 10px 0; border-top: 2px dashed #b8c2c9; }
.lead-points li:last-child { border-bottom: 2px dashed #b8c2c9; }
.lead-points strong { color: var(--main); margin-right: 8px; }

.section { padding: 54px 0; }
.rail { background: var(--paper); }

/* 코드 카드 (사진 없음, 승차권 모양) */
.code-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.code-card { background: #fff; border: 2px solid var(--line); border-left: 8px solid var(--main); border-radius: var(--r); }
.cc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 2px; height: 100%; }
.cc-body h3 { margin: 0; }
.cc-body h3 a { color: var(--ink); text-decoration: none; }
.cc-rate { font-size: 1.45rem; font-weight: 900; color: var(--main); margin: 0; }
.cc-brief { color: var(--muted); margin: 0 0 12px; border-top: 2px dashed var(--line); padding-top: 8px; }
.cc-body .btn { margin-top: auto; }
.kcode { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--slate); background: var(--paper); padding: 1px 7px; border-radius: 3px; }

/* 안내 줄 */
.guide-rows { display: grid; gap: 22px; }
.guide-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; background: #fff; padding: 14px; border-radius: var(--r); }
.guide-row img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); width: 100%; }
.guide-row h3 { font-size: 1.25rem; font-weight: 900; }
.guide-row h3 a { color: var(--ink); }
.guide-row p { margin: 0; color: var(--ink-2); }
.guide-more { list-style: none; margin: 28px 0 0; padding: 0; }
.guide-more li { padding: 12px 0; border-bottom: 2px solid var(--line); }
.guide-more a { font-weight: 700; margin-right: 6px; }
.guide-more span { color: var(--muted); font-size: .97rem; }

/* 표 */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.info-table, .code-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td, .code-table th, .code-table td { text-align: left; padding: 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
.info-table thead th, .code-table thead th { background: var(--slate); color: #fff; font-weight: 700; white-space: nowrap; }
.info-table tbody th { font-weight: 700; }

/* 글 */
.text-block { margin-bottom: 2.4em; }
.text-block:last-child { margin-bottom: 0; }
.text-block h2 { padding-left: 14px; border-left: 6px solid var(--main); }
.text-photo { margin: 0 0 1.2em; }
.plain-list, .num-list { padding-left: 1.3em; }
.plain-list li, .num-list li { margin-bottom: .35em; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; padding: 16px 0; border-bottom: 2px dashed var(--line); }
.step-no { width: 38px; height: 38px; background: var(--slate); color: #fff; font-weight: 900; display: grid; place-items: center; border-radius: var(--r); }
.steps p, .checklist p { margin: 0; color: var(--ink-2); }
.checklist { margin: 0; padding-left: 1.3em; }
.checklist li { padding: 12px 0; border-bottom: 2px dashed var(--line); }
.checklist h3 { margin-bottom: .2em; font-size: 1.04rem; }

.faq { border-bottom: 2px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.04rem; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

.digest-item { padding: 14px 0; border-bottom: 2px dashed var(--line); }
.digest-item h3 a { color: var(--ink); }
.digest-item h3 span { color: var(--main); margin-left: 6px; font-size: .95rem; }
.digest-item p { margin: 0; color: var(--ink-2); }
.directory { list-style: none; margin: 0; padding: 0; }
.directory li { padding: 12px 0; border-bottom: 2px solid var(--line); }
.directory a { font-weight: 700; }
.directory p { margin: .15em 0 0; color: var(--muted); font-size: .96rem; }

/* 하위 페이지 */
.breadcrumb { padding: 14px 0 0; color: var(--muted); font-size: .95rem; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 22px 0 38px; border-bottom: 2px solid var(--line); }
.page-head-in { display: grid; gap: 34px; }
.page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
.page-head.has-photo .page-head-photo { order: -1; }
.page-head h1, .detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
.page-lead { font-size: 1.08rem; color: var(--ink-2); }
.page-head-photo, .detail-photo { margin: 0; }
.page-head-photo img, .detail-photo img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.detail-head { border-bottom: 2px solid var(--line); }
.detail-head-in { display: grid; gap: 30px; }
.detail-rate { font-size: 1.35rem; font-weight: 900; color: var(--main); }
.related-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.related-list li { padding: 10px 0; border-bottom: 2px dashed var(--line); }
.related-list span { color: var(--muted); }
.back-link { font-weight: 700; }
.cta-strip { background: var(--slate); color: #fff; }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta-strip p { margin: 0; font-weight: 700; }
.more-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.more-menu a { font-weight: 700; }
.notfound { text-align: center; padding: 90px 0; }

/* 아래 */
.foot { background: var(--slate); color: #cfd8de; padding: 46px 0 28px; font-size: .95rem; border-top: 4px solid var(--main); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.foot-tag { margin-top: 12px; }
.foot-h { color: #fff; font-weight: 700; margin: 0 0 6px; }
.foot-h2 { margin-top: 16px; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: 4px; }
.foot-list a { color: #cfd8de; text-decoration: none; }
.foot-list a:hover { color: #fff; text-decoration: underline; }
.foot-list a.strong { font-weight: 900; color: #fff; }
.foot-note { color: #a9b5bd; font-size: .9rem; }
.to-top { color: #fff; font-weight: 700; }

@media (max-width: 1000px) {
  .bar-nav a { padding: 7px 6px; font-size: .92rem; }
}
@media (max-width: 880px) {
  .bar-menu { display: inline-flex; margin-left: 8px; }
  .bar-go { margin-left: auto; }
  .bar-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--slate); padding: 6px 20px 16px; }
  .bar.nav-open .bar-nav { display: flex; }
  .bar-nav a { padding: 12px 0; border-bottom: 1px solid #3a4853; }
  .lead-in, .page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lead-photo img { max-height: 320px; }
  .guide-row { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bar-sub { display: none; }
  .bar-go { display: none; }
  .bar-menu { margin-left: auto; }
  .bar-nav .bar-nav-go { display: block; color: #fff; font-weight: 900; }
  .lead-in { padding-top: 24px; padding-bottom: 32px; }
  .lead-text h1 { font-size: clamp(1.75rem, 8.6vw, 2.4rem); }
  .section { padding: 40px 0; }
  h2 { font-size: 1.38rem; }
  .code-cards { grid-template-columns: minmax(0, 1fr); }
  .guide-row { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
