/* landing, header, day list, day detail, gallery, comments, account sheet, light theme, text size. Brand tokens only
   (--sv-*, or the aliases of style.css). 'html:root' keeps a rule's weight from the mockup. */

/* ---- elements that only their option shows ---- */
#pkc,#hmap,#jumpNew,#dayhd,#lInfo,.cbtn{display:none}
.btn.full{width:100%;justify-content:center;min-height:44px}

/* ======================= LANDING ======================= */
/* what marks the travellers */
.tmw{background:none;border:0}
.tmw .tm-dot{position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px;border-radius:50%;background:var(--sv-accent)}
.tmw .tm-dot.big{width:10px;height:10px;margin:-5px}
.tmw .tm-ring{position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sv-accent) 30%,transparent)}
.tmw .tm-lab{position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);white-space:nowrap;font:400 0.9375rem/1 var(--f);color:var(--sv-ink);background:var(--sv-surface);padding:7px 11px;border-radius:999px;box-shadow:0 0 0 1px var(--sv-line-strong)}

/* size of the entry panel (phones; the desktop sidebar keeps its own layout) */
@media (max-width:899px){
  html:root .ln{padding:20px 20px calc(20px + env(safe-area-inset-bottom));border-radius:10px 10px 0 0;box-shadow:0 0 0 1px var(--sv-line)}
  html:root .ln h1{font-size:1.75rem;line-height:1.15}
  html:root .ln p{font-size:1rem;margin-top:6px}
  html:root .ln form{margin-top:20px}
  html:root .ln .btn,html:root .ln input{min-height:44px}
  html:root .ln .msg{margin-top:8px}
  html:root .ln .by{margin-top:16px}
}

/* the severin.io touch */
html:root .by{color:var(--sv-faint);font-size:0.8125rem}
html:root .by img{box-sizing:border-box;width:16px;height:16px;padding:16px 0 0 0;border-radius:0;background:currentColor;-webkit-mask:url(lib/brand/logo/mark-mono.svg) center/contain no-repeat;mask:url(lib/brand/logo/mark-mono.svg) center/contain no-repeat}
#sheet .by.big{border-top:0;padding-top:0;margin-top:16px;font-size:0.9375rem;color:var(--sv-ink)}
#sheet .by.big img{width:24px;height:24px}

/* name step */
.nwhy{font-size:0.9375rem;color:var(--sv-muted);margin:2px 0 12px}
html:root #nf label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0}
html:root #nf input{min-height:52px;font-size:1rem}
.nrow{display:flex;gap:8px;align-items:stretch}
.nrow .btn{min-height:52px;font-size:1rem}
.nlater{display:block;margin:10px auto 0;min-height:44px;padding:0 12px;color:var(--sv-muted);font-size:0.9375rem;text-decoration:underline;text-underline-offset:3px;text-align:center}

/* ======================= HEADER ======================= */
/* live line */
#now .l1,#now .l2{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#now .l1{color:var(--sv-ink)}
#now .l2{color:var(--sv-muted)}
html:root #now{min-height:44px}
.nowchw{background:none;border:0}
.nowchip{position:absolute;left:0;top:0;transform:translate(-50%,calc(-100% - 36px));white-space:nowrap;font:400 0.9375rem/1 var(--f);color:var(--sv-ink);background:color-mix(in srgb,var(--sv-surface) 92%,transparent);padding:9px 13px;border-radius:999px;box-shadow:0 0 0 1px var(--sv-line-strong)}

/* finished trip */
#dayno .d2{display:none}
html:root #dayno .d1{display:none}
html:root #dayno .d2{display:inline}
html:root #range .r2{display:none}
html:root #now .mut{margin-left:0;font-size:0.9375rem}

