/* 2027 春节行程 — trip.alawn.cn  ·  v11 每日卡片风 */

:root {
  --bg: #f4f4f4;
  --bg-2: #f7f7f7;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e5e5e5;
  --line-soft: #e8e8e8;
  --card-edge: #ececec;
  --accent: #111111;
  --accent-dark: #111111;
  --accent-soft: #f7f7f7;
  --gold: #111111;
  --gold-soft: #f7f7f7;
  --sea: #111111;
  --sea-soft: #f7f7f7;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --header-h: 3.5rem;
  --rail-col: 2.75rem;
  --rail-gap: 1.25rem;
  --rail-space: calc(var(--rail-col) + var(--rail-gap));
  --now-bar-h: 2.85rem;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei",
    "Source Han Sans SC", "WenQuanYi Micro Hei", system-ui, sans-serif;
  --max: 800px;
  --label-col: 4.8rem;
  --fs-caption: 0.8125rem;
  --fs-label: 0.8125rem;
  --fs-body: 1rem;
  --fs-title: 1.0625rem;
  --fs-day: 1.5rem;
  --fs-display: clamp(1.75rem, 2.4vw + 1.2rem, 2rem);
  --pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6.5-6.6 6.5-11.25a6.5 6.5 0 1 0-13 0C5.5 14.4 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.75' r='2.15'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  background: #f4f4f4;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(17, 17, 17, 0.28);
}

a:hover { color: #111111; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header sits on the gray canvas */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 244, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.site-header .bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  flex-wrap: wrap;
  padding: 0.25rem 0;
}

.site-title {
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0;
  font-size: var(--fs-title);
  line-height: 1.3;
  white-space: nowrap;
}

.site-title:hover { color: #111111; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.05rem;
  align-items: center;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.28rem 0.5rem;
  border-radius: 0;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: inset 0 -1px 0 transparent;
}

.site-nav a:hover {
  background: none;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.site-nav a[aria-current="page"] {
  background: none;
  color: var(--ink);
  font-weight: 700;
  box-shadow: inset 0 -1px 0 var(--ink);
}

/* Shared white card shell */
.hero,
.panel,
.day-card,
.appendix,
.metrics-panel,
.page-intro,
.card {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-edge);
}

.panel,
.metrics-panel,
.page-intro,
.appendix {
  padding: 1.35rem 1.5rem 1.5rem;
  margin: 0 0 1.75rem;
}

/* Page hero — rounded card, photo flush to the top */
.hero {
  position: relative;
  margin: 1.25rem 0 1.75rem;
  background: #111111;
}

.hero img {
  display: block;
  width: 100%;
  height: min(48vw, 280px);
  object-fit: cover;
}

.hero-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 58%, transparent 100%);
  color: #ffffff;
}

.hero-text .eyebrow {
  margin: 0 0 0.28rem;
  letter-spacing: 0.02em;
  font-size: var(--fs-label);
  line-height: 1.3;
  color: #f0f0f0;
  font-weight: 500;
}

.hero-text h1 {
  margin: 0 0 0.3rem;
  font-family: var(--font);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-wrap: pretty;
  color: #ffffff;
}

.hero-text .lede {
  margin: 0;
  color: #e8e8e8;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
}

/* Bank page intro (no photo) */
.page-head {
  padding: 0 0 0.85rem;
}

.page-head .eyebrow {
  margin: 0 0 0.3rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-size: var(--fs-label);
  line-height: 1.3;
  font-weight: 500;
}

.page-head h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.page-head .lede {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

/* Metrics — inside a white panel */
.metrics-panel { padding: 1.1rem 1.5rem 1.15rem; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 1.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.metric {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: left;
  box-shadow: none;
}

.metric .value {
  display: block;
  font-family: var(--font);
  font-size: var(--fs-day);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.metric .label {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: var(--fs-label);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Panel titles (怎么安排, 机票, 附录, bank sections) */
.panel h2,
.appendix h2,
.page-intro h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font);
  font-size: var(--fs-day);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
  color: #111111;
  text-wrap: pretty;
}

/* Day cards */
.day-card {
  margin: 0 0 1.75rem;
  scroll-margin-top: calc(var(--header-h) + 0.9rem);
}

.day-hero {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.day-inner { padding: 1.35rem 1.5rem 1.55rem; }

.day-kicker {
  margin: 0 0 0.25rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--muted);
}

.day-title {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: var(--fs-day);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: #111111;
  text-wrap: pretty;
}

/* Facts (住宿 / 地图) — quiet block, not one list with the timeline */
.facts,
.props {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0;
  margin: 0 0 0.35rem;
  padding: 0 0 0.15rem;
  align-items: start;
}

.facts dt,
.facts dd,
.props dt,
.props dd {
  margin: 0;
  padding: 0.4rem 0;
  border: 0;
}

.facts dt,
.props dt {
  color: var(--muted);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.facts dd,
.props dd {
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

/* Timeline — rules only between slots, only inside the card */
.timeline {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  position: static;
  list-style: none;
  padding: 0.9rem 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.timeline li::marker { content: none; }

.timeline li:last-child { padding-bottom: 0.15rem; }

.timeline .time {
  position: static;
  width: auto;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: #111111;
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.35;
  letter-spacing: 0;
  padding-top: 0.05rem;
}

.timeline .slot { min-width: 0; }

.timeline .slot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.25rem;
  align-items: baseline;
}

.timeline h3 {
  margin: 0;
  grid-column: 1;
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: #111111;
  min-width: 0;
}

.timeline .fare {
  margin: 0;
  grid-column: 2;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  background: none;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 400;
  padding: 0;
  border-radius: 0;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.timeline .detail {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  max-width: 42rem;
}

/* Map links */
.map-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.22);
}

.map-link::before {
  content: "";
  display: inline-block;
  width: 0.92em;
  height: 0.92em;
  margin-right: 0.22em;
  vertical-align: -0.12em;
  background-color: currentColor;
  -webkit-mask: var(--pin) center / contain no-repeat;
  mask: var(--pin) center / contain no-repeat;
}

.map-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* 当天备注 — light rounded box inside the same card */
.day-note {
  margin: 1.15rem 0 0;
  padding: 0.9rem 1rem;
  background: #f7f7f7;
  border-radius: 10px;
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.day-note .note-label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ink);
}

/* Photos live inside the day card, after slots and 备注 */
.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  margin: 1.2rem 0 0;
}

.photos.single { grid-template-columns: 1fr; }

.photo { margin: 0; }

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-2);
}

