/* 파크쿠폰 — 맑은 파랑 + 노랑 포인트, 사진 배너, Gothic A1 + Do Hyeon 제목 */
:root {
  --ink: #0f1c2b;
  --ink-2: #33475b;
  --muted: #566a7e;
  --line: #d4e1ee;
  --bg: #ffffff;
  --soft: #edf4fb;
  --main: #0a58a8;
  --main-dark: #08447f;
  --sun: #ffd166;
  --r: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Gothic A1", -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 { font-family: "Do Hyeon", "Gothic A1", sans-serif; font-weight: 400; line-height: 1.25; margin: 0 0 .55em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.14rem; font-weight: 800; line-height: 1.4; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; 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; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.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: 48px; padding: 0 22px; border-radius: 8px; font-weight: 800; 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(--main-dark); border-color: var(--main); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 3px solid var(--main); }
.hd-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.hd-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; }
.logo-mark .lm-wheel { fill: none; stroke: var(--main); stroke-width: 2.6; }
.logo-mark .lm-spoke { stroke: var(--main); stroke-width: 1.6; }
.logo-mark .lm-leg { fill: none; stroke: #e0a400; stroke-width: 2.6; stroke-linecap: round; }
.hd-name { font-family: "Do Hyeon", sans-serif; font-size: 1.45rem; display: flex; flex-direction: column; line-height: 1.05; }
.hd-sub { font-family: "Gothic A1", sans-serif; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hd-nav { display: flex; gap: 2px; margin-left: auto; }
.hd-nav a { padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .96rem; }
.hd-nav a { border-bottom: 3px solid transparent; }
.hd-nav a:hover, .hd-nav a[aria-current="page"] { color: var(--main); border-bottom-color: var(--sun); }
.hd-nav .hd-nav-cta { display: none; }
.hd-toggle { white-space: nowrap; display: none; align-items: center; gap: 6px; height: 42px; padding: 0 12px; background: var(--soft); border: 0; border-radius: 8px; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }

/* 사진 배너 */
.banner { position: relative; height: min(60svh, 560px); min-height: 400px; overflow: hidden; background: #0b2440; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(5, 20, 40, .55); }
.banner-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.banner h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); white-space: nowrap; margin-bottom: .25em; }
.banner p { font-size: 1.15rem; max-width: 30em; color: #e8f0f8; }
.banner .btn { align-self: flex-start; background: var(--sun); color: #2a1d00; }
.banner .btn:hover { background: #ffc233; }

.section { padding: 58px 0; }
.soft { background: var(--soft); }

/* 코드 줄 목록 */
.code-rows { list-style: none; margin: 0; padding: 0; }
.code-rows li { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--line); }
.code-rows li:first-child { border-top: 2px solid var(--line); }
.cr-no { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); color: var(--main); font-family: "Do Hyeon", sans-serif; font-size: 1.4rem; display: grid; place-items: center; }
.cr-body h3 { margin: 0; }
.cr-body h3 a { color: var(--ink); text-decoration: none; }
.cr-rate { margin: 2px 0; font-weight: 800; color: var(--main); }
.cr-brief { margin: 0; color: var(--muted); }
.kcode { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--ink); background: #fff4d6; padding: 1px 7px; border-radius: 4px; margin-left: 4px; }

/* 테마파크 목록 */
.park-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.park img { border-radius: var(--r); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 12px; }
.park h3 { font-size: 1.2rem; margin-bottom: .2em; }
.park h3 a { color: var(--ink); }
.park-tip { color: var(--main-dark); font-weight: 700; margin-bottom: .3em; }
.park p:last-child { color: var(--muted); font-size: .97rem; margin: 0; }
.park-more-h { margin-top: 56px; }
.park-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.park-list li { padding: 14px 0; border-bottom: 2px solid var(--line); }
.park-list h3 { margin-bottom: .2em; }
.park-list h3 a { color: var(--ink); }
.park-list p { margin: 0; color: var(--muted); font-size: .97rem; }
.park-list .park-tip { color: var(--main-dark); font-weight: 700; }

/* 표 */
.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(--main); color: #fff; font-weight: 700; white-space: nowrap; }
.info-table tbody th { font-weight: 800; }

/* 글 */
.text-block { margin-bottom: 2.4em; }
.text-block:last-child { margin-bottom: 0; }
.text-block h2 { color: var(--main-dark); }
.text-photo { margin: 0 0 1.2em; }
.text-photo img { border-radius: var(--r); }
.plain-list, .num-list { padding-left: 1.3em; }
.plain-list li, .num-list li { margin-bottom: .4em; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 16px 0; border-bottom: 2px solid var(--line); }
.step-no { width: 40px; height: 40px; border-radius: 50%; background: var(--main); color: #fff; font-family: "Do Hyeon", sans-serif; font-size: 1.3rem; display: grid; place-items: center; }
.steps p, .checklist p { margin: 0; color: var(--ink-2); }
.checklist { padding-left: 1.3em; margin: 0; }
.checklist li { padding: 12px 0; border-bottom: 2px solid var(--line); }
.checklist h3 { margin-bottom: .2em; font-size: 1.05rem; }

.faq { border-bottom: 2px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

.digest-item { padding: 14px 0; border-bottom: 2px solid 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; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; }
.directory li { padding: 12px 0; border-bottom: 2px solid var(--line); }
.directory a { font-weight: 800; }
.directory p { margin: .2em 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: 24px 0 40px; }
.page-head-in { display: grid; gap: 36px; }
.page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.page-head h1, .detail-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.page-lead { font-size: 1.1rem; 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-in { display: grid; gap: 36px; }
.detail-rate { font-size: 1.4rem; font-weight: 800; color: var(--main); }
.part-summary, .part-steps, .part-checklist { background: var(--soft); }
.related-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.related-list li { padding: 10px 0; border-bottom: 2px solid var(--line); }
.related-list span { color: var(--muted); }
.back-link { font-weight: 800; }
.cta-strip { background: var(--main); 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-size: 1.1rem; font-weight: 700; }
.cta-strip .btn-main { background: var(--sun); color: #2a1d00; }
.more-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.more-menu a { font-weight: 800; }
.notfound { text-align: center; padding: 90px 0; }

/* 푸터 */
.ft { background: #0b1f36; color: #cfdced; padding: 50px 0 30px; font-size: .95rem; }
.ft .hd-logo { color: #fff; }
.ft .hd-sub { color: #9fb4cc; }
.ft-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.ft-about p { margin-top: 12px; }
.ft-note { color: #a5b8cf; font-size: .9rem; }
.ft-col { display: flex; flex-direction: column; gap: 5px; }
.ft-h { font-family: "Gothic A1", sans-serif; font-weight: 800; font-size: 1rem; color: #fff; margin: 0 0 6px; }
.ft-h2 { margin-top: 18px; }
.ft-col a { color: #cfdced; text-decoration: none; }
.ft-col a:hover { color: #fff; text-decoration: underline; }
.ft-col a.strong { font-weight: 800; color: #fff; }
.to-top { display: inline-block; margin-top: 22px; color: var(--sun); font-weight: 800; }

@media (max-width: 1000px) {
  .park-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-nav a { padding: 8px 6px; font-size: .92rem; }
}
@media (max-width: 880px) {
  .hd-toggle { display: inline-flex; margin-left: 8px; }
  .hd-cta { margin-left: auto; }
  .hd-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 3px solid var(--main); padding: 6px 20px 16px; }
  .hd.nav-open .hd-nav { display: flex; }
  .hd-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ft-in { grid-template-columns: 1fr 1fr; }
  .ft-about { grid-column: 1 / -1; }
  .directory { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hd-sub { display: none; }
  .banner { height: 520px; min-height: 0; }
  .banner::after { background: rgba(5, 20, 40, .6); }
  .banner-in { justify-content: flex-end; padding-bottom: 36px; }
  .banner h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .section { padding: 42px 0; }
  h2 { font-size: 1.6rem; }
  .park-grid { grid-template-columns: minmax(0, 1fr); }
  .code-rows li { grid-template-columns: 44px minmax(0, 1fr); }
  .code-rows li .btn { grid-column: 1 / -1; }
  .cr-no { width: 36px; height: 36px; font-size: 1.15rem; }
  .ft-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hd-cta { display: none; }
  .hd-toggle { margin-left: auto; }
  .hd-nav .hd-nav-cta { display: block; color: var(--main); font-weight: 800; }
  .park-list { grid-template-columns: minmax(0, 1fr); }
}
