:root {
  /* 이 사이트는 라이트 전용이다. 명시하지 않으면 브라우저가 다크 선호
     기기에서 입력칸·스크롤바·기본 폼 컨트롤만 어둡게 칠해, 우리가 칠한
     밝은 배경 위에 어두운 위젯이 섞인다. */
  color-scheme: light;
  --bg: #fff9f4;
  --card: #ffffff;
  --ink: #221913;
  /* 보조 글자색. 260826 이전 값 #8c7e74 는 밝은 배경에서 3.76:1 이라
     WCAG AA(본문 4.5:1)를 못 넘겼다 — 주소·모드 설명·푸터·도움말이 전부
     이 색이라 사이트 절반이 기준 미달이었다. 눈으로는 "연한 회색"이라
     멀쩡해 보여서 아무도 못 봤다. 지금 값은 #fff9f4 위 4.95:1,
     #ffffff 위 5.17:1. 색을 바꿀 때 tools/a11y_audit.py 가 다시 잰다. */
  --sub: #776b62;
  --brand: #ff5a45;
  --brand2: #ff9046;
  --brand-grad: linear-gradient(135deg, #ff5a45, #ff9046);
  --brand-soft: #fff0ea;
  /* 글자용 브랜드색. --brand 는 밝아서 작은 글씨의 대비가
     2.8~3.0:1 밖에 안 나왔다(WCAG AA 4.5 미달, axe serious ·
     QA M-6). 배경·테두리는 --brand 그대로 두고 **글자만**
     어두운 쪽을 쓴다 — 최악 배경(#fff0ea)에서 5.36:1. */
  --brand-ink: #b83318;
  --line: #f1e7de;
  --shadow-card: 0 2px 10px rgba(90, 55, 30, .05);
  --shadow-pop: 0 8px 22px rgba(255, 90, 69, .28);
}
* { box-sizing: border-box; margin: 0; }
.icon {
  width: 1em; height: 1em; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.14em; flex: none;
}
[hidden] { display: none !important; }
/* 화면에서는 안 보이지만 스크린리더는 읽는 영역. 조작 결과("저장했어요",
   "링크를 복사했어요")를 여기에 써서 알린다 — 화면만 바뀌면 화면을 못 보는
   사람에게는 아무 일도 안 일어난 것과 같다. clip-path 가 아니라 clip+1px
   조합을 쓰는 이유는, display:none 이나 visibility:hidden 으로 감추면
   스크린리더도 같이 안 읽기 때문이다. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  background: var(--bg); color: var(--ink);
  max-width: 640px; margin: 0 auto; padding: 0 18px 56px;
  line-height: 1.5;
  /* 한글은 기본값(word-break: normal)에서 **글자 단위로** 끊긴다 — 좁은 화면
     에서 "다른 코스 / 뽑기" 가 아니라 "다른 코스 뽑 / 기" 로 잘렸다(QA L-6).
     keep-all 은 낱말을 붙여 두고, overflow-wrap 은 그래도 안 들어가는 긴
     토막(주소·상호 영문)만 끊는다 — 둘 다 있어야 넘치지도 잘리지도 않는다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 320px(아이폰 SE 1세대·갤럭시 폴드 접힘)에서는 좌우 여백 36px + 카드 여백
   40px = 76px 이 글자 자리를 먹는다. 여백만 줄여도 한 줄이 더 들어간다. */
@media (max-width: 360px) {
  body { padding-left: 12px; padding-right: 12px; }
  .course-head, .card { padding-left: 14px; padding-right: 14px; }
  .head-actions { gap: 6px; }
  /* 머리글 조작 4종의 여백은 밑바탕 규칙 바로 아래에 따로 적었다 — 미디어
     쿼리는 특이도를 안 올려서, 여기 두면 아래 밑바탕에 그냥 덮인다. */
}
a { -webkit-tap-highlight-color: transparent; }

/* ── 헤더 ───────────────────────────── */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.logo-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-grad); color: #fff;
  font-size: .82rem; font-weight: 800;
  box-shadow: 0 3px 8px rgba(255, 90, 69, .3);
}
.badge { font-size: .7rem; padding: 4px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .01em; }
.badge.demo { background: #fff3cd; color: #8a6d1a; }
.badge.live { background: #e5f6ec; color: #1f7a4d; }
.badge.live::before { content: "●"; font-size: .55rem; margin-right: 4px; vertical-align: 1px; }
footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--sub); line-height: 1.6; }
/* 사업자 표기는 심사에서 읽혀야 하므로 숨기지 않는다. 다만 서비스 문구보다는
   뒤로 물러나게 둔다 — 작게 쓰되 opacity 로 흐리지는 않는다. */