.photos.single .photo img { aspect-ratio: 16 / 9; }

.photo figcaption {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 0.2rem 0 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: 0;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.6rem 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  letter-spacing: 0.02em;
  font-size: var(--fs-body);
}

td:first-child, th:first-child {
  font-weight: 700;
  white-space: nowrap;
  width: 9rem;
}

tr:last-child td { border-bottom: 0; }

/* Callout, steps, checklist (bank) */
.callout {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 0 0;
  margin: 0.2rem 0 0;
}

.callout .lead {
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0;
  font-size: var(--fs-title);
  line-height: 1.35;
}

.callout p { margin: 0; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  column-gap: 1rem;
  position: relative;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
  list-style: none;
  counter-increment: step;
}

.steps li:last-child { padding-bottom: 0.15rem; border-bottom: 0; }

.steps li::marker { content: none; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  color: #111111;
  font-family: var(--font);
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  padding-top: 0.05rem;
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  display: block;
  position: static;
}

.steps h3,
.steps p {
  grid-column: 2;
  min-width: 0;
}

.steps h3 {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.steps p {
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
  max-width: 42rem;
}

.checks {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}

.checks li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.checks li:last-child { border-bottom: 0; }

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
}

.muted { color: var(--muted); }

/* Homepage scheme cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  margin: 0;
}

.card:hover {
  transform: none;
  box-shadow: var(--shadow);
  color: inherit;
  border-color: var(--ink);
}

.card .thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: var(--bg-2);
  display: block;
}

.card .thumb-plain {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font);
  font-size: var(--fs-day);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.card .body { padding: 0.95rem 1.05rem 1.1rem; flex: 1; background: #ffffff; }

.card .tag {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}

.card h2 {
  margin: 0 0 0.28rem;
  font-family: var(--font);
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 1.2rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 0.85rem 0;
  box-shadow: none;
}

.link-card:hover {
  border-color: var(--ink);
  color: inherit;
  background: transparent;
}

.link-card img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}

.link-card .site {
  display: block;
  color: var(--muted);
  font-size: var(--fs-caption);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.link-card .title {
  display: block;
  font-weight: 700;
  font-size: var(--fs-body);
  letter-spacing: 0;
  line-height: 1.35;
}

/* Day jump — on the gray canvas, not inside a card */
.day-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  margin: 0 0 1.35rem;
  padding: 0.1rem 0 0.15rem;
  border: 0;
}

.day-jump a {
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0.35rem 0.5rem;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: inset 0 -1px 0 transparent;
}

.day-jump a:hover {
  background: none;
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -1px 0 var(--ink);
}

/* Appendix (inside a white card) */
.appendix {
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.65;
  letter-spacing: 0;
}

.appendix h2 {
  color: var(--ink);
}

.appendix h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.appendix h3:first-of-type { margin-top: 0.15rem; }

.appendix ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.appendix li {
  margin: 0 0 0.2rem;
  padding: 0;
}

.appendix p { margin: 0 0 0.45rem; }

.appendix-lead {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.appendix-table-wrap {
  overflow-x: auto;
  margin: 0.15rem 0 0.2rem;
}

.appendix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}

.appendix-table th,
.appendix-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  width: auto;
  white-space: normal;
  letter-spacing: 0;
}

