:root {
  color-scheme: light;
  --paper: #fcfbf6;
  --white: #fffefa;
  --ink: #172b44;
  --muted: #48596b;
  --blue: #e2edf6;
  --rule: #c9d5dc;
  --accent: #a73d24;
  --snow: #24527b;
  --city: #a13e2b;
  --transit: #3d655c;
  font: 16px/1.65 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: var(--snow); text-underline-offset: .22em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid #b55429; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
.wrap { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 12px; left: 15px; z-index: 4; padding: 10px; background: white; }

.topbar { border-top: 6px solid var(--ink); border-bottom: 1px solid var(--rule); }
.topbar-inner, .footer > .wrap {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--ink);
  border-radius: 50%;
  color: #ebf5fc;
  font-size: 1.15rem;
}
.topnav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.topnav a { color: var(--ink); padding-block: .5rem; text-decoration: none; font-size: .9rem; font-weight: 750; }
.topnav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  margin-top: 32px;
  min-height: 393px;
  border: 1px solid #a9bccd;
  border-radius: 18px;
  overflow: hidden;
  background: var(--blue);
}
.hero-copy { align-self: center; padding: clamp(1.5rem, 4vw, 3.4rem); }
.eyebrow {
  margin-bottom: .6rem;
  font-weight: 850;
  color: var(--accent);
  letter-spacing: .09em;
  font-size: .875rem;
}
.hero h1 {
  max-width: 9em;
  font-size: clamp(2.65rem, 5.15vw, 4.75rem);
  line-height: 1.1;
  letter-spacing: -.055em;
  font-weight: 900;
  text-wrap: balance;
}
.lede { margin: 1.15rem 0 1.65rem; max-width: 31em; color: var(--muted); }
.primary {
  display: inline-block;
  padding: .64rem 1.14rem;
  border-radius: 6px;
  color: white;
  background: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.primary:hover { color: white; background: var(--accent); }
.hero-media { position: relative; min-height: 245px; min-width: 0; }
.hero-media img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: #fff;
  background: #18283dda;
  padding: .22rem .65rem;
  border-radius: 3px;
  font-size: .78rem;
}

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  margin: 1.15rem 0 3.45rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
}
[data-phase="snow"] { --phase-color: var(--snow); }
[data-phase="city"] { --phase-color: var(--city); }
[data-phase="transit"] { --phase-color: var(--transit); }
.phase {
  display: grid;
  padding: .95rem 1.15rem;
  gap: .05rem;
  color: var(--ink);
  text-decoration: none;
}
.phase + .phase { border-inline-start: 1px solid var(--rule); }
.phase:hover { background: var(--blue); color: var(--ink); }
.kicker { color: var(--phase-color); font-size: .875rem; font-weight: 850; letter-spacing: .11em; }
.phase strong { font-size: 1.18rem; }
.phase small { color: var(--muted); font-size: .875rem; }

.section + .section { margin-top: 3.35rem; }
.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem 1.4rem;
  margin-bottom: .85rem;
}
.section-heading h2 { font-size: clamp(1.8rem, 3.5vw, 2.85rem); letter-spacing: -.04em; line-height: 1.25; }
.section-note { color: var(--muted); }
.itinerary-tools {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  padding: .65rem 0 .75rem;
  background: var(--paper);
}
.day-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.day-jump a {
  display: inline-grid;
  place-items: center;
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding-inline: .35rem;
  border: 1px solid #a8bbcc;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
}
.day-jump a:hover { background: var(--blue); }
.day-jump a[aria-current="location"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.toggle-days {
  min-height: 2.45rem;
  padding: .3rem .8rem;
  border: 1px solid #a8bbcc;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}
.toggle-days:hover { background: var(--blue); }
.days { display: grid; gap: .9rem; }
.day {
  --day-gutter: 6.3rem;
  --day-spacing: 1.25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  scroll-margin-top: 4.6rem;
}
.day:target { outline: 2px solid var(--phase-color); }
.day-summary {
  display: grid;
  grid-template-columns: var(--day-gutter) minmax(0, 1fr) max-content;
  align-items: center;
  gap: var(--day-spacing);
  border-radius: 11px;
  padding-inline-end: var(--day-spacing);
  cursor: pointer;
  list-style: none;
}
.day-summary::-webkit-details-marker { display: none; }
.day-summary:hover { background: #f1f5f6; }
.day[open] .day-summary { border-radius: 11px 11px 0 0; border-bottom: 1px solid var(--rule); }
.day-chevron {
  width: .66rem;
  height: .66rem;
  margin-inline-end: .2rem;
  border: solid var(--phase-color);
  border-width: 0 2px 2px 0;
  transform: translateY(-.18rem) rotate(45deg);
}
.day[open] .day-chevron { transform: translateY(.15rem) rotate(225deg); }
.day-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .8rem .45rem;
  border-inline-end: 1px solid var(--rule);
  color: var(--phase-color);
}
.day-number small { font-size: .82rem; font-weight: 850; letter-spacing: .14em; }
.day-number strong { font-size: 2.7rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.day-body { padding: .85rem var(--day-spacing) 1.25rem calc(var(--day-gutter) + var(--day-spacing)); min-width: 0; }
.day-head { display: flex; flex-wrap: wrap; align-items: center; padding-block: .55rem; gap: .35rem .75rem; }
.day-title { font-size: clamp(1.22rem, 2.35vw, 1.65rem); line-height: 1.35; letter-spacing: -.025em; font-weight: 850; }
.tag {
  padding: .1rem .55rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--phase-color);
  font-size: .875rem;
  font-weight: 750;
}
.activities { margin: .6rem 0 0; padding-inline-start: 1.25rem; }
.activities li + li { margin-top: .18rem; }
.activities ::marker { color: var(--snow); }
.day-facts { display: grid; gap: .28rem; margin-top: .8rem; }
.day-facts > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem .75rem; }
.day-facts dt, .tip strong { color: var(--phase-color, var(--snow)); font-weight: 850; }
.day-facts dd { overflow-wrap: anywhere; }
.tip {
  margin-top: .8rem;
  padding: .45rem .65rem;
  border-inline-start: 2px solid var(--phase-color);
  background: #f1f5f6;
  color: var(--muted);
}
.tip strong { margin-inline-end: .3em; }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: .65rem 0 0; padding: 0; }
.links a { display: inline-block; padding-block: .2rem; font-weight: 700; }
.map-block { margin-top: 1rem; }
.map-label { font-size: .9rem; font-weight: 850; color: var(--snow); }
.map-links { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 0; padding: 0; }
.map-links li { max-width: 100%; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: .54rem;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #a8c0d2;
  border-radius: 7px;
  padding: .35rem .73rem;
  background: #edf5fa;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.map-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-pin {
  display: inline-grid;
  place-items: center;
  flex: 0 0 .85rem;
  height: .85rem;
  border: 1.5px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg) translate(.05rem, -.05rem);
}
.map-pin::after { content: ""; width: .27rem; height: .27rem; border-radius: 50%; background: currentColor; }

