:root {
  --ink: #102822;
  --ink-2: #26443d;
  --forest: #12352f;
  --forest-2: #1d4c43;
  --mint: #ccebd7;
  --mint-pale: #edf7f0;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --orange: #e96f3c;
  --orange-dark: #b94b25;
  --orange-pale: #fff0e6;
  --blue: #2f7f91;
  --blue-pale: #e8f5f7;
  --gold: #edbf61;
  --line: #d9e1dc;
  --muted: #66766f;
  --shadow: 0 18px 55px rgba(23, 47, 40, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shell: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Pretendard, "Noto Sans TC", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }
b, strong { font-weight: 750; }

.shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin: 0 0 12px;
  color: #a9d2c4;
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow--ink { color: var(--forest-2); }
.eyebrow--warm { color: var(--orange-dark); }
.eyebrow--cool { color: #276a78; }

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(145deg, rgba(14, 46, 39, .98), rgba(19, 65, 55, .96)),
    var(--forest);
  padding: max(44px, env(safe-area-inset-top)) 0 42px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -160px 35%;
  height: 300px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.hero__inner { position: relative; z-index: 1; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .26;
}
.hero__glow--one {
  width: 280px; height: 280px;
  right: -120px; top: -70px;
  background: radial-gradient(circle, #70c595, transparent 66%);
}
.hero__glow--two {
  width: 220px; height: 220px;
  left: -130px; bottom: 60px;
  background: radial-gradient(circle, #e9ba64, transparent 68%);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.2rem, 14vw, 7.6rem);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 880;
}
.hero h1 span { color: var(--mint); }
.hero__lead {
  max-width: 620px;
  margin: 26px 0 28px;
  color: #d9e9e3;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.hero__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.date-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 106px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.date-card:hover, .date-card:focus-visible { transform: translateY(-2px); }
.date-card--warm { background: rgba(234, 112, 61, .18); }
.date-card--cool { background: rgba(84, 162, 177, .17); }
.date-card__date {
  grid-row: 1 / 3;
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.06em;
}
.date-card__day { color: #bdd2ca; font-size: .78rem; font-weight: 700; }
.date-card strong { font-size: .91rem; line-height: 1.2; }

.progress-card {
  padding: 18px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(4, 21, 17, .18);
}
.progress-card__copy,
.progress-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.progress-card__copy span { color: var(--muted); font-size: .86rem; font-weight: 700; }
.progress-card__copy strong { font-size: 1.12rem; }
.progress-track {
  height: 11px;
  margin: 11px 0 9px;
  overflow: hidden;
  background: #e2eae6;
  border-radius: 999px;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: inherit;
  transition: width .3s ease;
}
.progress-card__foot { color: var(--muted); font-size: .76rem; }
.text-button {
  min-height: 42px;
  padding: 4px 0 4px 12px;
  border: 0;
  color: var(--orange-dark);
  background: transparent;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}

.quick-nav {
  position: sticky;
  z-index: 900;
  top: 0;
  background: rgba(255,253,248,.91);
  border-bottom: 1px solid rgba(30, 62, 53, .11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.quick-nav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 9px;
}
.quick-nav__inner::-webkit-scrollbar { display: none; }
.quick-nav a {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink-2);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 780;
  text-decoration: none;
}
.quick-nav a:hover, .quick-nav a:focus-visible { background: var(--mint-pale); }
.quick-nav a span {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  color: white;
  background: var(--forest-2);
  border-radius: 50%;
  font-size: .66rem;
}

.section { padding-block: 68px; }
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading--compact { margin-bottom: 20px; }
.section-heading h2,
.day-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 7.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.section-heading > p:last-child { margin: 15px 0 0; color: var(--muted); }

.route-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}
.route-strip span {
  flex: 0 0 auto;
  padding: 11px 14px;
  background: var(--mint-pale);
  border: 1px solid #d7e9dd;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 780;
}
.route-strip i { color: #9aaba4; font-style: normal; }

.alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
}
.alert__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-weight: 850;
}
.alert strong { display: block; line-height: 1.35; }
.alert p { margin: 5px 0 0; font-size: .9rem; }
.alert--warning { background: var(--orange-pale); border: 1px solid #f3d3be; }
.alert--warning .alert__icon { color: white; background: var(--orange); }
.alert--info { margin-top: 24px; background: white; border: 1px solid #cde2e6; }
.alert--info .alert__icon { color: white; background: var(--blue); }

.day-section { padding-block: 70px; }
.day-section--warm { background: #f6eee2; }
.day-section--cool { background: #eaf4f4; }
.day-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  align-items: center;
  margin-bottom: 34px;
}
.day-badge {
  display: grid;
  place-items: center;
  width: 72px; height: 82px;
  padding: 8px;
  color: white;
  background: var(--forest);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(20, 54, 47, .17);
}
.day-section--cool .day-badge { background: #286b79; }
.day-badge span { font-size: .63rem; letter-spacing: .15em; font-weight: 800; }
.day-badge strong { font-size: 2.3rem; line-height: .9; letter-spacing: -.08em; }

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 30px;
  width: 2px;
  background: #ddcab8;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.timeline-item__rail { position: relative; z-index: 1; padding-top: 18px; }
.timeline-item__rail span {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--orange-dark);
  background: #fff8ef;
  border: 2px solid #e8b897;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 850;
}
.timeline-item--key .timeline-item__rail span { color: white; background: var(--orange); border-color: var(--orange); }
.timeline-card {
  padding: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(112, 77, 45, .09);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(70, 48, 30, .05);
}
.timeline-item--key .timeline-card { border-color: #edb18e; box-shadow: 0 16px 42px rgba(176, 83, 35, .12); }
.timeline-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.time-label {
  margin: 0;
  color: var(--orange-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.day-section--cool .time-label { color: #276a78; }
.timeline-card h3,
.session-card h3,
.document-card h3,
.place-detail h3 {
  margin: 0;
  font-size: 1.23rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.timeline-card > p { margin: 9px 0 0; color: var(--muted); font-size: .91rem; }
.tag {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
}
.tag--advice { color: #6f5a30; background: #f8e9be; }

.location-chip {
  min-height: 36px;
  max-width: 60%;
  padding: 6px 10px;
  overflow: hidden;
  color: var(--forest-2);
  background: var(--mint-pale);
  border: 1px solid #cfe5d7;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.location-chip:hover, .location-chip:focus-visible { background: var(--mint); }
.closed-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 0 0;
  padding: 10px 12px;
  color: #7c361c;
  background: var(--orange-pale);
  border-radius: 12px;
  font-size: .8rem;
}

.checklist { margin-top: 14px; }
.checklist--compact { display: grid; gap: 8px; }
.check-item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 48px;
  padding: 10px 11px;
  color: var(--ink-2);
  background: rgba(248,250,248,.84);
  border: 1px solid #e1e7e3;
  border-radius: 13px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.check-item input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.check-box {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  margin-top: 1px;
  background: white;
  border: 2px solid #aab9b2;
  border-radius: 8px;
}
.check-box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) scale(0);
  transition: transform .16s ease;
}
.check-item:has(input:checked) { color: #64716c; background: #eef5f0; border-color: #cfe1d5; }
.check-item:has(input:checked) > span:last-child { text-decoration: line-through; text-decoration-thickness: 1px; }
.check-item input:checked + .check-box { background: var(--forest-2); border-color: var(--forest-2); }
.check-item input:checked + .check-box::after { transform: rotate(-45deg) scale(1); }
.check-item input:focus-visible + .check-box { outline: 3px solid rgba(47,127,145,.25); outline-offset: 2px; }
.check-item b { display: block; }
.check-item small { display: block; margin-top: 2px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.check-item--standalone { margin-top: 14px; }

.schedule-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 18px;
  color: white;
  background: #286b79;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 35px rgba(26, 86, 99, .16);
}
.schedule-banner__place {
  display: grid;
  text-align: left;
  padding: 18px;
  color: inherit;
  background: rgba(8, 44, 52, .25);
  border: 0;
  cursor: pointer;
}
.schedule-banner__time { display: grid; padding: 18px; text-align: right; }
.schedule-banner span { color: #cbe6eb; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.schedule-banner strong { font-size: clamp(1rem, 4vw, 1.4rem); }

.orientation-grid { display: grid; gap: 12px; }
.session-card {
  padding: 20px;
  background: rgba(255,255,255,.9);
  border: 1px solid #d6e7e8;
  border-radius: var(--radius-md);
}
.session-card > p:not(.time-label) { margin: 9px 0 0; color: var(--muted); font-size: .9rem; }
.session-card--muted { background: rgba(255,255,255,.5); }
.session-card--important { border: 2px solid #6eb1bd; box-shadow: 0 15px 35px rgba(52, 127, 141, .1); }
.session-card--bank {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg, #12352f, #1b5046);
  border: 0;
  box-shadow: 0 18px 46px rgba(12, 55, 47, .22);
}
.session-card--bank .time-label { color: #a9ded0; }
.session-card--bank h3 { font-size: 1.55rem; }
.session-card--bank > p:not(.time-label) { color: #d3e8e2; }
.session-card--bank .check-item { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.17); color: white; }
.session-card--bank .check-item:has(input:checked) { color: #b9d0ca; background: rgba(255,255,255,.08); }
.session-card--bank .check-box { background: rgba(255,255,255,.12); border-color: #9fc7bc; }
.session-card--bank .check-item input:checked + .check-box { background: var(--orange); border-color: var(--orange); }
.bank-card__flag {
  position: absolute;
  right: -28px; top: 18px;
  width: 120px;
  padding: 5px;
  text-align: center;
  background: var(--orange);
  font-size: .65rem;
  font-weight: 850;
  transform: rotate(38deg);
}
.must-bring {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.must-bring li {
  padding: 7px 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 760;
}

.document-columns { display: grid; gap: 15px; }
.document-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.document-card--soft { background: #f4f8f5; }
.document-card__heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.document-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  color: white;
  background: var(--forest-2);
  border-radius: 15px;
  font-size: .8rem;
  font-weight: 850;
}
.document-card--soft .document-card__icon { background: var(--blue); }
.document-card__heading p { margin: 0; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.document-card .checklist { display: grid; gap: 8px; }

.residence-section {
  padding-block: 74px;
  color: white;
  background:
    radial-gradient(circle at 85% 5%, rgba(77, 158, 131, .25), transparent 29%),
    linear-gradient(150deg, #102b26, #173f37);
}
.section-heading--light > p:last-child { color: #bed0ca; }
.residence-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.residence-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 18px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
}
.residence-steps__number {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  color: #b7d9cd;
  border: 1px solid rgba(183,217,205,.4);
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 850;
}
.residence-steps p { margin: 0; color: #9fc6b9; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.residence-steps h3 { margin: 2px 0 5px; font-size: 1.12rem; line-height: 1.3; }
.residence-steps span:not(.residence-steps__number) { color: #d2e3dd; font-size: .86rem; }
.residence-steps small { display: block; margin-top: 6px; color: #e9c888; font-size: .72rem; line-height: 1.45; }
.residence-steps__key { background: rgba(235, 111, 60, .17) !important; border-color: rgba(235,111,60,.5) !important; }
.residence-steps__key .residence-steps__number { color: white; background: var(--orange); border-color: var(--orange); }
.residence-checks { display: grid; gap: 9px; margin-top: 18px; }
.check-item--dark { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.check-item--dark:has(input:checked) { color: #aec7bf; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.1); }
.check-item--dark .check-box { background: transparent; border-color: #85a99e; }
.check-item--dark input:checked + .check-box { background: var(--orange); border-color: var(--orange); }

.map-section { padding-bottom: 72px; }
.map-layout { display: grid; gap: 12px; }
.map-shell {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background: #dae5df;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
#map { width: 100%; height: 460px; z-index: 1; }
.map-legend {
  position: absolute;
  z-index: 500;
  left: 12px; bottom: 12px;
  display: flex;
  gap: 9px;
  padding: 8px 10px;
  background: rgba(255,255,255,.93);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(18,53,47,.15);
  font-size: .66rem;
  font-weight: 750;
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot--26 { background: var(--orange); }
.legend-dot--27 { background: var(--blue); }
.legend-dot--optional { background: #76847e; }
.place-detail {
  min-height: 170px;
  padding: 22px;
  background: var(--forest);
  color: white;
  border-radius: var(--radius-md);
}
.place-detail__eyebrow { margin: 0 0 6px; color: #9fc8bb; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.place-detail > p:not(.place-detail__eyebrow) { margin: 9px 0 0; color: #c8dcd5; font-size: .88rem; }
.place-detail__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 15px;
  padding: 8px 13px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
}
.place-grid { display: grid; gap: 9px; margin-top: 14px; }
.place-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.place-card:hover, .place-card:focus-visible, .place-card.is-active { transform: translateY(-1px); border-color: #82ae9f; box-shadow: 0 10px 26px rgba(18,53,47,.09); }
.place-card__number {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: white;
  background: var(--orange);
  border-radius: 14px;
  font-size: .8rem;
  font-weight: 850;
}
.place-card[data-day="27"] .place-card__number { background: var(--blue); }
.place-card[data-day="optional"] .place-card__number { background: #76847e; }
.place-card strong, .place-card small { display: block; }
.place-card strong { font-size: .91rem; line-height: 1.25; }
.place-card small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.place-card__arrow { color: #83928c; font-size: 1.2rem; }
.map-sources {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  background: var(--mint-pale);
  border: 1px solid #d4e7db;
  border-radius: var(--radius-md);
}
.map-sources p { margin: 5px 0 0; color: var(--muted); font-size: .81rem; }
.map-source-links { display: flex; flex-wrap: wrap; gap: 8px; }
.map-source-links a {
  padding: 8px 10px;
  color: var(--forest-2);
  background: white;
  border: 1px solid #d0e0d6;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
}

.map-pin-wrapper { background: transparent; border: 0; }
.map-pin {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: white;
  background: var(--orange);
  border: 3px solid white;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 7px 18px rgba(18,53,47,.28);
  font-size: .68rem;
  font-weight: 900;
  transform: rotate(-45deg);
}
.map-pin span { transform: rotate(45deg); }
.map-pin--27 { background: var(--blue); }
.map-pin--optional { background: #76847e; }
.map-support-pin {
  position: relative;
  display: block;
  width: 74px;
  height: 36px;
}
.map-support-pin__label {
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 32px;
  color: white;
  background: #a64225;
  border: 3px solid white;
  border-radius: 999px;
  box-shadow: 0 7px 18px rgba(18,53,47,.24);
  font-size: .68rem;
  font-weight: 900;
}
.map-support-pin__line {
  position: absolute;
  left: 42px;
  top: 17px;
  width: 25px;
  height: 2px;
  background: #a64225;
  box-shadow: 0 0 0 1px rgba(255,255,255,.75);
}
.map-support-pin__dot {
  position: absolute;
  left: 65px;
  top: 13px;
  width: 9px;
  height: 9px;
  background: #a64225;
  border: 2px solid white;
  border-radius: 50%;
}
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 13px 34px rgba(18,53,47,.2); }
.leaflet-popup-content { margin: 14px 16px; font-family: inherit; line-height: 1.45; }
.popup-code { color: var(--orange-dark); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.popup-title { margin: 2px 0 4px; color: var(--ink); font-size: .95rem; font-weight: 850; }
.popup-copy { color: var(--muted); font-size: .76rem; }

.source-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding-top: 0;
}
.source-note__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  color: white;
  background: var(--forest-2);
  border-radius: 50%;
  font-weight: 850;
}
.source-note h2 { margin: 0; font-size: 1rem; }
.source-note p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }

footer { color: #c8d9d3; background: #0c2722; padding: 28px 0 max(28px, env(safe-area-inset-bottom)); }
.footer__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.footer__inner strong, .footer__inner span { display: block; }
.footer__inner strong { color: white; }
.footer__inner span { font-size: .72rem; }
.footer__inner a { color: var(--mint); font-size: .78rem; font-weight: 800; text-decoration: none; }
.noscript { position: fixed; z-index: 1500; inset: auto 12px 12px; padding: 12px; color: white; background: #8d351e; border-radius: 12px; text-align: center; }

:focus-visible { outline: 3px solid rgba(47,127,145,.38); outline-offset: 3px; }

@media (min-width: 640px) {
  .hero { padding-top: 68px; }
  .hero__dates { max-width: 680px; gap: 14px; }
  .progress-card { max-width: 680px; }
  .date-card { min-height: 120px; padding: 20px; }
  .date-card strong { font-size: 1rem; }
  .timeline::before { left: 25px; }
  .timeline-item { grid-template-columns: 52px 1fr; gap: 18px; }
  .timeline-item__rail span { width: 52px; height: 52px; }
  .timeline-card, .session-card, .document-card { padding: 24px; }
  .orientation-grid { grid-template-columns: 1fr 1fr; }
  .session-card--bank { grid-column: 1 / -1; }
  .document-columns { grid-template-columns: 1fr 1fr; }
  .place-grid { grid-template-columns: 1fr 1fr; }
  .residence-steps { grid-template-columns: 1fr 1fr; }
  .map-sources { grid-template-columns: 1fr auto; align-items: center; }
}

@media (max-width: 360px) {
  .hero__dates { grid-template-columns: 1fr; }
  .date-card { min-height: 88px; }
  .date-card__date { font-size: 2rem; }
}

@media (min-width: 900px) {
  .hero { min-height: 720px; display: grid; align-items: center; }
  .hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; column-gap: 70px; align-items: end; }
  .hero .eyebrow, .hero h1, .hero__lead { grid-column: 1; }
  .hero__dates { grid-column: 2; grid-row: 2 / 4; align-self: start; }
  .progress-card { grid-column: 2; grid-row: 4; align-self: start; }
  .hero__lead { margin-bottom: 0; }
  .quick-nav a { flex: 0 1 150px; }
  .quick-nav__inner { justify-content: center; }
  .day-heading { grid-template-columns: 90px minmax(0, 760px); }
  .day-badge { width: 82px; height: 94px; }
  .timeline { max-width: 900px; margin-inline: auto; }
  .orientation-grid { grid-template-columns: repeat(3, 1fr); }
  .session-card--bank { grid-column: span 2; grid-row: span 2; }
  .map-layout { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr); align-items: stretch; }
  .place-detail { min-height: 460px; display: flex; flex-direction: column; justify-content: center; }
  .place-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
