
  .hero { min-height: clamp(32rem, 82svh, 52rem); }
  .hero .wrap { max-width: var(--page-max); padding-top: 3.75rem; padding-bottom: 5.5rem; text-align: center; }
  /* phones: the header carries a second row of chips (University, Plan a route), so the headline starts below it */
  @media (max-width: 480px) { .hero .wrap { padding-top: 6.75rem; } }
  /* soft dark pool behind the text so the light, busy part of the photo never sits under it */
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 75% 65% at 50% 52%, rgba(4,14,26,0.6) 0%, rgba(4,14,26,0.35) 45%, rgba(4,14,26,0) 80%);
  }
  .hero h1 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
    max-width: none;
    color: var(--white);
    text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  }
  .hero p.tagline {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 500;
    line-height: 1.6;
    margin: clamp(2.25rem, 4.5vw, 3.5rem) auto 0; /* air between the headline and the mission line */
    max-width: 38rem;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 18px rgba(0,0,0,0.55);
  }
  /* search field and the map link side by side, both as frosted boxes over the photo */
  .hero-actions { display: flex; gap: 1rem; justify-content: center; align-items: stretch; margin: 2.75rem auto 0; max-width: 52rem; }
  .hero-search, .hero .hero-link {
    display: flex; align-items: center; gap: 0.7rem; min-height: 3.75rem; padding: 0 1.25rem;
    background: rgba(14, 30, 50, 0.55); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    color: var(--white);
  }
  .hero-search { flex: 1 1 0; min-width: 0; margin: 0; }
  /* while the suggestions are open (client/lib/combobox.ts) they may reach below the photo: the hero stops clipping and its text layer sits above the next section */
  .hero:has(.sg-open) { overflow: visible; z-index: var(--z-panel); }
  .hero:has(.sg-open) .wrap { z-index: var(--z-panel); }
  .hero-search:focus-within { border-color: rgba(255, 255, 255, 0.75); }
  .hero-search-icon, .hero-link-icon { width: 1.25rem; height: 1.25rem; flex: none; opacity: 0.85; }
  .hero-search input {
    flex: 1; min-width: 0; background: transparent; border: none; outline: none; padding: 0.9rem 0;
    font-family: var(--font-sans); font-size: 1rem; color: var(--white);
  }
  .hero-search input::placeholder { color: rgba(255, 255, 255, 0.72); opacity: 1; }
  .hero-search input::-webkit-search-cancel-button { display: none; }
  .hero .hero-link {
    flex: 0 0 auto; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1rem, 1.4vw, 1.15rem);
    text-decoration: none; white-space: nowrap;
  }
  .hero .hero-link:hover { background: rgba(14, 30, 50, 0.72); border-color: rgba(255, 255, 255, 0.5); }
  .hero .hero-link:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
  @media (max-width: 720px) { .hero-actions { flex-direction: column; } .hero .hero-link { justify-content: center; } }
  /* the photo dissolves into the page background so the hero flows into the next section */
  .hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 0; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--bg) 92%);
  }

  /* one voice for every section: Inter, deep sea navy, plenty of air */
  section.block { padding-block: clamp(3rem, 8vw, 6rem); }
  section.block.wrap { max-width: calc(var(--page-max) + 2 * var(--gutter)); }
  section.block .kicker { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; }
  section.block h2 {
    font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.005em; margin: 0.9rem 0 2.25rem;
  }

  /* a photographer's words, right under the hero: the site is a home for photographers and sailors */
  section.block.voice { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
  .voice-quote { margin: 0 auto; max-width: 42rem; text-align: center; }
  .voice-icon { display: block; width: 2.4rem; height: 2.9rem; margin: 0 auto 1.3rem; color: var(--bronze); }
  .voice-icon svg { display: block; width: 100%; height: 100%; }
  .voice-quote blockquote { margin: 0; }
  .voice-quote p {
    font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.6; color: var(--ink-prose); text-wrap: balance; margin: 0;
  }
  .voice-quote figcaption { margin-top: 1.1rem; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--ink-soft); }
  .voice-quote figcaption span { letter-spacing: 0; }

  /* By photo (option C, owner 2026-11-16): a wide strip, the current photo large and the next one peeking in; client/album.ts sets data-pos on each slide
     (0 the current, 1 the next, -1 the one before, 2 and -2 waiting outside). Only transform, opacity and visibility move. */
  .al-album { position: relative; margin-top: 8px; overflow: hidden; padding-bottom: 96px; text-align: left; }
  .al-stage { position: relative; aspect-ratio: 16 / 7.6; touch-action: pan-y; overscroll-behavior: contain; }
  .al-slide {
    position: absolute; inset: 0 auto 0 0; width: 82%; margin: 0; opacity: 0; visibility: hidden; transform: translateX(210%);
    transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.5s ease-out, visibility 0.5s;
  }
  .al-slide[data-pos="0"] { opacity: 1; visibility: visible; transform: none; }
  .al-slide[data-pos="1"] { opacity: 0.55; visibility: visible; transform: translateX(calc(100% + 16px)); }
  .al-slide[data-pos="-1"] { transform: translateX(calc(-100% - 16px)); }
  .al-slide[data-pos="-2"] { transform: translateX(-210%); }
  .al-slide[data-pos="1"] .al-link, .al-slide[data-pos="1"] .al-cap { pointer-events: none; }
  .al-link { display: block; height: 100%; border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .al-link img { display: block; width: 100%; height: 100%; object-fit: cover; background: #e9e6dc; }
  .al-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
  /* the caption sits under its own photo, shown only for the current one */
  .al-cap {
    position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 2px; justify-items: start; min-width: 0;
    padding: 14px 110px 0 0; opacity: 0; transition: opacity 0.3s ease-out;
  }
  .al-slide[data-pos="0"] .al-cap { opacity: 1; }
  .al-name { font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
  .al-country { font-size: 0.9rem; }
  .al-chip { margin: 4px 0 2px; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(var(--navy-rgb), 0.62); color: var(--white); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; }
  .al-credit { font-size: 0.75rem; line-height: 1.4; color: var(--ink-soft); overflow-wrap: anywhere; }
  .al-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
  .al-credit a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
  .al-btns { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 10px; }
  .al-btns[hidden] { display: none; }
  .al-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%;
    background: var(--white); color: var(--navy); border: 1px solid var(--border); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease-out;
  }
  .al-btn svg { width: 20px; height: 20px; }
  .al-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
  .al-btn:active { scale: 0.94; }
  .al-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
  .al-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) { .al-slide, .al-cap, .al-btn { transition: none; } }
  @media (max-width: 640px) {
    .al-stage { aspect-ratio: 4 / 5; }
    .al-slide { width: 86%; }
    .al-album { padding-bottom: 170px; }
    .al-cap { padding-right: 0; }
    .al-btns { left: 0; right: 0; justify-content: flex-end; }
  }

  .map-teaser {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
  }
  #home-map { width: 100%; height: auto; aspect-ratio: 16 / 8; background: var(--navy); }
  /* the button floats over the map corner; z-index keeps it above Leaflet's panes and controls */
  .map-teaser-copy { position: absolute; top: 0.9rem; right: 0.9rem; z-index: var(--z-above-map); display: flex; }
  /* "Open map", Button 7 of design-options/map-dots/round-2 (owner, 2026-11-17): a frosted pill with a fine ring, a mini donut in the dock colours around a
     small globe. The donut turns, a soft ring breathes around it; transform and opacity only; both stop with the site Reduce motion switch. */
  .map-teaser-copy .btn-cta.btn-map {
    position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px;
    border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.8); color: var(--navy); font-size: 0.82rem; font-weight: 600;
    -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
    box-shadow: 0 0 0 1px rgba(var(--navy-rgb), 0.14), 0 0 0 4px rgba(255, 255, 255, 0.55), 0 3px 12px rgba(var(--navy-rgb), 0.14);
    touch-action: manipulation; -webkit-tap-highlight-color: rgba(var(--navy-rgb), 0.08);
    transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .map-teaser-copy .btn-cta.btn-map:hover { background: rgba(255, 255, 255, 0.96); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(var(--navy-rgb), 0.22), 0 0 0 4px rgba(255, 255, 255, 0.7), 0 6px 16px rgba(var(--navy-rgb), 0.2); }
  .map-teaser-copy .btn-cta.btn-map:active { transform: none; scale: 0.97; background: #ffffff; }
  .map-teaser-copy .btn-cta.btn-map:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 6px; }
  .om-glyph { position: relative; display: block; flex: none; width: 30px; height: 30px; }
  .om-donut { position: absolute; inset: 0; display: block; width: 100%; height: 100%; transform-origin: 50% 50%; }
  .om-globe { position: absolute; inset: 7px; display: block; width: 16px; height: 16px; }
  .om-label { line-height: 1.2; white-space: nowrap; }
  /* owner's decision (2026-11-17), for the Open map button only: its motion ignores the OS setting prefers-reduced-motion and stops only with
     the site's own Reduce motion switch (html.a11y-reduce-motion, whose rule in chrome.css cancels animations and transitions; pseudo-elements are named here) */
  .om-donut { animation: om-turn 9s linear infinite; }
  .om-glyph::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid rgba(15, 138, 122, 0.8); opacity: 0; pointer-events: none; animation: om-breathe 2.4s ease-out infinite; }
  .btn-map:hover .om-donut, .btn-map:focus-visible .om-donut { animation-duration: 3s; }
  html.a11y-reduce-motion .om-glyph::before { animation: none; display: none; }
  @keyframes om-turn { to { transform: rotate(360deg); } }
  @keyframes om-breathe { 0% { transform: scale(0.9); opacity: 0.7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
  /* the "Dock type" key (ui/mapKey.tsx) would cover too much of the small home map on a phone; /map keeps it */
  @media (max-width: 599px) { .map-teaser .map-key { display: none; } }
  /* on dark panels the navy button would vanish, so it flips to white with navy text */


  .featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    text-decoration: none;
    color: var(--ink);
  }
  .featured-card img, .featured-card .thumb-ph { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; display: block; }
  .featured-card .thumb-ph { background: var(--border); }
  .featured-card .copy { padding: clamp(1.5rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; }
  .featured-card .tag { font-size: 0.72rem; font-weight: 500; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.16em; }
  .featured-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.6rem); margin: 0.6rem 0 0.9rem; }
  .featured-card p { font-family: var(--font-serif); font-weight: 300; color: var(--ink-prose); font-size: 1rem; line-height: 1.8; }
  @media (max-width: 640px) { .featured-card { grid-template-columns: 1fr; } .featured-card img, .featured-card .thumb-ph { aspect-ratio: 16 / 10; } .featured-card .copy { padding: 1.5rem 1.25rem; } }


  /* story block right after the hero: same serif, same navy, lots of air */
  .log { margin-top: 0; }
  .log-entry { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2rem; padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
  .log-num { width: 3.5rem; height: 3.5rem; }
  .log-entry > div { max-width: 38rem; }
  section.block .log-entry h2 { /* beats section.block h2 */
    text-wrap: auto;
    font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.55rem);
    letter-spacing: -0.005em; color: var(--ink); margin: 0 0 1.75rem;
  }
  .log-entry p {
    font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.02rem, 1.4vw, 1.15rem);
    line-height: 1.9; color: var(--ink-prose); margin: 0 auto;
  }
  .log-entry p + p { margin-top: 1.75rem; }
  /* Get started: three steps, text first; the dashed route only links them in the gaps */
  .journey { max-width: 44rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .step { display: flex; flex-direction: column; align-items: center; }
  .step-icon { width: 3.1rem; height: 3.1rem; margin-bottom: 1.4rem; color: var(--accent); }
  .step-icon svg { width: 100%; height: 100%; display: block; }
  .step h3 {
    font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.625rem);
    line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); margin: 0 0 1rem;
  }
  .step p {
    font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.05rem, 1.4vw, 1.125rem);
    line-height: 1.62; color: var(--ink-prose-strong); max-width: 40rem; margin: 0;
  }
  .route { width: 1.4rem; height: 4.5rem; margin: 2.5rem 0; color: var(--accent); opacity: 0.75; }
  .route svg { width: 100%; height: 100%; display: block; }

  /* "Know a dock we are missing?" (design F3, owner 2026-11-11): a compact card, copy on the left on a frosted white pane, the owner's lagoon photo
     (src/static/cta, one <img>, no credit needed) on the right; on phones the photo is a strip on top and the pane sits under it.
     Layers, bottom to top: the card's own tint (the photo's blurred sea tones), the photo (soft mask), the glass pane (.cta-copy::before, it blurs the photo
     where it overlaps it), the text. Without backdrop-filter the pane is a near-solid white, so the navy text stays readable. No outline or shadow: not a card of the card group. */
  section.block.cta-sec { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
  .submit-cta {
    --cta-sand: #f0dcb4;
    position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
    border-radius: 14px; background: linear-gradient(100deg, #6a9aa0, #6fb2ae); color: var(--navy);
  }
  section.block .submit-cta { text-align: left; }
  .submit-cta .cta-photo {
    position: relative; overflow: hidden; order: -1; height: max(128px, 31vw);
    -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent);
  }
  .submit-cta .cta-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 77%; }
  .submit-cta .cta-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: -44px; padding: 36px 20px 24px; }
  .submit-cta .cta-copy::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(240, 246, 248, 0.96);
    -webkit-mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(transparent, #000 34px, #000 calc(100% - 26px), transparent);
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .submit-cta .cta-copy::before { background: rgba(244, 249, 250, 0.66); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
  }
  .submit-cta .cta-copy > * { position: relative; }
  section.block .submit-cta h2 { margin: 0; color: var(--navy); font-family: var(--font-serif); font-weight: 500; font-size: 1rem; line-height: 1.3; letter-spacing: 0; text-wrap: balance; }
  .submit-cta .hl { background: linear-gradient(transparent 62%, var(--cta-sand) 62%); color: var(--navy); }
  .submit-cta .cta-go {
    position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
    border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: var(--white);
    font-size: 0.9rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
    touch-action: manipulation; -webkit-tap-highlight-color: rgba(var(--navy-rgb), 0.2);
  }
  .submit-cta .cta-go::before { content: ""; position: absolute; inset: -3px 0; } /* a 44 px tap target around the 38 px button */
  .submit-cta .cta-go:hover { background: var(--cta-sand); color: var(--navy); border-color: var(--cta-sand); }
  .submit-cta .cta-go:active { scale: 0.97; }
  .submit-cta .cta-go:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 6px var(--white); }
  .submit-cta .cta-go .arrow { width: 15px; height: 15px; flex: none; transition: transform 0.15s ease; }
  .submit-cta .cta-go:hover .arrow { transform: translateX(3px); }
  @media (prefers-reduced-motion: reduce) { .submit-cta .cta-go .arrow { transition: none; } .submit-cta .cta-go:hover .arrow { transform: none; } }
  @media (min-width: 560px) {
    .submit-cta { display: block; min-height: 180px; background: linear-gradient(100deg, #6a8790, #72a6a6); }
    .submit-cta .cta-photo {
      position: absolute; inset: 0 0 0 auto; width: min(54%, 600px); height: auto;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%);
    }
    .submit-cta .cta-photo img { position: absolute; inset: 0; object-position: 50% 74%; }
    .submit-cta .cta-copy { width: 60%; min-height: 180px; margin-top: 0; justify-content: center; gap: 16px; padding: 24px 32px; }
    .submit-cta .cta-copy::before { -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent); mask-image: linear-gradient(90deg, #000 58%, transparent); }
  }
  @media (min-width: 768px) { section.block .submit-cta h2 { font-size: 1.2rem; } }

  /* hero and sections are all centered */
  section.block, .map-teaser-copy, .featured-card .copy { text-align: center; }

  @media (max-width: 640px) {
    #home-map { aspect-ratio: 4 / 3; }
  }
  .band-white { background: var(--white); }
  section.block.flush-top { padding-top: clamp(24px, 5vw, 56px); }


  .tour { position: fixed; inset: 0; z-index: calc(var(--z-guide) + 1); }
  .tour[hidden] { display: none; }
  .tour-block { position: absolute; inset: 0; }
  .tour-hole { position: fixed; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 100vmax rgba(8, 20, 36, 0.66); opacity: 0; pointer-events: none; }
  .tour.is-in .tour-hole { opacity: 1; transition: opacity 0.22s ease-out; }
  /* no target on the page: the whole page dims and the card sits in the middle */
  .tour-hole.is-off { width: 0 !important; height: 0 !important; left: 50% !important; top: 50% !important; box-shadow: 0 0 0 100vmax rgba(8, 20, 36, 0.66); }
  .tour-card {
    position: fixed; width: min(352px, calc(100vw - 24px)); box-sizing: border-box; padding: 20px 20px 16px; border-radius: 16px; background: var(--white); color: var(--ink);
    box-shadow: 0 18px 50px rgba(8, 20, 36, 0.4); font-family: var(--font-sans); opacity: 0; transform: translateY(6px);
  }
  .tour.is-in .tour-card { opacity: 1; transform: none; transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
  .tour-card:focus { outline: none; }
  .tour-card:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
  .tour-count { margin: 0 32px 6px 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); font-variant-numeric: tabular-nums; }
  .tour-title { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; line-height: 1.25; text-wrap: balance; color: var(--ink); }
  .tour-text { margin: 0 0 16px; font-size: 0.93rem; line-height: 1.5; color: var(--ink-prose); overflow-wrap: anywhere; }
  .tour-dots { display: flex; gap: 6px; margin-bottom: 16px; }
  .tour-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--border); }
  .tour-dot.is-done { background: var(--bronze-light); }
  .tour-dot.is-on { background: var(--accent); width: 20px; }
  .tour-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .tour-skip { margin-right: auto; min-height: 40px; padding: 0 6px; border: 0; background: none; color: var(--ink-soft); font: 500 0.88rem var(--font-sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tour-skip:hover { color: var(--ink); }
  .tour-btn { min-height: 40px; padding: 0 18px; border-radius: 10px; font: 600 0.92rem var(--font-sans); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tour-back { border: 1px solid var(--border); background: var(--white); color: var(--ink); }
  .tour-back:hover { background: #f6f3ea; border-color: var(--ink-soft); }
  .tour-skip[hidden], .tour-back[hidden] { display: none; }
  .tour-next { border: 1px solid var(--navy); background: var(--navy); color: var(--white); }
  .tour-next:hover { background: var(--navy-lift); }
  .tour-btn:active, .tour-x:active { scale: 0.97; }
  .tour-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink-soft); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .tour-x:hover { background: #f6f3ea; color: var(--ink); }
  .tour-x svg { width: 18px; height: 18px; }
  .tour button:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .tour.is-in .tour-hole, .tour.is-in .tour-card { transition: none; } .tour-card { transform: none; } }
  html.a11y-reduce-motion .tour-card { transform: none; }

  /* while the tour runs: the drawer opens at once (its slide would move the target under the cut-out), and a target scrolled into view stays clear of the sticky header */
  body.tour-on .ps-side { transition: none; }
  body.tour-on .ph-sq { scroll-margin: 88px 0 24px; }

  /* a wide screen: the profile side bar rail held open while the tour points into it (the same look as hovering it, styles/profileSidebar.css) */
  @media (min-width: 861px) {
    .ps-layout.rail .ps-side.tour-rail { width: 264px; box-shadow: 8px 0 30px rgba(var(--navy-rgb), 0.18); }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) { padding: 12px 11px; align-items: stretch; }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) :is(.ps-label, .ps-section, .ps-count, .ps-tag, .ps-search kbd) { display: revert !important; }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) .ps-label { display: block !important; }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) .ps-count[hidden] { display: none !important; }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) :is(.ps-search, .ps-outwide) { width: 100%; padding: 0 12px; justify-content: flex-start; }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) .ps-menu { width: auto; align-items: stretch; margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) .ps-item { width: auto; display: list-item; }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) .ps-link { width: 100%; padding: 0 12px; justify-content: flex-start; }
    .ps-layout.rail .ps-side.tour-rail:not(:hover):not(:has(:focus-visible)) .ps-outwide { font-size: 0.86rem; gap: 10px; }
  }

