:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #1b2230;
  --muted: #5a6476;
  --line: #e2e7ef;
  --accent: #d6334a;
  --accent-soft: #fdeef0;
  --brand: #1f4e8c;
  --brand-soft: #e8f0fb;
  --shadow: 0 1px 2px rgba(20,35,60,.06), 0 4px 14px rgba(20,35,60,.06);
  --ok: #1a7f37;
  --warn-bg: #fff6e0;
  --warn-line: #e8c46a;
  --radius: 10px;
  --max: 760px;
  --sun: #f4b43a;
  --mount: #5b7fa6;
  --snow: #ffffff;
  --plane: #c8102e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.7;
  font-size: 17px;
}
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; color: var(--text); text-decoration: none; font-size: 19px; }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

main { padding: 24px 0 48px; }
h1 { font-size: 28px; line-height: 1.35; margin: 8px 0 12px; }
h2 { font-size: 21px; margin: 36px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 18px; margin: 24px 0 8px; }
.lead { color: var(--muted); font-size: 18px; }
.meta { color: var(--muted); font-size: 14px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  margin: 16px 0;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  text-decoration: none;
}
.card:hover { border-color: var(--accent); }
.card strong { display: block; margin-bottom: 4px; }
.card small { color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 12px 0; }
.checklist li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 6px 0;
}
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.checklist li.done { opacity: .6; }
.checklist li.done .item-text { text-decoration: line-through; }
.checklist .item-note { display: block; color: var(--muted); font-size: 14px; }
.checklist li[hidden] { display: none; }
.tag { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; margin-left: 6px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.toolbar button, .filters button {
  font: inherit; font-size: 15px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.filters fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin: 0; }
.filters legend { font-size: 14px; color: var(--muted); padding: 0 4px; }
.filters label { margin-right: 10px; font-size: 15px; white-space: nowrap; }
.progress { flex: 1 1 200px; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .2s; }
.progress-label { font-size: 14px; color: var(--muted); }

.sources { font-size: 14px; color: var(--muted); }
.sources li { margin: 4px 0; word-break: break-all; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer a { color: var(--muted); margin-right: 12px; }

/* planner */
.planner { scroll-margin-top: 12px; }

.hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero > div { flex: 1 1 280px; }
.hero h1 { margin-top: 0; }
.soon { color: var(--muted); font-size: 14px; margin-top: 10px; }
.btn { white-space: nowrap; }
.w-icon { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.weather { display: flex; gap: 12px; align-items: flex-start; }
.todo li { display: flex; align-items: flex-start; flex-wrap: wrap; }
.todo li > label { flex: 1 1 0; min-width: 0; }
.todo .info {
  flex: none; margin: 8px 6px 0 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
}
.todo .info.on { border-color: var(--accent); color: var(--accent); }
.todo li > .d { flex-basis: 100%; padding: 0 12px 10px 38px; color: var(--muted); font-size: 14px; }
.ad-slot:empty { display: none; }

/* v3: 한 번 누르면 다음 단계 */
.picked { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.pill { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.pill:hover { color: var(--accent); border-color: var(--accent); }
.chips.big { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.chips.big .chip { padding: 14px 10px; border-radius: var(--radius); font-size: 16px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.chips.big .chip small { margin: 0; font-weight: 400; }
.chips.big .chip:hover { border-color: var(--accent); color: var(--accent); }

.toggles { display: flex; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.toggle { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer; background: var(--surface); }
.toggle input { accent-color: var(--accent); margin-right: 4px; }

.parts { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 18px 0 8px; position: relative; }
.parts::before { content: ""; position: absolute; left: 18px; right: 18px; top: 17px; height: 2px; background: var(--line); }
.parts li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); position: relative; flex: 1; text-align: center; }
.parts button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.parts button.on { border-color: var(--accent); color: var(--accent); }
.parts button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 420px) { .parts li span { font-size: 11px; line-height: 1.3; } }

.part-title { display: flex; align-items: center; gap: 8px; border: none; margin: 12px 0 8px; padding: 0; }
.part-title .g-count { font-size: 15px; }
#part .todo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 6px; }
#part .todo li:first-child { border-top: none; }
.part-nav { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0; }
.part-nav .btn:only-child, .part-nav #next { margin-left: auto; }

.finish { text-align: center; padding: 24px 0; }
.finish-art { width: 96px; height: 96px; }
.finish h2 { border: none; margin: 12px 0 4px; }
.actions.center { justify-content: center; }
.print-only { display: none; }
.todo .d[hidden] { display: none; }

.q { border: none; padding-top: 0; margin: 24px 0 12px; font-size: 20px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.country {
  font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600;
}
.country svg { width: 48px; height: 32px; }
.country:hover:not(:disabled) { border-color: var(--accent); }
.country:disabled { cursor: default; color: var(--muted); font-weight: 400; opacity: .7; }
.country small { font-size: 12px; }

.dates { display: flex; gap: 12px; flex-wrap: wrap; }
.dates label { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); flex: 1 1 140px; }
.dates input { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 15px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.chip small { margin-left: 6px; font-size: 11px; color: var(--muted); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.options { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 0; font-size: 15px; }
.options input { accent-color: var(--accent); }

.actions { display: flex; gap: 8px; margin: 20px 0 8px; flex-wrap: wrap; }
.btn { font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); font-weight: 400; }
.btn.small { padding: 6px 14px; font-size: 14px; }

.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.summary { font-size: 16px; }
.summary strong { font-size: 20px; }
.dday { color: var(--accent); font-weight: 700; }
.weather { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; font-size: 15px; }
.weather p { margin: 4px 0; }
.weather small { color: var(--muted); display: block; margin-top: 4px; }
.flag { display: inline-block; margin-top: 4px; color: var(--accent); font-weight: 600; }

.g-icon { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.g-count { color: var(--muted); font-weight: 400; font-size: 14px; }
.todo { list-style: none; margin: 0; padding: 0 6px 8px; }
.todo li { border-top: 1px solid var(--line); }
.todo label { display: flex; gap: 10px; padding: 10px 8px; cursor: pointer; align-items: flex-start; }
.todo input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.todo .t { display: block; }
.todo .d { display: block; color: var(--muted); font-size: 14px; }
.todo .more { font-size: 13px; }
.todo li.done .t { text-decoration: line-through; color: var(--muted); }

.below { margin-top: 48px; }
.link-list { padding-left: 18px; }
.link-list li { margin: 6px 0; }
.more-link { font-size: 15px; }

@media print {
  .actions, .result-head button, .below { display: none; }
  #planner > *:not(#printable) { display: none !important; }
  .print-only { display: block !important; }

  .site-header, .site-footer, .toolbar, .filters, .notice { display: none; }
  .checklist li { border: none; }
  body { background: #fff; color: #000; }
}

/* 체크 항목 일러스트 (countries/*.js의 art) */
:root { --art-bg: #f1f4f9; --art-paper: #ffffff; --art-soft: #e6e9ee; --art-ink: #3a4048; --art-blue: #5b7fa6; --art-yellow: #f4c04a; }
.todo li > .art { flex-basis: 100%; display: block; padding: 0 12px 12px 38px; cursor: pointer; }
.art svg { display: block; width: 100%; max-width: 300px; height: auto; background: var(--art-bg); border-radius: 10px; transition: opacity .2s; }
.todo li.done > .art svg { opacity: .4; }
.art .pa { fill: var(--art-paper); } .art .sf { fill: var(--art-soft); } .art .bl { fill: var(--art-blue); } .art .ye { fill: var(--art-yellow); }
.art .ac { fill: var(--accent); } .art .okc { fill: var(--ok); } .art .pp { fill: #8a1c2b; } .art .sg { fill: #2b3440; } .art .mu { fill: var(--muted); }
.art .st { stroke: var(--art-ink); stroke-width: 2; }
.art .ws { stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; }
.art .hs { stroke: var(--accent); stroke-width: 3; fill: none; }
.art .hl { fill: none; stroke: var(--accent); stroke-width: 3; }
.art .hb { fill: none; stroke: var(--art-blue); stroke-width: 2.5; }
.art .tx { fill: var(--text); } .art .tm { fill: var(--muted); } .art .wt { fill: #fff; } .art .at { fill: var(--accent); }
@media print { .art { display: none !important; } }

/* v4 (2026-10-05): 밝은 화면, 카드형, 여백 축소 */
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #15181d; --surface: #1d2127; --text: #e8eaed; --muted: #a3abb7; --line: #2f353d; --accent: #ff6b7f; --accent-soft: #3a1d22;
    --ok: #4ac26b; --warn-bg: #2f2814; --warn-line: #8a6d1f; --brand: #6f9fe0; --brand-soft: #1f2a3a; --shadow: none; --mount: #3d5a7a; --snow: #e8e6e3;
    --header: #17263d; --art-bg: #23272c; --art-paper: #2f343a; --art-soft: #3a4047; --art-ink: #c9ced4; --art-blue: #4d6f95; --art-yellow: #c9a23e; }
  .art svg { background: var(--art-bg); }
  .art .nv { fill: #2b4a80; } .art .zb { fill: #22313d; stroke: #5d84a3; } .art .sv { fill: #6b737d; } .art .br { fill: #9b7442; }
}
body { font-size: 16px; line-height: 1.65; }
.site-header { background: var(--header, #1f4e8c); border: none; }
.site-header .logo, .site-header .nav a { color: #fff; }
.site-header .logo span { color: #ffd7dd; }
main { padding: 16px 0 40px; }
h2 { margin: 28px 0 8px; }
.hero { background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.q { margin: 18px 0 4px; }
.why { color: var(--muted); font-size: 14px; margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.country, .chips.big .chip, .mode { box-shadow: var(--shadow); border-color: var(--line); }
.country:hover, .mode:hover { border-color: var(--brand); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mode { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; }
.mode strong { font-size: 18px; color: var(--brand); }
.mode span { font-size: 14px; color: var(--muted); }
.mode small { font-size: 12px; color: var(--brand); font-weight: 600; }
#part .todo { padding: 0; box-shadow: var(--shadow); border-radius: 14px; }
.todo li { padding: 4px 6px 10px; }
.todo li > label { padding-bottom: 2px; }
.todo .t { font-weight: 600; }
.todo li > .d { flex-basis: 100%; margin: 0; padding: 0 12px 4px 38px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.todo li > .xd { flex-basis: 100%; margin: 0 12px 4px 38px; font-size: 13.5px; color: var(--muted); }
.todo .xd summary { cursor: pointer; color: var(--brand); font-size: 13px; width: fit-content; }
.todo .xd p { margin: 4px 0 2px; line-height: 1.6; }
.todo li > .more { flex-basis: 100%; margin: 0; padding: 2px 12px 0 38px; font-size: 13px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.todo .more .at { color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.todo li > .art { padding: 4px 12px 4px 38px; }
.art svg { max-width: 340px; background: var(--art-bg); border: 1px solid var(--line); }
.art .nv { fill: #1f3c74; } .art .zb { fill: #eef6fb; stroke: #8fb3cf; stroke-width: 2; stroke-dasharray: 5 3; }
.art .sv { fill: #d9dde3; } .art .br { fill: #d7a86e; }
.weather { box-shadow: var(--shadow); border-radius: 14px; }
.parts button { background: var(--surface); }
.parts button.on { border-color: var(--brand); color: var(--brand); }
.btn { background: var(--brand); border-color: var(--brand); }
.updates { list-style: none; padding: 0; font-size: 14px; color: var(--muted); }
.updates li { margin: 6px 0; }
.updates time { display: inline-block; min-width: 92px; color: var(--text); font-weight: 600; }
.site-header .nav a:hover, .site-header .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.todo li > .tip { flex-basis: 100%; margin: 0; padding: 0 12px 4px 38px; font-size: 13.5px; color: var(--text); }
.todo .tip b { color: #e0a100; }

/* 2026-10-05: 첫 화면·체크 화면 단순화 */
.hero-title { font-size: 26px; margin: 20px 0 2px; }
.planner .lead { font-size: 16px; margin: 0 0 4px; }
.below { margin-top: 40px; font-size: 15px; }
.updates-box { margin-top: 20px; font-size: 14px; color: var(--muted); }
.updates-box summary { cursor: pointer; }
.art svg { max-width: 280px; }
.below .link-list { padding-left: 0; list-style: none; }
.below .link-list a, .below .more-link a { color: var(--text); text-decoration: none; }
.below .link-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.todo .tsub { font-weight: 400; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* 2026-10-05 UX 점검 반영 */
.toggles[hidden] { display: none; }
.part-sub { margin: -4px 0 8px; font-size: 14px; color: var(--muted); }
.all-btn { font: inherit; font-size: 14px; background: none; border: none; color: var(--brand); padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.todo li > .tip { font-size: 14.5px; }
.todo .tip b { color: #b07d00; }
@media (prefers-color-scheme: dark) { .todo .tip b { color: #f2c14e; } }
.todo .xd summary { font-size: 14px; padding: 4px 0; }
.todo .tsub { font-size: 12.5px; }
.todo input { width: 22px; height: 22px; }
.toggle input { width: 18px; height: 18px; vertical-align: -3px; }
.resume { margin: 12px 0 0; }

/* Trip Check 브랜드·홈 본문 */
.logo { display: inline-flex; align-items: center; gap: 6px; }
.logo-mark { width: 22px; height: 22px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-mini { width: 64px; height: 64px; flex: none; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.badges span { font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.howto { padding-left: 20px; }
.howto li { margin: 6px 0; }
.howto strong { margin-right: 6px; }
.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 6px 0 0; color: var(--muted); }
.todo .xd .art { padding: 6px 0 0; }
body { word-break: keep-all; }
@media (max-width: 420px) { .hero-title { font-size: 23px; } .hero-mini { width: 48px; height: 48px; } }

/* 2026-10-05: 작은 그림 항상 표시, 아래 본문 접기, 항공사 배지 */
.todo li { position: relative; }
.todo li > .art { flex-basis: 100%; padding: 2px 12px 4px 38px; pointer-events: none; }
.todo li > .art svg { max-width: 170px; border: none; }
@media (min-width: 560px) {
  .todo li { padding-right: 170px; min-height: 92px; }
  .todo li > .art { position: absolute; right: 12px; top: 10px; width: 150px; padding: 0; }
  .todo li > .art svg { max-width: 150px; }
}
.todo .tag { font-style: normal; font-size: 11px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 4px; padding: 1px 5px; margin-right: 2px; vertical-align: 1px; }
.info-box { border-top: 1px solid var(--line); padding: 10px 0; font-size: 14px; color: var(--muted); }
.info-box summary { cursor: pointer; font-size: 14px; }
.info-box h3 { font-size: 15px; margin: 14px 0 4px; color: var(--text); }
.info-box .faq { padding: 6px 0; }
.below { margin-top: 32px; }
.chip .al { display: inline-block; min-width: 26px; font-size: 10px; line-height: 16px; color: #fff; border-radius: 4px; padding: 0 4px; margin-bottom: 2px; letter-spacing: .3px; }
.logo { gap: 0; }
.logo-mark { margin-right: 6px; }

/* 체크 범위 확대: 항목 전체가 눌림 */
.todo li { cursor: pointer; }
.todo li > .art { pointer-events: auto; }
.todo input { width: 24px; height: 24px; }
.upd { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; margin: 0 0 12px; }
/* 가이드 하단 접힌 자세히: 보이는 분량은 그대로 */
details.more { margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
details.more summary { cursor: pointer; font-weight: 600; color: var(--brand); }
details.more table { font-size: 13px; }
details.more[open] summary { margin-bottom: 8px; }
/* 쿠팡 파트너스 링크와 대가성 문구 */
.todo li > .shop { flex-basis: 100%; margin: 0; padding: 0 12px 4px 38px; font-size: 13px; }
.ad-note { font-size: 12px; color: var(--muted); margin: 8px 12px; }
