:root {
  /* 콘텐츠 영역: 흰 배경 + 다크 잉크 (골드/그린은 액센트로 유지) */
  --ground:     #ffffff;  /* 콘텐츠 바탕 */
  --ground-2:   #ffffff;  /* 표면/카드 */
  --ground-3:   #f3f0e9;  /* hover 표면 */
  --ink:        #20302a;  /* 본문·제목 (딥 그린 잉크) */
  --ink-soft:   #5d6b62;  /* 보조 */
  --ink-faint:  #98a199;  /* 흐린 */
  --gold:       #a97f2e;  /* 화이트 위 골드 액센트 */
  --gold-bright:#8a6a24;  /* 강조(더 진한 골드) */
  --oxblood:    #98413f;  /* 오페라 커튼, 예약·중요 */
  --line:       #e7e3d9;
  --line-soft:  #f0ede6;

  /* 가장 무난한 시스템 산세리프 하나로 통일 (외부 폰트 없음) */
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
  --display: var(--sans);
  --body: var(--sans);
  --mono: var(--sans);

  --wrap: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ev-time, .mv-date, .mv-node, .route li span:last-child {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
}

::selection { background: var(--gold); color: var(--ground); }

/* ---------------- Hero (다크 스코프) ---------------- */
.hero {
  --ground: #14231d;
  --ink: #ece3ce;
  --ink-soft: #9aa693;
  --gold: #c6a253;
  --gold-bright: #e4c878;
  --line: rgba(198, 162, 83, 0.20);
  position: relative;
  padding: clamp(52px, 12vw, 104px) 22px clamp(36px, 8vw, 72px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(198,162,83,0.14), transparent 60%),
    linear-gradient(180deg, #10201a 0%, var(--ground) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; max-width: var(--wrap); margin: 0 auto; }

.hero-dates {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--gold);
  opacity: 0;
  animation: rise 0.8s ease 0.14s forwards;
}

/* D-day 위젯 */
.dday {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 24px auto 0;
  padding: 9px 26px;
  border: 1px solid rgba(198, 162, 83, 0.5);
  border-radius: 999px;
  background: rgba(198, 162, 83, 0.07);
  opacity: 0;
  animation: rise 0.8s ease 0.24s forwards;
}
.dday-label {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.dday-num {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
}
.dday.is-done .dday-num { font-size: 1.05rem; color: var(--gold); }

/* 시그니처: 도시 레일 */
.route {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(8px, 5vw, 46px);
  margin: clamp(30px, 6vw, 48px) 0 0;
  padding: 0;
  position: relative;
}
.route::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  animation: draw 1.1s cubic-bezier(0.4, 0, 0.1, 1) 0.34s forwards;
}
.route li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  opacity: 0;
  animation: rise 0.6s ease calc(0.44s + var(--i, 0) * 0.12s) forwards;
}
.route li::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ground);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 0 4px var(--ground);
  z-index: 1;
}
.route li span {
  font-family: var(--display);
  font-size: clamp(0.82rem, 2.6vw, 1.05rem);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--ground));
}

/* ---------------- Tabs ---------------- */
.tabs {
  position: sticky;
  top: 0;
  z-index: 600;
  display: flex;
  gap: clamp(16px, 5vw, 40px);
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab:first-child { margin-inline-start: auto; }
.tab:last-child { margin-inline-end: auto; }
.tab {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.95rem;
  letter-spacing: normal;
  color: var(--ink-soft);
  padding: 4px 2px 8px;
  position: relative;
  transition: color 0.25s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.28s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--gold-bright); }
.tab.is-active::after { width: 100%; }

/* ---------------- Layout ---------------- */
main { max-width: var(--wrap); margin: 0 auto; padding: clamp(30px, 7vw, 58px) 22px 40px; }
/* 목차가 있는 사전 준비 탭은 더 넓게 (사이드는 왼쪽으로, 내용은 넓게) */
main.is-wide { max-width: 1000px; }

.panel { display: none; }
.panel.is-active { display: block; }

/* ---------------- Itinerary (여정 스파인) ---------------- */
.timeline {
  position: relative;
  padding-left: 42px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 4%, var(--line) 96%, transparent);
}

.movement {
  position: relative;
  margin-bottom: clamp(34px, 7vw, 52px);
}
.movement:last-child { margin-bottom: 8px; }

