/* A travel magazine spread in Chinese colors. Palette: zhongguose.com.
   Canglü #223e36 · Yuhong #c04851 · Xingrenhuang #f7e8aa · Yuebai #eef7f2. */
.route-section {
  --route-nav-offset: 64px;
  --route-toolbar-height: 48px;
  --route-green: #223e36;
  --route-red: #c04851;
  --route-red-ink: #7c1823;
  --route-gold: #f7e8aa;
  padding-top: 20px;
  background: transparent;
  scroll-margin-top: calc(var(--route-nav-offset) + 12px);
}
.route-section > .wrap { max-width: 1120px; }
.route-toolbar { position: sticky; top: var(--route-nav-offset); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--route-toolbar-height); margin-bottom: 24px; border-bottom: 1px solid var(--line); background: var(--canvas, var(--paper, #fff)); }
.route-toolbar-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.route-toolbar-title h2 { margin: 0; color: var(--route-green); font: 400 26px/1.15 "Fraunces", Georgia, serif; letter-spacing: -.025em; }
.route-toolbar-title > span { flex-shrink: 0; color: var(--ink-2); font-size: 12px; }
.route-day-nav { display: flex; flex-shrink: 0; gap: 12px; align-self: stretch; }
.route-day-nav button { position: relative; min-width: 48px; min-height: 44px; padding: 0 8px; border: 0; color: var(--ink-2); background: transparent; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; transition: background .2s ease-out, color .2s ease-out; }
.route-day-nav button::after { position: absolute; inset: auto 6px -1px; height: 2px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .22s ease-out; }
.route-day-nav button[aria-current] { color: var(--route-red-ink); font-weight: 600; }
.route-day-nav button[aria-current]::after { transform: scaleX(1); }
.route-day-nav button:hover { background: var(--surface-subtle, #f7f7f7); }
.route-day-nav button:focus-visible { outline: 2px solid var(--route-red); outline-offset: 4px; z-index: 1; }
.route-stack { --route-step: 18px; position: relative; isolation: isolate; }
.route-stack-slot { position: relative; margin-bottom: 32px; scroll-margin-top: 100px; --route-dark: #481e1c; --route-dark-rgb: 72 30 28; --route-accent: #f7e8aa; --route-highlight: #edc3ae; }
.route-stack-slot:nth-of-type(4n + 2) { --route-dark: #223e36; --route-dark-rgb: 34 62 54; --route-accent: #d2d97a; --route-highlight: #eef7f2; }
.route-stack-slot:nth-of-type(4n + 3) { --route-dark: #134857; --route-dark-rgb: 19 72 87; --route-accent: #c6e6e8; --route-highlight: #f7e8aa; }
.route-stack-slot:nth-of-type(4n + 4) { --route-dark: #253d24; --route-dark-rgb: 37 61 36; --route-accent: #f7e8aa; --route-highlight: #eef7f2; }
.route-stack.is-stacking .route-stack-slot { position: sticky; top: calc(var(--route-pin) + var(--route-index) * var(--route-step)); margin-bottom: calc((var(--route-count) - 1 - var(--route-index)) * var(--route-step)); }
.route-stack.is-stacking .route-stack-slot + .route-stack-slot { margin-top: calc(100px - (var(--route-count) - var(--route-index)) * var(--route-step)); }
.route-stack.is-measuring .route-stack-slot { position: relative; top: auto; }
.route-stack-end { display: none; }
.route-stack.is-stacking .route-stack-end { display: block; height: 160px; }
.route-postcard { position: relative; display: flex; flex-direction: column; min-height: clamp(520px, 80svh, 690px); padding: 32px 38px 26px; border-radius: 26px; color: #f9f1db; background: var(--route-dark); overflow: hidden; box-shadow: 0 2px 3px rgb(0 0 0 / 4%), 0 24px 50px -22px rgb(0 0 0 / 32%); transform-origin: 50% 0; }
.is-stacking .route-postcard { will-change: transform; }
.route-postcard-image, .route-postcard-blank, .route-postcard-wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-postcard-image { object-fit: cover; object-position: center 40%; }
.route-postcard-image:is([src$="/tianjin-day-1.webp"], [src$="/fujian-tulou-day-2.webp"], [src$="/lijiang-day-2.webp"]) { object-position: center 70%; }
.route-postcard-image:is([src$="/chongqing-day-3.webp"], [src$="/dalian-day-1.webp"], [src$="/wuhan-day-1.webp"]) { object-position: center top; }
.route-postcard-image[hidden] { display: none; }
.route-postcard-wash { background: linear-gradient(180deg, rgb(0 0 0 / var(--route-top-shade, 34%)) 0%, transparent 31%, rgb(var(--route-dark-rgb) / 28%) 44%, rgb(var(--route-dark-rgb) / 92%) 70%, var(--route-dark) 91%); }
.route-postcard:has(.route-postcard-image:is([src$="/chongqing-day-3.webp"], [src$="/zhongwei-day-2.webp"])) { --route-top-shade: 65%; }
.route-postcard:not(.route-postcard--empty) h3 { text-shadow: 0 2px 14px rgb(0 0 0 / 65%); }
.route-postcard-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.route-postcard-day { color: var(--route-accent); font: italic 400 clamp(44px, 5vw, 62px)/1 "Fraunces", Georgia, serif; letter-spacing: -.035em; text-shadow: 0 2px 18px rgb(0 0 0 / 35%); white-space: nowrap; }
.route-postcard-day > span { font-style: normal; font-size: 1.5em; }
.route-postcard-place { display: flex; flex-direction: column; gap: 9px; align-items: center; margin-top: 5px; padding: 10px 13px; border-left: 1px solid var(--route-accent); color: var(--route-accent); background: rgb(var(--route-dark-rgb) / 84%); }
.route-place-zh { font: 400 29px/1.2 "Noto Serif SC", serif; letter-spacing: .1em; }
.route-postcard-place > span:last-child { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.route-postcard-body { position: relative; margin-top: auto; padding-top: clamp(96px, 18svh, 150px); }
.route-postcard h3 { max-width: 860px; margin: 0 0 14px; color: var(--route-accent); font: 400 clamp(35px, 4.8vw, 58px)/1.03 "Fraunces", Georgia, serif; letter-spacing: -.03em; text-wrap: balance; }
.route-postcard-path { max-width: 85ch; margin: 0 0 26px; color: #f9f1db; font-size: 12px; line-height: 1.8; text-wrap: pretty; }
.route-postcard-schedule { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding-top: 19px; border-top: 1px solid rgb(249 241 219 / 34%); }
.route-postcard-schedule:has(> div:only-child) { grid-template-columns: 1fr; }
.route-postcard-schedule > div { padding: 0 24px; border-right: 1px solid rgb(249 241 219 / 23%); }
.route-postcard-schedule > div:first-child { padding-left: 0; }
.route-postcard-schedule > div:last-child { padding-right: 0; border-right: 0; }
.route-postcard-schedule dt { display: flex; align-items: center; gap: 11px; margin: 0 0 11px; color: var(--route-highlight); font: italic 400 23px/1.1 "Fraunces", Georgia, serif; }
.route-time-zh { color: var(--route-accent); font: 400 24px/1.3 "Noto Serif SC", serif; }
.route-postcard-schedule dd { max-width: 65ch; margin: 0; color: #f9f1db; font-size: 14px; line-height: 1.75; text-wrap: pretty; }
.route-postcard-schedule b { color: var(--route-accent); font-weight: 600; }
.route-photo-caption { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; color: #f9f1db; font-size: 10px; letter-spacing: .06em; }
.route-photo-caption::before { width: 24px; height: 1px; background: var(--route-accent); content: ""; }
.route-postcard-shade { position: absolute; inset: 0; background: #000; opacity: var(--route-dim, 0); pointer-events: none; }
.route-endnote { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid #bdcbc1; color: var(--route-green); font: italic 400 18px/1.3 "Fraunces", Georgia, serif; }
.route-endnote > span { font-size: 25px; color: var(--route-red); }
/* Readable fallback if an itinerary image cannot load. */
.route-postcard--empty { --route-accent: #7c1823; --route-highlight: #223e36; color: #223e36; background: #dce7df; box-shadow: 0 0 0 1px #bdcbc1, 0 20px 40px -25px rgb(0 0 0 / 22%); }
.route-postcard--empty .route-postcard-wash { background: linear-gradient(180deg, transparent 25%, #eef7f2 62%); }
.route-postcard--empty .route-postcard-day, .route-postcard--empty .route-postcard-place { text-shadow: none; }
.route-postcard--empty .route-postcard-place { border-color: #7c1823; background: #eef7f2; }
.route-postcard--empty .route-postcard-path, .route-postcard--empty dd { color: #2f493f; }
.route-postcard--empty .route-postcard-schedule, .route-postcard--empty .route-postcard-schedule > div { border-color: #a7b8ad; }
.route-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .route-toolbar-title h2 { font-size: 23px; }
  .route-day-nav { gap: 6px; }
  .route-postcard { padding: 28px; }
  .route-postcard-schedule > div { padding-inline: 18px; }
  .route-postcard-schedule dt { font-size: 21px; gap: 8px; }
}
@media (max-width: 650px) {
  .route-section { padding-top: 12px; }
  .route-section > .wrap { padding-inline: 20px; }
  .route-toolbar { gap: 0; margin-bottom: 20px; }
  .route-toolbar-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .route-day-nav { justify-content: space-between; gap: 0; width: 100%; }
  .route-day-nav button { flex: 1; min-width: 0; }
  .route-stack { --route-step: 12px; }
  .route-postcard { min-height: 0; border-radius: 20px; padding: 24px 22px; }
  .route-postcard-day { font-size: 40px; }
  .route-place-zh { font-size: 23px; }
  .route-postcard-place { padding: 8px 10px; gap: 7px; }
  .route-postcard-place > span:last-child { font-size: 8px; letter-spacing: .1em; }
  .route-postcard-body { padding-top: 170px; }
  .route-postcard h3 { font-size: clamp(32px, 8.6vw, 45px); }
  .route-postcard-path { font-size: 11px; margin-bottom: 21px; }
  .route-postcard-schedule { grid-template-columns: 1fr; gap: 21px; padding-top: 16px; }
  .route-postcard-schedule > div { padding: 0 !important; border-right: 0; }
  .route-postcard-schedule dt { margin-bottom: 8px; font-size: 23px; gap: 12px; }
  .route-time-zh { font-size: 23px; }
  .route-postcard-schedule dd { font-size: 14px; line-height: 1.7; }
  .route-postcard-wash { background: linear-gradient(180deg, rgb(0 0 0 / var(--route-top-shade, 34%)), transparent 116px, rgb(var(--route-dark-rgb) / 76%) 234px, var(--route-dark) 382px); }
  .route-postcard-image { object-position: center top; height: 382px; }
  .route-postcard-image:is([src$="/shenzhen-day-3.webp"], [src$="/tianjin-day-2.webp"]) { object-position: left top; }
  .route-postcard-image:is([src$="/fanjingshan-day-2.webp"], [src$="/xian-day-1.webp"], [src$="/xining-day-2.webp"]) { object-position: right top; }
  .route-postcard--empty .route-postcard-wash { background: linear-gradient(180deg, transparent 15%, #eef7f2 40%); }
}
@media (prefers-reduced-motion: reduce) {
  .route-day-nav button, .route-day-nav button::after { transition: none; }
  .route-stack.is-stacking .route-stack-slot { position: relative; top: auto; margin: 0 0 32px; }
  .route-stack.is-stacking .route-stack-slot + .route-stack-slot { margin-top: 0; }
  .route-stack.is-stacking .route-stack-end { display: none; }
  .route-postcard { transform: none !important; will-change: auto; }
  .route-postcard-shade { display: none; }
  html:has(.route-section) { scroll-behavior: auto; }
}
@media print {
  .route-toolbar { position: static; }
  .route-stack.is-stacking .route-stack-slot { position: relative; top: auto; margin: 0 0 24px; break-inside: avoid; }
  .route-stack.is-stacking .route-stack-slot + .route-stack-slot { margin-top: 0; }
  .route-stack-end, .route-day-nav, .route-postcard-shade { display: none !important; }
  .route-postcard { transform: none !important; print-color-adjust: exact; }
}