footer .biz { margin-top: 10px; font-size: .72rem; opacity: .8; }

/* ── 홈 히어로 ───────────────────────── */
.hero { margin: 26px 0 26px; text-align: left; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700;
  color: var(--brand-ink); background: var(--brand-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 {
  font-size: 2rem; line-height: 1.22; letter-spacing: -.035em; font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p { color: var(--sub); margin-top: 10px; font-size: .95rem; }

/* ── 폼 ─────────────────────────────── */
.plan-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; border: 0; padding: 0; }
.field > span, .field > label, .field legend {
  font-size: .82rem; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em; padding: 0; margin-bottom: 2px;
}
.field small { color: var(--sub); font-size: .74rem; }
input, select {
  font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 13px; background: var(--card); color: var(--ink);
  font-family: inherit; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c7e74' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 34px;
}
/* outline:none 만 두면 키보드 사용자는 지금 어디 있는지를 테두리 색 변화
   하나로만 읽어야 한다 — 그 색의 대비가 2.8:1 이었다(QA M-7). 실제 아웃라인을
   돌려주고, 그림자도 눈에 보이게 진하게 한다. */
input:focus-visible, select:focus-visible, .chip:focus-visible,
button:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--brand-ink); outline-offset: 2px;
}
input:focus, select:focus {
  border-color: var(--brand-ink);
  box-shadow: 0 0 0 3px rgba(184, 51, 24, .25);
}
button {
  font-size: 1.05rem; font-weight: 800; color: #fff;
  background: var(--brand-grad);
  border: 0; border-radius: 15px; padding: 16px; cursor: pointer; margin-top: 2px;
  font-family: inherit; letter-spacing: -.01em;
  box-shadow: var(--shadow-pop);
  transition: transform .12s, box-shadow .12s;
}
button:active { transform: scale(.97); box-shadow: 0 4px 12px rgba(255, 90, 69, .25); }