/* header while scrolling */
html:root #phead .sub,html:root #now,html:root #hint{overflow:hidden;max-height:64px;transition:max-height .18s ease,opacity .18s ease,margin .18s ease,min-height .18s ease}
html:root #grab{overflow:hidden;transition:height .18s ease}
html:root body.hcol #phead .sub,html:root body.hcol #now,html:root body.hcol #hint{max-height:0;min-height:0;opacity:0;margin-top:0;margin-bottom:0}
html:root body.hcol #grab{height:6px}
html:root body.hcol .trow{min-height:48px}
html:root body.hcol #title{font-size:1.0625rem;min-height:0}
html:root body.hcol #acc{display:none}
html:root body.hcol #hmap{display:grid;flex:none;width:44px;height:44px}
html:root body.hcol #tcover{display:none}
#hup{padding-bottom:4px;touch-action:pan-y}
#hup .trow{touch-action:auto}

/* peek */
html:root body[data-snap=peek] :is(#now,#acc,#hint,#tabs){display:none}
html:root body[data-snap=peek] #title{font-size:1.25rem}
html:root body[data-snap=peek] .sub{font-size:0.9375rem}
html:root body[data-snap=peek] #range .r2{display:none}
html:root body[data-snap=peek] #dayno .d1{display:none}
html:root body[data-snap=peek] #dayno .d2{display:inline}
html:root body[data-snap=peek] #pbody{visibility:hidden}

/* ======================= DAY LIST ======================= */
.row{position:relative}
/* order */
html:root #pbody{display:flex;flex-direction:column}
html:root .row{flex:none;order:calc(var(--i) * -1)}
html:root #hup{order:-999}

/* what a row shows */

/* selected day */
html:root .rowhead:hover .rt{color:var(--sv-ink)}

/* new days */
.new.tag{width:auto;height:auto;border-radius:4px;background:var(--sv-accent-soft);color:var(--sv-accent);font:700 0.6875rem/1 var(--f);letter-spacing:.06em;padding:3px 6px}

/* how to learn to tap a day */
.hbub{position:absolute;right:0;top:calc(var(--row-py) - 3px);z-index:3;background:var(--sv-surface-2);box-shadow:0 0 0 1px var(--sv-line);border-radius:8px;padding:3px 10px;font-size:0.9375rem;line-height:1.3;color:var(--sv-ink);pointer-events:none;white-space:nowrap}
.hbub::before{content:"";position:absolute;left:-5px;top:50%;margin-top:-5px;width:10px;height:10px;background:var(--sv-surface-2);border-left:1px solid var(--sv-line);border-bottom:1px solid var(--sv-line);transform:rotate(45deg)}
html:root #phead{display:flex;flex-direction:column}
html:root #tabs{order:7}
html:root #hint{order:8;margin-top:0;min-height:36px;font-size:0.9375rem;color:var(--sv-muted)}
html:root #jumpNew{order:9}
html:root #dayhd{order:10}
html:root #hintX{display:none}
@keyframes pulse1{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}} /* screenshot links: held at the peak */

