/* The public feature pages (views/feature_layout.erb) and the landing
   page's FAQ and "Take a closer look" sections. Loaded after landing.css,
   whose header, hero, step cards and buttons these pages reuse. */

.landing-nav a[aria-current="page"] { color: var(--route); }

.crumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem clamp(16px, 4vw, 48px) 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
.crumbs a { color: var(--muted-strong); }

/* ---------- Hero ---------- */

.feature-hero { padding-top: clamp(1.5rem, 4vw, 3rem); }
.feature-hero--narrow { grid-template-columns: minmax(0, 1fr); max-width: 52rem; text-align: center; }
.feature-hero--narrow .hero__lede { margin-left: auto; margin-right: auto; }
.feature-hero--narrow .hero__ctas { justify-content: center; }

.feature-hero__card {
  justify-self: center;
  width: min(100%, 340px);
  margin: 0;
  transform: rotate(1.5deg);
}
.feature-hero__card .pl-card { box-shadow: 0 18px 40px rgba(27, 36, 48, 0.16), 0 2px 6px rgba(27, 36, 48, 0.1); }

.feature-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-strong);
  font-size: var(--text-sm);
}
.feature-stats strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", serif;
  font-size: 1.75rem;
  line-height: 1.1;
}

/* ---------- Sections ---------- */

.feature-section,
.explore,
.quotes,
.faq {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.75rem) clamp(16px, 4vw, 48px);
}
.feature-section > h2,
.explore > h2,
.quotes > h2,
.faq > h2 {
  margin: 0 auto 1rem;
  max-width: 40rem;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  text-align: center;
  text-wrap: balance;
}
.feature-section__lede {
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: var(--muted-strong);
  font-size: var(--text-md);
  text-align: center;
}
.feature-section__more { margin: 1.75rem 0 0; text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Read-only place cards from views/_place_card.erb: the Places page's
   cards, minus the buttons. */
.feature .pl-card__title {
  font-size: var(--text-lg);
  line-height: 1.25;
}
.feature .pl-card__cover .pl-star { color: var(--gold-dark); }
.feature .pl-card__cover .pl-star svg { fill: var(--gold); }

/* ---------- Everything a place can hold ---------- */

.anatomy__grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.anatomy__card { position: sticky; top: 90px; }
.pl-card--anatomy .pl-card__notes { -webkit-line-clamp: unset; }

/* The numbered badges on the card match .anatomy__fields' numbers. */
.anno {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-accent);
  font-family: system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: 0.1em;
}
.pl-card__elev .anno,
.pl-card__coords .anno { margin-right: 0.25rem; }
.pl-card__cover .pl-star .anno { position: absolute; top: -4px; left: -6px; }

.anatomy__fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: field;
}
.anatomy__fields li {
  position: relative;
  padding-left: 2.1rem;
  counter-increment: field;
}
.anatomy__fields li::before {
  content: counter(field);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-accent);
  font-size: var(--text-xs);
  font-weight: 700;
}
.anatomy__fields h3 { margin: 0 0 0.2rem; font-size: var(--text-lg); }
.anatomy__fields p { margin: 0; color: var(--muted-strong); font-size: var(--text-md); }

/* ---------- Categories ---------- */

.cat-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.cat-group {
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: var(--group-bg);
  color: var(--group-ink);
}
.cat-group h3 { margin: 0 0 0.75rem; color: inherit; font-size: var(--text-lg); }
.cat-group ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.cat-group li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); font-weight: 600; }
.cat-group__icon { font-size: 1.15rem; }
.cat-group__name { flex: 1; }
.cat-group__count {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: var(--text-2xs);
}

/* ---------- Three ways to see your list ---------- */

