  /* Letter LANDSCAPE. Two reasons: the sections are 980px wide, so landscape
     matches their shape; and custom @page sizes are honoured by headless
     Chrome but NOT by the interactive print dialog, which uses whatever paper
     is selected — that mismatch was clipping short sections and adding blank
     pages to tall ones. A standard size scales predictably instead. */
  @page { size: letter landscape; margin: 0; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Carlito', 'Calibri', Arial, sans-serif;
    color: #222222;
    background: #EFF4F3;
  }
  img, video { max-width: 100%; height: auto; display: block; }
  .page {
    width: 100%;
    max-width: 980px;
    min-height: unset;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    margin: 0 auto 28px auto;
    border-radius: 22px;
    box-shadow: 0 10px 34px rgba(0,40,35,0.12);
    scroll-margin-top: 90px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .page.in-view { opacity: 1; transform: translateY(0); }
  .page:last-child { margin-bottom: 60px; }

  /* ================= website nav & interactive chrome ================= */
  .site-nav {
    position: sticky; top: 0; z-index: 50;
    background: #ffffff; border-bottom: 1px solid #E4EAE8;
    box-shadow: 0 2px 10px rgba(0,40,35,0.06);
  }
  .site-nav-inner {
    max-width: 100%; margin: 0; padding: 10px 24px;
    display: grid; align-items: center; gap: 14px;
    /* Logo and buttons take what they need; the link row gets the rest and
       scrolls. With `1fr auto 1fr` a long link row collapsed the side columns
       and pushed the logo out of the bar entirely at ~900-1300px. */
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .site-logo { display: flex; align-items: center; justify-self: start; grid-column: 1; }
  .site-logo img { height: 56px; width: auto; display: block; }
  .nav-links {
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; justify-self: center; max-width: 100%; grid-column: 2;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    text-decoration: none; color: var(--green); font-size: 12.5px; font-weight: 700;
    padding: 7px 11px; border-radius: 999px; white-space: nowrap; background: #F2F7F6;
    transition: background 0.2s, color 0.2s;
  }
  .nav-links a:hover { background: #E3EFED; }
  .nav-links a.active { background: var(--green); color: #ffffff; }
  /* Both nav buttons live in one right-pinned cell. Without this they land in
     the trailing 1fr column and stretch as the viewport grows. */
  .nav-actions {
    grid-column: 3; justify-self: end;
    display: flex; align-items: center; gap: 8px;
  }
  .nav-toggle { display: none; flex: none; background: var(--green); color: #fff; border: none; border-radius: 8px; padding: 10px 13px; font-weight: 800; font-size: 19.5px; cursor: pointer; min-height: 44px; }
  .mobile-menu-header { display: none; }

  /* ---------- per-section PDF export: a quiet utility for ambassadors ----------
     Absolutely positioned, so it never affects the flow, wrapping or height of
     the section it sits in. Deliberately low-contrast until hovered or focused
     — it should read as a tool, not a call to action. The 40px box gives a
     usable touch target while the glyph itself stays small. */
  .pdf-export {
    position: absolute; top: 0.26in; right: 0.3in; z-index: 3;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: none; background: transparent; cursor: pointer;
    color: rgba(255,255,255,0.5); border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease, background 0.18s ease;
  }
  .pdf-export svg { width: 17px; height: 17px; display: block; }
  .pdf-export:hover { color: var(--gold); background: rgba(255,255,255,0.14); }
  .pdf-export:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 2px; color: #ffffff;
  }
  .pdf-export::after {
    content: attr(data-tip);
    position: absolute; top: calc(100% + 6px); right: 0;
    background: rgba(1,20,17,0.94); color: #ffffff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.2px;
    padding: 6px 10px; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none; transform: translateY(-3px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .pdf-export:hover::after,
  .pdf-export:focus-visible::after { opacity: 1; transform: translateY(0); }
  /* no hover on touch, so a tooltip would only ever stick — tapping just exports */
  @media (hover: none) { .pdf-export::after { display: none; } }

  /* ---------- guide switcher: fixed tab centred on the left edge ----------
     Sits below the mobile menu (z-index 500) so it never covers it, and
     below .back-to-top's 60 so the two floating controls stay predictable. */
  .guide-switch {
    position: fixed; left: 0; top: 50%; transform: translateY(-50%);
    z-index: 55; text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 15px 9px 17px;
    background: var(--green); color: #ffffff;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 8px 22px rgba(0,40,35,0.30);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .guide-switch:hover {
    background: #005249;
    transform: translateY(-50%) translateX(4px);
    box-shadow: 0 12px 28px rgba(0,40,35,0.38);
  }
  .guide-switch .gs-icon { width: 21px; height: 21px; display: block; }
  .guide-switch .gs-label {
    writing-mode: vertical-rl; text-orientation: mixed;
    font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase;
    line-height: 1;
  }
  .guide-switch .gs-arrow { width: 14px; height: 14px; display: block; color: var(--gold); }

  .back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 60;
    width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #ffffff;
    border: none; box-shadow: 0 8px 20px rgba(0,0,0,0.18); font-size: 19.5px; font-weight: 800;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  }
  .back-to-top.show { opacity: 1; pointer-events: auto; }
  .back-to-top:hover { transform: translateY(-3px); }

  .site-wrap { padding: 24px 20px 0 20px; }

  :root {
    --green: #00685E;
    --gold: #FFB500;
    --ink: #222222;
  }


  .eyebrow {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
  }

  /* ---------- shared header bar (reused on most pages) ---------- */
  .header-bar {
    background: var(--green);
    color: #ffffff;
    padding: 0.4in 0.6in 0.35in 0.6in;
    position: relative;
    overflow: hidden;
  }
  .header-bar .eyebrow, .header-bar h1 { position: relative; z-index: 1; }
  .header-bar .eyebrow { color: var(--gold); margin-bottom: 8px; }
  .header-bar h1 { font-size: 43px; font-weight: 800; letter-spacing: -1px; }
  .header-scenic { position: absolute; top: 0; right: 0; bottom: 0; width: 3.6in; opacity: 0.16; z-index: 0; }
  .page-intro {
    padding: 0.2in 0.6in 0;
    font-size: 14.5px;
    color: #555;
    font-weight: 500;
    line-height: 1.4;
    max-width: 9.6in;
  }
  .footer-note {
    padding: 0 0.6in 0.32in 0.6in;
    font-size: 14.5px;
    color: #666;
    font-weight: 500;
  }

  /* ---------- shared card grid (used across many pages) ----------
     auto-fit + minmax lets cards wrap onto new rows as space runs out,
     instead of shrinking indefinitely. The minmax(min(Xpx,100%), 1fr)
     pattern also guarantees the minimum never exceeds the viewport,
     so a single card can never overflow on very narrow phones. */
  .grid3 {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr));
    grid-auto-rows: auto;
    align-content: center;
    gap: 0.22in;
    padding: 0.2in 0.6in 0.3in;
  }
  .grid2 {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    align-content: center;
    gap: 0.24in;
    padding: 0.22in 0.6in 0.32in;
  }
  .info-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1.5px solid #E7E9E8;
    border-radius: 18px;
    padding: 0.22in 0.22in 0.18in;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.12in;
    box-shadow: 0 5px 14px rgba(0,0,0,0.045);
  }
  a.info-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }
  a.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,40,35,0.14);
    border-color: var(--gold);
  }
  .info-card .directions-hint {
    display: flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 800; color: var(--green);
    text-transform: uppercase; letter-spacing: 0.4px; margin-top: auto; padding-top: 8px;
  }
  .info-card .directions-hint svg { width: 11px; height: 11px; }
  a.info-card:hover .directions-hint { color: var(--gold); }
  .info-card .addr-line { font-size: 10.5px; color: #888; font-weight: 600; margin-top: -4px; }
  .info-card .fact-line { font-size: 11px; color: #555; font-weight: 500; line-height: 1.4; background: #F8FBFA; border-radius: 8px; padding: 0.08in 0.1in; margin-top: 2px; }

  /* ---------- photo cards ---------- */
  .info-card.photo-card { padding: 0; overflow: hidden; }
  .photo-card .card-photo { width: 100%; height: 1.35in; object-fit: cover; display: block; cursor: zoom-in; }
  .photo-card .card-body { padding: 0.18in 0.2in 0.2in; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.08in; flex: 1; }
  .photo-card h3 { font-size: 15.5px; }
  a.photo-card.info-card:hover .card-photo { filter: brightness(1.06); }
  .photo-banner { width: 100%; height: 1.7in; border-radius: 16px; overflow: hidden; margin: 0.16in 0.6in 0; position: relative; }

  /* ---------- section bridge: lightweight photo breather between clusters ---------- */
  .section-bridge { height: 2.6in; position: relative; overflow: hidden; }
  .section-bridge img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .section-bridge .bridge-overlay {
    position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,20,17,0.72) 0%, rgba(1,20,17,0.15) 55%, rgba(1,20,17,0.35) 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0.4in;
  }
  .section-bridge .eyebrow { color: var(--gold); margin-bottom: 6px; }
  .section-bridge h2 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -0.5px; text-shadow: 0 2px 12px rgba(0,0,0,0.25); max-width: 7in; }
  .photo-banner img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
  .photo-split-img { flex: 1; border-radius: 24px; overflow: hidden; min-height: 3.2in; max-height: 3.6in; align-self: stretch; }
  .photo-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
  .lightbox-trigger { position: relative; }
  .lightbox-trigger::after {
    content: "⤢"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
    background: rgba(0,0,0,0.45); color: #fff; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 13px; opacity: 0; transition: opacity 0.15s; pointer-events: none;
  }
  .lightbox-trigger:hover::after { opacity: 1; }
  #lightboxOverlay {
    position: fixed; inset: 0; background: rgba(1,20,17,0.92); z-index: 200;
    display: none; align-items: center; justify-content: center; padding: 5vh 5vw;
    cursor: zoom-out;
  }
  #lightboxOverlay.open { display: flex; }
  #lightboxOverlay img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: default; }
  #lightboxOverlay .lb-close {
    position: fixed; top: 22px; right: 28px; width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.12); color: #fff; border: none; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  #lightboxOverlay .lb-close:hover { background: rgba(255,255,255,0.22); }
  .link-row { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; width: 100%; }
  .link-row a {
    flex: 1; text-decoration: none; text-align: center; font-size: 10px; font-weight: 800;
    letter-spacing: 0.3px; text-transform: uppercase; padding: 0.15in 0.05in; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px;
    transition: background 0.18s, color 0.18s, transform 0.18s;
  }
  .link-row a svg { width: 11px; height: 11px; }
  .link-row .btn-directions { background: #F2F7F6; color: var(--green); }
  .link-row .btn-directions:hover { background: var(--green); color: #fff; }
  .link-row .btn-info { background: var(--gold); color: #ffffff; }
  .link-row .btn-info:hover { background: #E0A400; }

  /* ---------- banking & cell phone pages (reuse mode-row / check-row pattern) ---------- */
  .mode-row.carrier-row .dot, .mode-row.area-row .dot { background: var(--green); }
  .carrier-row .dot span, .area-row .dot span { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -0.5px; }
  .bank-row .dot span { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -0.5px; }
  .bank-row .dot.logo-tile, .carrier-row .dot.logo-tile { background: #ffffff; border: 1px solid #E7E9E8; border-radius: 10px; width: 0.62in; height: 0.46in; min-width: 0.62in; padding: 5px; }
  .bank-row .dot.logo-tile img, .carrier-row .dot.logo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .bank-row p, .carrier-row p, .worship-row p { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
  .bank-row .addr-txt, .carrier-row .addr-txt, .worship-row .addr-txt { color: #555; }
  .bank-row a, .carrier-row a, .worship-row a { color: var(--green); font-weight: 800; text-decoration: none; border-bottom: 1.5px solid var(--gold); white-space: nowrap; }
  .bank-row a:hover, .carrier-row a:hover, .worship-row a:hover { color: var(--gold); }
  .row-tag { background: #F2F7F6; color: var(--green); font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; padding: 2px 7px; border-radius: 999px; }
  .subhead { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin: 0.04in 0 0.06in; }
  .split-left .subhead:first-child { margin-top: 0; }
  .payment-callout {
    display: flex; align-items: flex-start; gap: 0.16in; background: #F2F7F6; border: 1.5px solid #DCEAE7;
    border-radius: 14px; padding: 0.18in; margin-top: 0.14in;
  }
  .payment-callout .pc-icon { width: 0.4in; min-width: 0.4in; height: 0.4in; border-radius: 50%; background: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,0.08); }
  .payment-callout .pc-icon svg { width: 55%; height: 55%; }
  .payment-callout .pc-photo { width: 1.05in; min-width: 1.05in; height: 1.05in; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 8px rgba(0,0,0,0.12); }
  .payment-callout .pc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
  .payment-callout h3 { font-size: 13px; font-weight: 800; color: var(--green); margin-bottom: 3px; }
  .payment-callout p { font-size: 11.5px; color: #444; font-weight: 500; line-height: 1.42; display: block; }
  .payment-callout .pc-note { display: block; margin-top: 5px; color: #B8860B; font-weight: 700; }
  .info-card .stripe {
    position: absolute; left: 0; top: 0; right: 0; height: 8px; background: var(--gold);
  }
  .info-card .icon-box {
    width: 0.95in; height: 0.95in;
    background: #F2F7F6;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
  }
  .info-card .icon-box svg { width: 62%; height: 62%; }
  .info-card h3 { font-size: 18.5px; font-weight: 800; color: var(--green); line-height: 1.2; }
  .info-card p { font-size: 12.5px; color: #555; font-weight: 500; line-height: 1.35; }
  .info-card .meta {
    margin-top: auto;
    display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  }
  .meta-chip {
    background: #F2F7F6; color: var(--green); font-weight: 800; font-size: 10.5px;
    letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
  }
  /* standalone row of .meta-chip tags outside a card (halal guide: "Find
     Imports From"). The .info-card .meta rule only applies inside a card. */
  .chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0.02in 0 0.08in; }

  .meta-chip.easy { background: #E4F3EF; color: var(--green); }
  .meta-chip.moderate { background: #FFF2D6; color: #9C6B00; }
  .meta-chip.hard { background: #FBE4E1; color: #B23A2E; }

  /* ---------- left-icon list rows (used for student life, tips) ---------- */
  .row-list { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0.15in 0.6in 0.3in; gap: 0.14in; }
  .life-row {
    display: flex; align-items: center; gap: 0.22in;
    background: #ffffff; border: 1.5px solid #E7E9E8; border-radius: 16px;
    padding: 0.16in 0.28in; box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  }
  .life-row .dot {
    width: 0.55in; height: 0.55in; min-width: 0.55in; border-radius: 50%;
    background: #F2F7F6; display: flex; align-items: center; justify-content: center;
  }
  .life-row .dot svg { width: 55%; height: 55%; }
  .life-row h3 { font-size: 18px; font-weight: 800; color: var(--green); margin-bottom: 2px; }
  .life-row p { font-size: 13px; color: #555; font-weight: 500; }
  .life-row.compact { padding: 0.16in 0.26in; gap: 0.2in; }
  .life-row.compact .dot { width: 0.5in; height: 0.5in; min-width: 0.5in; }
  .life-row.compact h3 { font-size: 16.5px; margin-bottom: 2px; }
  .life-row.compact p { font-size: 12.5px; line-height: 1.35; }
  .life-split { display: flex; align-items: flex-start; gap: 0.35in; padding: 0.2in 0.6in 0.35in; }
  .life-split-cards { flex: 1.15; display: flex; flex-direction: column; gap: 0.14in; justify-content: flex-start; }
  .life-split-photo { flex: 1; border-radius: 20px; overflow: hidden; }
  .life-split-photo img { width: 100%; height: auto; display: block; cursor: zoom-in; }

  /* ---------- standalone row blocks that sit outside the split layouts
     (housing "Homestay", sports "Try Out For A Team"). Classed rather than
     inline-styled so the mobile gutter override below can reach them. ---------- */
  .row-block { padding: 0.15in 0.6in 0.4in; }
  /* opt-in spacing for blocks holding several stacked rows, matching the
     gap .split-left gives its rows */
  .row-block.stack { display: flex; flex-direction: column; gap: 0.16in; }
  /* Only the vertical padding differs, so leave left/right alone here — a
     `padding` shorthand would outrank the mobile gutter override below. */
  .row-block.row-block-tight { padding-top: 0; padding-bottom: 0.3in; }

  /* ---------- WHERE TO EAT: three full-bleed colour bands ----------
     Ported from the print guide. The bands run edge-to-edge inside the page
     card; .page's overflow:hidden keeps them inside its rounded corners. */
  /* min-height gives the bands more presence; the blocks centre their content
     vertically, so the extra height becomes even breathing room top and bottom.
     Mobile stacks well past this, so it only bites on wide screens. */
  .eat-split { flex: 1; display: flex; min-height: 5.2in; }
  .eat-block {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 0.5in 0.42in; position: relative;
  }
  .eat-block.green { background: var(--green); color: #ffffff; }
  .eat-block.gold { background: var(--gold); color: var(--ink); }
  .eat-label { margin-bottom: 0.32in; }
  .eat-label .eyebrow { opacity: 0.85; margin-bottom: 8px; font-size: 12.5px; letter-spacing: 2.4px; }
  .eat-label h2 { font-size: 31px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; }
  .eat-list { display: flex; flex-direction: column; gap: 0.18in; }
  .eat-item {
    display: flex; align-items: center; gap: 0.16in;
    text-decoration: none; color: inherit;
    padding: 7px 9px; margin: -7px -9px; border-radius: 13px;
    transition: background 0.18s ease, transform 0.18s ease;
  }
  .eat-item .dot {
    width: 0.46in; height: 0.46in; min-width: 0.46in; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .eat-block.green .dot { background: rgba(255,255,255,0.15); }
  .eat-block.gold .dot { background: rgba(255,255,255,0.55); }
  .eat-item .dot svg { width: 55%; height: 55%; }
  .eat-item .name { font-size: 17px; font-weight: 700; line-height: 1.25; }
  .eat-block.green a.eat-item:hover { background: rgba(255,255,255,0.15); transform: translateX(3px); }
  .eat-block.gold a.eat-item:hover { background: rgba(255,255,255,0.45); transform: translateX(3px); }

  /* ---------- split layout: text left / green panel right ---------- */
  .split-body { flex: 1; display: flex; align-items: flex-start; gap: 0.4in; padding: 0.22in 0.6in 0.28in; }
  .split-left { flex: 1.05; display: flex; flex-direction: column; gap: 0.12in; }
  .split-left p { font-size: 14.5px; color: #444; font-weight: 500; line-height: 1.45; }
  .inline-link { color: var(--green); font-weight: 800; text-decoration: none; border-bottom: 1.5px solid var(--gold); }
  .inline-link:hover { color: var(--gold); }
  .youth-fare-banner {
    display: flex; align-items: flex-start; gap: 0.18in; margin-top: 0.1in;
    background: #F2F7F6; border: 1.5px solid #DCEAE7; border-radius: 14px; padding: 0.18in 0.2in;
  }
  .youth-fare-banner .yfb-icon { width: 0.42in; min-width: 0.42in; height: 0.42in; border-radius: 50%; background: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,0.08); }
  .youth-fare-banner .yfb-icon svg { width: 55%; height: 55%; }
  .youth-fare-banner h3 { font-size: 13.5px; font-weight: 800; color: var(--green); margin-bottom: 2px; }
  .youth-fare-banner p { font-size: 12px; color: #444; font-weight: 500; line-height: 1.4; }
  .mode-row { display: flex; align-items: center; gap: 0.2in; }
  .mode-row .dot {
    width: 0.5in; height: 0.5in; min-width: 0.5in; border-radius: 50%;
    background: #F2F7F6; display: flex; align-items: center; justify-content: center;
  }
  .mode-row .dot svg { width: 55%; height: 55%; }
  .mode-row h3 { font-size: 16.5px; font-weight: 800; color: var(--green); margin-bottom: 1px; }
  .mode-row p { font-size: 12.5px; color: #555; font-weight: 500; }
  .split-right {
    flex: 1; background: var(--green); border-radius: 24px; color: #fff;
    padding: 0.32in 0.38in; display: flex; flex-direction: column; justify-content: center;
  }
  .split-right .eyebrow { color: var(--gold); margin-bottom: 10px; }
  .split-right h2 { font-size: 24px; font-weight: 800; margin-bottom: 0.2in; line-height: 1.15; }
  .check-row { display: flex; align-items: flex-start; gap: 0.16in; padding: 0.12in 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
  .check-row:last-child { border-bottom: none; }
  .check-row .check { width: 0.3in; height: 0.3in; min-width: 0.3in; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .check-row .check svg { width: 55%; height: 55%; }
  .check-row p { font-size: 13.5px; font-weight: 600; line-height: 1.4; }

  /* ---------- tips grid (2 cols, last row spans) ---------- */
  .tip-grid2 { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-content: center; gap: 0.24in; padding: 0.24in 0.6in 0.32in; }
  .tip-grid2 .tip-card {
    background: #fff; border: 1.5px solid #E7E9E8; border-radius: 20px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.045); display: flex; align-items: center;
    gap: 0.24in; padding: 0.24in 0.32in;
  }
  .tip-grid2 .tip-card.full { grid-column: 1 / -1; }
  .tip-grid2 .tip-num { font-size: 43px; font-weight: 800; color: var(--gold); width: 0.8in; min-width: 0.8in; }
  .tip-grid2 .tip-text h3 { font-size: 19.5px; font-weight: 800; color: var(--green); margin-bottom: 3px; }
  .tip-grid2 .tip-text p { font-size: 13.5px; color: #444; font-weight: 500; line-height: 1.35; }

  /* ================= PAGE 1 — COVER / WELCOME ================= */
  #cover { display: flex; flex-direction: column; }
  .hero-band {
    background: var(--green); color: #ffffff; position: relative;
    padding: 0.55in 0.6in 0.5in; display: flex; flex-direction: column; gap: 10px;
  }
  .hero-band .brandmark {
    position: absolute; top: 0.45in; right: 0.5in; width: 1.5in; height: 0.72in;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: #ffffff; padding: 0.08in;
  }
  .hero-band .brandmark span { color: var(--green); font-weight: 800; font-size: 24px; display: none; align-items: center; justify-content: center; width: 100%; height: 100%; }
  .brandmark img { width: 100%; height: 100%; object-fit: contain; }
  .hero-band .eyebrow { color: var(--gold); }
  .hero-band h1 { font-size: 47.5px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; max-width: min(7in, calc(100% - 3.8in)); }
  .hero-band p { font-size: 16px; font-weight: 500; max-width: min(6.2in, calc(100% - 3.8in)); opacity: 0.95; margin-top: 4px; }
  .cover-rule { width: 64px; height: 6px; background: var(--gold); margin-top: 6px; }
  .cover-footer {
    position: absolute; bottom: 0.35in; right: 0.6in; font-size: 12px; font-weight: 700;
    letter-spacing: 2px; color: #99A3A1; text-transform: uppercase;
  }

  /* ================= PAGE 12 — FINAL WELCOME ================= */
  #final { background: var(--green); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0.5in 0.5in 0.95in; position: relative; }
  #final .brandmark {
    position: absolute; top: 0.45in; left: 0.45in; width: 1.5in; height: 0.72in;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: #ffffff; padding: 0.08in;
  }
  #final .brandmark span { color: var(--green); font-weight: 800; font-size: 26px; display: none; align-items: center; justify-content: center; width: 100%; height: 100%; }
  #final .eyebrow { color: var(--gold); margin-bottom: 14px; }
  #final h1 { color: #ffffff; font-size: 56px; font-weight: 800; letter-spacing: -1px; line-height: 1.05; }
  #final .cover-rule { margin: 24px auto; }
  #final p.lead { color: #ffffff; font-size: 17.5px; font-weight: 500; max-width: 6in; opacity: 0.92; line-height: 1.5; margin-bottom: 0.4in; }
  .reminder-row { display: flex; gap: 0.35in; }
  .reminder-chip {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 18px; padding: 0.28in 0.3in; width: 1.7in;
  }
  .reminder-chip .dot { width: 0.6in; height: 0.6in; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
  .reminder-chip .dot svg { width: 55%; height: 55%; }
  .reminder-chip span { color: #ffffff; font-weight: 800; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
  #final .cover-footer { color: rgba(255,255,255,0.55); }

  /* ================= scenic illustration accents ================= */
  .hero-scenic { position: absolute; top: 0; bottom: 0; right: 0; width: 3.4in; overflow: hidden; z-index: 1; opacity: 0.9; }
  .hero-band .brandmark { z-index: 2; }
  .hero-band > .eyebrow, .hero-band > h1, .hero-band > p, .hero-band > .cover-rule { position: relative; z-index: 2; }

  /* ---------- PAGE: WASHINGTON SCENIC INTERLUDE ---------- */
  #scenic { background: #EAF5F6; }
  .scenic-svg-wrap { position: absolute; inset: 0; }
  .scenic-caption {
    position: absolute; top: 0.55in; left: 0.6in; right: 0.6in; z-index: 2;
  }
  .scenic-caption .eyebrow { color: var(--gold); margin-bottom: 8px; }
  .scenic-caption h1 { color: #ffffff; font-size: 45.5px; font-weight: 800; letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0,0,0,0.15); }
  .scenic-caption p { color: #ffffff; font-size: 15.5px; font-weight: 600; max-width: 6.5in; margin-top: 8px; text-shadow: 0 2px 8px rgba(0,0,0,0.18); }
  .scenic-tags { position: absolute; bottom: 0.5in; left: 0.6in; right: 0.6in; z-index: 2; display: flex; gap: 0.22in; }
  .scenic-tag {
    background: rgba(255,255,255,0.92); border-radius: 14px; padding: 0.16in 0.24in;
    display: flex; align-items: center; gap: 0.16in; box-shadow: 0 6px 16px rgba(0,0,0,0.12); flex: 1;
  }
  .scenic-tag .dot { width: 0.42in; height: 0.42in; min-width: 0.42in; border-radius: 50%; background: #F2F7F6; display: flex; align-items: center; justify-content: center; }
  .scenic-tag .dot svg { width: 58%; height: 58%; }
  .scenic-tag span { font-size: 13.5px; font-weight: 800; color: var(--green); line-height: 1.25; }

  /* ---------- final page backdrop ---------- */
  .final-scenic { position: absolute; inset: 0; z-index: 0; opacity: 0.16; }
  #final .final-content { z-index: 1; display: flex; flex-direction: column; align-items: center; }

  /* ================= RESPONSIVE BREAKPOINTS ================= */
  /* Placed last on purpose: for selectors also defined earlier with equal
     specificity, CSS breaks ties by source order, so these must come after
     every base rule to reliably win when their condition matches. */
  @media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-links.open {
      display: flex; flex-direction: column;
      position: fixed; inset: 0; z-index: 500; justify-self: stretch;
      width: 100%; max-width: 100%;
      background: var(--green); padding: 0 24px 40px; overflow-y: auto; gap: 8px;
    }
    .mobile-menu-header { display: none; }
    .nav-links.open .mobile-menu-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 0 22px; position: sticky; top: 0; background: var(--green); z-index: 1;
    }
    .mobile-menu-header img { height: 34px; width: auto; filter: brightness(0) invert(1); }
    .mobile-menu-close {
      width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.14);
      border: none; color: #fff; font-size: 17px; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
    }
    .mobile-menu-close:hover { background: rgba(255,255,255,0.24); }
    .nav-links.open a {
      background: rgba(255,255,255,0.08); color: #fff; font-size: 17px; font-weight: 700;
      padding: 16px 18px; border-radius: 12px; text-align: left; white-space: normal;
    }
    .nav-links.open a.active { background: var(--gold); color: #fff; }
    .nav-links.open a:hover { background: rgba(255,255,255,0.16); }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .header-bar h1 { font-size: 28px; }
    .hero-band h1 { font-size: 30px; max-width: 100%; }
    .hero-band p { max-width: 100%; }
    .hero-scenic { display: none; }
    .header-scenic { display: none; }
    .split-body { flex-direction: column; align-items: stretch; gap: 0.28in; }
    .life-split { flex-direction: column; align-items: stretch; gap: 0.24in; }

    /* bands stack into full-width rows on a phone */
    .eat-split { flex-direction: column; }
    .eat-block { padding: 0.34in 0.3in; }
    .eat-label { margin-bottom: 0.22in; }
    .eat-label h2 { font-size: 26px; }
    .split-left, .split-right { width: 100%; }

    /* Row/checklist sections: the 0.6in desktop gutters leave a very narrow
       text column on a phone, which reads as everything being squeezed into
       the middle. Tighten the side gutters only (top/bottom keep their
       rhythm) so these cards get a wider, more substantial measure. */
    .split-body, .life-split, .row-block { padding-left: 0.28in; padding-right: 0.28in; }
    .split-right { padding: 0.28in 0.26in; }

    /* Once text wraps to several lines the icon would otherwise float in the
       vertical middle of the row; anchor it to the top-left instead, matching
       the .check-row / .payment-callout rows that already do this. */
    .mode-row, .life-row { align-items: flex-start; }

    /* .photo-banner pairs width:100% with 0.6in side margins, so it overhangs
       its page by 1.2in and gets cut off by .page's overflow:hidden. Auto width
       lets the margins center it and line up with the card grid below. */
    .photo-banner { width: auto; }
    .reminder-row { flex-wrap: wrap; justify-content: center; gap: 0.22in; }
    .reminder-chip { width: calc(50% - 0.16in); }
    .hero-band .brandmark, #final .brandmark { width: 1.05in; height: 0.5in; }
    .section-bridge { height: 1.9in; }
    .section-bridge h2 { font-size: 22px; }
    #final { padding-top: 1.15in; }

    /* slimmer tab on a phone so it intrudes less over the page card */
    .guide-switch { padding: 12px 7px 13px; gap: 6px; border-radius: 0 12px 12px 0; }
    .guide-switch .gs-icon { width: 18px; height: 18px; }
    .guide-switch .gs-label { font-size: 9.5px; letter-spacing: 1px; }
    .guide-switch .gs-arrow { width: 12px; height: 12px; }
  }


/* fixed box so the glyph swap (moon/sun) can't change the button's size */
.theme-toggle {
  flex: none; width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; border: none; border-radius: 8px;
  cursor: pointer; font-size: 18px; line-height: 1;
}
.theme-toggle:hover { opacity:.9; }
:root{ --bg:#EFF4F3; --card-bg:#ffffff; --text:#222222; --border:#E7E9E8; }
body.dark-mode{ --bg:#121212; --card-bg:#1e1e1e; --text:#f5f5f5; --border:#333333; }
body{ background:var(--bg)!important; color:var(--text); }
body.dark-mode .page, body.dark-mode .info-card, body.dark-mode .tip-card, body.dark-mode .life-row, body.dark-mode .site-nav{ background:var(--card-bg)!important; color:var(--text)!important; border-color:var(--border)!important; }
body.dark-mode p, body.dark-mode .page-intro, body.dark-mode .footer-note{ color:#ddd !important; }


/* Enhanced dark mode accents */
body.dark-mode{ --accent-dark:#7DE3D5; --accent-gold-dark:#FFD166; }
body.dark-mode .mode-row h3,
body.dark-mode .life-row h3,
body.dark-mode .bank-row h3,
body.dark-mode .info-card h3,
body.dark-mode .carrier-row h3{ color:var(--accent-dark)!important; }
body.dark-mode .youth-fare-banner h3,
body.dark-mode .subhead{ color:var(--accent-gold-dark)!important; }
body.dark-mode .fact-line{ background:#2A2A2A!important; color:#F5F5F5!important; }
body.dark-mode .addr-line,
body.dark-mode .addr-txt{ color:#BFBFBF!important; }
body.dark-mode .directions-hint,
body.dark-mode .inline-link,
body.dark-mode .bank-row a,
body.dark-mode .carrier-row a{ color:var(--accent-dark)!important; }
body.dark-mode .youth-fare-banner,
body.dark-mode .payment-callout{ background:#252525!important; border-color:#3E3E3E!important; }
body.dark-mode .payment-callout p,
body.dark-mode .youth-fare-banner p{ color:#F0F0F0!important; }

/* Linked cards: the !important border/color rules above outrank the base
   a.info-card:hover styles, so restate the hover accents at this weight. */
/* Keep the switcher tab readable against the dark page background */
body.dark-mode .guide-switch{ border:1px solid #2E5E58; border-left:none; }
body.dark-mode .guide-switch:hover{ background:#00786C; }

body.dark-mode a.info-card:hover{ border-color:var(--accent-gold-dark)!important; }
body.dark-mode a.info-card:hover .directions-hint{ color:var(--accent-gold-dark)!important; }


/* Sports Hero — full-bleed, matches the site's standard .photo-banner treatment */
.team-photo-banner { margin: 0.16in 0.6in 0; border-radius: 16px; overflow: hidden; }
.team-photo-banner img { width: 100%; height: auto; display: block; cursor: zoom-in; }


/* ================= PRINT / SECTION PDF EXPORT =================
   `body.printing` + `.print-target` are set by script.js for the duration of a
   single-section export, then removed again. Printing without them (plain
   Ctrl+P) still works and simply outputs the whole guide. */
@media print {
  /* site chrome is never part of an export */
  .site-nav, .back-to-top, .guide-switch, .pdf-export, #lightboxOverlay { display: none !important; }
  .site-wrap { padding: 0 !important; }
  html, body { background: #ffffff !important; }

  /* Colour is structural here — the green bars and gold bands ARE the design —
     so force them through even when the browser's "Background graphics"
     checkbox is off, which is Chrome's default. */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* Soft shadows flatten into visible grey blocks in PDF renderers, so every
     card ends up haloed. They add nothing on paper — drop them all. */
  * { box-shadow: none !important; }

  /* Edge to edge: no card gutters, corners or shadow, so the section fills the
     page exactly. The scroll reveal leaves sections at opacity 0, so force
     them visible too. Width is left alone — script.js sizes the @page to the
     section's own width, so the layout is identical to the screen. */
  .page {
    margin: 0 !important; border-radius: 0 !important;
    opacity: 1 !important; transform: none !important;
    overflow: hidden !important;
    break-after: page; page-break-after: always;
  }
  .page:last-child { break-after: auto; page-break-after: auto; }

  /* Single-section export.

     The section is pinned to the site's own 980px card width so it can never
     reflow to the paper — the PDF keeps the exact layout seen on screen — and
     script.js sets a per-section `zoom` that shrinks it just enough to fit the
     landscape page. Scaling rather than reflowing is what makes this behave
     like a screenshot that stayed interactive. */
  body.printing .site-wrap > .page:not(.print-target) { display: none !important; }
  body.printing .print-target {
    width: 980px !important;
    max-width: none !important;
    margin: 0 auto !important;
    break-after: auto; page-break-after: auto;
  }

  /* Nothing should be sliced mid-card if a section does run onto a 2nd page. */
  .info-card, .tip-card, .life-row, .mode-row, .check-row, .eat-item,
  .grocery-card, .payment-callout, .youth-fare-banner { break-inside: avoid; }
}
