:root {
  --color-ink: #153042;
  --color-muted: #5c7180;
  --color-soft: #f4f7f9;
  --color-surface: #ffffff;
  --color-line: #d9e4ea;
  --color-blue: #1d6f92;
  --color-blue-dark: #12465f;
  --color-blue-soft: #dff0f6;
  --color-coral: #e66b5b;
  --color-coral-dark: #b53d31;
  --color-coral-soft: #fff0ed;
  --shadow-card: 0 12px 32px rgba(21, 48, 66, 0.09);
  --max-width: 1120px;
  --page-pad: clamp(16px, 5vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-soft);
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    linear-gradient(180deg, rgba(223, 240, 246, 0.86), rgba(244, 247, 249, 0.96) 420px),
    var(--color-soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(230, 107, 91, 0.55);
  outline-offset: 3px;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.38rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px var(--page-pad);
  background: rgba(18, 70, 95, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(18, 70, 95, 0.16);
  backdrop-filter: blur(14px);
}

.site-header {
  background:
    linear-gradient(135deg, rgba(10, 43, 61, 0.94), rgba(18, 70, 95, 0.88)),
    linear-gradient(180deg, #2b7894, #12465f 70%);
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  padding: 0 0 2px;
  margin: 0;
  list-style: none;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 11px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-links a.is-active,
.brand.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(48px, 12vw, 116px) var(--page-pad) clamp(36px, 8vw, 72px);
}

.eyebrow,
.section-kicker,
.time-label,
.day-heading > p:first-child {
  color: var(--color-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
  margin-bottom: 12px;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 11vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.route-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 900px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  counter-reset: route;
}

.route-strip li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  margin: 0;
  color: #12384d;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.route-strip li::before {
  counter-increment: route;
  content: counter(route);
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #ffffff;
  font-size: 0.8rem;
  background: var(--color-coral-dark);
  border-radius: 999px;
}

main {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 32px var(--page-pad) 56px;
}

.overview,
.day-section,
.appendix {
  scroll-margin-top: 128px;
}

.overview {
  margin-bottom: 38px;
}

.section-title {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.section-title h2,
.day-heading h2 {
  color: var(--color-blue-dark);
  font-size: clamp(1.55rem, 6vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.summary,
.appendix-grid,
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.summary article,
.notice,
.time-card,
.priority,
.appendix-grid article,
.checklist-grid > section {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.summary article,
.appendix-grid article,
.checklist-grid > section {
  padding: 18px;
}

.summary h3,
.notice h3,
.time-card h3,
.priority h3,
.appendix-grid h3,
.checklist-grid h3 {
  margin-bottom: 8px;
  color: var(--color-blue-dark);
  font-size: 1.08rem;
  line-height: 1.3;
}

.summary p,
.notice p,
.time-card p,
.time-card li,
.priority p,
.appendix-grid p,
.appendix-grid li,
.checklist-grid li,
.site-footer {
  color: var(--color-muted);
}

.notice {
  position: relative;
  padding: 18px 18px 18px 20px;
  margin-top: 16px;
  border-left: 5px solid var(--color-coral);
}

.day-section,
.appendix {
  margin-top: clamp(32px, 7vw, 64px);
}

.day-heading {
  max-width: 820px;
  margin-bottom: 18px;
}

.day-heading > p:first-child {
  margin-bottom: 6px;
}

.day-heading > p:last-child {
  color: var(--color-muted);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.time-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

.time-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--color-blue);
}

.time-label {
  margin-bottom: 8px;
}

.time-card p:not(.time-label) {
  margin-bottom: 14px;
}

.time-card ul,
.appendix-grid ul,
.checklist-grid ol {
  color: var(--color-muted);
}

.priority-day {
  padding: 18px;
  margin-right: calc(var(--page-pad) * -0.35);
  margin-left: calc(var(--page-pad) * -0.35);
  background: linear-gradient(180deg, var(--color-blue-soft), rgba(255, 255, 255, 0.55));
  border: 1px solid #c4dfe8;
  border-radius: 8px;
}

.priority {
  padding: 18px;
  margin-bottom: 16px;
  background:
    linear-gradient(90deg, rgba(230, 107, 91, 0.16), rgba(255, 255, 255, 0) 58%),
    var(--color-surface);
  border-color: rgba(230, 107, 91, 0.45);
}

.priority h3 {
  color: #a74134;
}

.priority p + p {
  margin-top: 10px;
}

.time-card.must {
  border-color: rgba(230, 107, 91, 0.62);
  box-shadow: 0 16px 42px rgba(230, 107, 91, 0.16);
}

.time-card.must::before {
  width: 7px;
  background: var(--color-coral);
}

.time-card.must .time-label {
  color: #a74134;
}

.appendix {
  padding-top: 6px;
}

.checklist {
  padding: 0;
  list-style: none;
}

.checklist li {
  margin: 0;
}

.checklist li + li {
  margin-top: 10px;
}

.checklist label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.checklist input {
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--color-blue);
}

.site-footer {
  padding: 28px var(--page-pad) 36px;
  text-align: center;
  background: #e8eff3;
  border-top: 1px solid var(--color-line);
}

.site-footer p {
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (min-width: 700px) {
  .topbar {
    flex-wrap: nowrap;
  }

  .nav-links {
    flex: 0 1 auto;
    justify-content: flex-end;
  }

  .route-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .timeline,
  .appendix-grid,
  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-card.must {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  main {
    padding-top: 48px;
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .time-card.must {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  :root {
    --color-ink: #111111;
    --color-muted: #333333;
    --color-line: #999999;
    --shadow-card: none;
  }

  html,
  body {
    background: #ffffff;
  }

  body {
    color: #111111;
    font-size: 11pt;
    line-height: 1.45;
  }

  .site-header {
    color: #111111;
    background: #ffffff;
  }

  .topbar {
    position: static;
    display: block;
    padding: 0 0 12pt;
    color: #111111;
    background: #ffffff;
    border-bottom: 1pt solid #999999;
    box-shadow: none;
  }

  .brand {
    color: #111111;
  }

  .nav-links {
    display: none;
  }

  .hero,
  main,
  .site-footer {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  .hero {
    padding-bottom: 14pt;
  }

  .hero .eyebrow,
  .hero-copy,
  .route-strip li,
  .section-kicker,
  .time-label,
  .day-heading > p:first-child {
    color: #111111;
  }

  .hero h1 {
    font-size: 24pt;
  }

  .route-strip,
  .summary,
  .timeline,
  .appendix-grid,
  .checklist-grid {
    display: block;
  }

  .route-strip {
    padding-left: 18pt;
    list-style: decimal;
  }

  .route-strip li {
    display: list-item;
  }

  .route-strip li,
  .summary article,
  .notice,
  .time-card,
  .priority,
  .appendix-grid article,
  .checklist-grid > section {
    break-inside: avoid;
    padding: 10pt;
    margin: 0 0 10pt;
    border: 1pt solid #999999;
    box-shadow: none;
  }

  .priority-day {
    padding: 0;
    margin: 0;
    background: #ffffff;
    border: 0;
  }

  .time-card::before {
    display: none;
  }

  .route-strip li::before {
    content: none;
  }

  .day-section,
  .appendix,
  .overview {
    margin-top: 18pt;
  }
}
