:root {
  --ink: #111;
  --muted: #666;
  --line: #e2e2e2;
  --bg: #fff;
  --text-col: 32%;
  --pad: clamp(24px, 5vw, 88px);
  /* Height of the sticky header. Anything that scrolls under it depends on
     this number, so it lives in one place. */
  --header-h: 72px;
  --rail-w: 260px;
  /* These promote literals the deck already uses rather than inventing a
     second palette: --surface-2 is .seg-notes, --accent is the aesthetics
     strip. The deck's own rules are deliberately not retro-fitted here; that
     sweep is a separate, independently verifiable change. */
  --surface-2: #f7f6f3;
  --accent: #16150f;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lb-open { overflow: hidden; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
  flex-shrink: 0;
}

.wordmark-name {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.wordmark-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.nav-hotels {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-hotels::-webkit-scrollbar { display: none; }

.nav-hotels a {
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-hotels a.active {
  border-bottom-color: var(--ink);
}

/* city group labels in the nav; Almaty is a placeholder for the next batch */
.nav-city {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.nav-city-soon { margin-left: clamp(10px, 2vw, 26px); }

.nav-soon {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

/* Campus strip: the campus hotel stands alone; the rest sit in a dropdown.
   The two-item strip no longer needs to scroll, and must not clip the menu. */
.nav-hotels.nav-compact { overflow: visible; }

.nav-others { position: relative; }

.nav-others > summary {
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-others > summary::-webkit-details-marker { display: none; }

.nav-others > summary::after {
  content: ' \25BE';
  color: var(--muted);
}

.nav-others.has-active > summary { border-bottom-color: var(--ink); }

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 40;
}

.nav-menu a {
  display: block;
  font-size: 15px;
  padding: 7px 0;
  border-bottom: none;
}

.nav-menu a.active { font-weight: 700; }

.nav-menu .nav-city {
  display: inline-block;
  margin: 12px 0 6px;
}

.nav-menu .nav-city:first-child { margin-top: 0; }

/* ---------- Slides ---------- */
.slide {
  scroll-margin-top: var(--header-h);
  display: grid;
  grid-template-columns: var(--text-col) 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(32px, 5vh, 72px) var(--pad);
  border-bottom: 1px solid var(--line);
}

/* text starts just below the top line of the media, not vertically centered */
.slide-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(20px, 4vh, 44px);
}

/* ---------- Intro slide (facts sheet) ---------- */
.slide-intro {
  align-items: start;
}

.intro-name {
  margin: 0 0 26px;
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.intro-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 20px;
  display: inline-block;
  align-self: flex-start;
}

.slide-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.slide-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 44ch;
}

.slide-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 17px;
  color: #333;
  line-height: 1.45;
}

.slide-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
}

/* ---------- Media area ---------- */
.slide-media {
  display: grid;
  gap: clamp(12px, 1.6vw, 22px);
  align-items: start;
  min-width: 0;
}

.media-videos {
  display: grid;
  gap: clamp(12px, 1.6vw, 22px);
  min-width: 0;
}

.media-videos.v1 { grid-template-columns: 1fr; }
.media-videos.v2 { grid-template-columns: 1fr 1fr; }
.media-videos.v3 { grid-template-columns: repeat(3, 1fr); }
.media-videos.v4 { grid-template-columns: repeat(2, 1fr); }
.media-videos.vmany { grid-template-columns: repeat(3, 1fr); }

.media-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: #000;
  display: flex;
}

/* shrink the tall video cap when a segment has many videos */
.media-videos.v1 .media-panel video { max-height: 78vh; }
.media-videos.v2 .media-panel video { max-height: 62vh; }
.media-videos.v3 .media-panel video,
.media-videos.v4 .media-panel video,
.media-videos.vmany .media-panel video { max-height: 46vh; }

.media-panel video {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* representative photo with view-all badge */
.gallery-panel {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f2f2f2;
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-panel img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
}

.gallery-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  pointer-events: none;
}

.gallery-panel:hover .gallery-badge {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
}

/* three-up photo row with see-more */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.photo-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #f2f2f2;
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
}

.photo-thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.photo-thumb:hover img { transform: scale(1.03); }

.see-more {
  justify-self: start;
  margin-top: 10px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
}

.see-more:hover { background: var(--ink); color: #fff; }

.more-videos { margin-top: 12px; }

/* author display:grid would otherwise defeat the hidden attribute */
.media-videos[hidden] { display: none; }

.videos-label {
  display: block;
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-videos.compact .media-panel video { max-height: 34vh !important; }

/* site-level aesthetics strip at the top of every hotel page */
.aesthetics-strip {
  padding: clamp(32px, 5vh, 52px) var(--pad);
  background: #16150f;
  color: #fff;
  border-bottom: 1px solid var(--line);
}

.aesthetics-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b6b2a6;
  margin-bottom: 10px;
}

.aesthetics-lead {
  margin: 0 0 20px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: #f2f0ea;
  max-width: 760px;
}

.aesthetics-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 16px;
  color: #e9e6dd;
}