.mv-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.mv-node {
  position: absolute;
  left: -42px;
  top: -2px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px var(--ground);
  z-index: 2;
}
.mv-date {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.mv-city {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1;
  margin: 4px 0 0;
  color: var(--ink);
}
.mv-headtext { display: flex; flex-direction: column; }

/* 이동(transfer) */
.transfer {
  display: inline-block;
  margin: -2px 0 18px;
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* 이벤트 */
.events { list-style: none; margin: 0; padding: 0; }
.event {
  display: flex;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.event:last-child { border-bottom: 0; }
.ev-time {
  flex: 0 0 46px;
  font-size: 0.82rem;
  color: var(--gold);
  padding-top: 2px;
  letter-spacing: 0.02em;
}
.ev-time.is-empty { color: var(--ink-faint); }
.ev-body { flex: 1; }
.ev-title { display: block; font-size: 1.02rem; color: var(--ink); }
.ev-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
/* 예약 확정 일정 */
.event.is-booked {
  margin: 0 -12px;
  padding: 11px 12px;
  border-radius: 7px;
  border-bottom-color: transparent;
  background: rgba(152, 65, 63, 0.055);
}
.event.is-booked .ev-time { color: var(--oxblood); }
.event.is-booked .ev-title { color: var(--oxblood); font-weight: 600; }
.ev-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid rgba(152, 65, 63, 0.4);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: var(--oxblood);
  vertical-align: 2px;
  white-space: nowrap;
}

/* 참고(footnote) */
.mv-note { margin-top: 18px; }
.mv-note ul { list-style: none; margin: 0; padding: 0; }
.mv-note li {
  position: relative;
  padding-left: 15px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 5px 0;
  line-height: 1.62;
  word-break: keep-all;
}
.mv-note li::before {
  content: "\2022";
  position: absolute;
  left: 2px;
  top: -1px;
  color: var(--gold);
}

/* 숙소 (일정 카드 하단) */
.stay {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 16px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.stay-key {
  flex: 0 0 46px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.stay-body { flex: 1; min-width: 0; }
.stay-addr {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
  transition: color 0.2s;
}
.stay:hover .stay-addr { color: var(--gold-bright); }
.stay-meta {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.stay-time {
  display: block;
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  font-size: 0.74rem;
  color: var(--gold);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

/* ---------------- Map ---------------- */
.map-frame {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ground-2);
  margin-bottom: 22px;
}
#map-canvas {
  height: clamp(320px, 55vh, 440px);
  border-radius: 2px;
  overflow: hidden;
  background: #eceee8;
}
.leaflet-container { background: #eceee8; font-family: var(--body); }
.leaflet-control-attribution {
  background: rgba(255,255,255,0.82) !important;
  color: var(--ink-faint) !important;
}
.leaflet-control-attribution a { color: var(--ink-soft) !important; }
.leaflet-bar a {
  background: var(--ground-2) !important;
  color: var(--gold) !important;
  border-color: var(--line) !important;
}
.leaflet-bar a:hover { background: var(--ground-3) !important; }

/* 골드 마커 */
.gold-pin {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.28), 0 1px 4px rgba(0,0,0,0.3);
}
/* 숙소 마커 */
.stay-pin {
  width: 13px; height: 13px;
  background: var(--oxblood);
  border: 2px solid #ffffff;
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.28), 0 1px 4px rgba(0,0,0,0.3);
}
.leaflet-popup-content-wrapper {
  background: var(--ground-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.leaflet-popup-content { font-family: var(--body); margin: 12px 14px; }
.leaflet-popup-content b { font-family: var(--display); color: var(--gold-bright); }
.leaflet-popup-tip { background: var(--ground-2); border: 1px solid var(--line); }
.leaflet-popup-close-button { color: var(--ink-soft) !important; }

/* 장소 리스트 */
.place-list { display: block; }
.city-head {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--gold);
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.city-head:first-child { margin-top: 0; }
.city-head .cnum {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}
.place, .route-link {
  display: flex;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s, padding-left 0.2s;
}
.place:hover, .route-link:hover { padding-left: 10px; }
.place { cursor: pointer; }
.place:hover .pname { color: var(--gold-bright); }
.place .pdot {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.pname { font-size: 1rem; color: var(--ink); transition: color 0.2s; }
.pnote {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.pbody { flex: 1; min-width: 0; }
.pmap {
  flex: 0 0 auto;
  align-self: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.pmap:hover {
  border-color: var(--gold);
  background: rgba(169, 127, 46, 0.07);
}

/* 숙소 목록 */
.stay-group { margin-bottom: 34px; }
.place.is-stay .pdot {
  width: 7px; height: 7px;
  margin-top: 7px;
  border-radius: 1px;
  background: var(--oxblood);
  transform: rotate(45deg);
}
.place.is-stay:hover .pname { color: var(--oxblood); }
.stay-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 4px 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.stay-total b {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* 날짜별 길찾기 */
.day-routes { margin-bottom: 34px; }
.route-link {
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
}
.route-link:hover .rl-path { color: var(--gold-bright); }
.rl-day {
  flex: 0 0 5.6em;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.rl-path {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}

/* ---------------- 사전 준비: 목차 서브메뉴 ---------------- */
.subnav { display: flex; gap: clamp(20px, 4vw, 40px); align-items: flex-start; }
.submenu {
  flex: 0 0 clamp(120px, 22vw, 176px);
  position: sticky;
  top: 66px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.submenu-item {
  appearance: none;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 9px 13px;
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 0.95rem;
  line-height: 1.35;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}
.submenu-item:hover { color: var(--ink); }
.submenu-item.is-active {
  color: var(--gold);
  background: rgba(198, 162, 83, 0.09);
  font-weight: 600;
}
.subcontent { flex: 1; min-width: 0; }

.submenu-select { display: none; }

@media (max-width: 620px) {
  #guide-menu {
    display: block;
    overflow: visible;
    padding-bottom: 0;
    border-bottom: 0;
  }
  #guide-menu .submenu-item { display: none; }
  #guide-menu .submenu-select {
    display: block;
    width: 100%;
    appearance: none;
    padding: 11px 40px 11px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background-color: var(--ground-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a97f2e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.4;
    cursor: pointer;
  }
  #guide-menu .submenu-select:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
  }

  .subnav { flex-direction: column; gap: 16px; align-items: stretch; }
  .submenu {
    position: static;
    flex-direction: row;
    flex: 0 0 auto;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
  }
  .submenu::-webkit-scrollbar { display: none; }
  .submenu-item {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .submenu-item.is-active {
    border-color: var(--gold);
    background: rgba(198, 162, 83, 0.08);
  }
}

/* 여행 노트: 잡지형 기사 */
.article-group { max-width: 660px; margin: 0 0 76px; }
.article-group:last-child { margin-bottom: 0; }

.ag-head {
  margin: 0 0 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.ag-num {
  display: block;
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 11px;
}
.ag-group {
  font-size: clamp(1.55rem, 4.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  word-break: keep-all;
}

.ag-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -14px 0 36px;
}
.ag-toc a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  word-break: keep-all;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.ag-toc a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(198, 162, 83, 0.07);
}

.ag-item { margin: 0 0 30px; scroll-margin-top: 76px; }
.ag-item:last-child { margin-bottom: 0; }
.ag-item.is-rich {
  margin: 0;
  padding: 44px 0;
  border-top: 1px solid var(--line-soft);
}
.ag-item.is-rich:first-of-type { padding-top: 0; border-top: 0; }
.ag-item.is-rich:last-of-type { padding-bottom: 0; }

.ag-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 15px;
  word-break: keep-all;
}
.ag-para {
  font-size: 1.02rem;
  line-height: 1.92;
  color: var(--ink);
  margin: 0 0 14px;
  word-break: keep-all;
}
.ag-para:last-child { margin-bottom: 0; }

.ag-look {
  list-style: none;
  counter-reset: look;
  margin: 28px 0 0;
  padding: 0;
}
.ag-look li {
  counter-increment: look;
  position: relative;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.97rem;
  line-height: 1.76;
  color: var(--ink);
  word-break: keep-all;
}
.ag-look li::before {
  content: counter(look, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.ag-close {
  position: relative;
  max-width: 33em;
  margin: 34px 0 0;
  padding-top: 21px;
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--ink);
  word-break: keep-all;
}
.ag-close::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
}

/* 앱 설치 버튼 */
.app-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.app-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.app-btn:hover { background: var(--gold); color: #fff; }

/* ---------------- 입국 심사 Q&A ---------------- */
.qa {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--ground-2);
}
.qa-line { display: flex; gap: 14px; align-items: flex-start; }
.qa-line + .qa-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.qa-tag {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.qa-tag.q { background: var(--ground-3); color: var(--ink); }
.qa-tag.a { background: var(--gold); color: #fff; }
.qa-text { flex: 1; min-width: 0; }
.qa-en { margin: 0; font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.qa-pron { margin: 5px 0 0; font-size: 1.12rem; color: var(--gold-bright); font-weight: 600; }
.qa-ko { margin: 5px 0 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------------- 목록 (준비물 · 사전/입국 준비) ---------------- */
.hint { color: var(--ink-faint); font-size: 0.82rem; margin: 0 0 24px; }
.list-group { margin-bottom: 26px; }
.list-group h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.list-group.is-booking h3 { color: var(--gold); }
.list-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
  color: var(--ink);
}
.list-item:last-child { border-bottom: 0; }
.li-dot {
  flex: 0 0 auto;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-2px);
}

/* ---------------- Footer ---------------- */
footer {
  text-align: center;
  padding: 40px 20px 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.78rem;
}
.footer-rule { width: 34px; height: 1px; background: var(--gold); margin: 0 auto 14px; opacity: 0.7; }
footer code {
  font-family: var(--mono);
  font-style: normal;
  color: var(--gold);
  font-size: 0.72rem;
}

/* ---------------- Motion ---------------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  to { transform: scaleX(1); }
}

.reveal { opacity: 0; }
.reveal.in { animation: rise 0.6s ease forwards; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
    *, .route::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal { opacity: 1 !important; }
}

@media (max-width: 460px) {
  .route { gap: 4px; justify-content: space-between; }
  .route li span { font-size: 0.78rem; }
  .tabs { gap: 24px; }
}