.views-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.views-demo__panel h3 { margin: 0 0 0.75rem; font-size: var(--text-xl); }
.views-demo__caption { margin: 0.6rem 0 0; color: var(--muted); font-size: var(--text-sm); }
.pl-table--compact { min-width: 520px; }
.pl-table--compact .pl-table__name { color: var(--ink); font-weight: 600; }
.pl-board--compact { overflow: visible; padding-bottom: 0; }
.pl-board--compact .pl-board__col { flex: 1 1 0; min-width: 0; }
.pl-board__head h4 { flex: 1; margin: 0; font-family: inherit; font-size: var(--text-md); }
.pl-mini__text strong { font-size: var(--text-sm); line-height: 1.3; }

.feature-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.feature-checks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted-strong);
  font-size: var(--text-md);
}
.feature-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--route);
  font-weight: 700;
}
.feature-checks strong { color: var(--ink); }

/* ---------- Link cards ---------- */

.explore__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.explore__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.explore__card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.explore__card:hover { border-color: var(--route); transform: translateY(-2px); }
.explore__card h3 { margin: 0; font-size: var(--text-xl); }
.explore__card p { flex: 1; margin: 0; color: var(--muted-strong); font-size: var(--text-md); }
.explore__more { color: var(--route); font-size: var(--text-sm); font-weight: 700; }
.explore__more::after { content: " →"; }
.feature-next { padding-top: 0; }
.feature-next__all { margin: 1.25rem 0 0; text-align: center; font-size: var(--text-md); }
.feature-next__all a { color: var(--route); font-weight: 600; }

/* ---------- About (/about) ---------- */

/* Half the hero's usual bottom padding (landing.css), so the photo sits closer to the title. */
.about-hero { padding-bottom: clamp(1.25rem, 3.5vw, 2.75rem); }
.about { max-width: 44rem; padding-top: 0; }
.about__photo { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-card); }
.about__name { margin: 1rem 0 1.25rem; color: var(--muted-strong); font-size: var(--text-md); }
.about p { font-size: var(--text-md); line-height: 1.6; }
.about h2 { margin-top: 2rem; }
.author-trips { list-style: none; padding: 0; margin: 0; display: grid; gap: .875rem; }
.author-trips a { font-size: var(--text-md); font-weight: 600; }
.author-trips__meta { display: block; color: var(--muted-strong); }

/* ---------- Changelog (/changelog) ---------- */

.changelog { max-width: 44rem; padding-top: 0; }
.changelog__day + .changelog__day { margin-top: 1.75rem; }
.changelog__day h2 { margin: 0 0 0.5rem; font-size: var(--text-lg); }
.changelog__day ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: var(--text-md); line-height: 1.5; }

/* ---------- Proof strip (SocialProof::BADGES) ---------- */

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem auto 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}
.proof-strip a { color: var(--ink); font-weight: 600; }
.proof-strip time { margin-left: 0.35rem; color: var(--muted); }

/* ---------- User quotes (lib/social_proof.rb) ---------- */

.quotes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.5rem;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.quote blockquote { flex: 1; margin: 0; font-size: var(--text-lg); line-height: 1.4; }
.quote figcaption { display: flex; align-items: center; gap: 0.75rem; color: var(--muted-strong); font-size: var(--text-sm); }
.quote figcaption img { border-radius: 50%; object-fit: cover; }

/* ---------- FAQ ---------- */

