/* The hub home, design language v2 (Gal, 30 Sept 2026: the painted-Adriatic
   mock in design/ref/). Tokens and components come from /nv/nv.css; this file
   only lays out this one page. Every other page keeps app.css.

   Rule zero (design/DESIGN.md): the headline and the three choices are on the
   first screen at every size, and on anything taller than a small phone the
   live card's heading too. The phone budget is tight, so heights below lean
   on svh and the painted strip gives way first. */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:16px}
body{margin:0;min-height:100vh;background:var(--nv-page);font-size:var(--nv-body);line-height:1.45}
a{color:inherit}
img{max-width:100%}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip:focus{position:fixed;z-index:99;top:10px;left:10px;width:auto;height:auto;clip:auto;margin:0;padding:12px 16px;border-radius:var(--nv-r);background:#fff;color:var(--nv-ink);font-weight:700;box-shadow:var(--nv-shadow-hi)}
main:focus{outline:0}

/* ---------- header, on the hero sky ---------- */
.hm-hd{position:absolute;inset:0 0 auto;z-index:20}
.hm .nv-hd{min-height:60px;gap:24px}
.hm .nv-mark{min-height:44px}
.hm .nv-mark svg{width:26px;height:26px;color:var(--nv-teal-ink)}
.hm .nv-nav{display:none}
.hm .nv-nav a{display:inline-flex;align-items:center;min-height:44px;position:relative;transition:color .15s}
.hm .nv-nav a::after{content:"";position:absolute;left:0;right:0;bottom:8px;height:2px;border-radius:2px;background:var(--nv-teal);transform:scaleX(0);transform-origin:left;transition:transform .2s}
.hm .nv-nav a:hover::after{transform:scaleX(1)}

/* the language control: a soft pill that opens a white card */
.lang{padding:0}.langs{position:relative}
.langs summary{list-style:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:var(--nv-r-pill);cursor:pointer;
  background:rgba(255,255,255,.72);box-shadow:inset 0 0 0 1px rgba(15,42,61,.08);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  font:700 13.5px/1 var(--nv-font);letter-spacing:.03em;color:var(--nv-ink)}
.langs summary:hover{background:#fff}
.langs summary::-webkit-details-marker{display:none}
.langs .fl{font-size:18px;line-height:1}
.langs .pick__c{width:12px;height:12px;transition:transform .2s}
.langs[open] .pick__c{transform:rotate(180deg)}
.langs ul{position:absolute;right:0;top:calc(100% + 8px);z-index:30;margin:0;padding:6px;list-style:none;min-width:200px;background:#fff;
  border:1px solid var(--nv-line);border-radius:var(--nv-r);box-shadow:var(--nv-shadow-hi)}
.langs li a{display:flex;gap:10px;align-items:center;min-height:44px;padding:0 12px;border-radius:var(--nv-r-sm);text-decoration:none;font-weight:600;font-size:14.5px}
.langs li a:hover{background:var(--nv-page)}
.langs li .cd{margin-left:auto;color:var(--nv-mute);font-size:12px;font-weight:700}
.langs a[aria-current]{font-weight:800;color:var(--nv-teal-ink)}

/* ---------- hero ---------- */
/* Phones: the words on a plain sky, then a strip of the painting under them
   (hero-phone, cropped to the ferry and the town) that the cards overlap. */
.hm-hero{position:relative;display:flex;flex-direction:column;padding-top:64px;
  background:linear-gradient(#edf6fb,var(--nv-sky) 55%,var(--nv-sky) 80%,var(--nv-page))}
.hm-say{position:relative;z-index:2;padding-top:4px}
.hm .nv-h1{font-size:clamp(25px,min(8vw,4.7vh),40px);font-size:clamp(25px,min(8vw,4.7svh),40px);max-width:12em;line-height:1.04}
.hm .nv-lead{font-size:clamp(14px,3.85vw,17px);margin-top:.6em;max-width:32em;color:var(--nv-ink-2)}
.hm-fn{margin:6px 0 0;font-size:12px;line-height:1.35;color:var(--nv-mute);font-weight:500}
.hm-art{position:relative;order:2;display:block;height:clamp(34px,calc(150vh - 940px),160px);height:clamp(34px,calc(150svh - 940px),160px);margin-top:4px;overflow:hidden;
  -webkit-mask:linear-gradient(transparent,#000 38%,#000 78%,transparent);mask:linear-gradient(transparent,#000 38%,#000 78%,transparent)}
.hm-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 66%}

/* ---------- the cards ---------- */
.hm-grid{position:relative;z-index:3;display:grid;gap:12px;margin-top:-30px}
.hm .hm-card{padding:16px}
.hm .nv-card__h{margin-bottom:10px;align-items:center}
.hm .nv-card__h h2{font-size:clamp(19px,5.4vw,22px)}

/* how are you travelling: rows on phones (picture, words, chevron) */
.hm-choices{display:grid;gap:8px}
.hm-choice.nv-choice{display:grid;grid-template-columns:clamp(64px,21vw,100px) minmax(0,1fr) 20px;grid-template-rows:1fr 1fr;column-gap:14px;align-items:center;
  min-height:62px;padding:4px 12px 4px 4px;border-radius:var(--nv-r)}
.hm-choice .hm-choice__art{grid-row:1/3;display:block;padding:0;height:54px;border-radius:var(--nv-r-sm);overflow:hidden}
.hm-choice .hm-choice__art img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.hm-choice b{align-self:end;padding:0;font-size:16.5px;line-height:1.2}
.hm-choice .hm-choice__n{align-self:start;padding:1px 0 0;font-size:13.5px;line-height:1.3}
.hm-choice>svg{grid-column:3;grid-row:1/3;width:20px;height:20px;color:var(--nv-mute);transition:transform .2s,color .2s}
.hm-choice:hover>svg{transform:translateX(3px);color:var(--nv-teal-ink)}
.hm-choice:hover .hm-choice__art img{transform:scale(1.04)}
.hm-choice:active{transform:scale(.99)}

/* live ramps */
.hm-live h2{display:flex;align-items:center;gap:10px}
.hm-pulse{position:relative;width:10px;height:10px;border-radius:50%;background:var(--nv-ok);flex:none}
.hm-pulse::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid var(--nv-ok);opacity:0;animation:hm-ping 2.4s cubic-bezier(.2,.7,.2,1) infinite}
@keyframes hm-ping{0%{transform:scale(.5);opacity:.7}80%,100%{transform:scale(1.6);opacity:0}}
.hm .at{white-space:nowrap}
.hm-rows{margin:0 -8px}
.hm .pr{grid-template-columns:auto minmax(0,1fr) auto 16px;min-height:64px;padding:11px 8px;border-radius:var(--nv-r-sm);gap:4px 12px;transition:background .15s}
.hm .pr:hover{background:var(--nv-page)}
.hm .pr+.pr{border-top:1px solid var(--nv-line)}
.hm .pr:hover+.pr,.hm .pr:hover{border-color:transparent}
.hm .pr .nv-dot{width:12px;height:12px}
.pr__m{min-width:0}
.pr__m b{display:block;font-size:16.5px;font-weight:800;line-height:1.2}
.pr__m small{font-size:13.5px;font-weight:500;color:var(--nv-mute);margin-left:6px}
.pr__m .bt{display:block;margin-top:2px;font-size:13.5px;line-height:1.3;color:var(--nv-ink-2)}
.hm .nv-row__end{gap:4px}
.hm .nv-row__end .r{font-size:12px;color:var(--nv-mute);font-weight:500;white-space:nowrap}
.hm .pr>svg{width:16px;height:16px;color:var(--nv-mute)}
.hm .pr .bt:empty,.hm .pr .r:empty,.hm .pr .nv-pill:empty{display:none}
.hm .pr[data-s=stale] .bt{font-size:12.5px;color:var(--nv-mute)}
.hm .more{width:100%;margin-top:10px}
.hm .more svg{transition:transform .2s}.hm .more:hover svg{transform:translateX(3px)}
.hm .fn{display:flex;gap:8px;align-items:flex-start;margin:12px 0 0;font-size:12.5px;line-height:1.4;color:var(--nv-mute)}
.hm .fn svg{width:16px;height:16px;flex:none;margin-top:1px}

/* find a crossing: a hand-off, vehicle or not */
.hm-find__s{margin:-4px 0 14px;font-size:14px;color:var(--nv-mute)}
.hm-find__f{display:flex;flex-wrap:wrap;gap:12px}
.hm .hm-find__f .nv-seg{display:grid;flex:1 1 260px;margin:0;min-width:0}
.hm-find__f .nv-seg label{min-height:44px;padding:0 12px;transition:background .15s,color .15s}
.hm-find__f .nv-seg label:has(input:focus-visible){outline:3px solid var(--nv-teal);outline-offset:2px}
.hm-find__f .nv-seg svg{width:20px;height:20px}
.hm-find__f .nv-btn{flex:1 1 200px;min-height:52px}
.hm .nv-btn svg{transition:transform .2s}.hm .nv-btn:hover svg{transform:translateX(3px)}

/* the own-boat band */
.hm-band{margin-top:16px}
.hm-band__in{position:relative;overflow:hidden;display:grid;gap:14px;padding:0 16px 18px;background:#fff;border:1px solid var(--nv-line);border-radius:var(--nv-r-card);box-shadow:var(--nv-shadow)}
.hm-band__art{display:block;margin:0 -16px;height:132px;overflow:hidden;
  -webkit-mask:linear-gradient(#000 60%,transparent);mask:linear-gradient(#000 60%,transparent)}
.hm-band__art img{display:block;width:100%;height:100%;object-fit:cover;object-position:70% 50%}
.hm-band__t{position:relative}
.hm-band h2{margin:0;font-size:clamp(20px,5.4vw,26px);font-weight:800;letter-spacing:-.02em;line-height:1.15}
.hm-band p{margin:6px 0 0;color:var(--nv-ink-2);font-size:15px}
.hm-band .nv-btn{position:relative;justify-self:start}

/* footer */
.hm-foot{margin-top:28px;padding:28px 0 32px;background:#fff;border-top:1px solid var(--nv-line);font-size:14px;color:var(--nv-mute)}
.hm-foot__in{display:grid;gap:18px}
.hm-foot p{margin:0}
.hm-foot__brand{display:grid;gap:8px;align-content:start;max-width:34em}
.hm-foot a{color:var(--nv-ink);text-decoration:underline;text-decoration-color:var(--nv-line);text-underline-offset:3px}
.hm-foot a:hover{text-decoration-color:currentColor}
.hm-foot .nv-mark{text-decoration:none;font-size:19px}
.hm-foot__mail{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.hm-foot__mail span{display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--nv-mute)}
.hm-foot__mail a{display:inline-flex;min-height:32px;align-items:center;font-weight:600}
.hm-foot__links{display:flex;flex-wrap:wrap;gap:4px 20px}
.hm-foot__links a{display:inline-flex;min-height:36px;align-items:center;font-weight:600}
.hm-foot__co{font-size:13px}

/* phone tab bar; the page pads its foot by the bar's height */
.hm-tabs span{max-width:100%;padding:0 2px;text-align:center;line-height:1.15;overflow-wrap:anywhere}
.hm-tabs a{min-height:56px;align-content:center;transition:color .15s}
.hm-tabs a:hover{color:var(--nv-ink)}
@media(max-width:699px){ body{padding-bottom:calc(58px + env(safe-area-inset-bottom))} }

/* short phones (320x568, 360x640): the strip gives way, rows tighten */
@media(max-width:699px) and (max-height:700px){
  .hm-hero{padding-top:58px}
  .hm .nv-hd{min-height:56px}
  .hm .nv-lead{margin-top:.45em}
  .hm-choice.nv-choice{min-height:56px}
  .hm-choice .hm-choice__art{height:48px}
  .hm-choices{gap:6px}
  .hm-tabs a{min-height:52px;padding:7px 0 6px}
  body{padding-bottom:calc(54px + env(safe-area-inset-bottom))}
}
@media(max-width:699px) and (max-height:600px){
  .hm .hm-card{padding:14px}
  .hm .nv-card__h{margin-bottom:8px}
  .hm-fn{font-size:11.5px;margin-top:4px}
  .hm-choice.nv-choice{min-height:52px;column-gap:12px}
  .hm-art{display:none}
  .hm-hero{padding-bottom:34px}
  .hm-choice .hm-choice__art{height:44px}
  .hm-choice b{font-size:15.5px}.hm-choice .hm-choice__n{font-size:12.5px}
}

/* the narrowest phones: a smaller picture so the titles keep one line */
@media(max-width:359px){
  .hm .hm-card{padding:14px 12px}
  .hm-choice.nv-choice{grid-template-columns:60px minmax(0,1fr) 16px;column-gap:10px;padding-right:8px}
  .hm-choice .hm-choice__art{height:44px}
  .hm-choice b{font-size:15px}.hm-choice .hm-choice__n{font-size:12.5px}
  .hm-choice>svg{width:16px;height:16px}
}
/* ---------- tablets and up: below the fold ----------
   The first screen (header, ticker, headline, tiles and the live card) is
   laid out at the end of this file, after the tile and bubble components. */
@media(min-width:700px){
  .hm-tabs{display:none}
  .hm .hm-card{padding:20px 22px 22px}
  .hm .nv-card__h h2{font-size:var(--nv-h2)}
  /* band: words left, the painting right fading in under them */
  .hm-band{margin-top:20px}
  .hm-band__in{grid-template-columns:auto 1fr;align-items:center;gap:28px;min-height:150px;padding:24px 32px}
  .hm-band__art{position:absolute;inset:0 0 0 30%;height:auto;margin:0;
    -webkit-mask:linear-gradient(90deg,transparent,#000 40%);mask:linear-gradient(90deg,transparent,#000 40%)}
  .hm-band__art img{object-position:60% 55%}
  .hm-band .nv-btn{align-self:center}
  .hm-band__t{max-width:26em}
  .hm-foot{margin-top:40px;padding:40px 0}
  .hm-foot__in{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:48px;row-gap:22px}
  .hm-foot__links,.hm-foot__co{grid-column:1/-1}
}
@media(min-width:1024px){
  .hm-find{display:grid;grid-template-columns:auto 1fr;column-gap:24px;align-items:center}
  .hm-find .nv-card__h{margin:0}
  .hm-find__s{margin:0;text-align:right}
  .hm-find__f{grid-column:1/-1;margin-top:14px;flex-wrap:nowrap}
  .hm-find__f .nv-seg{flex:0 1 380px}
  .hm-find__f .nv-btn{flex:1 1 auto}
}
@media(min-width:1600px){ :root{--nv-max:1400px} }
@media(min-width:1800px){ :root{--nv-max:1640px} }

/* ---------- motion: a quiet arrival, nothing that loops but the pulse ---------- */
@media(prefers-reduced-motion:no-preference){
  .hm-art img{animation:hm-settle 1.6s cubic-bezier(.2,.7,.2,1) both}
  .hm-say .nv-lead,.hm-say .hm-fn{animation:hm-rise .7s .08s cubic-bezier(.2,.7,.2,1) both}
  .hm-card,.hm-band__in{animation:hm-rise .7s cubic-bezier(.2,.7,.2,1) both}
  .hm-trav{animation-delay:.1s}.hm-live{animation-delay:.18s}.hm-find{animation-delay:.24s}
  @supports (animation-timeline:scroll()){
    @media(min-width:700px){ .hm-art{animation:hm-drift linear both;animation-timeline:scroll(root);animation-range:0 600px} }
  }
}
@keyframes hm-settle{from{transform:scale(1.045)}to{transform:none}}
@keyframes hm-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes hm-drift{to{transform:translateY(90px)}}
@media(prefers-reduced-motion:reduce){ html{scroll-behavior:auto} .hm-pulse::after{animation:none} }

/* ---------- phones: the travel tiles on the painting (Gal, 30 Sept, m2c) ----------
   Portrait and under 700px wide only: small phones (320x568, 360x640, 375x667)
   here, large phones (390x844, 412x915, 430x932) adjusted after. The first
   screen is exactly the room above the tab bar: header, a navy live-ramps
   ticker, the headline on the painting's sky, and the three travel tiles at
   its foot. A first tap glides the tiles into one row and opens a bubble over
   them (live.js); a second tap, or the bubble's button, goes. Everywhere else
   none of this exists and the page is the one above. */
.hm-tk,.hm-tiles{display:none}
@media (max-width:699px) and (orientation:portrait){
  :root{--sp-hd:52px;--sp-tk:36px;--sp-tabs:calc(53px + env(safe-area-inset-bottom))}
  body.tk-mo{--sp-tk:54px}
  .hm .nv-hd{min-height:var(--sp-hd)}
  .hm .nv-mark{font-size:19px}

  .hm-hero{height:calc(100vh - var(--sp-tabs));height:calc(100svh - var(--sp-tabs));padding:var(--sp-hd) 0 0;overflow:hidden;background:var(--nv-sky)}
  .hm-art{display:block;position:absolute;inset:0;z-index:0;order:0;height:auto;margin:0;-webkit-mask:none;mask:none}
  .hm-art img{object-position:50% 78%}

  /* the words on the painting's sky */
  .hm-say{flex:1 1 auto;min-height:0;width:100%;padding-top:14px;z-index:2}
  .hm .nv-h1{font-size:clamp(27px,8.6vw,33px);line-height:1.06;max-width:none}
  .hm .nv-lead{font-size:14.5px;line-height:1.4;margin-top:8px}
  .hm-fn{font-size:12px;margin-top:4px}


  /* below the fold: find a crossing, the live card, the boat band, the footer */
  .hm-grid{margin-top:0;padding-top:20px}
  .hm-find{order:1}.hm-live{order:2}
}
/* the ticker, tiles and bubble themselves: phones as above, and every screen
   700px and wider (sized for those at the end of this file) */
@media (max-width:699px) and (orientation:portrait),(min-width:700px){
  /* the ticker, right to left; the run is printed twice so the loop has no seam */
  .hm-tk{display:flex;align-items:center;gap:10px;flex:none;position:relative;z-index:4;height:var(--sp-tk);padding-left:var(--nv-pad);
    background:var(--nv-ink);color:#fff;text-decoration:none;font:600 13px/1 var(--nv-font)}
  .hm-tk:focus-visible{outline-offset:-3px;border-radius:0}
  .hm-tk__l{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
  .hm-tk__h{font-weight:800;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
  .hm-tk .hm-pulse{width:9px;height:9px;margin-right:1px}
  .hm-tk__at{font-weight:600;font-size:12.5px;color:#b9cad5}
  .hm-tk__at:empty{display:none}
  .hm-tk__w{flex:1;min-width:0;overflow:hidden;
    -webkit-mask:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent);mask:linear-gradient(90deg,transparent,#000 14px,#000 calc(100% - 14px),transparent)}
  .hm-tk__t{display:inline-flex;white-space:nowrap;padding-left:6px}
  .hm-tk__t.run{padding-left:0;animation:hm-tk var(--dur,30s) linear infinite}
  .hm-tk__i{display:inline-flex;align-items:center;gap:6px;padding-right:12px;color:#b9cad5}
  .hm-tk__i b{font-weight:800;color:#fff}
  .hm-tk__i em{display:inline-flex;align-items:center;gap:5px;font-style:normal;font-weight:700;color:#fff}
  .hm-tk__i em::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c,var(--nv-off))}
  .hm-tk__i[data-s=clear],.hm-tk__i[data-s=green]{--c:var(--nv-ok)}
  .hm-tk__i[data-s=yellow]{--c:var(--nv-warn)}
  .hm-tk__i[data-s=red]{--c:var(--nv-bad)}
  .hm-tk__i[data-s=stale] em{font-weight:600;color:#b9cad5}
  .hm-tk__t.run .hm-tk__i::after{content:"·";margin-left:12px;color:#6f8797}
  .hm-tk__run{display:inline-flex}
  .hm-tk__r>.hm-tk__w{align-self:stretch;display:flex;align-items:center}
  /* the lanes: one, identical to the old single strip, until a mooring field
     is live; then two stacked, each with its own label, and the Live block
     (700px and wider) covering both */
  .hm-tk__rs{flex:1;min-width:0;align-self:stretch;display:flex;flex-direction:column}
  .hm-tk__r{flex:1 1 0;min-height:0;min-width:0;display:flex;align-items:center;gap:10px}
  .hm-tk__lb{display:none}
  .hm-tk.has-mo{height:var(--sp-tk);align-items:stretch}
  .hm-tk.has-mo .hm-tk__l{display:none}
  .hm-tk.has-mo .hm-tk__r{flex:none;height:28px;gap:8px}
  .hm-tk.has-mo .hm-tk__r--mo{height:26px;margin-left:calc(-1 * var(--nv-pad));padding-left:var(--nv-pad);background:#14405a;box-shadow:inset 0 1px rgba(255,255,255,.07)}
  .hm-tk.has-mo .hm-tk__lb{display:inline-flex;align-items:center;gap:6px;flex:none;white-space:nowrap;color:#b9cad5;
    font-weight:800;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase}
  .hm-tk__lb svg{width:15px;height:15px;flex:none}
  .hm-tk__r--fe .hm-tk__lb svg{display:none}
  .hm-tk__lb .hm-pulse{width:8px;height:8px;margin:0 1px 0 3px}
  .hm-tk__r--mo .hm-tk__lb{color:#9fdcec}
  .hm-tk.has-mo .hm-tk__i{font-size:12.5px}

  /* the tiles: vehicle + on foot, then your own boat across */
  .hm-tiles{display:block;flex:none;position:relative;z-index:3;padding:0 10px 10px;
    --th:clamp(70px,13.5svh,104px);--bh:clamp(66px,12svh,86px);--ths:clamp(50px,9svh,80px)}
  .hm-hint{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);margin:0;white-space:nowrap;padding:7px 12px;border-radius:999px;
    background:rgba(255,255,255,.92);box-shadow:var(--nv-shadow);font:700 13px/1 var(--nv-font);letter-spacing:0;color:var(--nv-ink)}
  .hm-tl-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .hm-tl{display:flex;flex-direction:column;align-items:stretch;min-width:0;margin:0;padding:0 0 10px;border:0;border-radius:18px;background:#fff;
    box-shadow:var(--nv-shadow-hi);cursor:pointer;color:var(--nv-ink);text-align:center;overflow:hidden;font:inherit;-webkit-tap-highlight-color:transparent;
    transition:box-shadow .2s}
  .hm-tl:focus-visible{outline:3px solid var(--nv-teal);outline-offset:2px;border-radius:18px}
  .hm-tl__i{display:block;height:var(--th);overflow:hidden;flex:none}
  .hm-tl__i img{display:block;width:100%;height:100%;object-fit:cover}
  .hm-tl__x{display:block;padding:8px 6px 0}
  .hm-tl b{display:block;font:800 15.5px/1.15 var(--nv-font);letter-spacing:-.01em}
  .hm-tl small{display:block;margin-top:3px;color:var(--nv-mute);font:500 12.5px/1.25 var(--nv-font)}
  .hm-tl--own{grid-column:1/-1;flex-direction:row;align-items:center;padding:0;text-align:left;height:var(--bh)}
  .hm-tl--own .hm-tl__i{height:100%;width:44%}
  .hm-tl--own .hm-tl__x{padding:0 14px}
  .hm-tl--own b{font-size:16px}.hm-tl--own small{font-size:13px}
  .hm-tl[aria-expanded=true]{box-shadow:0 0 0 2.5px var(--nv-teal),var(--nv-shadow-hi)}
  .hm-tl[aria-expanded=true] b{color:var(--nv-teal-ink)}

  /* open: one row of three small tiles; the bubble takes the room they free */
  .hm-hero.is-open .hm-tl-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hm-hero.is-open .hm-tl--own{grid-column:auto;flex-direction:column;align-items:stretch;padding:0 0 9px;text-align:center;height:auto}
  .hm-hero.is-open .hm-tl__i,.hm-hero.is-open .hm-tl--own .hm-tl__i{width:auto;height:var(--ths)}
  .hm-hero.is-open .hm-tl small{display:none}
  .hm-hero.is-open .hm-tl__x{padding:7px 4px 0}
  .hm-hero.is-open .hm-tl b{font-size:13.5px;min-height:calc(2 * 1.15em);overflow-wrap:anywhere;hyphens:auto}
  .hm-hero.is-open .hm-hint{visibility:hidden}
  /* the headline stays while the bubble fits under it: the lead steps aside
     first; only if even the headline cannot stay does it go, and the bubble
     grows upward with its sentence */
  .hm-hero.no-lead .nv-lead,.hm-hero.no-lead .hm-fn{visibility:hidden}
  .hm-hero.is-tight .nv-h1{visibility:hidden}

  /* the bubble */
  .hm-dt{position:absolute;left:10px;right:10px;bottom:calc(100% + 10px);z-index:4}
  .hm-dp{position:relative;padding:12px 14px 14px;background:#fff;border:1px solid var(--nv-line);border-radius:var(--nv-r-card);box-shadow:var(--nv-shadow-hi);color:var(--nv-ink)}
  .hm-dp[hidden]{display:none}
  .hm-dp::after{content:"";position:absolute;bottom:-8px;left:var(--ax,50%);width:16px;height:16px;margin-left:-8px;background:#fff;transform:rotate(45deg);
    border-right:1px solid var(--nv-line);border-bottom:1px solid var(--nv-line)}
  #dp-car{--ax:calc((100% - 16px) / 6)}
  #dp-own{--ax:calc(100% - (100% - 16px) / 6)}
  .hm-dp__h{display:flex;align-items:center;gap:10px}
  .hm-dp__h img{width:64px;height:40px;object-fit:cover;border-radius:10px;flex:none}
  .hm-dp__t{flex:1;min-width:0}
  .hm-dp__t b{display:block;font-weight:800;font-size:18px;line-height:1.2;letter-spacing:-.015em}
  .hm-dp__t small{display:block;margin-top:2px;color:var(--nv-mute);font:500 12.5px/1.3 var(--nv-font)}
  .hm-dp__x{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:-8px -10px -8px 0;padding:0;border:0;border-radius:12px;background:none;color:var(--nv-mute);cursor:pointer}
  .hm-dp__x svg{width:20px;height:20px}
  .hm-dp__s{display:none;margin:8px 0 0;font:500 14px/1.4 var(--nv-font);color:var(--nv-ink-2)}
  .hm-dp__f{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none}
  .hm-dp__f li{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:0 10px 0 7px;border-radius:999px;background:var(--nv-teal-soft);color:var(--nv-teal-ink);font:700 12.5px/1.1 var(--nv-font)}
  .hm-dp__f svg{width:14px;height:14px;flex:none}
  .hm-dp__go{width:100%;margin-top:12px;padding:6px 16px;text-align:center;line-height:1.2}
  .hm-hero.is-tight .hm-dp__s{display:block}
}
@media (max-width:699px) and (orientation:portrait) and (min-height:620px){ .hm-dp__s{display:block} }
@media (max-width:389px) and (orientation:portrait) and (max-height:600px){
  .hm-say{padding-top:10px}
  .hm .nv-lead,.hm-fn{display:none}
  .hm-dp__t small{display:none}
}
@media (max-width:340px) and (orientation:portrait){
  .hm-dp__go{font-size:15px;gap:8px}
  .hm-dp__f{gap:5px}.hm-dp__f li{font-size:12px;padding:0 8px 0 6px;gap:4px}.hm-dp__f svg{width:12px;height:12px}
}
/* large phones: a bigger headline, taller pictures, and the painting stops
   above the tiles so they stand on the page colour */
@media (min-width:390px) and (max-width:699px) and (orientation:portrait){
  .hm-hero{background:linear-gradient(var(--nv-sky),var(--nv-page) 60%)}
  .hm-art{bottom:16%}
  .hm-art img{object-position:50% 0}
  .hm-say{padding-top:18px}
  .hm .nv-h1{font-size:clamp(31px,8.7vw,37px);letter-spacing:-.03em;word-spacing:.04em}
  .hm .nv-lead{font-size:15.5px;max-width:34ch}
  .hm-tiles{padding:0 12px 12px;--th:clamp(70px,14.5svh,132px);--bh:clamp(66px,11.5svh,104px);--ths:clamp(52px,10svh,92px)}
  .hm-tl-row{gap:10px}
  .hm-tl b{font-size:16.5px}.hm-tl small{font-size:13.5px}
  .hm-tl--own b{font-size:17px}.hm-tl--own small{font-size:13.5px}
  .hm-tl--own .hm-tl__x{padding:0 18px}
  .hm-hero.is-open .hm-tl b{font-size:14.5px}
  .hm-dt{left:12px;right:12px;bottom:calc(100% + 12px)}
  #dp-car{--ax:calc((100% - 20px) / 6)}
  #dp-own{--ax:calc(100% - (100% - 20px) / 6)}
  .hm-dp{padding:14px 16px 16px}
  .hm-dp__h img{width:72px;height:46px}
  .hm-dp__t b{font-size:19px}
  .hm-dp__s{font-size:14.5px}
  .hm-hint{font-size:14px;padding:8px 14px}
}
@keyframes hm-tk{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .hm-tk__t.run{animation:none}
  .hm-tk__w{overflow-x:auto;scrollbar-width:none}
  .hm-tk__dup{display:none!important}
}
.hm-plan{margin-top:24px;padding-bottom:8px}
.hm-plan h2{margin:0;font-size:clamp(20px,5.4vw,26px);font-weight:800;letter-spacing:-.02em;line-height:1.15;color:var(--nv-ink)}
.hm-plan>p{margin:6px 0 14px;color:var(--nv-ink-2);font-size:15px;max-width:62ch}
.hm-plan__g{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.hm-plan h3{margin:0 0 6px;font-size:16px;font-weight:700}
.hm-plan h3 a,.hm-plan li a{color:var(--nv-teal-ink)}
.hm-plan ul{margin:0;padding:0;list-style:none;display:grid;gap:4px;font-size:15px}

/* ---------- 700px and wider: the first screen (Gal, 30 Sept, m2d) ----------
   Header, the navy ticker, the headline on the painting, the travel tiles
   (2+1, folding into a row of three under the bubble exactly as on phones)
   and the full live card, all on the first screen and sitting on one bottom
   line. Landscape: tiles left, the card right. Tablet portrait: the card
   across, under the tiles. The card lives in the page grid (main), not in the
   hero, so phones keep it below the fold; here it overlaps the hero's grid
   cell. live.js hides whole rows the screen has no room for, never cuts one.
   --cw is the wrap's content width, resolved against whatever it is used in. */
@media(min-width:700px){
  :root{--hd:68px;--tk:40px;--pb:clamp(16px,3.4vh,34px);--lvg:28px;--lvw:clamp(330px,36vw - 120px,580px);
    --cw:min(100% - 2 * var(--nv-pad),var(--nv-max) - 2 * var(--nv-pad))}
  .hm .nv-hd{min-height:var(--hd)}
  .hm .nv-nav{display:flex;gap:28px}
  .hm .nv-mark{font-size:22px}

  main{display:grid;grid-template-columns:minmax(0,1fr)}
  .hm-grid{display:contents}
  .hm-trav{display:none}
  .hm-hero{grid-row:1;grid-column:1;display:flex;flex-direction:column;min-height:100vh;min-height:100svh;overflow:hidden;
    padding:var(--hd) 0 var(--pb);background:var(--nv-sky)}
  .hm-art{position:absolute;inset:0;z-index:0;height:auto;margin:0;-webkit-mask:none;mask:none}
  .hm-art img{object-position:50% 42%}
  .hm-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
    background:linear-gradient(rgba(244,249,252,0) 78%,rgba(244,249,252,.7)),
               linear-gradient(rgba(237,246,251,.5),rgba(237,246,251,0) 30%),
               linear-gradient(90deg,rgba(237,246,251,.9) 0,rgba(237,246,251,.66) 32%,rgba(237,246,251,0) 60%)}

  .hm-tk{height:var(--tk);gap:14px;padding-left:calc((100% - var(--cw)) / 2);font-size:14px}
  .hm-tk__h{font-size:12px}
  .hm-tk__at{font-size:13.5px}
  .hm-tk__i{gap:7px;padding-right:16px}
  .hm-tk__t.run .hm-tk__i::after{margin-left:16px}
  body.has-live .hm-tk__i[data-s=stale]{display:none}
  /* two lanes: 30px each, the Live block to their left, ruled off */
  body.tk-mo{--tk:60px}
  .hm-tk.has-mo{height:var(--tk);gap:0}
  .hm-tk.has-mo .hm-tk__l{display:inline-flex;align-self:stretch;gap:8px;padding-right:16px;margin-right:4px;border-right:1px solid rgba(255,255,255,.12)}
  .hm-tk.has-mo .hm-tk__r,.hm-tk.has-mo .hm-tk__r--mo{height:calc(var(--tk) / 2);gap:10px;margin-left:0;padding-left:12px}
  .hm-tk.has-mo .hm-tk__lb{gap:7px;font-size:12px;letter-spacing:.12em}
  .hm-tk__lb svg{width:16px;height:16px}
  .hm-tk__r--fe .hm-tk__lb svg{display:block}
  .hm-tk__lb .hm-pulse{display:none}
  .hm-tk.has-mo .hm-tk__i{font-size:13.5px}

  .hm-say{width:100%;padding-top:clamp(14px,4.2vh,52px);padding-bottom:58px}
  .hm .nv-h1{font-size:clamp(34px,min(4.6vw,7.2vh),68px);max-width:15em;line-height:1.03}
  .hm .nv-lead{font-size:clamp(15.5px,min(1.5vw,2.6vh),21px);max-width:30em;margin-top:.5em}
  .hm-fn{font-size:13px;margin-top:6px}

  /* the tiles, on the hero's foot, the width of the left column */
  .hm-tiles{margin:auto 0 0 calc((100% - var(--cw)) / 2);padding:0;
    width:min(var(--cw) - var(--lvw) - var(--lvg),max(48vw,600px),900px);
    --th:clamp(92px,19svh,250px);--bh:clamp(72px,12.5svh,150px);--ths:clamp(60px,11svh,132px)}
  .hm-hint{bottom:calc(100% + 12px);padding:9px 16px;font-size:15px}
  .hm-tl-row{gap:12px}
  .hm-tl{border-radius:20px;padding-bottom:12px}
  .hm-tl:hover{box-shadow:0 0 0 1.5px #bcd9e5,var(--nv-shadow-hi)}
  .hm-tl:focus-visible{border-radius:20px}
  .hm-tl__x{padding:10px 10px 0}
  .hm-tl b,.hm-tl--own b{font-size:clamp(17px,2.6vh,22px)}
  .hm-tl small,.hm-tl--own small{font-size:clamp(14px,1.9vh,16px)}
  .hm-tl--own{padding:0}
  .hm-tl--own .hm-tl__x{padding:0 24px}
  .hm-tl[aria-expanded=true],.hm-tl[aria-expanded=true]:hover{box-shadow:0 0 0 3px var(--nv-teal),var(--nv-shadow-hi)}
  .hm-hero.is-open .hm-tl--own{padding:0 0 11px}
  .hm-hero.is-open .hm-tl__x{padding:9px 6px 0}
  .hm-hero.is-open .hm-tl b{font-size:clamp(15px,2.2vh,19px);min-height:0}

  /* the bubble, over the tiles, pointing at the chosen one */
  .hm-dt{left:0;right:0;bottom:calc(100% + 14px)}
  .hm-dp{padding:16px 20px 18px}
  .hm-dp::after{bottom:-9px;width:18px;height:18px;margin-left:-9px}
  #dp-car{--ax:calc((100% - 24px) / 6)}
  #dp-own{--ax:calc(100% - (100% - 24px) / 6)}
  .hm-dp__h{gap:14px}
  .hm-dp__h img{width:80px;height:50px;border-radius:12px}
  .hm-dp__t b{font-size:22px;letter-spacing:-.02em}
  .hm-dp__t small{font-size:13.5px}
  .hm-dp__x:hover{background:var(--nv-field)}
  .hm-dp__s{display:block;margin-top:10px;font-size:15px;line-height:1.45}
  .hm-dp__f{gap:8px;margin-top:12px}
  .hm-dp__f li{min-height:32px;padding:0 12px 0 9px;gap:6px;font-size:13.5px}
  .hm-dp__f svg{width:15px;height:15px}
  .hm-dp__go{margin-top:14px;min-height:50px}

  /* the live card: the hero's grid cell, right, on the tiles' bottom line */
  .hm-live{grid-row:1;grid-column:1;align-self:end;justify-self:end;position:relative;z-index:4;
    width:var(--lvw);margin:0 calc((100% - var(--cw)) / 2) var(--pb) 0;
    max-height:calc(100svh - var(--hd) - var(--tk) - 24px - var(--pb));
    display:flex;flex-direction:column;overflow:hidden;background:rgba(255,255,255,.97);box-shadow:var(--nv-shadow-hi)}
  .hm .hm-live{padding:18px 20px 16px}
  .hm-live .nv-card__h{flex:none;margin-bottom:4px}
  .hm-live .nv-card__h h2{font-size:clamp(21px,3vh,26px)}
  .hm-live .hm-rows{flex:none;clip-path:inset(1px 0 0)}
  /* every row draws its rule on top; the list clips the first one (in each
     column), whichever rows are showing */
  .hm .hm-live .pr{position:relative;min-height:0;padding:clamp(8px,1.5vh,14px) 8px;border-top:0}
  .hm .hm-live .pr::before{content:"";position:absolute;left:8px;right:8px;top:0;border-top:1px solid var(--nv-line)}
  .hm .hm-live .pr:hover::before,.hm .hm-live .pr:hover+.pr::before{border-color:transparent}
  .lv.has-live .pr[data-s=stale],.lv .pr.is-cut{display:none}
  .hm .hm-live .more{flex:none;margin-top:10px}
  .hm .hm-live .fn{flex:none;margin-top:10px}

  /* below the fold: Find a crossing across, then the boat band */
  .hm-find{grid-row:2;grid-column:1;justify-self:center;width:var(--cw);margin-top:clamp(20px,4vh,40px)}
  .hm-band{grid-row:3;grid-column:1;width:100%}
  .hm-plan{grid-row:4;grid-column:1;width:100%}
}
/* tablet portrait: the card across the width under the tiles, its rows in
   two columns; the hero leaves room for it (--lvh, measured by live.js) */
@media(min-width:700px) and (max-width:1099px) and (orientation:portrait){
  .hm-hero{padding-bottom:calc(var(--pb) + var(--lvh,280px) + 14px)}
  .hm .nv-h1{font-size:clamp(34px,min(6.4vw,5vh),60px)}
  .hm .nv-lead{font-size:clamp(16px,2.4vw,21px)}
  .hm-say{padding-bottom:54px}
  .hm-tiles{width:var(--cw);--th:clamp(96px,12svh,190px);--bh:clamp(76px,8.8svh,130px);--ths:clamp(64px,8svh,120px)}
  .hm-live{width:var(--cw);justify-self:center;max-height:none;margin:0 0 var(--pb);
    display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:20px;align-items:center}
  .hm-live>.nv-card__h,.hm-live>.hm-rows{grid-column:1/-1}
  .hm-live .hm-rows{display:grid;grid-template-columns:1fr 1fr;column-gap:28px;margin:0}
  .hm .hm-live .more{width:auto;margin-top:12px;padding:0 24px}
  .hm .hm-live .fn{margin-top:12px}
}
/* when the first screen does not fit the window, live.js steps the hero down
   (fit-1, fit-2, fit-3) until it does: smaller tiles, then the tiles start as
   the row of three, then the lead gives way. Short windows (landscape
   phones) also get a slimmer header and ticker. */
@media(min-width:700px){
  .hm-hero.fit-1 .hm-tiles{--th:clamp(80px,14svh,200px);--bh:clamp(64px,10svh,120px)}
  .hm-hero.fit-1 .hm-fn{display:none}
  .hm-hero.fit-2 .hm-say{padding-bottom:16px}
  .hm-hero.fit-2 .hm-hint{display:none}
  .hm-hero.fit-2 .hm-tl-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hm-hero.fit-2 .hm-tl--own{grid-column:auto;flex-direction:column;align-items:stretch;padding:0 0 11px;text-align:center;height:auto}
  .hm-hero.fit-2 .hm-tl__i,.hm-hero.fit-2 .hm-tl--own .hm-tl__i{width:auto;height:var(--ths)}
  .hm-hero.fit-2 .hm-tl small{display:none}
  .hm-hero.fit-2 .hm-tl__x,.hm-hero.fit-2 .hm-tl--own .hm-tl__x{padding:9px 6px 0}
  .hm-hero.fit-2 .hm-tl b{font-size:clamp(15px,2.2vh,19px)}
  .hm-hero.fit-2 .hm-dp__s{display:none}
  .hm-hero.fit-2.is-tight .hm-dp__s{display:block}
  .hm-hero.fit-3 .nv-lead{display:none}
}
@media(min-width:700px) and (max-height:560px){
  :root{--hd:56px;--tk:34px}
  body.tk-mo{--tk:52px}
  .hm-tk{font-size:13px}
  .hm-say{padding-top:12px}
  .hm .nv-h1{font-size:clamp(26px,min(4vw,8vh),40px)}
  .hm .nv-lead{font-size:15px}
  .hm-tiles{--ths:clamp(52px,14svh,90px)}
  /* the bubble keeps to its name and its button: there is no sky for more */
  .hm-dp__s,.hm-dp__f{display:none!important}
  .hm-dp__go{margin-top:10px}
}

/* the headline's comma and full stop tuck in a hair (live.js wraps them) */
.hm .nv-h1 .pt{margin-left:-.07em}

/* live card with moorings: a label over each group */
.hm-grp{margin:10px 0 2px;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--nv-mute)}
.hm-grp:first-child{margin-top:2px}
.hm-grp--mo{display:none;padding-top:10px;border-top:1px solid var(--nv-line,#e3ecf2)}
.hm-rows:has(.pr.mo:not(.is-cut)) .hm-grp--mo{display:block}
.hm .hm-live.no-fn .fn{display:none}
.hm-grp{grid-column:1/-1}

/* 700px and wider: the live card sits on the first screen, so no ticker there;
   the strip is for phones only */
@media(min-width:700px){
  :root,body.tk-mo{--tk:0px}
  .hm-tk{display:none}
}

/* Phones: the three tiles on the first screen are the way in, so the
   sections below that repeat them (the travel list, Find a crossing, the
   own-boat band) go. The link lists stay for readers and crawlers, as
   wrapping chips instead of one link a line. */
@media (max-width:699px){
  .hm-trav,.hm-find,.hm-band{display:none}
  .hm-plan>p{display:none}
  .hm-plan__g{gap:14px}
  .hm-plan ul{display:flex;flex-wrap:wrap;gap:6px}
  .hm-plan li a{display:inline-block;padding:5px 11px;border-radius:999px;background:#fff;border:1px solid #d7e6ee;text-decoration:none;font-size:14px}
}