/* ======================= DAY DETAIL ======================= */
/* how an opened day is shown */
html:root body.dayopen #dayhd{display:flex;align-items:center;gap:2px;min-height:52px}
.dback,.dnav{flex:none;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;color:var(--sv-ink)}
.dback{margin-left:-10px}.dnav:last-child{margin-right:-10px}
.dnav:disabled{opacity:.3;cursor:default}
#dayhd .dt{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1.0625rem}
#dayhd .dt b{font-weight:700}
html:root body.dayopen :is(.trow,.sub,#now,#hint,#tabs,#jumpNew){display:none}
html:root body.dayopen .row:not(.open){display:none}
html:root body.dayopen .row.open .rowhead{display:none}
html:root body.dayopen #pbody{padding-top:16px}
html:root .row.open .pad{animation:sw220 .22s var(--ease2) backwards}
@keyframes sw220{from{opacity:0;transform:translateX(var(--sx,32px))}}

/* width of text and photos */
html:root .rowbody .pad{padding-left:0}
html:root .strip{margin-left:-16px;padding-left:16px}

/* photo layout */
.phd{display:flex;align-items:center;justify-content:space-between;min-height:32px;font-size:0.9375rem;color:var(--sv-muted)}
.seeall{min-height:32px;padding:0 2px;font-size:0.9375rem;font-weight:600;color:var(--sv-ink)}
.strip.s112{gap:8px;margin-top:0;scroll-snap-type:x proximity}
.strip.s112 button{width:112px;height:112px;border-radius:6px;scroll-snap-align:start}
.hero,.feat{margin:2px 0 14px}
.hero button,.feat button,.pgrid button{display:block;position:relative;width:100%;overflow:hidden;background:var(--sv-surface-2)}
.hero button,.feat button{aspect-ratio:4/3;border-radius:10px}
.hero img,.feat img,.pgrid img{width:100%;height:100%;object-fit:cover;display:block}
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:14px}
.pgrid button{aspect-ratio:1;border-radius:6px}
.hero .vp,.feat .vp,.pgrid .vp{position:absolute;left:50%;top:50%;width:28px;height:28px;margin:-14px;border-radius:50%;background:rgba(15,17,21,.62);color:#fff;display:grid;place-items:center}
.fchip{position:absolute;right:8px;bottom:8px;height:32px;padding:0 12px;border-radius:999px;display:flex;align-items:center;font:600 0.9375rem/1 var(--f);background:rgba(15,17,21,.72);color:#fff}
/* a photo's own heart */
.phl{position:absolute;left:4px;bottom:4px;display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 6px;border-radius:999px;background:rgba(15,17,21,.62);color:#fff;font:600 0.75rem/1 var(--f);font-style:normal}
.phl.on svg{color:var(--sv-accent);fill:var(--sv-accent)}

/* practical facts */
.dlist{gap:0;font-size:0.9375rem}
.dl{min-height:32px;display:flex;align-items:center}
.dl span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.det.dgrid{display:grid;grid-template-columns:1fr 1fr;gap:0;font-size:0.9375rem}
.det.dgrid>.dcell{display:block;padding:10px 0;min-width:0}
.dgrid .dcell:nth-child(odd){padding-right:12px;border-right:1px solid var(--sv-line)}
.dgrid .dcell:nth-child(even){padding-left:12px}
.dgrid .dcell:nth-child(n+3){border-top:1px solid var(--sv-line)}
.dcell small{display:block;font-size:0.8125rem;color:var(--sv-muted)}
.dcell span{display:block;font-size:0.9375rem;color:var(--sv-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detb{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:10px;padding:0 14px;border-radius:8px;box-shadow:0 0 0 1px var(--sv-line-strong);font-size:0.9375rem;font-weight:600;color:var(--sv-ink)}
.detb svg{transition:transform .2s ease}
.detx.open .detb svg{transform:rotate(180deg)}
.detw{display:grid;grid-template-rows:0fr;transition:grid-template-rows .2s ease}
.detx.open .detw{grid-template-rows:1fr}
.detin{overflow:hidden;min-height:0}

/* the quote line */
.pq{display:block;margin:0 0 12px;padding:0 0 0 12px;border-left:2px solid var(--sv-line-strong);font-size:1.0625rem;font-style:italic;line-height:1.5;color:var(--sv-muted)}
.qsub{display:none;font-size:0.9375rem;line-height:1.4;color:var(--sv-muted)}
.row.open .qsub{display:block}

/* ======================= GALLERY ======================= */
/* moving between photos */
html:root #lbTrack{padding:0 6%;gap:8px;scroll-padding:0 6%}
html:root #lbCount{font-size:0.9375rem;color:#e9ecf1}
.dots{display:flex;gap:6px;justify-content:center}
.dots i{width:6px;height:6px;border-radius:50%;background:#353a43}
.dots i.on{background:#e9ecf1}
#lbBar{position:absolute;left:0;right:0;bottom:calc(8px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;gap:16px;z-index:2}
#lbBar .lbn{position:static;display:grid;width:44px;height:44px;margin:0}
#lbBar #lbCount{position:static;min-width:64px;text-align:center;font-size:0.9375rem;color:#e9ecf1}
#lbLike{position:absolute;top:8px;left:12px;z-index:2;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;color:#e9ecf1;font-size:0.9375rem}
#lbLike.on svg{color:var(--sv-accent);fill:var(--sv-accent)}

/* caption */
.slide .cap{width:100%;max-width:56ch;padding:0 4px;text-align:left}
.cap .c1{font-size:1.0625rem;line-height:1.4;color:#e9ecf1}
.cap .c2{font-size:0.9375rem;color:#a9aeb9;margin-top:4px}
.onmap{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:10px;padding:0 14px;border-radius:8px;box-shadow:0 0 0 1px #353a43;font-size:0.9375rem;font-weight:600;color:#e9ecf1}
.slide p.ov{position:absolute;left:0;right:0;bottom:0;margin:0;padding:10px 12px;min-height:0;max-width:none;font-size:0.9375rem;text-align:left;color:#e9ecf1;background:rgba(15,17,21,.7);transition:opacity .18s ease}
.slide p.ov.off{opacity:0}

/* ======================= COMMENTS ======================= */
/* input and send */
.fb .fwrap{position:relative;flex:1;min-width:0}
.fb input{padding-right:48px}
.fsend{position:absolute;right:6px;top:6px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--sv-line-strong);color:var(--sv-muted);transition:background-color .15s,color .15s}
.fb.has .fsend{background:var(--sv-accent);color:var(--sv-on-accent)}

/* comment list */
.chd{display:flex;align-items:center;justify-content:space-between;min-height:24px;font-size:0.9375rem;color:var(--sv-muted)}
.cm .c.cb{display:flex;gap:10px;align-items:flex-start}
.av{flex:none;width:28px;height:28px;border-radius:50%;background:var(--sv-surface-2);display:grid;place-items:center;font-size:0.8125rem;font-weight:600;color:var(--sv-ink)}
.cx{min-width:0;flex:1}
.ch1{display:flex;align-items:baseline;gap:8px}
.cm .ch1 b{font-size:0.9375rem;font-weight:600;margin:0}
.cm .ch1 small{font-size:0.8125rem;color:var(--sv-faint)}
.ct{font-size:1rem;overflow-wrap:anywhere}

/* heart */
html:root .like{box-shadow:none;min-height:44px;padding:0 10px;border-radius:8px}
html:root .like.on{color:inherit;box-shadow:none}
html:root .like.on svg{color:var(--sv-accent);fill:var(--sv-accent)}
html:root .like.pop svg{animation:likepop .16s ease}
@keyframes likepop{50%{transform:scale(1.12)}}
.likers{align-self:center;font-size:0.9375rem;color:var(--sv-muted)}
html:root .acts{align-items:center;gap:6px}

/* ======================= MENU ======================= */
/* closing the account sheet, guest texts */
#sheet .sclose{position:absolute;right:2px;top:2px;width:44px;height:44px;display:grid;place-items:center;color:var(--sv-muted)}
html:root #sheet.acc h2{padding-right:44px}
#sheet .lout{display:block;margin-top:14px;min-height:44px;padding:0;font-size:0.9375rem;color:var(--sv-muted)}
#sheet .lrow{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin-top:16px;border-top:1px solid var(--sv-line);border-bottom:1px solid var(--sv-line);font-size:1rem;color:var(--sv-ink)}
#sheet .nm{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-top:2px;font-size:0.9375rem;color:var(--sv-muted)}
#sheet .nm .nrow{width:100%}
#sheet .tlink{min-height:44px;padding:0 4px;font-size:0.9375rem;font-weight:600;color:var(--sv-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--sv-line-strong)}

/* language and theme choices (always shows rows) */
html:root #sheet .seg{display:flex;width:100%;height:40px;margin-left:0;padding:2px;gap:0;background:var(--sv-surface-2);border-radius:8px}
html:root #sheet .seg button{flex:1;min-height:0;height:36px;padding:0;border-radius:6px;font-weight:400;color:var(--sv-muted);text-align:center}
html:root #sheet .seg button.on{background:var(--sv-bg);box-shadow:0 0 0 1px var(--sv-line-strong);color:var(--sv-ink);font-weight:600}
.rows{display:flex;flex-direction:column;border-bottom:1px solid var(--sv-line)}
.rrow{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;border-top:1px solid var(--sv-line);font-size:1rem;color:var(--sv-ink)}
.rrow .rl{min-width:0}
.rrow small{display:block;font-size:0.8125rem;line-height:1.3;color:var(--sv-muted)}
.rrow .chk{visibility:hidden;color:var(--sv-accent);display:grid}
.rrow.on .chk{visibility:visible}

/* Mockup menu */
html:root :is(#mTheme,#mStranger){display:none}
html:root #mReset{color:var(--sv-warn)}
/* menu icons (Lucide, ISC) as masks, so the menu's own text can keep being replaced by the app */
#mTheme{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 18a6 6 0 0 0 0-12v12z'/%3E%3C/svg%3E")}
#mStranger{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E")}
#mLocal{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
#mReset{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E")}


/* ======================= LIGHT THEME ======================= */
/* dark only. D: the map stays dark while sheets and text follow the system */
/* paper sea (visited share is set in index.html) */
html:root[data-theme=light]{--sea:#ffffff;--land:#f1f3f5;--border:#cfd3d9}

/* ======================= COPY ======================= */
html:root .ln .msg{height:auto;min-height:22px;white-space:normal;line-height:1.4;align-items:flex-start}
.lask{display:inline-flex;align-items:center;min-height:44px;font-size:0.9375rem;color:var(--sv-muted);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--sv-line-strong)}
html:root .ln .msg.bad{height:auto;min-height:22px;white-space:normal;line-height:1.4;align-items:flex-start;flex-wrap:wrap}
html:root .ln .msg.bad span{overflow:visible}
html:root .ln .msg.bad svg{margin-top:2px}
.lforgot{flex-basis:100%;min-height:44px;padding:0;color:var(--sv-ink);font-size:0.9375rem;text-decoration:underline;text-underline-offset:3px}

/* r6 combos from the owner's comments */
/* + pulse: the short real route ends in a dot with one soft pulse (stops for reduced motion) */
.tmw .tm-pulse{position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px;border-radius:50%;background:var(--sv-accent);opacity:.5;animation:tmPulse 2.4s ease-out infinite}
@keyframes tmPulse{0%{transform:scale(1);opacity:.45}80%,100%{transform:scale(3.6);opacity:0}}
@media (prefers-reduced-motion:reduce){.tmw .tm-pulse{animation:none;opacity:0}}
/* + C: place on its own line, the icon line (A) below it */
html:root .rn-place{display:block;font-size:0.9375rem;min-height:0}
html:root .rn-meta{display:flex;gap:14px;justify-content:flex-start;font-size:0.8125rem;color:var(--sv-faint);margin-top:2px}
html:root .rn-meta>span:empty{display:none}
html:root .rn-meta svg{opacity:.8}

/* ---- r7 sign-in by e-mail ---- */
#auth{margin-top:20px}
.af{display:flex;flex-direction:column}
.af label{font-size:0.9375rem;font-weight:600;color:var(--sv-ink);margin:12px 0 6px}
.af label:first-child{margin-top:0}
.af input{height:48px;font-size:1.0625rem;padding:0 14px;border-radius:8px;background:var(--sv-surface);color:var(--sv-ink);border:1px solid var(--sv-line-strong);width:100%;min-width:0}
.af input:focus{outline:2px solid var(--sv-accent);outline-offset:1px}
.af .btn.full{height:50px;margin-top:16px;font-size:1.0625rem;width:100%;justify-content:center}
.af .arow{display:flex;gap:8px}.af .arow .btn{height:48px;flex:none;padding:0 18px;font-size:1.0625rem}
.af .acode{font-size:1.375rem;letter-spacing:.3em;font-variant-numeric:tabular-nums;text-align:center}
.af .alead{font-size:1rem;line-height:1.5;color:var(--sv-muted);margin:0 0 14px;max-width:none}
.af .alead b{color:var(--sv-ink);font-weight:600}
.af .afine{font-size:0.9375rem;line-height:1.45;color:var(--sv-muted);margin:12px 0 0;max-width:none}
.af .amsg{min-height:22px;margin-top:8px;display:flex;align-items:center;gap:6px;font-size:0.9375rem;color:var(--sv-muted)}
.af .amsg.bad{color:var(--sv-warn)}
.af .amsg:empty{min-height:0;margin:0}
.af .alinks{display:flex;gap:20px;margin-top:10px;flex-wrap:wrap}
.af .tlink{min-height:44px;padding:0;background:none;border:0;color:var(--sv-ink);font-size:0.9375rem;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--sv-line-strong)}
.af .tlink:disabled{color:var(--sv-faint);text-decoration:none}
.amail{margin-top:2px;font-size:0.9375rem}
.ln p.alead,.ln p.afine{margin-top:0}

/* ---- r7.1 from the reader reviews ---- */
/* text size (account sheet): the reading parts grow, the map and its controls stay */
html[data-fs=l] :is(#phead,#pbody,#sheet,.ln,#dayhd){zoom:1.15}
html[data-fs=xl] :is(#phead,#pbody,#sheet,.ln,#dayhd){zoom:1.3}
/* day details line: larger and readable (was 13px faint) */
html:root .rn-meta{font-size:0.875rem;color:var(--sv-muted)}
.new.tag{font-size:0.75rem;padding:3px 7px}
/* day header: a clear way back, share */
#dayhd .dback.txt{display:inline-flex;align-items:center;gap:6px;width:auto;padding:0 10px 0 6px;font-size:0.9375rem;font-weight:600;color:var(--sv-ink);min-height:44px}
#snote{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translate(-50%,12px);opacity:0;z-index:3000;background:var(--sv-ink);color:var(--sv-bg);font-size:0.9375rem;font-weight:600;padding:10px 16px;border-radius:999px;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
#snote.show{opacity:1;transform:translate(-50%,0)}

/* ---- r7.1 WCAG 2.2 AA fixes (low-vision audit) ---- */
/* 1.4.3: faint text readable in light (5.2:1 on white) */
html[data-theme=light]{--sv-faint:#676d78;--faint:#676d78}
html[data-theme=light] .new.tag{color:#b32e22}
/* 1.4.11: input borders at 3:1 or more */
html{--input-line:#6b717f}
html[data-theme=light]{--input-line:#868c98}
.af input,#pbody textarea,#pbody input[type=text],.ln input{border:1px solid var(--input-line)!important}
.af input[aria-invalid=true]{border-color:var(--sv-warn)!important}
/* 1.4.10: weather facts wrap instead of scrolling sideways */
.wfacts{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px}
/* titles may use two lines instead of being cut */
.row .rt>span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* the trip title is a real button inside the heading */
#title .ttb{all:unset;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font:inherit;color:inherit;letter-spacing:inherit;border-radius:6px}
#title .ttb:focus-visible{outline:2px solid var(--sv-accent);outline-offset:3px}
#dayhd h2.dt{margin:0;font-weight:400}
/* the replay slider shows focus */
#rdTrack:focus-visible{outline:2px solid var(--sv-accent);outline-offset:4px;border-radius:6px}
/* the current day carries a second cue besides colour */
.row.cur .rd{position:relative}.row.cur .rd::before{content:'';position:absolute;left:-12px;top:6px;bottom:6px;width:2px;border-radius:1px;background:var(--sv-accent)}
/* r7.1 walk fixes: day header shows date and the full title on two lines; long place pills stop at the edge */
#dayhd h2.dt{display:flex;flex-direction:column;white-space:normal;line-height:1.2;padding:6px 0}
#dayhd h2.dt b{font-size:0.8125rem;font-weight:600;color:var(--sv-muted)}
#dayhd h2.dt span{font-size:1rem;font-weight:600;color:var(--sv-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dlab{max-width:46vw;overflow:hidden;text-overflow:ellipsis}
/* day header: buttons on one row, the date and title on their own full-width row below (no squeezed text) */
html:root body.dayopen #dayhd{flex-wrap:wrap;row-gap:0}
html:root #dayhd #dShare{margin-left:auto}
html:root #dayhd h2.dt{order:10;flex:1 0 100%;padding:0 4px 8px}
html:root #dayhd h2.dt{align-items:flex-start;text-align:left}

/* FERN-36: below 360 px (with the default large text) the back label pushed the next-day arrow onto its own line */
@media (max-width:359px){#dayhd .dback.txt span{display:none}#dayhd .dback.txt{padding:0 6px}}