.choice-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .75rem 0 0;
  padding: .15rem 0 0;
  border: 0;
  min-inline-size: 0;
}
.choice-tabs legend { padding: 0; color: var(--muted); font-size: .875rem; }
.choice-tabs label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: .32rem .65rem;
  font-weight: 750;
  cursor: pointer;
}
.choice-tabs label:has(:checked) { background: var(--blue); border-color: var(--snow); }
.choice-tabs input { accent-color: var(--snow); width: 1rem; height: 1rem; margin: 0; }
.choice-option { margin-top: .75rem; }
.choice-option h4 { margin-top: .4rem; }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.info-card {
  padding: 1.2rem 1.45rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
}
.info-card h3 { font-size: 1.25rem; line-height: 1.35; }
.info-card p { margin-top: .45rem; }
#guide .info-card:last-child:nth-child(odd), .info-card.wide { grid-column: 1 / -1; }
.budget-table { border-collapse: collapse; width: 100%; margin-top: .6rem; }
.budget-table th, .budget-table td { border-bottom: 1px solid var(--rule); text-align: left; padding-block: .4rem; }
.budget-table td, .budget-table th:nth-child(2) { text-align: right; }
.budget-table tbody th { font-weight: 500; }
.budget-table tfoot { font-weight: 850; }
.footer { margin-top: 3.5rem; border-top: 1px solid var(--rule); }
.footer > .wrap { color: var(--muted); font-size: .875rem; }

@media (max-width: 780px) {
  .wrap { width: calc(100% - 36px); }
  .hero { grid-template-columns: 1fr 1fr; min-height: 330px; }
  .hero h1 { font-size: clamp(2.35rem, 6vw, 3.5rem); }
  .day { --day-gutter: 5rem; }
  .day-number strong { font-size: 2.45rem; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-inner { min-height: 57px; gap: .5rem; }
  .topnav { justify-content: flex-end; gap: 0 .7rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 16px; border-radius: 12px; }
  .hero-copy { padding: 1.4rem 1.1rem 1.45rem; }
  .hero h1 { max-width: 11em; }
  .lede { margin: .8rem 0 1.1rem; }
  .hero-media { min-height: 208px; }
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .85rem 0 2.15rem; }
  .phase { padding: .55rem .38rem .62rem; }
  .phase strong { font-size: .97rem; }
  .phase small { font-size: .78rem; }
  .kicker { font-size: .75rem; letter-spacing: .035em; }
  .day { --day-gutter: 3.5rem; --day-spacing: .7rem; scroll-margin-top: 7.3rem; }
  .day-number { padding: .75rem .2rem; }
  .day-number small { font-size: .7rem; }
  .day-number strong { font-size: 1.75rem; }
  .day-body { padding: .65rem .9rem .95rem; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { padding: 1rem; }
  .day-jump { gap: .25rem; }
  .day-jump a { min-width: 2.35rem; }
}
@media (max-width: 380px) {
  .day-jump a { min-width: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .wrap { width: 100%; }
  .topbar, .itinerary-tools, .primary, .hero-media, .choice-tabs, .footer { display: none !important; }
  .day, .info-card, .hero { break-inside: avoid; }
  .day::details-content { content-visibility: visible; }
  .hero { display: block; min-height: auto; }
  .choice-option[hidden] { display: block !important; }
}