.faq__list {
  max-width: 48rem;
  margin: 1.5rem auto 0;
  border-top: 1px solid var(--border);
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  margin-left: auto;
  color: var(--route);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.15s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary h3 { margin: 0; font-size: var(--text-lg); }
.faq__item summary:hover h3 { color: var(--route); }
.faq__item p {
  margin: 0;
  padding: 0 2.5rem 1.25rem 0.25rem;
  color: var(--muted-strong);
  font-size: var(--text-md);
}
.faq__item p a { color: var(--route); font-weight: 600; }

/* ---------- Route story (/places-along-route) ---------- */

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.story__steps { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.story__steps li {
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-warm);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.story__steps li:hover { border-color: var(--fainter); }
.story__steps li.is-active { border-color: var(--route); background: var(--route-soft); }
.story__steps h3 { margin: 0; font-size: var(--text-lg); }
.story__steps p { margin: 0.45rem 0 0 2.4rem; color: var(--muted-strong); font-size: var(--text-sm); }
.story__step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.story__step:hover { background: none; }
.story__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--parchment-dark);
  color: var(--muted-strong);
  font-family: system-ui, sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
}
.is-active .story__num { background: var(--route); color: #fff; }

.story__figure { position: sticky; top: 84px; margin: 0; }
.story-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(27, 36, 48, 0.16), 0 2px 6px rgba(27, 36, 48, 0.1);
}
.story-map__ground { fill: var(--parchment-dark); }
.story-map__contours path { stroke: var(--border); stroke-width: 1.5; }
.story-map__others circle { fill: var(--fainter); }
.story-map path,
.story-map line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.story-map__straight { stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 3 9; }
.story-map__band { stroke: var(--gold); stroke-opacity: 0.2; }
.story-map__casing { stroke: var(--ink); stroke-width: 7; }
.story-map__road { stroke: var(--muted-strong); stroke-width: 4; }
.story-map__road--trip { stroke: var(--route); }
.story-map__ring { fill: none; stroke: var(--gold); stroke-width: 2.5; }
/* <use> copies of #story-pin: colors set here are inherited (dot = color). */
.story-map__pin--near { fill: var(--gold); stroke: var(--ink); stroke-width: 1.5; color: var(--ink); }
.story-map__stop circle { fill: var(--surface); stroke: var(--route-dark); stroke-width: 3; }
.story-map__stop--day circle { fill: var(--gold); stroke: var(--ink); }
.story-map__end { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.story-map__end--finish .story-map__end { fill: var(--gold); }
.story-map__label {
  fill: var(--ink);
  stroke: var(--parchment-dark);
  stroke-width: 4;
  paint-order: stroke;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* Layers per step (data-step on the figure, set by route_story.js).
   Hidden layers fade; routes draw in (pathLength="1" dashes). */
.story-map__straight,
.story-map__direct,
.story-map__trip,
.story-map__near,
.story-map__stops { transition: opacity 0.5s; }
.story-map .draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease-in-out; }
.story-map__band { transition: stroke-opacity 0.6s; }

[data-step="1"] .story-map__direct,
[data-step="1"] .story-map__trip,
[data-step="1"] .story-map__near,
[data-step="1"] .story-map__stops,
[data-step="2"] .story-map__trip,
[data-step="2"] .story-map__stops,
[data-step="3"] .story-map__straight,
[data-step="4"] .story-map__straight,
[data-step="2"] .story-map__straight { opacity: 0; }
[data-step="1"] .story-map__direct .draw,
[data-step="1"] .story-map__trip .draw,
[data-step="2"] .story-map__trip .draw { stroke-dashoffset: 1; }
/* Once the trip is built, the fastest route stays as a faint reference. */
[data-step="3"] .story-map__direct,
[data-step="4"] .story-map__direct { opacity: 0.3; }
[data-step="3"] .story-map__direct .story-map__band,
[data-step="4"] .story-map__direct .story-map__band,
[data-step="2"] .story-map__band--trip { stroke-opacity: 0; }
[data-step="3"] .story-map__near,
[data-step="4"] .story-map__near { opacity: 0.35; }
.story-map__stop--day circle { transition: r 0.4s, fill 0.4s; }
[data-step="3"] .story-map__stop--day circle { r: 6.5px; fill: var(--surface); stroke: var(--route-dark); }

.story__card { display: none; }
[data-step="1"] .story__card[data-for-step="1"],
[data-step="2"] .story__card[data-for-step="2"],
[data-step="3"] .story__card[data-for-step="3"],
[data-step="4"] .story__card[data-for-step="4"] { display: flex; }
.story__card { right: 4%; bottom: 13%; }
.story__card--near { border-left: 4px solid var(--gold); }

.story__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: var(--text-xs);
}
.story__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.story__key { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.story__key--near { background: var(--gold); border: 1.5px solid var(--ink); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.story__key--stop { background: var(--surface); border: 2.5px solid var(--route-dark); }
.story__key--day { background: var(--gold); border: 2.5px solid var(--ink); }
.story__key--other { background: var(--fainter); }

/* ---------- Day-by-day table ---------- */

.days { margin-top: 2.5rem; }
.days h3 { margin: 0 0 0.75rem; font-size: var(--text-xl); }
.days__wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.days__table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.days__table thead th {
  padding: 0.6rem 0.85rem;
  background: var(--parchment-dark);
  color: var(--muted-strong);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}
.days__table td,
.days__table tbody th {
  padding: 0.6rem 0.85rem;
  border-top: 1px solid var(--parchment-dark);
  color: var(--muted-strong);
  text-align: left;
  vertical-align: top;
}
.days__table tbody th { color: var(--ink); white-space: nowrap; }
.days__table .days__num { text-align: right; white-space: nowrap; }

.steps__list--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature .step h3 { margin-top: 0.35rem; }

/* ---------- Import ---------- */

.import-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.import-way {
  padding: 1.5rem;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.import-way h3 { margin: 0.35rem 0 0.75rem; font-size: var(--text-xl); }
.import-way ol { display: grid; gap: 0.45rem; margin: 0; padding-left: 1.2rem; color: var(--muted-strong); font-size: var(--text-md); }
.import-way p { margin: 0 0 0.75rem; color: var(--muted-strong); font-size: var(--text-md); }
.import-way__csv { font-size: var(--text-xs); }

/* ---------- Footer ---------- */

.landing-footer__features {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.landing-footer__features a { color: var(--muted-strong); font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.landing-footer__features a:hover { color: var(--route); }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .anatomy__grid,
  .views-demo,
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .anatomy__card { position: static; max-width: 360px; margin: 0 auto; }
  .story__figure { position: relative; top: 0; order: -1; }
  .explore__grid,
  .import-ways,
  .steps__list--three { grid-template-columns: minmax(0, 1fr); }
  .explore__grid--two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .feature-hero__card { transform: none; }
  .story__card { position: static; margin-top: 0.75rem; }
  .story-map__label { font-size: 22px; }
  .pl-board--compact { flex-direction: column; }
  .pl-board--compact .pl-board__col { width: 100%; }
}

/* ---------- Header dropdown (Iconic trips) ---------- */

.nav-menu { position: relative; display: flex; align-items: center; }
.landing-nav .nav-menu__link { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-menu__link svg { width: 0.85rem; height: 0.85rem; transition: transform 0.15s; }
.nav-menu:hover .nav-menu__link svg,
.nav-menu:focus-within .nav-menu__link svg { transform: rotate(180deg); }
/* The panel starts right under the link (padding-top bridges the gap), so
   moving the pointer down onto it keeps the hover. */
.nav-menu__panel {
  position: absolute;
  top: 100%;
  left: -1rem;
  z-index: 20;
  display: none;
  min-width: 17rem;
  padding-top: 0.6rem;
}
.nav-menu:hover .nav-menu__panel,
.nav-menu:focus-within .nav-menu__panel { display: grid; }
.nav-menu__panel::before {
  content: "";
  position: absolute;
  inset: 0.6rem 0 0;
  z-index: -1;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-warm);
  box-shadow: var(--shadow-float);
}
.landing-nav .nav-menu__panel a {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  margin: 0 0.3rem;
}
.landing-nav .nav-menu__panel a:first-child { margin-top: 0.3rem; }
.landing-nav .nav-menu__panel a:last-child {
  margin-bottom: 0.3rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  color: var(--route);
}
.nav-menu__panel a:hover { background: var(--parchment-dark); }
.nav-menu__panel strong { color: var(--ink); font-size: var(--text-sm); }
.nav-menu__panel span { color: var(--muted); font-size: var(--text-xs); font-weight: 400; }

/* ---------- Iconic trips (/iconic-trips) ---------- */

/* Day colors for routes and stop numbers, by day index (wrapping at 7). */
[data-day="0"] { --day: #3f6e64; }
[data-day="1"] { --day: #c4862a; }
[data-day="2"] { --day: #3d63a0; }
[data-day="3"] { --day: #b0573a; }
[data-day="4"] { --day: #7559a6; }
[data-day="5"] { --day: #2b8c95; }
[data-day="6"] { --day: #8a6a2f; }
:root[data-theme="dark"] [data-day="0"] { --day: #7fbfae; }
:root[data-theme="dark"] [data-day="1"] { --day: #f0b45c; }
:root[data-theme="dark"] [data-day="2"] { --day: #8fb0e8; }
:root[data-theme="dark"] [data-day="3"] { --day: #ee9a7d; }
:root[data-theme="dark"] [data-day="4"] { --day: #b9a0e6; }
:root[data-theme="dark"] [data-day="5"] { --day: #6fcbd3; }
:root[data-theme="dark"] [data-day="6"] { --day: #d7b46e; }

.trip-hero { align-items: start; }
.trip-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.trip-byline { margin: 1.25rem 0 0; color: var(--muted); font-size: var(--text-sm); }
.trip-byline + .trip-byline { margin-top: 0.35rem; }
.trip-byline a,
.trip-source a { color: var(--route); font-weight: 600; }

.trip-map { margin: 0; }
.trip-map svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(27, 36, 48, 0.16), 0 2px 6px rgba(27, 36, 48, 0.1);
}
.trip-map__ground { fill: var(--parchment-dark); }
/* Each trip map carries a light and a dark basemap; show the theme's. */
.trip-map__base--dark,
[data-theme="dark"] .trip-map__base--light { display: none; }
[data-theme="dark"] .trip-map__base--dark { display: inline; }
.trip-map__casing,
.trip-map__line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trip-map__casing { stroke: var(--ink); stroke-width: 7; }
.trip-map__line { stroke: var(--day); stroke-width: 4; }
.trip-map__stop circle { fill: var(--day); stroke: var(--ink); stroke-width: 2; }
.trip-map__stop text {
  fill: #fff;
  font-family: system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}
.trip-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.8rem;
  font-size: var(--text-xs);
}
.trip-map__legend a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--muted-strong); text-decoration: none; }
.trip-map__legend a:hover { color: var(--ink); }
.trip-map__legend i { width: 1.1rem; height: 4px; border-radius: 2px; background: var(--day); }

.trip {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) clamp(2rem, 5vw, 3rem);
}
.trip h2 { margin: 2.75rem 0 0.5rem; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.trip__prose { max-width: 44rem; }
.trip__prose p,
.trip__lede {
  margin: 0 0 1rem;
  color: var(--muted-strong);
  font-size: 1.06rem;
  line-height: 1.7;
}
.trip__best-time { padding: 0.75rem 1rem; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--surface-warm); }
.trip__glance .days__table th a { color: var(--route); }

.trip-day h2 { display: flex; align-items: center; gap: 0.75rem; }
.trip-day h2::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 1.6rem;
  border-radius: 3px;
  background: var(--day);
}
.trip-day__meta { margin: 0 0 1rem; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.trip-day__sleep { margin: 1rem 0 0; color: var(--muted-strong); font-size: var(--text-md); }

.trip-stops { display: grid; gap: 0.6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.trip-stop {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.trip-stop__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--day);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
}
:root[data-theme="dark"] .trip-stop__num { color: #171c22; }
.trip-stop__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: var(--group-bg);
  font-size: 1.15rem;
}
.trip-stop__text { flex: 1; min-width: 0; }
.trip-stop h3 { margin: 0 0 0.35rem; font-size: var(--text-lg); }
.trip-stop p { margin: 0.45rem 0 0; color: var(--muted-strong); font-size: var(--text-sm); }
.trip-stop__link {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: var(--tool-ink);
}
.trip-stop__link:hover { background: var(--parchment-dark); }
.trip-stop__link svg { width: 18px; height: 18px; }

.trip-build { margin-top: 1rem; }
.trip-shot { margin: 1.5rem 0 0; }
.trip-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}
.trip-shot figcaption { margin-top: 0.6rem; color: var(--muted-strong); font-size: var(--text-sm); }
.trip-shot__step {
  margin-right: 0.35rem;
  color: var(--route);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trip-tips .feature-checks { margin-top: 1rem; grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
.trip-source {
  margin: 2.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-warm);
  color: var(--muted-strong);
}

.sample-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.sample-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-warm);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.sample-card:hover { border-color: var(--route); transform: translateY(-2px); }
/* Same shape as SampleTrips::CARD_MAP, so the map fills the frame. */
.sample-card__map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border-bottom: 1px solid var(--border);
  background: var(--parchment-dark);
}
.sample-card__stop { fill: var(--day); stroke: var(--ink); stroke-width: 1.5; }
.sample-card__body { display: flex; flex: 1; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.25rem 1.25rem; }
.sample-card h2 { margin: 0; font-size: var(--text-xl); }
.sample-card p { margin: 0; color: var(--muted-strong); font-size: var(--text-md); }
.sample-card .sample-card__stats { margin-top: auto; padding-top: 0.4rem; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }

/* ---------- Pricing (/pricing) and comparisons (/vs/...) ---------- */

.pricing--page { padding-top: 0; }
.plan-compare { max-width: 52rem; margin: 0 auto; }
.plan-compare .days__table { font-size: var(--text-md); }
.plan-compare thead th:not(:first-child),
.plan-compare td { text-align: center; }
.plan-compare tbody th { white-space: normal; }
.plan-yes { color: var(--route); font-weight: 700; }
.plan-no { color: var(--muted); }

.vs-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
}
.vs-column {
  padding: 1.5rem 1.75rem;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.vs-column--ours { border: 2px solid var(--route); background: var(--route-soft); }
.vs-column h3 { margin: 0 0 0.75rem; font-size: var(--text-lg); }
.vs-column .feature-checks { grid-template-columns: 1fr; margin: 0; }
.vs-verdict { max-width: 44rem; margin: 0 auto; color: var(--muted-strong); font-size: var(--text-md); }
.vs-verdict p { margin: 0 0 1rem; }
.vs-checked { max-width: 52rem; margin: 1rem auto 0; color: var(--muted); font-size: var(--text-xs); text-align: center; }

.vs-more-wins.plan-compare td:nth-child(2) { white-space: nowrap; }
.vs-more-wins.plan-compare td:last-child { text-align: left; }

@media (max-width: 760px) {
  .vs-columns { grid-template-columns: 1fr; }
  .plan-compare .days__table { font-size: var(--text-xs); }
  .plan-compare .days__table th,
  .plan-compare .days__table td { padding: 0.5rem; }
  .plan-compare tbody th { min-width: 8.5rem; }
}

/* The header has more links than fit on a laptop screen. */
.landing-brand span,
.landing-nav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .landing-header__demo { display: none; }
  .landing-nav { gap: 1rem; }
}
@media (max-width: 1000px) {
  .landing-nav { display: none; }
}

@media (max-width: 640px) {
  .trip-stop { flex-wrap: wrap; }
  .trip-stop__icon { display: none; }
}

/* An iconic trip's "Open this trip in Hitch Points" button and its note. */
.trip-open {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  margin: 1.25rem 0 0;
}
.trip-open span {
  flex: 1 1 16rem;
  color: var(--muted);
  font-size: var(--text-sm);
}