/* 누구랑 — 카드형 선택 */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card {
  position: relative; display: flex; flex-direction: column; gap: 1px;
  padding: 13px 14px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mc-icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 4px;
}
.mc-icon .icon { width: 19px; height: 19px; }
.m-date .mc-icon { background: #ffece8; color: var(--brand-ink); }
.m-friends .mc-icon { background: #fff3dd; color: #e8930c; }
.m-family .mc-icon { background: #e6f6ea; color: #2e9e57; }
.m-parents .mc-icon { background: #f0ecff; color: #7a5cff; }
.mc-name { font-weight: 800; font-size: .94rem; letter-spacing: -.02em; margin-top: 3px; }
.mc-desc { font-size: .72rem; color: var(--sub); }
.mode-card:has(input:checked) {
  border-color: var(--brand-ink); background: var(--brand-soft);
  box-shadow: 0 4px 14px rgba(255, 90, 69, .16);
}
/* 라디오 자체는 opacity:0 으로 감춰져 있어 브라우저 기본 초점 테두리가
   보이지 않는다. 키보드로 이 그룹에 들어온 사람은 지금 어디에 있는지 알
   방법이 없다 — 초점을 카드로 옮겨 그린다. 체크 표시(테두리 색)와 구분
   되도록 바깥쪽 링을 쓴다. */
.mode-card:has(input:focus-visible) {
  outline: 3px solid var(--brand); outline-offset: 2px;
}
.mode-card:has(input:checked) .mc-name { color: var(--brand-ink); }

.origin-row { display: flex; gap: 8px; }
.origin-row input { flex: 1; min-width: 0; }
.origin-row button {
  margin: 0; padding: 0 15px; font-size: .84rem; font-weight: 700;
  color: var(--brand-ink); background: var(--brand-soft);
  border: 1.5px solid transparent; border-radius: 13px; white-space: nowrap;
  box-shadow: none;
}
.origin-row button:active { transform: scale(.96); box-shadow: none; }
#geo-status { min-height: 1em; }

.more-options {
  border: 1.5px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 15px 16px;
  box-shadow: var(--shadow-card);
}
.more-options summary {
  cursor: pointer; font-size: .88rem; font-weight: 700; color: var(--sub);
  list-style: none; -webkit-tap-highlight-color: transparent;
}
.more-options summary::-webkit-details-marker { display: none; }
.more-options summary::before { content: "▸ "; color: var(--brand-ink); }
.more-options[open] summary::before { content: "▾ "; }
.more-options summary em {
  font-style: normal; font-weight: 500; font-size: .76rem;
  display: block; margin: 3px 0 0 17px; opacity: .8; line-height: 1.45;
}
.more-options[open] { display: flex; flex-direction: column; gap: 14px; }
/* 세부 옵션 안쪽은 컴팩트하게 — 글자 16px 미만이면 iOS가 포커스 시 강제 줌 하므로 여백만 축소 */
.more-options input, .more-options select {
  padding: 6px 10px; border-radius: 10px; border-width: 1px;
}
.more-options select { background-position: right 10px center; padding-right: 28px; }
.more-options .field { gap: 3px; }
.more-options .field > span, .more-options .field > label,
.more-options .field legend { font-size: .78rem; }
.more-options .field-row { gap: 9px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  list-style: none; padding: 0; margin-top: 4px;
}
.trust li {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 600; color: var(--sub);
  background: var(--card); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}
.trust .icon { color: var(--brand-ink); width: .95em; height: .95em; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field em { font-style: normal; font-weight: 400; font-size: .78rem; }
.empty { color: var(--sub); padding: 24px 0; }

/* ── 코스 페이지 헤드 ─────────────────── */
.course-head {
  margin: 6px 0 22px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 20px;
  padding: 20px; box-shadow: var(--shadow-card);
}
.course-head h1 { font-size: 1.4rem; letter-spacing: -.03em; line-height: 1.3; font-weight: 800; }
.course-head > p { color: var(--sub); font-size: .84rem; margin-top: 7px; }
.weather { margin-top: 7px; font-size: .84rem; color: var(--sub); }
.weather.rainy { color: #1f5fa8; font-weight: 700; }
.one-roof { margin-top: 7px; font-size: .84rem; color: #1f6f4a; font-weight: 600; }
.one-roof .icon { width: 14px; height: 14px; vertical-align: -2px; }
.alts { margin-top: 10px; font-size: .8rem; color: var(--sub); }
.alts a {
  display: inline-block; margin: 3px 0 0 6px; color: var(--ink); font-weight: 600;
  background: var(--bg); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 999px; text-decoration: none;
}
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 15px; }
/* 크기·모서리·글자는 아래 .head-actions 밑바탕 한 곳에서만 정한다 —
   여기에 또 적으면 한쪽만 고쳐져 네 개가 서로 다른 크기가 된다. */
/* 머리글 조작 4종(다른 코스·공유·저장·전체 경로)은 한 줄에 나란히 선다.
   크기·모서리·글자는 같게 두고 **강조만** 달리한다(QA L-6).
   .save 에는 밑바탕 규칙이 아예 없어 일반 button 규칙(1.05rem·16px·
   그라데이션·그림자)을 통째로 물려받았다 — 저장 버튼 하나만 나머지 셋의
   두 배 크기였고, 게다가 **꺼진 상태가 이미 그라데이션**이라 .save.on 과
   구별이 안 됐다. 저장했는지 아닌지가 화면에 안 나오고 있었다. */
.head-actions > a, .head-actions > button {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 700; font-family: inherit;
  /* 손가락이 닿는 높이: 16(글자) + 20(위아래 여백) + 3(테두리) ≈ 39px.
     넷을 같은 크기로 맞추면서 가장 작았던 쪽에 맞추면 다 같이 작아진다. */
  line-height: 1.2; padding: 10px 15px; border-radius: 999px;
  margin: 0; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
  box-shadow: none;
}
.head-actions .share {          /* 1순위 — 이 화면에서 가장 하길 바라는 일 */
  color: #fff; background: var(--brand-grad);
  box-shadow: 0 4px 12px rgba(255, 90, 69, .25);
}
.head-actions .reroll {         /* 2순위 */
  color: var(--brand-ink); background: var(--brand-soft);
}
.head-actions .save,            /* 3순위 — 켜지면 아래에서 채워진다 */
.head-actions .full-route {
  color: var(--ink); background: var(--card); border-color: var(--line);
}
@media (max-width: 360px) {
  .head-actions > a, .head-actions > button {
    padding-left: 12px; padding-right: 12px;
  }
}
.departure {
  display: flex; gap: 10px; align-items: center; margin-bottom: 18px;
  background: var(--brand-soft); border-radius: 15px; padding: 13px 15px;
  font-size: .88rem; border: 1px solid #ffdfd4;
}
.dep-time { font-weight: 800; color: var(--brand-ink); }
.dep-warn { display: block; margin-top: 6px; font-size: .82rem;
  line-height: 1.45; color: #7a4a12; }

/* ── 타임라인 ───────────────────────── */
.timeline {
  list-style: none; padding: 0; position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.timeline::before {
  content: ""; position: absolute; left: 60px; top: 14px; bottom: 14px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #ffd3c4, var(--line));
}
.timeline > li { display: flex; gap: 22px; position: relative; }
.timeline > li:not(.hop)::before {
  content: ""; position: absolute; left: 55px; top: 20px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); z-index: 1;
}
.time {
  flex: 0 0 46px; font-weight: 800; font-size: .86rem;
  padding-top: 16px; color: var(--brand-ink); text-align: right;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.card {
  flex: 1; min-width: 0; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 18px; padding: 17px; box-shadow: var(--shadow-card);
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.slot-label {
  font-size: .72rem; font-weight: 800; color: var(--brand-ink);
  background: var(--brand-soft); padding: 3px 9px; border-radius: 999px;
}
.cat { font-size: .7rem; color: var(--sub); text-align: right; }
.card h2 { font-size: 1.13rem; letter-spacing: -.02em; font-weight: 800; }
.desc { font-size: .85rem; margin-top: 6px; color: #4d4239; }
.addr { font-size: .75rem; color: var(--sub); margin-top: 4px; }
.kid-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.kid-notes span {
  font-size: .72rem; font-weight: 600; background: #e8f4ea; color: #2e6b3e;
  padding: 3px 9px; border-radius: 7px;
}
.tip {
  font-size: .78rem; color: #7d6a4f; margin-top: 10px;
  background: #fdf6e9; border-radius: 10px; padding: 8px 11px;
}
.links { display: flex; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.links a {
  font-size: .79rem; font-weight: 700; color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 11px;
  background: var(--bg);
}

/* 2·3순위 접이식 */
.alt-ranks { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.alt-ranks summary {
  cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--sub);
  list-style: none; -webkit-tap-highlight-color: transparent;
}
.alt-ranks summary::-webkit-details-marker { display: none; }
.alt-ranks summary::before { content: "▸ "; color: var(--brand-ink); }
.alt-ranks[open] summary::before { content: "▾ "; }
.alt-ranks summary em { font-style: normal; font-weight: 500; font-size: .72rem; }
.alt-item {
  margin-top: 10px; padding: 12px 13px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 13px;
}
.alt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alt-head b { font-size: .92rem; letter-spacing: -.01em; }
.alt-rank {
  font-size: .68rem; font-weight: 800; color: var(--brand-ink);
  background: var(--brand-soft); padding: 2px 8px; border-radius: 999px;
}
.alt-item .desc { font-size: .8rem; margin-top: 6px; }
.alt-item .addr { font-size: .73rem; margin-top: 3px; }
.alt-item .links { margin-top: 9px; }
.alt-item .links a { background: var(--card); }

/* 구간 길찾기 */
.hop { justify-content: flex-start; padding-left: 68px; }
.hop a {
  display: inline-block; font-size: .78rem; font-weight: 700; color: var(--sub);
  text-decoration: none; background: var(--card);
  border: 1.5px dashed var(--line); border-radius: 999px; padding: 6px 13px;
}
.back { margin-top: 28px; }
.back a { color: var(--sub); text-decoration: none; font-size: .9rem; font-weight: 600; }

/* ── 아이콘 정렬 (v3) ─────────────────── */
.eyebrow, .reroll, .share, .full-route, .hop a, .back a, .geo-btn-x { display: inline-flex; align-items: center; gap: 5px; }
.origin-row button { display: inline-flex; align-items: center; gap: 5px; }
.plan-form > button[type="submit"] { display: flex; align-items: center; justify-content: center; gap: 7px; }
.links a { display: inline-flex; align-items: center; gap: 5px; }
.links .icon { color: var(--brand-ink); }
.kid-notes span { display: inline-flex; align-items: center; gap: 4px; }
.tip { display: flex; align-items: flex-start; gap: 6px; }
.tip .icon { color: #c9971f; margin-top: .18em; }
.departure > span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.departure .icon { color: var(--brand-ink); }
.hop { gap: 8px; }
.hop .tmap { color: #1e77e0; border-color: #d5e6fa; background: #f3f8ff; }
.card-photo {
  display: block; width: 100%; height: 150px; object-fit: cover;
  border-radius: 12px; margin-bottom: 12px; background: var(--bg);
}

/* 출발지 빠른 선택 칩 */
.chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chip{padding:6px 12px;border:1px solid #f0ddd0;border-radius:999px;background:#fff;
  color:#6b5548;font-size:.82rem;font-weight:600;cursor:pointer;transition:all .15s}
.chip:hover{border-color:#ff5a45;color:#ff5a45}
.chip.on{background:linear-gradient(135deg,#ff5a45,#ff9046);border-color:transparent;color:#fff}

/* 방송 출연 뱃지 */
.tv-badges{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 6px}
.tv-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;
  background:#eef2ff;color:#4353c4;font-size:.76rem;font-weight:700}
.tv-badge .icon{width:13px;height:13px}

/* 코스 저장 버튼 */
.head-actions .save.on{background:linear-gradient(135deg,#ff5a45,#ff9046);color:#fff;border-color:transparent}

/* 저장한 코스 (홈) */
.saved-courses{margin-top:28px}
.saved-courses h2{display:flex;align-items:center;gap:8px;font-size:1.05rem;color:#3d2c22;margin-bottom:10px}
.saved-courses ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.saved-courses li{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #f0ddd0;
  border-radius:14px;padding:12px 14px}
.saved-courses a{flex:1;display:flex;flex-direction:column;gap:2px;text-decoration:none;color:inherit;min-width:0}
.saved-courses strong{font-size:.95rem;color:#3d2c22}
.saved-courses small{color:#a08573;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved-courses .del{background:none;border:none;color:#c9ab99;cursor:pointer;padding:6px}
.saved-courses .del:hover{color:#ff5a45}
.chip.recent{border-style:dashed;border-color:#ffb59f;color:#ff5a45}

/* 부분 교체·이동시간·유모차 뱃지 */
.links .swap{color:#ff5a45}
.hop .hop-min{font-weight:700;color:#6b5548;font-size:.82rem;margin-right:4px}
.tv-badge.kid{background:#e8f7ec;color:#2e8b4f}

/* 느낌 태그 + 낮잠 옵션 */
.field .opt{font-weight:400;color:#b09a8c;font-style:normal;font-size:.82rem}
.vibe-row .chip{font-size:.88rem}
.nap-field .nap-check{display:flex;align-items:center;gap:8px;font-weight:600;color:#4a3b32;cursor:pointer}
/* 전역 input 규칙의 appearance:none이 체크 표시까지 지운다 → 네이티브 복원 */
.nap-field input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;
  width:19px;height:19px;padding:0;margin:0;flex:none;
  accent-color:#ff5a45;cursor:pointer}

/* 의견 보내기 링크 */
.feedback-link{color:#ff5a45;font-weight:700;text-decoration:none}
.feedback-link:hover{text-decoration:underline}
.back{display:flex;gap:18px;align-items:center}

/* ── 수익화: 티켓 링크 + 애드핏 슬롯 ── */
.links .ticket { color: var(--brand-ink); font-weight: 700; }
/* 높이가 0 이라 광고가 실제로 뜨는 순간 아래 내용이 통째로 밀린다(QA L-9).
   애드핏 기본 단위(320×100 / 728×90)가 들어갈 자리를 미리 비워 둔다. */
.ad-slot { display: flex; justify-content: center; align-items: center;
  margin: 18px 0 6px; min-height: 100px; }
@media (min-width: 729px) { .ad-slot { min-height: 90px; } }

/* 실검색 실패로 데모 폴백이 섞였을 때의 정직 배너 */
.degraded-note {background:#fff4e5; border:1px solid #ffd8a8; color:#8a5a00;
  border-radius:12px; padding:10px 14px; margin:14px 0 4px; font-size:.88rem;
  line-height:1.5}
@media (prefers-color-scheme: dark) {
  .degraded-note {background:#3a2c14; border-color:#6b4e1d; color:#ffd8a8}
}

/* 추천 이유 한 줄 — 카드의 "왜 이 장소인가" */
.why{display:flex;align-items:flex-start;gap:6px;margin-top:6px;font-size:.82rem;
  color:#b25a1f;font-weight:600}
.why .icon{margin-top:.15em;flex-shrink:0}

/* 첫 화면 단계 배지 */
.step{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;
  border-radius:50%;background:linear-gradient(135deg,#ff5a45,#ff9046);color:#fff;
  font-size:.72rem;font-weight:700;margin-right:6px;vertical-align:-3px}

/* 저장 코스 모드별 그룹 제목 */
.saved-courses li.saved-group{background:none;border:none;padding:8px 2px 0;
  font-size:.8rem;font-weight:700;color:#7c6a5c;letter-spacing:.02em}

/* 260826 삭제: 여기 있던 `@media (prefers-color-scheme: dark)` 두 줄은
   .why 와 .saved-group 의 **글자색만** 어두운 배경용으로 갈아끼웠다.
   그런데 이 사이트에는 다크 팔레트가 없다 — :root 의 --bg 는 어떤 경우에도
   #fff9f4 이고 .card 는 #ffffff 다. 그래서 다크를 켠 기기에서는 밝은 배경
   위에 밝은 글자가 얹혀 '추천 이유' 한 줄이 1.85:1 이 됐다(기준 4.5:1).
   라이트에서는 4.80:1 로 멀쩡했으니, 다크 사용자만 안 보이는 줄이었다.
   .degraded-note 의 다크 규칙은 배경과 글자를 **같이** 바꾸므로 그대로 둔다.
   다크 테마를 제대로 하려면 팔레트(:root 변수 12개)부터 갈아야 하고, 그건
   색 하나 고치는 일이 아니라 디자인 작업이다 — 반쯤 한 상태가 이 버그를
   만들었다. 지금은 라이트 전용임을 아래 color-scheme 으로 명시한다. */


/* ── 260827 QA 4차 ─────────────────────────────────────────────────────── */

/* L-22 누를 자리가 24px 이 안 됐다(WCAG 2.2 2.5.8). 글자 크기를 키우면
   레이아웃이 흔들리므로 **여백으로** 누를 자리를 넓힌다 — 보이는 크기는
   그대로고 손가락이 닿는 면적만 커진다. */
.feedback-link, .biz a, .back a, footer a {
  display: inline-block; padding: 5px 4px; margin: -5px -4px;
}
.nap-check { display: flex; align-items: center; gap: 8px; }
.nap-check input[type="checkbox"] { width: 24px; height: 24px; flex: none; }

/* L-16 지난 날짜 코스는 목록에서 미리 알아보게 한다. */
.saved-courses li.past { opacity: .62; }
.saved-courses li.past small { color: #b8724f; }

/* L-18 글자 200% 확대에서 세부 옵션 2열이 뷰포트 밖으로 505px 까지 나갔다.
   `1fr 1fr` 은 "무슨 일이 있어도 두 열"이라는 뜻이고, 격자 칸은 기본
   min-width:auto 라 안의 select 가 안 줄어든다 — 갈 곳이 없으니 밖으로
   나간다. 한 열이 들어갈 자리가 안 되면 **줄을 바꾸게** 한다. */
.field-row {
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}
.field-row > .field, .field-row > * { min-width: 0; }

/* L-19 Windows 고대비 모드에서는 배경·그라데이션이 전부 시스템 색으로
   갈아치워져 **고른 것과 안 고른 것이 똑같이 보인다**. 색이 아니라
   테두리로 말해야 그 모드에서도 남는다. */
@media (forced-colors: active) {
  .mode-grid label:has(input:checked),
  .chip.on, .head-actions .save.on {
    outline: 3px solid Highlight; outline-offset: 2px;
  }
  .icon { forced-color-adjust: auto; }
}

/* 예시 코스 랜딩(/guide) */
.guide-teaser{margin-top:28px}
.guide-teaser h2{display:flex;align-items:center;gap:8px;font-size:1.05rem;color:#3d2c22;margin-bottom:6px}
.guide-cta{display:flex;flex-direction:column;gap:6px;margin-top:12px}
.guide-cta .chip{align-self:flex-start;font-size:.95rem;padding:10px 18px;text-decoration:none}
.guide-cta small{color:var(--sub);font-size:.82rem}
.guide-more{margin-top:32px}
.guide-more h2{font-size:1.05rem;color:#3d2c22;margin:22px 0 6px}
.guide-more p{color:var(--sub);font-size:.92rem;line-height:1.6}
.guide-note{background:#fff7f2;border:1px solid #f0ddd0;border-radius:12px;padding:12px 14px;margin-top:10px}
.guide-list{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.guide-row h2{font-size:1.05rem;color:#3d2c22}
.guide-row h2 small{color:var(--sub);font-weight:500;font-size:.8rem;margin-left:6px}
.chip-row a.chip{text-decoration:none}
