/* Map-first planner: the map carries the page, controls float over it, panels are
   near-white with hairline borders. Demand colours are shared with the workbench. */
:root{--ink:#193d35;--body:#344941;--muted:#5f6b62;--soft:#4f5d54;--line:#d6dcd1;--edge:rgba(25,61,53,.3);
--ground:#f8f6f0;--panel:#fffdf7;--wash:#e9eee3;--rust:#8f4b30;--rustwash:#f2e6d8;--water:#dce8e6;
--l0:#397d68;--l1:#b08b2d;--l2:#bb663b;--l3:#943a42;--none:#9aa3a1;--help:#2f6b58;
--serif:'Iowan Old Style','Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;
--sans:'Avenir Next',Avenir,'Segoe UI',Helvetica,sans-serif}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--ground);color:var(--body);font:15px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
a{color:var(--ink);text-underline-offset:4px}
a:hover{color:var(--rust)}
button,input,select{font:inherit;color:inherit}
button,select,summary,a{-webkit-tap-highlight-color:transparent}
button,select,summary{cursor:pointer}
:focus-visible{outline:3px solid var(--rust);outline-offset:2px}
h1,h2,h3,p{margin:0}
[hidden]{display:none!important}
.num{font-variant-numeric:tabular-nums}
.serif{font-family:var(--serif);font-weight:500;color:var(--ink)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip-link{position:absolute;top:-100px;left:16px;background:var(--panel);padding:12px;z-index:2000}
.skip-link:focus{top:12px}
.float{background:var(--panel);border:1px solid var(--edge);border-radius:3px;box-shadow:0 1px 2px rgba(25,61,53,.12)}
.flat{background:var(--panel);border:1px solid var(--edge);border-radius:3px}

/* Top bar */
.topbar{display:flex;align-items:center;gap:16px 20px;flex-wrap:wrap;padding:14px 20px;z-index:1000}
.home .topbar{position:absolute;inset:0 0 auto 0;pointer-events:none}
.home .topbar>*{pointer-events:auto}
.home[data-view=list] .topbar,.page .topbar{position:static;border-bottom:1px solid var(--line);background:var(--ground)}
/* The logo is a mark without the wordmark at every width (D111 item 1); its name is the link's label. */
.wordmark{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;flex:none;text-decoration:none;color:var(--ink)}
.wordmark svg{width:26px;height:26px;fill:currentColor;flex-shrink:0}
.home[data-view=list] .wordmark,.page .wordmark{background:none;border-color:transparent;box-shadow:none;justify-content:flex-start;width:32px}
.grow{flex:1 1 0}
.controls{display:flex;align-items:stretch;min-height:48px}
.controls .fld{display:flex;flex-direction:column;justify-content:center;gap:0;padding:4px 14px;border-right:1px solid var(--line);min-width:0}
.controls .fld:last-child{border-right:0}
.controls .lab{font-size:12px;line-height:1.3;color:var(--muted);white-space:nowrap}
.controls input,.controls select{border:0;background:transparent;padding:0;margin:0;font-size:15px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums;min-height:22px;max-width:100%;border-radius:0}
.controls input[type=number]{width:56px}
.controls input[type=time]{width:112px}
.controls input[type=date]{width:136px}
.controls select{padding-right:4px}
/* Focus in the plan controls is quiet ink, not the rust box (owner, 2026-10-03: the box showed on every click
   or tap into a field and crowded the values). A field being edited is washed; keyboard focus on a field's own
   input adds an ink line under it, and popover boxes and menus carry their own ink ring. */
.controls .fld:focus-within{background:var(--wash)}
.controls :focus-visible{outline-width:2px;outline-color:var(--ink)}
.controls input:focus-visible,.controls select:focus-visible{outline:0}
.controls .fld:has(>input:focus-visible,>select:focus-visible,>.inline>input:focus-visible){box-shadow:inset 0 -2px 0 var(--ink)}
.controls .pop input:focus-visible,.controls .pop select:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.step{width:44px;min-height:46px;border:0;border-right:1px solid var(--line);background:none;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.step:hover{background:var(--wash)}
.step svg,.link-back svg{width:16px;height:16px}
.view{display:flex;gap:2px;height:48px;padding:3px}
.view a{display:flex;align-items:center;padding:0 18px;font-size:14px;font-weight:600;text-decoration:none;border-radius:2px;color:var(--ink)}
.view a[aria-current=page]{background:var(--ink);color:var(--panel)}
.link-back{display:flex;align-items:center;gap:6px;min-height:48px;font-size:14px;font-weight:600;text-decoration:none}
.button{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 18px;background:var(--ink);color:var(--panel);font-size:14.5px;font-weight:600;text-decoration:none;border:0;border-radius:2px}
.button:hover{background:#0f2b25;color:var(--panel)}
.button.quiet{background:var(--panel);color:var(--ink);border:1px solid rgba(25,61,53,.45);min-height:44px;padding:0 16px;font-size:14px}
.button.quiet:hover{background:var(--wash);color:var(--ink)}
.button svg{width:16px;height:16px;flex-shrink:0}
.text-link{font-size:14px}

/* Demand marks: height rises with demand so colour is never the only signal */
.strip{display:flex;align-items:flex-end;gap:0;height:24px}
.strip i{display:block;flex:1 1 0;min-width:0}
.lv0{height:8px;background:var(--l0)}.lv1{height:13px;background:var(--l1)}.lv2{height:18px;background:var(--l2)}.lv3{height:24px;background:var(--l3)}
.lvn{height:8px;background:repeating-linear-gradient(135deg,#7b8586 0 2px,rgba(123,133,134,.25) 2px 5px)}
.stop{height:2px;background:rgba(25,61,53,.4)}
.lv0.part{background:repeating-linear-gradient(135deg,var(--l0) 0 3px,#397d68b0 3px 6px)}
.lv1.part{background:repeating-linear-gradient(135deg,var(--l1) 0 3px,#b08b2db0 3px 6px)}
.lv2.part{background:repeating-linear-gradient(135deg,var(--l2) 0 3px,#bb663bb0 3px 6px)}
.lv3.part{background:repeating-linear-gradient(135deg,var(--l3) 0 3px,#943a42b0 3px 6px)}
.mark{display:inline-block;width:10px;flex-shrink:0}
.band{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink)}

/* Home: map */
.home{overflow:hidden}
.home main{position:absolute;inset:0}
#map{position:absolute;inset:0;background:var(--water);z-index:0}
.home[data-view=list] #map,.home[data-view=list] #key,.home[data-view=list] #panel{display:none}
.leaflet-tile-pane{filter:saturate(.4) contrast(.94) brightness(1.04)}
.leaflet-container{font-family:var(--sans);color:var(--ink);background:var(--water)}
.leaflet-control-attribution{font-size:11px!important;background:rgba(255,253,247,.85)!important}
.leaflet-control-attribution a{color:#304c45}
.leaflet-bar{border:1px solid var(--edge)!important;border-radius:3px!important;box-shadow:0 1px 2px rgba(25,61,53,.12)!important}
.leaflet-bar a{width:44px!important;height:44px!important;line-height:44px!important;color:var(--ink)!important;background:var(--panel)!important;border-bottom-color:var(--line)!important}
.leaflet-bottom.leaflet-right{margin-bottom:14px;margin-right:10px}
.layers-control{background:var(--panel);font:13px/1.35 var(--sans);color:var(--ink)}
.layers-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:auto;padding:0;border:0;border-radius:3px;background:var(--panel);color:var(--ink);cursor:pointer}
.layers-button[aria-expanded=true]{background:var(--ink);color:var(--panel);border-radius:3px 3px 0 0}
.layers-panel{padding:10px 12px 8px;width:230px;max-width:calc(100vw - 80px);max-height:min(60vh,420px);overflow:auto}
.layers-panel fieldset{border:0;margin:0 0 8px;padding:0}
.layers-panel legend{font-weight:700;padding:0;margin-bottom:2px}
.layers-panel label{display:flex;gap:8px;align-items:flex-start;min-height:36px;padding:4px 0;cursor:pointer}
.layers-panel input{margin:3px 0 0;width:18px;height:18px;accent-color:var(--ink);flex:none}
.layers-panel small{display:block;color:var(--muted);font-size:12px}
.layers-panel p{margin:0;color:var(--muted);font-size:12px}
/* The staff currents layer (WP04p): its key under the Layers box while it is on, and its time scrubber. */
.layers-key{margin:-2px 0 8px 26px;font-size:12px;line-height:1.3;color:var(--body)}
.layers-panel .layers-key p{margin:0 0 4px}
.layers-panel .layers-key .ck-title{margin-top:8px;color:var(--body)}
.layers-key .ck-bands,.layers-key .ck-ticks{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px}
.layers-key .ck-bands i{display:block;height:10px}
.layers-key .ck-ticks{margin:2px 0 6px;font-size:10px;color:var(--muted);text-align:center;white-space:nowrap}
.layers-key .ck-row{display:flex;align-items:center;gap:8px;min-height:22px;margin-bottom:2px}
.layers-key .ck-row svg{flex:none;display:block}
.layers-panel .layers-key .ck-note{margin:4px 0 0}
.currents-time{position:absolute;left:72px;bottom:40px;z-index:940;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;column-gap:8px;width:400px;box-sizing:border-box;padding:3px 10px;font-size:13px;color:var(--ink)}
.currents-time[hidden],.home[data-view=list] .currents-time{display:none}
.currents-time .ct-name{color:var(--muted)}
.currents-time .ct-clock{min-width:2.8em;font-weight:700}
.currents-time input{width:100%;min-height:32px;margin:0;accent-color:var(--ink)}
.currents-time input:focus-visible{outline:3px solid var(--rust);outline-offset:1px}
.currents-time .ct-note{grid-column:1/-1;padding-bottom:3px;font-size:12px;color:var(--muted)}
.currents-time .ct-note:empty{display:none}
.map-readout{position:absolute;z-index:3;left:12px;right:12px;top:112px;padding:8px 10px;font:600 13px/1.4 var(--sans);color:var(--ink);background:var(--panel);border:1px solid var(--edge);border-radius:3px;pointer-events:none}
@media(min-width:981px){.home[data-currents] .regional-map-notice{bottom:92px}}
@media(max-width:980px){
 .currents-time{top:72px;bottom:auto;left:12px;width:min(400px,calc(100% - 430px))}
 .home[data-currents] .day-note{top:120px}
}
@media(max-width:760px){
 .currents-time{top:64px;right:12px;width:auto}
 .home[data-currents] .day-note{top:112px}
}
.fullscreen-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:3px;background:var(--panel);color:var(--ink);cursor:pointer}
.fullscreen-button:hover{background:var(--wash)}
.leaflet-container.map-full{position:fixed!important;inset:0;width:100vw!important;height:100vh!important;height:100dvh!important;z-index:5000;border:0;border-radius:0}
.map-full-open,.map-full-open body{overflow:hidden}
.leaflet-control-scale-line{border-color:var(--ink);color:var(--ink);background:rgba(255,253,247,.7);font-size:12px}
.leaflet-tooltip{font:600 13px var(--sans);color:var(--ink);border:1px solid var(--edge);border-radius:2px;box-shadow:none;background:var(--panel)}
.launch-icon{background:var(--panel);border:2.5px solid var(--ink);border-radius:50%}
.lunch-icon{background:var(--ink);border:2px solid var(--panel);transform:rotate(45deg)}
.way-icon{color:var(--panel);font-size:13px;line-height:14px;text-align:center;text-shadow:0 0 2px rgba(0,0,0,.55)}
.c0{background:var(--l0)}.c1{background:var(--l1)}.c2{background:var(--l2)}.c3{background:var(--l3)}.cn{background:var(--none)}
#problem{position:absolute;left:50%;top:84px;transform:translateX(-50%);z-index:1200;padding:12px 16px;background:var(--rustwash);border:1px solid var(--rust);border-radius:3px;color:#713e28;font-size:14px;max-width:min(560px,calc(100% - 40px))}

/* Home: selected route panel */
#panel{position:absolute;right:20px;top:80px;width:384px;max-height:calc(100% - 80px - 130px);overflow:auto;z-index:950;padding:20px 22px 18px;display:flex;flex-direction:column;gap:16px}
#panel.route{padding:18px 22px;gap:12px}
#panel h2{font:500 24px/1.15 var(--serif);letter-spacing:-.4px;color:var(--ink)}
#panel .sub{font-size:14px;color:var(--soft);margin-top:4px}
#panel .head{display:flex;align-items:flex-start;gap:10px}
#panel .head>div{flex:1 1 0;min-width:0}
.close{width:44px;height:44px;margin:-10px -12px 0 0;border:0;background:none;color:var(--ink);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.close:hover{background:var(--wash)}
.block{border-top:1px solid var(--line);padding-top:14px;display:flex;flex-direction:column;gap:6px}
.block p{font-size:14px;line-height:1.5}
.block .note{font-size:13px;color:var(--muted)}
.block h3{font:600 13px/1.4 var(--sans);color:var(--ink)}
.actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
/* The selected route card (D132, WP04k): title to route detail, day level first, then the strip,
   the hardest stretch and rows that open one at a time. */
#panel h2 .title{display:inline-flex;align-items:center;gap:6px;color:var(--ink);text-decoration:none}
#panel h2 .title:hover{text-decoration:underline;text-decoration-thickness:1px}
#panel h2 .title svg{flex:none}
.levelrow{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;line-height:22px}
.lvbadge{flex:none;font-weight:700;font-size:13px;line-height:24px;padding:0 8px;border-radius:2px;white-space:nowrap}
.lvbadge.off{background:repeating-linear-gradient(135deg,#e6e8e4 0 2px,var(--panel) 2px 5px);color:var(--soft);font-weight:600;line-height:22px;border:1px solid var(--line)}
.epill{display:inline-flex;border:1px solid var(--line);border-radius:2px;overflow:hidden;white-space:nowrap}
.epill .ek{padding:0 6px;color:var(--muted)}
.epill .ev{padding:0 7px;font-weight:600;color:var(--ink)}
.epill .ev.off{background:repeating-linear-gradient(135deg,#e6e8e4 0 2px,var(--panel) 2px 5px);color:var(--soft);font-weight:500}
.levelrow.pending .epill,.levelrow.pending .lvbadge{outline:1px dotted var(--muted);outline-offset:1px}
.cardline{cursor:crosshair;touch-action:pan-y;border-radius:2px}
.cstrip{position:relative;height:34px}
.cstrip .cursor{position:absolute;top:8px;bottom:0;width:2px;margin-left:-1px;background:var(--ink);pointer-events:none}
.scrub-mark{border-radius:50%;background:var(--panel);border:3px solid var(--ink);box-sizing:border-box;box-shadow:0 0 0 2px rgba(255,253,247,.85)}
.cstrip .strip{position:absolute;left:0;right:0;bottom:0}
.cstrip .pin{position:absolute;top:0;width:0;height:0;margin-left:-5px;border:solid transparent;border-width:7px 5px 0;border-top-color:var(--ink)}
.cstrip .gap{position:absolute;bottom:6px;transform:translateX(-50%);font-size:11px;line-height:1;color:var(--muted)}
.ctimes{position:relative;height:18px;margin-top:5px;font-size:12.5px;line-height:18px;color:var(--soft)}
.ctimes>span{position:absolute;top:0;white-space:nowrap}
.ctimes .l{left:0}.ctimes .m{transform:translateX(-50%)}.ctimes .r{right:0}
.hs-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.hs-head span{font-size:13px;color:var(--soft)}
.block .peak{display:flex;align-items:center;gap:7px}
.peak .mark{height:10px}
.xrows{border-top:1px solid var(--line)}
.xrow{border-bottom:1px solid var(--line)}
.xhead{width:100%;min-height:44px;display:flex;align-items:center;gap:10px;padding:0 4px 0 0;border:0;background:none;text-align:left;font:inherit;font-size:13px;color:var(--ink);cursor:pointer}
.xhead:hover{background:var(--wash)}
.xk{flex:none;width:104px;font-weight:600}
.xv{flex:1 1 0;min-width:0;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xhead svg{flex:none}
.xhead[aria-expanded=true] svg{transform:rotate(180deg)}
.xbody{padding:0 0 12px}
.xbody p{font-size:14px;line-height:1.45}
.xbody .note{font-size:13px;line-height:1.4;color:var(--muted);margin-top:5px}
.hatch{display:inline-block;width:14px;height:10px;margin-right:6px;vertical-align:-1px;background:repeating-linear-gradient(135deg,var(--l0) 0 3px,#397d68b0 3px 6px)}
.ltimes{display:flex;border:1px solid var(--line);border-radius:2px;overflow:hidden}
.ltime{flex:1 1 0;min-width:0;min-height:50px;border:0;border-right:1px solid var(--line);background:var(--panel);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 0;font:inherit;font-size:13.5px;line-height:1.2;cursor:pointer}
.ltime:last-child{border-right:0}
.ltime small{font-size:11px;line-height:1.2;color:var(--muted)}
.ltime.easier small{color:var(--help);font-weight:600}
.ltime.harder small{color:var(--rust);font-weight:600}
.ltime.blocked small{color:var(--rust);font-weight:600}
/* Not paddleable (D134) leads the card and the route page; the level's floor follows the level row. */
.notpad{padding:9px 12px;border:1px solid var(--rust);border-radius:2px;background:var(--rustwash);color:#713e28;font-size:14px;line-height:1.45}
.notpad b{font-weight:700}
#notpad:empty{display:none}
.floornote{font-size:12.5px;line-height:1.4;color:var(--soft);margin-top:4px}
.ltime:hover{background:var(--wash)}
.ltime[aria-pressed=true]{background:var(--ink);color:var(--panel);font-weight:700}
.ltime[aria-pressed=true] small{color:var(--panel);font-weight:400}

/* Home: list */
#list{display:none}
.home[data-view=list]{overflow:auto}
.home[data-view=list] main{position:static;display:flex;flex-direction:column}
.home[data-view=list] #list{display:block;padding:26px 40px 8px}
.list-head{display:flex;align-items:baseline;gap:8px 20px;flex-wrap:wrap;padding-bottom:16px}
.list-head h1{font:500 29px/1.15 var(--serif);letter-spacing:-.6px;color:var(--ink)}
.list-head p{font-size:14px;color:var(--muted)}
.rows{display:grid;grid-template-columns:minmax(220px,1.2fr) 76px 84px minmax(280px,560px) minmax(200px,1fr);column-gap:22px}
.rows .hrow,.rows .row{display:grid;grid-template-columns:subgrid;grid-column:1/-1;align-items:center}
.rows .hrow{align-items:end;padding-bottom:8px;border-bottom:1px solid var(--ink);font-size:12.5px;color:var(--muted)}
.rows .row{min-height:88px;padding:10px 0;border-bottom:1px solid var(--line);text-decoration:none;color:var(--body)}
.rows .row:hover{background:var(--wash);color:var(--body)}
.rows .name,.rows .sub,.why{display:block}
.rows .name{font:400 20px/1.2 var(--serif);letter-spacing:-.3px;color:var(--ink)}
.rows .sub{font-size:13.5px;color:var(--muted);margin-top:3px}
/* Not yet reviewed: a promoted route's status under its origin words (D90) */
.review{font-size:13px;line-height:1.35;color:var(--muted);font-style:italic}
.rows .review{display:block;margin-top:2px}
#panel .review{margin-top:2px}
.list-head .review{flex-basis:100%;order:3;font-size:13px}
.rows .val{font-size:15px;color:var(--ink)}
.axis{display:flex;font-size:12.5px}
.axis span{flex:1 1 0;border-left:1px solid #c3ccc0;padding-left:4px;min-width:0;overflow:hidden}
.clock{position:relative;height:40px}
.clock .strip{position:absolute;bottom:8px}
.clock .tick{position:absolute;top:0;bottom:0;width:1px;background:#d9dfd4}
.why{font-size:13.5px;line-height:1.4;color:var(--soft);margin-top:2px}
.keyline{display:flex;align-items:center;gap:10px 26px;flex-wrap:wrap;padding:16px 0;font-size:13px;color:var(--soft)}
.keyline span{display:flex;align-items:center;gap:8px}
.keyline i{display:block;width:22px}

/* Pages: route detail and best days */
.page main{padding:28px 40px 60px;max-width:1440px;margin:0 auto}
/* Route detail (D133, WP04l): the first screen tells the day beside a large map. */
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,560px);gap:28px 44px;align-items:start;margin-bottom:40px}
.hero-text{min-width:0;display:flex;flex-direction:column;gap:16px}
.hero-text h1{font:500 38px/1.1 var(--serif);letter-spacing:-.8px;color:var(--ink);margin-top:2px}
.hero-text .dayline{font-size:14px;color:var(--soft)}
.hero-text .facts{font-size:15.5px;color:var(--soft);margin-top:8px}
.hero-text .review{margin-top:4px}
.hero-text .easier{margin-top:10px}
.hero-text .notpad{margin-top:12px}
.hero-text .levelrow{font-size:13px;line-height:24px}
.hero-text .lvbadge{font-size:14px;line-height:28px;padding:0 10px}
.hero-map{position:sticky;top:16px;min-width:0}
.hero-map #trip-map{height:min(720px,calc(100vh - 120px));min-height:420px}
.launch-site{display:flex;gap:12px;align-items:flex-start;padding:12px 14px 14px;border:1px solid var(--line);border-radius:3px;background:var(--panel)}
.launch-site .pinmark{flex:none;width:18px;height:18px;margin-top:3px;color:var(--ink)}
.launch-site>div{flex:1 1 auto;min-width:0}
.launch-site h2{font:600 15px/1.4 var(--sans);color:var(--ink)}
.launch-site p{font-size:14px;line-height:1.45;margin-top:2px}
.launch-site .note{font-size:12.5px;color:var(--muted)}
.launch-site .actions{margin-top:10px;gap:8px 16px}
.launch-site .button{min-height:40px;padding:0 14px;font-size:14px}
/* Photos of the launch (WP21d): thumbnails that open the large size in a dialog, each with its date, tide and credit. */
.spot-photos{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.photo-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:14px 12px}
.photo-list li{min-width:0}
.photo-thumb{display:block;aspect-ratio:4/3;border-radius:3px;overflow:hidden;background:var(--wash)}
.photo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.launch-site .photo-cap,.photo-dialog .photo-cap{font-size:12.5px;line-height:1.4;color:var(--muted);margin-top:6px}
.photo-cap b{display:block;font-weight:600;color:var(--ink)}
.photo-cap span{display:block}
.launch-site .spot-photos>.note{margin-top:10px}
.photo-dialog{width:min(980px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:0;border:1px solid var(--edge);border-radius:6px;background:var(--panel);color:var(--body);box-shadow:0 8px 30px rgba(25,61,53,.25)}
.photo-dialog::backdrop{background:rgba(25,61,53,.55)}
.photo-frame{display:flex;flex-direction:column;gap:10px;padding:12px 16px 16px}
.photo-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.photo-head h2{font:600 15px/1.4 var(--sans);color:var(--ink);min-width:0}
.photo-head .button{flex:none;min-height:40px;padding:0 14px;font-size:14px}
.photo-frame img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 190px);margin:0 auto;background:var(--wash)}
.photo-dialog .photo-cap{margin-top:0;font-size:13px}
/* On a phone the photos take the block's whole width, under the pin too, two to a row. */
@media(max-width:520px){.launch-site .spot-photos{margin-left:-30px}.photo-list{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}.photo-frame{padding:10px 12px 12px}}
.text-link.plain{border:0;background:none;padding:0;min-height:44px;font:inherit;font-size:14px;color:var(--ink);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.hero-text .cstrip{height:40px}
.hero-text .hs{padding-top:12px}
.hero-text .hs h2{font:600 14px/1.4 var(--sans);color:var(--ink)}
.hero-text .hs p{font-size:15px}
.tripfacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border-top:1px solid var(--line);padding-top:12px}
.tripfacts .k{font-size:12.5px;color:var(--muted)}
.tripfacts .v{font-size:14.5px;line-height:1.35;color:var(--ink)}
.hero-text .xk{width:120px;font-size:14px}
.hero-text .xv{font-size:14px}
.hero-text .xhead{min-height:46px}
.daytiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.daytile{display:flex;flex-direction:column;gap:6px;min-height:84px;padding:8px 10px;border:1px solid var(--line);border-radius:2px;background:var(--panel);color:var(--ink);text-decoration:none;font-size:13px}
.daytile:hover{background:var(--wash);color:var(--ink)}
.daytile[aria-current=true]{border:1.5px solid var(--ink);font-weight:700}
.daytile .dlv{display:flex;align-items:center;gap:5px;font-size:11.5px;line-height:18px;font-weight:400}
.daytile .strip{margin-top:auto;height:16px}
.lvchip{padding:0 5px;border-radius:2px;font-weight:700}
.lvchip.off{background:repeating-linear-gradient(135deg,#e6e8e4 0 2px,var(--panel) 2px 5px);color:var(--soft);font-weight:500}
.rel{font-weight:600;color:var(--muted)}
.rel.easier{color:var(--help)}.rel.harder,.rel.blocked{color:var(--rust)}
.calmenu{position:relative}
.calmenu .chev{width:12px;height:12px}
.calmenu [aria-expanded=true] .chev{transform:rotate(180deg)}
.calpanel{position:absolute;left:0;top:calc(100% + 6px);z-index:30;width:300px;padding:12px;display:flex;flex-direction:column;box-shadow:0 4px 14px rgba(25,61,53,.18)}
.calpanel[hidden]{display:none}
.calpanel .cal{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:0 8px;border-radius:2px;color:var(--ink);font-size:14px;font-weight:600;text-decoration:none}
.calpanel .cal span{font-size:12px;font-weight:400;color:var(--muted)}
.calpanel .cal:hover{background:var(--wash)}
.calpanel .note{font-size:12px;line-height:1.4;color:var(--muted);margin:8px 2px 0;padding-top:8px;border-top:1px solid var(--line)}
.launch-label{position:relative;pointer-events:none}
.launch-label span{position:absolute;left:0;bottom:9px;transform:translateX(-50%);padding:2px 7px;background:var(--ink);color:var(--panel);font-size:12px;font-weight:600;line-height:18px;border-radius:2px;white-space:nowrap}
.launch-label span::after{content:'';position:absolute;left:50%;top:100%;width:2px;height:8px;margin-left:-1px;background:var(--ink)}
.clockwork>h2{font:600 16px/1.4 var(--sans);color:var(--ink);margin-bottom:10px}
/* Six cells in fixed columns, a line or two each, so the page below stays still as the cursor moves. */
.readout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.25fr) minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1.05fr) minmax(0,.9fr);gap:10px 22px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.45}
.readout>div{min-width:0;min-height:78px}
.readout .k,.readout .s{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.readout .v{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.readout .k{font-size:12.5px;color:var(--muted)}
.readout .v{color:var(--body)}
.readout .s{font-size:12.5px;color:var(--soft);margin-top:2px}
.readout .eff{display:flex;align-items:center;gap:7px;color:var(--ink);font-weight:600}
.readout .eff .mark{height:10px}
.readout .eff .mark.stop{height:2px}
.stswitch{position:relative;z-index:2;display:flex;align-items:center;gap:10px;min-height:36px;font-size:12.5px;color:var(--soft)}
.stswitch .pills{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:var(--wash)}
.stswitch .pill{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--soft);font:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer}
.stswitch .pill small{font-size:11px;color:#7b8586}
.stswitch .pill[aria-pressed=true]{background:var(--panel);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(25,61,53,.22)}
.stswitch .pill[aria-pressed=true] small{color:#4c6a72}
.splot{position:relative}
.detail{display:grid;grid-template-columns:minmax(0,1fr) 440px;column-gap:48px;align-items:start;margin-top:40px}
.detail .sections{min-width:0}
.tracks{position:relative}
.track{display:grid;grid-template-columns:150px minmax(0,1fr);border-top:1px solid var(--line);padding:14px 0 12px}
.track:first-of-type{border-top-color:var(--ink)}
.track .tl b{display:block;font-size:14px;font-weight:600;color:var(--ink)}
.track .tl span{display:block;font-size:12px;line-height:1.35;color:var(--muted);padding-right:14px;margin-top:2px}
.track svg{display:block;width:100%;overflow:visible}
.track .plot{position:relative;min-width:0}
.track .plot p.none{font-size:13px;line-height:1.4;color:var(--muted);padding:4px 0}
.track .plot p.key{font-size:12px;line-height:1.35;color:var(--muted);margin-top:6px}
.track .plot p.key svg{display:inline-block;width:10px;height:10px;margin-right:4px;vertical-align:-1px}
.ax{font:11.5px var(--sans);fill:var(--muted);font-variant-numeric:tabular-nums}
.ax.strong{fill:var(--ink);font-weight:600}
.cursor{position:absolute;top:0;bottom:0;width:0;border-left:1.5px solid var(--ink);pointer-events:none}
.cursor b{position:absolute;top:-2px;left:6px;font-size:12px;font-weight:600;color:var(--ink);background:var(--ground);padding:0 4px;white-space:nowrap}
/* The value under the cursor line, one tag per chart, sitting at the height of its curve. */
.plot .val{position:absolute;font-size:12px;line-height:16px;font-weight:600;color:var(--ink);background:var(--ground);padding:0 4px;white-space:nowrap;pointer-events:none;box-shadow:0 0 0 1px var(--line)}
.plot .val.soft,.plot .val.ashore{color:var(--soft);font-weight:500}
.timeaxis{display:grid;grid-template-columns:150px minmax(0,1fr);border-top:1px solid var(--ink);padding-top:6px;font-size:12px;color:var(--soft)}
.timeaxis .plot{position:relative;height:18px}
.timeaxis .plot span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.timeaxis .plot span:first-child{transform:none}
.scrub{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;padding-top:10px}
.scrub label{font-size:12px;color:var(--muted)}
.scrub input{width:100%;accent-color:var(--ink);min-height:32px;margin:0}
.sections h2,.side h2{font:600 14px/1.4 var(--sans);color:var(--ink)}
.sections h2{padding-bottom:10px;border-bottom:1px solid var(--ink)}
.srow{display:grid;grid-template-columns:118px 16px minmax(120px,190px) minmax(0,1fr);column-gap:14px;align-items:center;min-height:44px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px;width:100%;border-width:0 0 1px;background:none;text-align:left;color:var(--body)}
.srow:hover{background:var(--wash)}
.srow.top{background:var(--rustwash)}
.srow.top .t{padding-left:8px}
.srow.top .n{font-weight:700}
.srow .t{color:var(--soft)}
.srow .n{color:var(--ink)}
.srow .n .d{font-weight:400;color:var(--soft)}
.side{display:flex;flex-direction:column;gap:26px;min-width:0}
#trip-map{height:420px;border:1px solid var(--edge);border-radius:3px;background:var(--water);z-index:0}
.pairs{display:grid;grid-template-columns:96px minmax(0,1fr);row-gap:5px;font-size:14px;line-height:1.45}
.pairs dt{color:var(--muted)}
.pairs dd{margin:0}
.depart{display:grid;grid-template-columns:50px minmax(0,1fr) auto;column-gap:12px;align-items:center;min-height:44px;padding:0 10px;margin:0 -10px;border:1px solid transparent;border-radius:2px;background:none;text-align:left;text-decoration:none;color:var(--ink);font-size:14px}
.depart:hover{background:var(--wash);color:var(--ink)}
.depart[aria-current=true]{border-color:var(--ink);background:var(--panel);font-weight:700}
.depart small{font-size:13px;font-weight:400;color:var(--soft);white-space:nowrap}
.depart .clock{height:24px}
.depart .clock .strip{bottom:0}
details.sources{border-top:1px solid var(--line);padding-top:12px;font-size:13.5px}
details.sources summary{min-height:44px;display:flex;align-items:center;color:var(--ink);font-weight:600}
details.sources p,details.sources li{font-size:13.5px;line-height:1.5;margin-bottom:8px}
details.sources ul{padding-left:18px;margin:0}
.notice{background:var(--rustwash);color:#713e28;padding:12px 14px;font-size:14px;line-height:1.5;border-radius:2px;margin-bottom:20px}

/* Best days */
table.days{border-collapse:collapse;width:100%}
table.days th{font-size:12.5px;font-weight:400;color:var(--muted);text-align:left;padding:0 0 8px;border-bottom:1px solid var(--ink);vertical-align:bottom}
table.days th.t{text-align:center;width:60px;font-variant-numeric:tabular-nums}
table.days td{padding:12px 0;border-bottom:1px solid var(--line);vertical-align:middle}
table.days td.d{font-size:15px;font-weight:600;color:var(--ink);white-space:nowrap;padding-right:20px}
table.days td.c{padding:12px 2px;text-align:center}
.cell{display:flex;align-items:flex-end;justify-content:center;width:56px;height:44px;padding:0 0 5px;border:2px solid transparent;border-radius:2px;margin:0 auto}
.cell i{width:40px}
.cell:hover{background:var(--wash)}
.cell.best{border-color:var(--ink);background:var(--panel)}
table.days td.b{padding-left:26px;min-width:250px}
table.days td.b .strip{width:100%;max-width:300px;margin-top:5px}
table.days td.w{padding-left:26px;font-size:13.5px;line-height:1.45;color:var(--body);min-width:220px}
.scroll-x{overflow-x:auto}

@media(max-width:1100px){
.hero{grid-template-columns:minmax(0,1fr)}
.readout{grid-template-columns:repeat(3,minmax(0,1fr))}
.hero-map{position:static}
.hero-map #trip-map{height:460px;min-height:0}
.detail{grid-template-columns:minmax(0,1fr);row-gap:30px}
.rows{grid-template-columns:minmax(180px,1fr) 70px 76px minmax(240px,1.4fr)}
.rows .hrow>:nth-child(5){display:none}
.rows .row>:nth-child(5){grid-column:1/-1;padding-top:6px}
}
@media(max-width:760px){
body{font-size:15px}
.topbar{padding:10px 12px;gap:8px}
.wordmark svg{width:24px;height:24px}
.view{height:44px}.view a{padding:0 14px}
.controls{order:5;flex:1 1 100%;flex-wrap:wrap}
.controls .step{flex:0 0 44px;border-bottom:1px solid var(--line)}
.controls .fld{flex:1 1 0;padding:4px 10px}
.controls .fld.dayfld{flex:1 1 calc(100% - 88px);border-bottom:1px solid var(--line);border-right:1px solid var(--line)}
.controls #day-next{border-right:0}
.controls input,.controls select{font-size:16px}
.controls input[type=number]{width:100%}.controls input[type=time]{width:100%}
#panel{left:0;right:0;top:auto;bottom:77px;width:auto;max-height:52%;border-radius:0;border-width:1px 0 0;padding:16px 16px 14px;gap:14px}
#panel.route{padding:16px 16px 14px;gap:12px}
#panel.route .actions{position:sticky;bottom:-14px;z-index:1;margin:0 -16px -14px;padding:10px 16px 14px;background:var(--panel);border-top:1px solid var(--line)}
.leaflet-bottom.leaflet-right{margin-bottom:84px}
.leaflet-bar a{width:40px!important;height:40px!important;line-height:40px!important}
.layers-button,.fullscreen-button{width:40px;height:40px}
.home[data-view=list] #list{padding:18px 16px 4px}
.list-head h1{font-size:25px}
.rows{grid-template-columns:minmax(0,1fr) auto auto;column-gap:14px}
.rows .hrow{display:none}
.rows .row{padding:14px 0;row-gap:8px}
.rows .row>:nth-child(4),.rows .row>:nth-child(5){grid-column:1/-1;padding-top:0}
.rows .name{font-size:19px}
.page main{padding:18px 16px 48px}
.hero-text h1{font-size:28px}
.readout{grid-template-columns:repeat(2,minmax(0,1fr))}
.hero-map #trip-map{height:360px}
.tripfacts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.daytiles{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:104px;overflow-x:auto}
.hero-text .xk{width:104px}
.stswitch{flex-wrap:wrap}
.track,.timeaxis,.scrub{grid-template-columns:minmax(0,1fr)}
.track .tl{padding-bottom:8px}
.track .tl b,.track .tl span{display:inline}
.track .tl span{padding-left:6px}
.timeaxis>:first-child,.scrub label{display:none}
.timeaxis .plot span:last-child{display:none}
.srow{grid-template-columns:112px 14px minmax(0,1fr);row-gap:2px}
.srow .w{grid-column:1/-1}
table.days td.b,table.days td.w{min-width:200px}
}
@media(prefers-reduced-motion:no-preference){.day,.ltime,.xhead,.button,.step,.fbtn,.lvopt{transition:background-color .12s ease-out}}
@media print{.topbar .controls,.view,.account,.plan-pill,#key,.scrub{display:none}.leaflet-tile-pane{filter:none}}

.srow .where{display:block;font-weight:600;color:var(--ink)}
.srow .station{display:block;color:var(--soft);margin-top:2px}
.depart.way{grid-template-columns:minmax(0,1fr) 130px;row-gap:0;padding:6px 10px}
.depart.way b{font-weight:600}
.depart.way small{grid-column:1/-1;white-space:normal}
.depart.way .clock{position:relative}

/* The agreement page (WP12a): one card, readable at 320 px, the button reachable first. */
body.agree{background:var(--wash);min-height:100vh;margin:0}
.agree-main{max-width:640px;margin:0 auto;padding:24px 16px 48px}
.agree-head{display:flex;align-items:center;min-height:48px;margin-bottom:16px}
.agree-head .wordmark{position:static}
.agree-card{background:var(--panel);border:1px solid var(--line);border-radius:3px;padding:22px 20px 18px}
.agree-card h1{font-size:24px;line-height:1.2;margin:0 0 14px}
.agree-card p{font-size:15.5px;line-height:1.55;margin:0 0 12px}
.agree-card form{margin:18px 0 10px}
.agree-card .button{width:100%;justify-content:center;min-height:48px;font-size:16px}
.agree-card .button:focus-visible{outline:3px solid #c2410c;outline-offset:2px}
.agree-note{font-size:13px;color:var(--soft)}
.source-line{font-size:12.5px;line-height:1.5;color:var(--soft);padding:8px 16px 12px;max-width:900px}

/* While ashore the readout still shows the wind and current, muted: for interest, never a demand. */
.pairs dt.ashore,.pairs dd.ashore{color:var(--soft)}

/* The least effort way first (D81): a line under the headline pointing at an easier way today. */
.easier{margin:8px 0 0;padding:8px 12px;background:var(--wash);border-left:3px solid var(--ink);font-size:14px;line-height:1.45}
.easier a{color:var(--ink);font-weight:600}
.easier a.jump{margin-left:4px;font-weight:400;white-space:nowrap}
#ways-block{scroll-margin-top:16px}
.way .tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:2px;background:var(--ink);color:var(--panel);font-size:11.5px;font-weight:600;vertical-align:middle}
.rows .alt{display:block;color:var(--soft);font-size:12.5px}

/* Intensity and total work (D82, D83, WP13b): a proposal beside the adopted level. Each chip is a
   neutral key and the band word on the band colour; the text colour is set for contrast by shared.js. */
.echips{display:block;margin-top:5px}
.echips-in{display:flex;flex-wrap:wrap;gap:4px 6px}
.echip{display:inline-flex;align-items:stretch;font-size:12px;line-height:18px;border:1px solid var(--line);border-radius:2px;background:var(--panel);white-space:nowrap;max-width:100%}
.echip .ek{padding:0 5px;color:var(--muted)}
.echip .ev{padding:0 6px;font-weight:600;color:var(--ink);border-radius:0 1px 1px 0}
.echip .ev.off{background:repeating-linear-gradient(135deg,#e6e8e4 0 2px,var(--panel) 2px 5px);color:var(--soft);font-weight:500}
table.days td.d .echips-in{flex-direction:column;align-items:flex-start;font-weight:400}
.etable{border-collapse:collapse;font-size:13.5px;width:100%}
.etable th{text-align:left;font-weight:400;color:var(--muted);padding:4px 16px 4px 0;white-space:nowrap;vertical-align:top;width:1%}
.etable td{padding:4px 0;color:var(--body);border-bottom:1px solid var(--line)}
.etable th{border-bottom:1px solid var(--line)}
.fit{font-weight:600;color:var(--ink)}
.fit.no{color:var(--rust)}
@media(max-width:760px){
.etable th{white-space:normal;width:34%}
}

/* While the atlas pattern is still being read, the chips show the station-only words, outlined dotted. */
.echips.pending .echip{border-style:dotted;border-color:var(--muted)}
.echips.pending .ev{opacity:.8}
/* The day level chip (D85): neutral ink, no band colour. */
.echip.lvl{border-color:var(--ink)}
.echip.lvl .ev{color:var(--ink);font-weight:700}
.echip.lvl .ev.off{font-weight:500;color:var(--soft)}

.strip i.inu{height:8px;background:radial-gradient(circle,#7b8586 1.2px,transparent 1.6px) 0 50%/5px 8px repeat-x}

/* Section reasons on the map (hover, or tap on touch): terse, wrapped at phone width. */
.leaflet-tooltip.section-tip{white-space:normal;max-width:min(260px,calc(100vw - 48px));font-size:12.5px;line-height:1.35}
.section-tip .why-tip{font-weight:500;color:var(--body)}

/* Lighter chrome (DESIGN D111, WP04g): one floating bar over the map. The day opens a week menu with
   routes by level; difficulty and the finer filters are popovers; the key is a light round button.
   At 980 px and below the bar folds into a pill that opens the same controls as a panel from the top. */
.home .topbar{gap:12px 14px}
.home .bar{display:flex;align-items:stretch;height:44px;min-height:0;flex:0 1 auto;position:relative}
.home .bar .fld{flex-direction:row;align-items:center;gap:7px;padding:0 12px;position:relative}
.home .bar .lab{font-size:13px;color:var(--muted)}
.home .bar input,.home .bar select{font-size:15px;min-height:0}
.home .bar input[type=time]{width:auto;min-width:76px}
.home .bar input[type=number]{width:36px;text-align:right}
.home .bar .inline{display:flex;align-items:baseline;gap:4px}
.home .bar .unit{font-size:13px;color:var(--muted)}
.home .plan-only,.home .plan-head,.home .plan-foot,.home .plan-pill{display:none}
.home .plan{display:flex;min-width:0}
.home .dayfld{padding:0}
.home .dayrow{display:flex;align-items:stretch;height:100%}
.home .bar .step{width:36px;min-height:0;border:0}
.home .bar.week-mode .step{background:var(--wash)}
.home .day-open{display:flex;align-items:center;gap:6px;border:0;background:none;padding:0 4px;font-weight:600;font-size:15px;color:var(--ink);white-space:nowrap}
.home .day-open:hover,.home .fbtn:hover{background:var(--wash)}
.home .caret{width:11px;height:11px;flex:none}
.home .day-open[aria-expanded=true] .caret,.home .fbtn[aria-expanded=true] .caret{transform:rotate(180deg)}
.home .efilter{display:flex;align-items:stretch;border-left:1px solid var(--line)}
.home .efilter .fld{padding:0}
.home .fbtn{display:flex;align-items:center;gap:8px;height:100%;padding:0 12px;border:0;background:none;font-weight:600;font-size:14.5px;color:var(--ink);white-space:nowrap}
.home .fbtn[aria-expanded=true]{background:var(--wash)}
.home .fbtn .pre,.home .fbtn .to{font-weight:400;color:var(--muted)}
.home .fbtn .tune{width:16px;height:16px}
.home .fbtn .dot{width:7px;height:7px;border-radius:50%;background:var(--ink)}
.home .filtersfld{border-left:1px solid var(--line)}
.ladder{display:inline-flex;align-items:flex-end;gap:2px;height:18px;flex:none}
.ladder i{display:block;width:5px}
.ladder i:nth-child(1){height:6px}.ladder i:nth-child(2){height:9px}.ladder i:nth-child(3){height:12px}.ladder i:nth-child(4){height:15px}.ladder i:nth-child(5){height:18px}
.ladder i.off{opacity:.22}
.ladder i.unk{height:9px;background:repeating-linear-gradient(135deg,#7b8586 0 2px,transparent 2px 4px)}
.ladder.full i:nth-child(1){background:#a7b8b2}.ladder.full i:nth-child(2){background:#6c8a80}.ladder.full i:nth-child(3){background:#35584e}.ladder.full i:nth-child(4){background:#e39b2b}.ladder.full i:nth-child(5){background:#c22a2a}
/* Popovers hang under their control; one is open at a time. */
.home .pop{display:none;position:absolute;top:calc(100% + 8px);left:-1px;z-index:1200;padding:8px 0;box-shadow:0 2px 10px rgba(25,61,53,.16)}
.home .pop.open{display:block}
.home .pop .ecount:empty{display:none}
.home .pop .ecount{font-size:12.5px;color:var(--muted);padding:8px 14px 2px;margin-top:4px;border-top:1px solid var(--line)}
.home .pop-note{font-size:12.5px;line-height:1.4;color:var(--soft);padding:6px 14px 2px;max-width:290px}
.home .daymenu{width:380px;padding:10px 0 8px}
.home .week-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 14px 8px;border-bottom:1px solid var(--line);margin-bottom:4px}
.home .week-head b{display:block;font-size:14px;color:var(--ink)}
.home .week-head .hint{display:block;font-size:12px;color:var(--muted);line-height:1.35}
.home .week-head .cols{display:flex;gap:2px;font-size:11.5px;color:var(--muted)}
.home .week-head .cols span{width:22px;text-align:center}
.home .days{display:flex;flex-direction:column}
.home .day{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:42px;padding:3px 14px;border:0;background:none;color:var(--ink);text-align:left}
.home .day:hover{background:var(--wash)}
.home .day[aria-pressed=true]{background:var(--wash);box-shadow:inset 0 0 0 1.5px var(--ink);font-weight:600}
.home .day .dl{display:flex;flex-direction:column;font-size:14.5px;line-height:1.25;white-space:nowrap}
.home .day .dl small{font-size:11.5px;font-weight:400;color:var(--muted)}
.home .day .counts{display:flex;gap:2px}
.home .day .counts span{width:22px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11.5px;line-height:1;font-weight:600}
.home .day .counts span.zero{opacity:.35}
.home .day .counts i{display:block;width:22px;height:5px}
.home .day .counts i.unk{background:repeating-linear-gradient(135deg,#7b8586 0 2px,transparent 2px 4px)}
.home .day .one{display:flex;align-items:flex-end;height:26px}
.home .day .one i{width:48px}
.home .day .none{font-size:12.5px;color:var(--muted);font-weight:400}
.home .another{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px;padding:8px 14px 2px;border-top:1px solid var(--line);font-size:13.5px;color:var(--soft)}
.home .another input{border:1px solid var(--line);border-radius:3px;padding:4px 6px;font-size:14px;font-weight:600;width:auto;background:var(--panel)}
/* Difficulty (D120): checkboxes for Any level, the five levels and Not estimated. */
.home .uptomenu{width:310px}
.home .lvopt{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:0 14px;font-size:14.5px;color:var(--ink);text-align:left;cursor:pointer;-webkit-user-select:none;user-select:none}
.home .lvopt:hover{background:var(--wash)}
.home .lvopt input{width:18px;height:18px;margin:0;flex:none;accent-color:var(--ink);cursor:pointer}
.home .lvopt.any{font-weight:600}
.home .lvopt i{display:block;width:6px;flex:none}
.home .lvopt i.unk{height:14px;background:repeating-linear-gradient(135deg,#7b8586 0 2px,transparent 2px 4px)}
.home .lvopt i.off{opacity:.3}
.home .lvopt .ph{display:none}
.home .lvopt .usual{margin-left:auto;font-size:12.5px;color:var(--muted);white-space:nowrap}
.home .lvsep{display:block;height:1px;margin:4px 0;background:var(--line)}
.home .filtersmenu{width:300px;left:auto;right:-1px;padding:10px 0 8px}
/* The paddler's average speed sits first behind Filters, as a standing preference (D121). */
.home .pacesel .inline{display:flex;align-items:center;gap:8px}
.home .bar .filtersmenu .pacesel input{width:76px;height:38px;padding:0 8px;text-align:left;border:1px solid var(--line);border-radius:3px;background:var(--panel);font-size:14.5px;font-weight:600;color:var(--ink)}
.home .filtersmenu .pacesel{margin-bottom:6px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.home .sel{display:flex;flex-direction:column;gap:4px;padding:4px 14px 8px;font-size:12.5px;color:var(--muted)}
.home .sel select{height:38px;padding:0 8px;border:1px solid var(--line);border-radius:3px;background:var(--panel);font-size:14.5px;font-weight:600;color:var(--ink)}
/* Account slot (D111 item 6): Sign in and a menu when signed out, an initials circle when signed in. */
.home .account{display:flex;gap:10px;align-items:center}
.home .signin{display:flex;align-items:center;height:44px;padding:0 14px;font-size:14px;font-weight:600;text-decoration:none}
.acct{position:relative}
.acct summary{list-style:none;display:flex;align-items:center;justify-content:center}
.acct summary::-webkit-details-marker{display:none}
.acct .menu-btn{width:44px;height:44px;color:var(--ink)}
.acct .menu-btn svg{width:18px;height:18px}
.acct[open] .menu-btn{background:var(--wash)}
.acct .avatar{width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--panel);font-weight:600;font-size:14px;letter-spacing:.3px;border:2px solid var(--panel);box-shadow:0 1px 3px rgba(25,61,53,.25)}
.acct[open] .avatar{box-shadow:0 0 0 3px var(--wash)}
.acct .menu{position:absolute;right:0;top:52px;min-width:240px;display:flex;flex-direction:column;padding:6px 0;z-index:1100}
.acct .menu a{display:flex;align-items:center;min-height:44px;padding:0 16px;font-size:14.5px;text-decoration:none}
.acct .menu a:hover{background:var(--wash);color:var(--ink)}
.acct .menu a.sep{border-top:1px solid var(--line);margin-top:6px}
.acct .menu a.lead{font-weight:600}
.acct .menu .who{padding:8px 16px 10px;margin-bottom:4px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted);overflow-wrap:anywhere}
/* Units on this device, for a visitor who is not signed in (WP16d); an account's units are in Settings.
   The floated legend keeps the separator line whole. */
.acct .menu .units{border:0;border-top:1px solid var(--line);margin:6px 0 0;padding:8px 16px 2px;min-width:0}
.acct .menu .units legend{float:left;width:100%;padding:0;font-size:13px;color:var(--muted)}
.acct .menu .units label{clear:both;display:flex;align-items:center;gap:10px;min-height:40px;font-size:14.5px;cursor:pointer}
.acct .menu .units input{margin:0;width:18px;height:18px;accent-color:var(--ink);flex:none}
/* The key (D111 item 5): a 40 px round button with the five level bars, closed by default. */
#key{position:absolute;left:20px;bottom:40px;z-index:900}
.keybtn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--edge);border-radius:50%;background:rgba(255,253,247,.92);box-shadow:0 1px 2px rgba(25,61,53,.12)}
.keybtn .ladder{height:17px}
.keybtn .ladder i{width:4px}
.keybtn[aria-expanded=true]{background:var(--wash);border-color:var(--ink)}
.key-panel{position:absolute;left:0;bottom:50px;width:270px;max-height:calc(100vh - 220px);overflow-y:auto;padding:12px 14px 10px;font-size:13px}
.key-panel .keys{display:flex;flex-direction:column;gap:5px}
.key-panel .key{display:flex;align-items:center;gap:10px;min-height:22px;color:var(--ink)}
.key-panel .key i{display:block;width:22px;flex-shrink:0;height:4px}
.key-panel .key .pair{display:flex;gap:2px;flex-shrink:0}
.key-panel .key .pair i{width:11px}
.key-panel .usual{margin-left:auto;font-size:12px;color:var(--muted)}
.key-panel details{margin-top:8px;padding-top:6px;border-top:1px solid var(--line)}
.key-panel details+details{margin-top:0}
.key-panel summary{font-size:13px;font-weight:600;color:var(--ink);min-height:30px;display:flex;align-items:center}
.key-panel details p{font-size:12px;line-height:1.45;color:var(--muted);margin:2px 0 6px}
.key-panel .source-line{padding:0}
.key-panel .status{font-size:12px;line-height:1.45;color:var(--soft);margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
body[data-colour=intensity] #key .by-demand,body:not([data-colour=intensity]) #key .by-intensity{display:none!important}
.home[data-selected] #key{display:none}
.day-note{position:absolute;top:68px;left:78px;z-index:950;padding:6px 10px;font-size:13px;color:var(--ink);max-width:min(520px,calc(100% - 100px))}
.home[data-view=list] .day-note{position:static;margin:14px 40px 0;max-width:none}

/* Narrower desktops drop words before anything wraps: field labels first, then the difficulty word,
   the Filters word and the separate Sign in link (the menu still leads with Sign in). */
@media(max-width:1380px){
.home .bar .fld>.lab:not(.plan-only),.home .fbtn .pre{display:none}
}
@media(max-width:1240px){
.home #upto-label{display:none}
.home .filtersfld .fbtn span:not(.dot){display:none}
.home .signin{display:none}
}
/* Pill mode: the bar folds into one summary that opens the plan panel from the top (D111 item 2). */
@media(max-width:980px){
.home .topbar{flex-wrap:nowrap;gap:8px}
.home .plan-pill{display:flex;align-items:center;justify-content:center;gap:7px;flex:1 1 auto;min-width:0;max-width:440px;margin:0 auto;height:44px;padding:0 12px;border-radius:22px;font-weight:600;font-size:14.5px;color:var(--ink);white-space:nowrap;overflow:hidden}
.home .plan-pill .sep{color:#9aa3a1;font-weight:400;margin:0 1px}
.home .plan-pill .ladder{height:15px;margin-left:1px}
.home .plan-pill .ladder i{width:4px}
.home .plan-pill .ladder i.unk{height:7px}
.home .plan-pill .ladder i:nth-child(1){height:5px}.home .plan-pill .ladder i:nth-child(2){height:7.5px}.home .plan-pill .ladder i:nth-child(3){height:10px}.home .plan-pill .ladder i:nth-child(4){height:12.5px}.home .plan-pill .ladder i:nth-child(5){height:15px}
#pill-words{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis}
.home .grow{display:none}
.home .plan{display:none}
.home .signin{display:none}
.acct .menu{position:fixed;right:12px;top:62px}
.home .view{position:fixed;left:50%;transform:translateX(-50%);bottom:44px;z-index:950;height:44px;border-radius:22px;box-shadow:0 1px 4px rgba(25,61,53,.2)}
.home .view a{border-radius:19px;padding:0 20px}
.home[data-view=list] .view{bottom:16px}
.home[data-selected] .view{display:none}
body.home[data-plan-open]::after{content:'';position:fixed;inset:0;background:rgba(25,61,53,.38);z-index:2900}
.home[data-plan-open] .topbar{z-index:3100}
.home[data-plan-open] .plan{display:flex;flex-direction:column;position:fixed;left:0;right:0;top:0;z-index:3000;max-height:100vh;max-height:100dvh;overflow-y:auto;padding:12px 16px 0;background:var(--ground);border-radius:0 0 12px 12px;box-shadow:0 2px 14px rgba(25,61,53,.25)}
.home .plan-head{display:flex;align-items:center;justify-content:space-between}
.home .plan-head h2{font:500 22px/1.2 var(--serif);color:var(--ink)}
.home .plan-head .close{margin:0 -10px 0 0}
.home .plan-head .close svg,.home .plan .close svg{width:18px;height:18px}
.home .plan .bar{display:flex;flex-direction:column;height:auto;background:none;border:0;box-shadow:none;width:100%;order:0;flex:0 0 auto}
.home .plan .bar .fld,.home .plan .efilter .fld{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;flex:0 0 auto;min-height:54px;padding:6px 0;border:0;border-bottom:1px solid var(--line)}
.home .plan .bar .fld>.lab,.home .plan .plan-only{display:block;font-size:15px;color:var(--muted)}
.home .plan :focus-visible{outline-width:2px;outline-color:var(--ink)}
.home .plan .bar .fld:focus-within{background:none;box-shadow:none}
.home .plan .bar input:focus-visible,.home .plan .bar select:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:2px}
.home .plan .efilter{flex-direction:column;border:0}
.home .plan .bar input[type=time]{width:auto;font-size:16px}
.home .plan .bar input[type=number]{width:48px;font-size:16px}
.home .plan .bar .inline{gap:10px}
.home .plan .bar select{font-size:16px;text-align:right}
.home .plan .dayrow{gap:6px;height:auto}
.home .plan .bar .step{width:42px;height:42px;border:1px solid var(--line);border-radius:3px;background:var(--panel)}
.home .plan .bar.week-mode .step{background:var(--wash)}
.home .plan .day-open{height:42px;min-width:112px;justify-content:center;border:1px solid var(--line);border-radius:3px;background:var(--panel);font-size:15.5px}
.home .plan .day-open[aria-expanded=true]{border:1.5px solid var(--ink);background:var(--wash)}
.home .plan .pop{position:static;width:100%;box-shadow:none}
.home .plan .daymenu.open{display:block;flex-basis:100%;margin:8px 0 4px}
.home .plan .uptofld .fbtn{display:none}
.home .plan .upto-summary{margin-left:auto;font-size:14.5px;font-weight:600;color:var(--ink);text-align:right}
/* On a phone the difficulty boxes are tiles, Any first: chosen tiles have the ink ring, the others are plain
   under Any and dashed with faded bars once levels are chosen (D120). The box itself is kept for keyboards. */
.home .plan .uptomenu{display:flex;flex-basis:100%;flex-wrap:wrap;align-items:stretch;gap:4px;padding:6px 0 2px;border:0;background:none}
.home .plan .lvopt{position:relative;flex:1 1 0;min-width:0;flex-direction:column;justify-content:flex-end;gap:5px;min-height:56px;padding:0 0 6px;border:1px solid var(--line);border-radius:3px;background:var(--panel);font-size:12.5px;font-weight:600;text-align:center}
.home .plan .lvopt input{position:absolute;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none}
.home .plan .lvopt:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.home .plan .lvopt.any{flex-grow:1.4;justify-content:center;padding:0}
.home .plan .lvopt:hover{background:var(--panel)}
.home .plan .lvopt.on{border-color:var(--ink);background:var(--wash);box-shadow:inset 0 0 0 1px var(--ink);font-weight:700}
.home .plan .lvopt.out{border-style:dashed;border-color:#b9c2b8;background:none;color:var(--muted)}
.home .plan .lvopt .wd,.home .plan .lvopt .usual,.home .plan .lvsep{display:none}
.home .plan .lvopt .ph{display:inline}
.home .plan .lvopt i{width:18px}
.home .plan .lvopt i.unk{height:16px}
.home .plan .uptomenu .ecount{display:none}
.home .plan .uptomenu .pop-note{flex-basis:100%;order:9;padding:6px 0 0;max-width:none}
.home .plan .filtersfld{border:0}
.home .plan .filtersfld .fbtn{height:44px;padding:0;background:none}
.home .plan .filtersfld .fbtn span:not(.dot){display:inline}
.home .plan .filtersfld .fbtn::after{content:'Speed, intensity, total work';font-weight:400;color:var(--muted);font-size:13px}
.home .plan .filtersmenu.open{display:block;flex-basis:100%;padding:0 0 6px}
.home .plan .filtersmenu .ecount{display:none}
.home .plan .sel{padding:4px 0 8px}
.home .plan .bar .pacesel input[type=number]{width:80px;height:42px;font-size:16px}
.home .plan-foot{display:block;position:sticky;bottom:0;margin:0 -16px;padding:10px 16px 18px;background:var(--ground);border-top:1px solid var(--line)}
.home .plan-foot .button{width:100%;justify-content:center;min-height:48px;font-size:15.5px}
#key{left:12px;bottom:44px}
.day-note{top:64px;left:12px;right:12px;max-width:none}
}
@media(max-width:760px){
.home .topbar{padding:10px 12px}
.key-panel{width:min(290px,calc(100vw - 24px));max-height:calc(100vh - 260px)}
}

/* Destination marks (DESIGN D112, WP04h): zoomed out, one mark per place routes go, ringed by their levels. */
.dest-mark{position:relative;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:none;cursor:pointer}
.dest-mark .ring{display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid var(--panel);box-shadow:0 1px 3px rgba(25,61,53,.35);flex:none}
.dest-mark .n{display:flex;align-items:center;justify-content:center;width:calc(100% - 9px);height:calc(100% - 9px);border-radius:50%;background:var(--panel);font-size:13.5px;font-weight:700;color:var(--ink)}
.dest-mark.open .ring{box-shadow:0 0 0 2.5px var(--ink),0 0 0 5px rgba(255,253,247,.9)}
.dest-mark .dest-name{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);font-size:12.5px;font-weight:600;color:var(--ink);white-space:nowrap;pointer-events:none;text-shadow:0 0 3px var(--panel),0 0 3px var(--panel),0 0 2px var(--panel)}
.dest-mark:focus-visible{outline:none}
.dest-mark:focus-visible .ring{outline:3px solid var(--rust);outline-offset:2px}
.launch-dot{width:7px;height:7px;border-radius:50%;background:var(--panel);border:1.5px solid var(--ink);opacity:.75}
.dest-rows{display:flex;flex-direction:column;gap:1px;margin:0 -8px}
.drow{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 8px;border:0;border-radius:3px;background:none;text-align:left;color:var(--ink)}
.drow:hover{background:var(--wash)}
.drow i{display:block;width:6px;flex:none}
.drow .nm{font-size:14.5px;line-height:1.3}
.drow .nm small{display:block;font-size:12.5px;color:var(--muted);margin-top:1px}
/* A level still being worked out for the day (owner, 2026-10-05) */
.calc{display:inline-flex;align-items:center;gap:5px}
.spin{display:inline-block;width:11px;height:11px;border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:dp-spin .9s linear infinite}
@keyframes dp-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.spin{animation-duration:2.4s}}
/* While a changed plan is worked out (owner, 2026-10-06): a spinner stands in for the caret on the pill and the day
   button, the counts and levels drawn from the previous plan show Calculating, and a list row says so once across
   its times and levels. On the ink button the spinner turns light. */
.spin.busy{display:none}
.home[data-computing] .spin.busy{display:inline-block;flex:none}
.home[data-computing] #plan-pill .caret,.home[data-computing] #day-open .caret{display:none}
.button .spin{border-color:rgba(255,253,247,.35);border-top-color:currentColor}
.rows .row>.busyrow{grid-column:3/-1;font-size:14px;color:var(--muted)}
.home .day .none .calc{white-space:nowrap}
@media(max-width:760px){.rows .row>.busyrow{grid-column:1/-1}}
/* Back from a route to the place card it was chosen from (owner, 2026-10-05) */
.back{display:inline-flex;align-items:center;gap:3px;min-height:32px;margin:-8px 0 2px -6px;padding:0 8px 0 3px;border:0;border-radius:3px;background:none;font:inherit;font-size:13px;color:var(--muted);cursor:pointer}
.back:hover{background:var(--wash);color:var(--ink)}
.drow .lv{margin-left:auto;font-size:12.5px;line-height:1.3;color:var(--muted);text-align:right;white-space:nowrap}
@media(max-width:980px){.home .plan .filtersmenu{border:0;background:none}.home .plan .sel select{text-align:left}}

/* Sign in without leaving the map (WP04g): a native modal dialog over the page. */
.signin-dialog{width:min(400px,calc(100vw - 24px));padding:20px 22px 18px;border:1px solid var(--edge);border-radius:6px;background:var(--panel);color:var(--body);box-shadow:0 8px 30px rgba(25,61,53,.25)}
.signin-dialog::backdrop{background:rgba(25,61,53,.38)}
.signin-dialog form{display:flex;flex-direction:column;gap:12px}
.signin-head{display:flex;align-items:center;justify-content:space-between}
.signin-head h2{font:500 24px/1.2 var(--serif);color:var(--ink)}
.signin-head .close{margin:-8px -10px -8px 0}
.signin-head .close svg{width:16px;height:16px}
.signin-sub{font-size:14px;color:var(--soft);margin-top:-4px}
.signin-dialog .sel{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.signin-dialog input[type=email],.signin-dialog input[type=password]{height:44px;padding:0 10px;border:1px solid var(--line);border-radius:3px;background:var(--panel);font-size:16px;color:var(--ink)}
.signin-dialog input:focus-visible{outline:3px solid var(--rust);outline-offset:0}
.signin-error{font-size:13.5px;line-height:1.4;color:#713e28;background:var(--rustwash);border:1px solid var(--rust);border-radius:3px;padding:8px 10px}
.signin-dialog .button{justify-content:center;min-height:46px;font-size:15px}
.signin-dialog .button[disabled]{opacity:.6;cursor:progress}
.signin-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13.5px}
.signin-google{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.signin-google .button{width:100%}
@media(max-width:760px){.signin-dialog{margin:12px auto auto;padding:16px 16px 14px}}

/* A long attribution (the currents credit, WP04p) wraps to more lines on a narrow map. home.js measures it into
   --map-attribution and the chrome along the bottom of the map keeps its usual place or rises clear of it. */
.home .maplibregl-ctrl-bottom-right{bottom:max(22px,calc(var(--map-attribution,0px) + 2px))}
#key{bottom:max(40px,calc(var(--map-attribution,0px) + 8px))}
@media(min-width:981px){.currents-time{bottom:max(40px,calc(var(--map-attribution,0px) + 8px))}}
@media(max-width:980px){
 .home .maplibregl-ctrl-bottom-right{bottom:max(34px,calc(var(--map-attribution,0px) + 4px))}
 #key{bottom:max(44px,calc(var(--map-attribution,0px) + 10px))}
 .home .view{bottom:max(44px,calc(var(--map-attribution,0px) + 10px))}
 .home .regional-map-notice{bottom:max(100px,calc(var(--map-attribution,0px) + 66px))}
}
@media(max-width:760px){
 .home .maplibregl-ctrl-bottom-right{bottom:max(40px,calc(var(--map-attribution,0px) + 6px))}
 .home[data-view=map] #panel{bottom:max(34px,var(--map-attribution,0px))}
}