.score-chip strong {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.aesthetics-footnote {
  margin: 14px 0 0;
  font-size: 15px;
  color: #97927f;
}

/* intro slide media: compact hero + small map thumbnails */
.intro-media {
  display: grid;
  gap: 12px;
  align-content: center;
}

.gallery-panel.intro-hero {
  background: #16150f;
}

.gallery-panel.intro-hero img {
  max-height: 56vh;
  aspect-ratio: auto;
  object-fit: contain;
}

.intro-maps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.intro-map {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  cursor: zoom-in;
}

.intro-map img {
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  display: block;
}

.intro-maps-cap {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* per-segment scout notes (extracted from on-camera commentary) */
.seg-notes {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f7f6f3;
  border-left: 3px solid #d8d4cc;
  border-radius: 2px;
}

.seg-notes-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.seg-notes ul {
  margin: 0;
  padding-left: 20px;
}

.seg-notes li {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 3px 0;
}

/* ---------- Play overlay ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  display: flex;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.06);
}

.play-overlay .circle {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-overlay .triangle {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid var(--ink);
}

.play-overlay.hidden { display: none; }

/* ---------- Next hotel (slide-lite) ---------- */
.next-hotel {
  padding: clamp(40px, 7vh, 88px) var(--pad);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.next-hotel .next-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.next-hotel a {
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.next-hotel a .arrow {
  margin-left: 12px;
  font-weight: 400;
}

.next-hotel a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px var(--pad);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer p { margin: 0 0 6px; max-width: 80ch; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox.open { display: flex; }

.lb-stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #fff;
  font-size: 60px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 18px;
  opacity: 0.85;
}

.lb-nav:hover { opacity: 1; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

.lb-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px clamp(18px, 6vw, 32px);
    min-height: auto;
  }

  .slide-bullets { max-width: none; }

  .media-videos.v2,
  .media-videos.v3,
  .media-videos.v4,
  .media-videos.vmany {
    grid-template-columns: 1fr;
  }

  .media-videos.v1 .media-panel video,
  .media-videos.v2 .media-panel video,
  .media-videos.v3 .media-panel video,
  .media-videos.v4 .media-panel video,
  .media-videos.vmany .media-panel video { max-height: 70vh; }

  .gallery-panel img { max-height: 70vh; }

  .lb-nav {
    top: auto;
    bottom: 14px;
    transform: none;
    font-size: 48px;
  }

  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }

  .lb-counter { bottom: 24px; }
}

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

.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-link:hover { opacity: 0.7; }

.aqi-line {
  margin-top: 10px;
  font-size: 14px;
  color: #55524a;
}

.wordmark-mark {
  height: 20px;
  width: auto;
  color: #1a1a1a;
  margin-right: 10px;
  flex-shrink: 0;
}

.wordmark-top {
  display: flex;
  align-items: center;
}

.score-upgrade {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
}

/* access problem the reader must not miss */
.intro-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #a01b1b;
  background: #fdf0ef;
  border-left: 3px solid #c8302f;
  border-radius: 2px;
}

/* prominent shortcut for readers who already saw the first run */
.jump-link {
  display: inline-block;
  margin: 0 0 18px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.jump-link:hover { opacity: 0.88; transform: translateY(-1px); }

/* every asset names its own file, quietly */
.media-filename {
  display: block;
  margin-top: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0;
  color: #a8a294;
  text-align: left;
  word-break: break-all;
}

.photo-thumb .media-filename,
.gallery-panel .media-filename { padding: 0 2px 2px; }

/* ---------- Section rail (right) and phone tab bar ---------- */
/* The rail and tab bar are two renderings of the same four destinations.
   Neither is a drawer, so there is no scrim, no focus trap, and nothing that
   fights body.lb-open for control of scrolling. */

.rail { display: none; }

/* The tab bar is the default navigation at every width; it yields only when
   the rail is summoned with Ctrl+B on a wide screen. */
.tabbar {
  display: grid;
  /* auto-fit: ns3 has three destinations, the deck flavor four */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--bg);
  border-top: 1px solid var(--line);
  /* Not optional on an iPhone, least of all in an airport. */
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-link {
  padding: 11px 4px;
  font-size: 12px;
  text-align: center;
}

.tab-link.active {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--ink);
}

/* Keep the last of a long deck clear of the bar. */
.footer { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

.rail-link,
.tab-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.rail-link:hover,
.tab-link:hover { color: var(--ink); }

.rail-link.active,
.tab-link.active { color: var(--ink); }

@media (min-width: 1024px) {
  /* Below this width --text-col: 32% plus the rail crushes the deck's text
     column, which is why the rail leaves at 1024 and not at the deck's own
     820px breakpoint. Hidden by default; Ctrl+B toggles body.rail-on. */
  body.rail-on { padding-right: var(--rail-w); }
  body.rail-on .tabbar { display: none; }

  body.rail-on .rail {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--rail-w);
    z-index: 30;
    padding: 28px 28px 28px 24px;
    background: var(--bg);
    border-left: 1px solid var(--line);
    overflow-y: auto;
  }

  .rail-link {
    display: block;
    padding: 9px 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .rail-link.active { font-weight: 600; }

  /* Accordion sections: one unfolded at a time (enforced in buildRail). */
  .rail-sec { border-bottom: 1px solid var(--line); }

  .rail-sec-head {
    list-style: none;
    display: block;
    padding: 13px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
  }

  .rail-sec-head::-webkit-details-marker { display: none; }

  .rail-sec-head::after {
    content: '+';
    float: right;
    color: var(--muted);
  }

  .rail-sec[open] > .rail-sec-head::after { content: '\2013'; }

  .rail-sub { padding: 0 0 12px; }

  .rail-sub .rail-link {
    padding: 6px 0 6px 12px;
    font-size: 14px;
  }

  /* Third layer: block-level deep links under Prep and FAQ. */
  .rail-sub .rail-link-3 {
    padding: 4px 0 4px 26px;
    font-size: 13px;
    color: var(--muted);
  }

  .rail-sub .rail-link-3:hover,
  .rail-sub .rail-link-3.active { color: var(--ink); }

  /* City division inside NS Campus Search. */
  .rail-chip {
    display: block;
    margin: 10px 0 4px 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
}

/* The strip is the only thing telling a phone user that six other hotels
   exist, so make it obviously scrollable. */
.nav-hotels {
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.nav-hotels a { scroll-snap-align: center; }

@media (max-width: 1023px) {
  .nav-hotels {
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
}

/* ---------- Content pages ---------- */
/* A deliberate .pg- namespace. Reusing .slide would silently impose the deck's
   two-column grid on a wiki page. */

.pg {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 64px) var(--pad) 96px;
}

.pg-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pg-lead {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.pg-block {
  margin-bottom: 40px;
  /* Deep links from the rail land the block below the sticky header. */
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.pg-h {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.pg-block p { margin: 0 0 12px; }

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

.pg-back,
.pg-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pg-notfound { text-align: center; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card-title { margin: 0 0 8px; font-size: 17px; }
.card-body { margin: 0; color: var(--muted); font-size: 15px; }

.card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pg-steps { margin: 0; padding-left: 22px; }
.pg-steps li { margin-bottom: 16px; }
.pg-steps p { margin: 4px 0 0; color: var(--muted); }

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 15px 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--muted);
}

.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { margin: 0 0 15px; color: var(--muted); }

/* Wide content scrolls inside its own box; the page body never scrolls
   sideways. */
.pg-table-scroll { overflow-x: auto; }

/* Store links inside table cells: quiet pill badges under the app name. */
.pg-table .cell-link {
  display: inline-block;
  margin: 5px 6px 1px 0;
  padding: 2px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.pg-table .cell-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.pg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pg-table th,
.pg-table td {
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pg-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-callout {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

/* Collapsed reference blocks: a compact accordion row instead of page prose. */
.pg-acc {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--bg);
}

.pg-acc summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}

.pg-acc summary::-webkit-details-marker { display: none; }

.pg-acc summary::after {
  content: '+';
  float: right;
  color: var(--muted);
}

.pg-acc[open] summary::after { content: '\2013'; }

.pg-acc > .pg-block {
  margin: 0;
  padding: 0 18px 16px;
}

/* Inside an accordion the callout chrome is redundant. */
.pg-acc .pg-callout {
  border: none;
  background: transparent;
  padding: 0 18px 16px;
}

.pg-callout p:last-child { margin-bottom: 0; }

.pg-callout.tone-warn {
  border-color: #e7c9c2;
  background: #fdf4f2;
}

.pg-callout.tone-good {
  border-color: #cfe0cd;
  background: #f3f8f2;
}

.pg-links { margin: 0; padding-left: 20px; }
.pg-links li { margin-bottom: 9px; }
.pg-link-note { margin-left: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Quote widget ---------- */
.quote {
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.quote-field > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quote-field input,
.quote-field select {
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  /* 16px minimum stops iOS Safari zooming the page on focus. */
  min-height: 44px;
}

.quote-field input:focus,
.quote-field select:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}

.dt-row { display: flex; gap: 8px; }
.dt-row select, .dt-row input { flex: 1; min-width: 0; }

.pack-person {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pack-person-h {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pack-flight { margin-top: 14px; }

.pack-same {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.quote-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quote-total {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.quote-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.quote-send {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 22px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.quote-send:hover { opacity: 0.88; }

.quote-send:not([href]) {
  background: var(--muted);
  pointer-events: none;
}

@media (max-width: 520px) {
  .quote-field input,
  .quote-field select { font-size: 16px; }
}

/* ---------- Arrival Pack ---------- */
.pack-included { margin: 0 0 20px; padding-left: 20px; }
.pack-included li { margin-bottom: 8px; font-size: 15px; }
.pack-included span { color: var(--muted); }

.pack-addons {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pack-addon {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.pack-addon input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.pack-addon strong { display: block; font-size: 15px; }
.pack-addon span span { color: var(--muted); font-size: 14px; }

.pg-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.pg-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