.appendix-table thead th {
  background: #f7f7f7;
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.appendix-table tbody th {
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  width: 12.5rem;
  min-width: 8.5rem;
  padding-right: 1.1rem;
}

.appendix-table tbody td { font-weight: 400; }

.appendix-table tr:last-child th,
.appendix-table tr:last-child td { border-bottom: 1px solid var(--line); }

.appendix-table .book { line-height: 1.65; }
.appendix-table .book a { display: inline; }

/* Footer sits on the gray canvas */
.site-footer {
  margin: 0.5rem 0 0;
  padding: 1.5rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.65;
  letter-spacing: 0;
  text-align: center;
  background: #f4f4f4;
}

.site-footer p { margin: 0 0 0.5rem; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer .site-name {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0;
  font-size: var(--fs-label);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.site-footer .beian {
  text-align: center;
  margin-top: 0;
  letter-spacing: 0;
}
.site-footer a.beian,
.site-footer .beian a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-footer a.beian:hover,
.site-footer .beian a:hover { color: var(--ink); }

/* Homepage plan groups */
.plan-group {
  margin: 0 0 2rem;
}
.plan-group:last-child { margin-bottom: 0; }
.plan-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font);
  font-size: var(--fs-day);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.35;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.intro {
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 60;
  background: #ffffff;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}


/* —— Left day rail + sticky now readout (itinerary pages) —— */
.now-bar {
  grid-column: 1 / -1;
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  min-height: var(--now-bar-h);
  margin: 0 0 1rem;
  padding: 0.4rem 0 0.5rem;
  background: rgba(244, 244, 244, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.now-readout {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  color: #111111;
}

.now-days {
  display: none;
  flex-wrap: wrap;
  gap: 0.15rem 0.2rem;
  align-items: center;
}

.now-days a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.85rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0;
}

.now-days a.is-current,
.now-days a[aria-current="true"] {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.days {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--rail-col) minmax(0, 1fr);
  column-gap: var(--rail-gap);
  position: relative;
  align-items: start;
}

.day-rail-cell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 0.85rem;
}

.days > .day-rail-cell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.85rem;
  bottom: -1.75rem;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
  pointer-events: none;
}

.days > .day-rail-cell:nth-last-child(2)::before { display: none; }

.day-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

.day-badge.is-current,
.day-badge[aria-current="true"] {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.timeline li.is-current .time {
  color: #111111;
}

.timeline li.is-current h3 {
  color: #111111;
}

@media (min-width: 901px) {
  .itin-page .site-header .bar,
  .itin-page .itin-wrap {
    width: min(calc(var(--max) + var(--rail-space)), calc(100% - 2.4rem));
  }
  .itin-page .site-header .bar {
    box-sizing: border-box;
    padding-left: var(--rail-space);
  }
  .itin-page .itin-wrap {
    display: grid;
    grid-template-columns: var(--rail-col) minmax(0, 1fr);
    column-gap: var(--rail-gap);
    align-items: start;
  }
  .itin-page .itin-wrap > .now-bar { grid-column: 1 / -1; }
  .itin-page .itin-wrap > .days { grid-column: 1 / -1; }
  .itin-page .itin-wrap > :not(.now-bar):not(.days) { grid-column: 2; }
  .itin-page .day-card {
    scroll-margin-top: calc(var(--header-h) + var(--now-bar-h) + 0.75rem);
  }
  .itin-page .timeline li {
    scroll-margin-top: calc(var(--header-h) + var(--now-bar-h) + 0.5rem);
  }
  .itin-page .site-footer .wrap {
    width: min(calc(var(--max) + var(--rail-space)), calc(100% - 2.4rem));
    box-sizing: border-box;
    padding-left: var(--rail-space);
  }
}

@media (max-width: 900px) {
  .now-days { display: flex; }
  .days { display: block; grid-column: auto; }
  .day-rail-cell { display: none; }
  .itin-page .day-card,
  .itin-page .timeline li {
    scroll-margin-top: calc(var(--header-h) + 4.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .day-badge, .now-days a, .timeline li { transition: none; }
}

@media (max-width: 800px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 0.95rem 1.2rem; }
  .cards { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr; }
  .photos.single { grid-template-columns: 1fr; }
  .photos.single .photo img,
  .photos .photo img { aspect-ratio: 3 / 2; }
  .timeline .fare { white-space: normal; }
  td:first-child, th:first-child { white-space: normal; width: auto; }
  .appendix-table tbody th {
    white-space: normal;
    width: auto;
    min-width: 7rem;
  }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
  .panel,
  .metrics-panel,
  .page-intro,
  .appendix { padding: 1.1rem 1.1rem 1.2rem; }
  .day-inner { padding: 1.1rem 1.1rem 1.25rem; }
  .hero-text { padding: 2.3rem 1.1rem 1rem; }
  .day-hero { height: 160px; }
  .appendix-table th,
  .appendix-table td { padding: 0.7rem 0.75rem; }
  :root { --label-col: 4.5rem; }
  .timeline .fare { white-space: normal; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header { position: static; box-shadow: none; background: #fff; }
  .site-nav, .day-jump, .skip { display: none; }
  .hero,
  .panel,
  .day-card,
  .appendix,
  .metrics-panel,
  .page-intro,
  .card { box-shadow: none; break-inside: avoid; }
  .hero img { height: 220px; }
  a { color: inherit; text-decoration: none; }
  .map-link::before { display: none; }
  .now-bar, .day-rail-cell, .now-days { display: none !important; }
  .itin-page .itin-wrap, .days { display: block; width: auto; padding-left: 0; }
}

