/*
 * UI in Desktop Halfpipe's Concept 2 style: paper/kraft 9-slice panels, plate buttons,
 * Staatliches signs + Courier Prime type. Art in ui/ is copied from the game's ui2 kit
 * (our own art); fonts are OFL (licences in ui/fonts).
 */
@font-face { font-family: "C2 Sign"; src: url("ui/fonts/Staatliches-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "C2 Type"; src: url("ui/fonts/CourierPrime-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "C2 Type"; src: url("ui/fonts/CourierPrime-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
/* Type set: Literata (bold for headings and names, regular for text), Special Elite stamps; Staatliches stays for the logo
   and town names, Courier Prime for numbers. All OFL except Special Elite (Apache 2.0); subset to Latin, self-hosted. */
@font-face { font-family: "SN Body"; src: url("ui/fonts/Literata.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "SN Stamp"; src: url("ui/fonts/SpecialElite-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #2b2620;
  --ink-soft: #574d40;
  --cream: #f3e6c8;
  --glow: #b0532e;
  --btn-ink: #1d2610;
  --water: #3f76a8;
  --water-night: #1d2f45;
  --open: #3d7a2e;
  --sign: "C2 Sign", "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  --type: "SN Body", Georgia, "Times New Roman", serif;
  --head: "SN Body", Georgia, serif;  /* headings: Literata bold (Rye retired) */
  --data: "C2 Type", "Courier New", monospace;
  --stamp: "SN Stamp", "C2 Type", "Courier New", monospace;
  --panel: 18px solid transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--water); color: var(--ink);
  font: 15px/1.4 var(--type); transition: background-color 1.2s; }
#map { position: fixed; inset: 0; }
#map canvas { image-rendering: pixelated; transition: filter 1.6s ease; }
body.night { background: var(--water-night); }
body.night #map canvas { filter: brightness(.5) saturate(.55) contrast(1.1); }
body.dusk #map canvas { filter: sepia(.25) saturate(1.15) brightness(.92) hue-rotate(-8deg); }
body.golden #map canvas { filter: sepia(.45) saturate(1.3) brightness(1.05) hue-rotate(-12deg); }
body.night.golden #map canvas { filter: brightness(.5) saturate(.55) contrast(1.1); }

.paper { border: var(--panel); border-image: url("ui/panel_paper.png") 21 fill / 18px stretch;
  filter: drop-shadow(0 4px 8px rgba(20, 16, 10, .4)); }

/* Loader: ShoreNav sign over the water with a rising tide bar. */
#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; gap: 14px; text-align: center;
  background: var(--water); color: var(--cream); transition: opacity .8s; }
#loader.gone { opacity: 0; pointer-events: none; }
#loader .sign { font: 400 44px/1 var(--sign); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 6px 22px;
  border: 14px solid transparent; border-image: url("ui/card_kraft.png") 20 fill / 14px stretch; }
#loader .sign span { display: block; font: 700 14px var(--type); letter-spacing: 0; text-transform: none; color: var(--glow); }
#loader .tide { width: 220px; height: 10px; margin: 0 auto; background: rgba(0, 0, 0, .25); outline: 2px solid var(--ink); }
#loader .tide i { display: block; height: 100%; width: 4%; background: #cfe6f5; transition: width .3s; }
#loader p { margin: 0; font-size: 13px; }

/* Top bar: kraft title card + plate buttons. */
.bar { position: fixed; top: 12px; left: 12px; right: 12px; display: flex; gap: 12px; align-items: flex-start;
  justify-content: space-between; pointer-events: none; z-index: 5; }
.bar > * { pointer-events: auto; }
.bar h1 { margin: 0; padding: 2px 10px; font: 400 22px/1.2 var(--sign); letter-spacing: .04em; text-transform: uppercase;
  border: 12px solid transparent; border-image: url("ui/card_kraft.png") 20 fill / 12px stretch;
  filter: drop-shadow(0 3px 5px rgba(20, 16, 10, .35)); }
.bar h1 span { display: block; font: 700 13px/1.2 var(--type); letter-spacing: 0; text-transform: none; color: var(--glow); }
.controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

button { font: 700 14px/1 var(--type); color: var(--ink); padding: 6px 12px; cursor: pointer; background: transparent;
  border: 6px solid transparent; border-image: url("ui/btn_secondary.png") 6 fill / 6px stretch;
  filter: drop-shadow(0 2px 3px rgba(20, 16, 10, .35)); }
button:active { border-image-source: url("ui/btn_secondary_pressed.png"); }
button[aria-pressed="true"] { color: var(--btn-ink); text-shadow: 0 1px 0 rgba(236, 244, 214, .55);
  border-image-source: url("ui/btn_primary.png"); }
button[aria-pressed="true"]:active { border-image-source: url("ui/btn_primary_pressed.png"); }
button:focus-visible, a:focus-visible, input:focus-visible, li:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.linkish { border: 0; border-image: none; filter: none; text-decoration: underline; color: var(--ink-soft); padding: 6px; }

/* Today strip + alerts under the title. */
.today { position: fixed; top: 84px; left: 12px; max-width: calc(100vw - 390px); display: flex; flex-wrap: wrap; gap: 4px 12px;
  padding: 2px 8px; font-size: 13px; color: var(--cream); z-index: 4;
  border: 7px solid transparent; border-image: url("ui/toast.png") 7 fill / 7px stretch; }
.today:empty { display: none; }
.today a { color: var(--cream); }
.alerts { position: fixed; top: 124px; left: 12px; max-width: calc(100vw - 390px); z-index: 4; padding: 6px 10px; font-size: 13px;
  background: #7a2a1a; color: #fff3e0; outline: 2px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.alerts a { color: inherit; }

/* Map layer: labels, pins, clusters, ambient life. Positioned by app.js each frame. */
#layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#layer > * { position: absolute; left: 0; top: 0; will-change: transform; }
.label { font-family: var(--sign); color: var(--cream); white-space: nowrap; letter-spacing: .05em;
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 2px 0 var(--ink); }
.label.big { font-size: 24px; text-transform: uppercase; letter-spacing: .08em; }
.label.mid { font-size: 16px; text-transform: uppercase; }
.label.small { font-size: 13px; }
body.nolabels .label { display: none !important; }

.mpin { pointer-events: auto; width: 26px; height: 30px; padding: 3px 3px 7px; border: 0; border-image: none; filter: none;
  background: var(--pin, var(--glow)); color: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  box-shadow: inset 0 0 0 2px var(--ink); }
.mpin svg { width: 20px; height: 20px; display: block; image-rendering: pixelated; color: #fff8e6; }
.mpin:hover, .mpin:focus-visible { transform-origin: 50% 100%; scale: 1.25; outline: none; }
.cat-food { --pin: #c8553d; } .cat-stay { --pin: #7b5ea7; } .cat-grocery { --pin: #4f8a3a; } .cat-fuel { --pin: #3a3a42; }
.cat-auto { --pin: #6b6f78; } .cat-medical { --pin: #c23b3b; } .cat-pharmacy { --pin: #d0657a; } .cat-hardware { --pin: #a8742e; }
.cat-money { --pin: #2f6a5a; } .cat-pets { --pin: #b77b3e; } .cat-outdoors { --pin: #2f7d8f; } .cat-shops { --pin: #b0532e; }
.cat-gov { --pin: #44506b; } .cat-landmark { --pin: #d9a441; } .cat-event { --pin: #8a3a6b; }
body.night .mpin { box-shadow: inset 0 0 0 2px var(--ink), 0 0 10px 3px rgba(255, 211, 90, .55); }
.cluster { pointer-events: auto; min-width: 30px; height: 30px; padding: 0 6px; font: 400 16px/18px var(--sign); color: var(--cream);
  background: var(--ink); border: 3px solid var(--cream); border-image: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }

.boat { width: 22px; height: 12px; }
.boat svg { width: 100%; height: 100%; display: block; }
.car { width: 5px; height: 3px; outline: 1px solid var(--ink); }
body.night .car { box-shadow: 4px 0 6px 2px rgba(255, 240, 180, .7); }
.spark { width: 4px; height: 2px; background: #cfe6f5; opacity: 0; animation: twinkle 3.2s infinite steps(4); }
@keyframes twinkle { 0%, 70%, 100% { opacity: 0; } 80% { opacity: .9; } 90% { opacity: .4; } }


/* Info card: the game's paper panel. */
#card { position: fixed; left: 12px; bottom: 44px; width: min(360px, calc(100vw - 32px)); padding: 4px 8px; z-index: 6;
  border: var(--panel); border-image: url("ui/panel_paper.png") 21 fill / 18px stretch;
  filter: drop-shadow(0 4px 8px rgba(20, 16, 10, .4)); }
#card h2 { margin: 0 34px 2px 0; font: 400 22px/1.15 var(--sign); letter-spacing: .03em; text-transform: uppercase; }
#card p { margin: 4px 0; }
#card .kind { color: var(--ink-soft); padding-bottom: 6px; background: url("ui/label_plate.png") left bottom / 100% 3px no-repeat; }
#card .kind b { font-size: 12px; padding: 1px 5px; color: #fff; }
#card .kind b.open { background: var(--open); } #card .kind b.closed { background: #7a2a1a; }
#card a { color: var(--glow); font-weight: 700; }
#card .info { font-size: 13px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card-actions button { font-size: 13px; padding: 4px 8px; }
#card .close { position: absolute; top: -6px; right: -6px; padding: 2px 8px; font-size: 16px; }

/* ShoreNav panel: paper panel docked right; bottom sheet on phones. */
#shorenav { position: fixed; top: 84px; right: 12px; width: 350px; max-height: calc((calc(100vh - 140px)) / var(--ui-scale, 1)); display: flex; z-index: 5;
  flex-direction: column; padding: 2px 6px; border: var(--panel);
  border-image: url("ui/panel_paper.png") 21 fill / 18px stretch; filter: drop-shadow(0 4px 8px rgba(20, 16, 10, .4)); }
#shorenav.collapsed [role=tabpanel] { display: none; }
.sn-head { display: flex; justify-content: space-between; gap: 6px; }
.sn-head [role=tablist] { display: flex; gap: 4px; }
[role=tab] { padding: 5px 8px; font-size: 13px; }
[role=tab][aria-selected="true"] { color: var(--btn-ink); border-image-source: url("ui/btn_primary.png"); }
#sn-toggle { padding: 5px 8px; }
#shorenav.collapsed #sn-toggle { transform: rotate(180deg); }
[role=tabpanel] { display: flex; flex-direction: column; min-height: 0; margin-top: 8px; }
[role=tabpanel][hidden] { display: none; }
#sn-q, .dates input { width: 100%; font: 15px var(--type); padding: 6px 8px; background: #fffaf0; border: 2px solid var(--ink-soft); color: var(--ink); }
.check { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.chips button { font-size: 12px; padding: 4px 6px; display: inline-flex; align-items: center; gap: 4px; }
.chips button svg { width: 13px; height: 13px; color: var(--ink); }
.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; flex: 1; }
.list li { padding: 6px 4px 6px 30px; border-bottom: 1px dashed rgba(87, 77, 64, .4); cursor: pointer; position: relative; }
.list li:hover, .list li:focus { background: rgba(176, 83, 46, .1); outline: none; }
.list li strong { display: block; font-weight: 700; }
.list li span { font-size: 12px; color: var(--ink-soft); }
.list li.hint { cursor: default; color: var(--ink-soft); font-size: 13px; padding-left: 4px; }
.ico { position: absolute; left: 4px; top: 8px; width: 20px; height: 20px; padding: 2px; background: var(--pin); outline: 1px solid var(--ink); }
.ico svg { width: 16px; height: 16px; display: block; color: #fff8e6; }
.tag { float: right; font: 400 11px var(--sign); letter-spacing: .05em; color: var(--cream); background: var(--ink-soft);
  padding: 1px 5px; font-style: normal; }
.note, .claim { font-size: 12px; color: var(--ink-soft); margin: 6px 0 0; }

/* Onboarding: paper panel over the moving map. */
#onboard { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(20, 30, 45, .25); }
#onboard[hidden] { display: none; }
#onboard section { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 8px 12px;
  border: var(--panel); border-image: url("ui/panel_paper.png") 21 fill / 18px stretch; filter: drop-shadow(0 6px 14px rgba(20, 16, 10, .5));
  animation: rise .5s ease-out; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
#onboard h2 { margin: 0 0 6px; font: 400 30px/1.1 var(--sign); text-transform: uppercase; letter-spacing: .04em; }
#onboard p { margin: 6px 0; }
.ob-big { display: grid; gap: 8px; margin: 10px 0; }
.ob-big button { text-align: left; padding: 10px 12px; }
.ob-big b { display: block; font: 400 22px var(--sign); letter-spacing: .04em; text-transform: uppercase; }
.ob-big span { font-weight: 400; font-size: 13px; }
.ob-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.ob-nav > :last-child { margin-left: auto; }
#ob-radius-row { margin: 8px 0; } #ob-radius { width: 100%; accent-color: var(--glow); }
.dates { display: flex; gap: 8px; } .dates label { flex: 1; font-size: 13px; }
body.onboarding #shorenav, body.onboarding #card, body.onboarding .today, body.onboarding .alerts { visibility: hidden; }

.toast-undo { margin-left: 6px; padding: 2px 10px; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 30; padding: 4px 12px; color: var(--cream);
  border: 7px solid transparent; border-image: url("ui/toast.png") 7 fill / 7px stretch; }

/* OSM credit and footer links: dark toast strip, always visible. */
.attrib { position: fixed; right: 4px; bottom: 4px; padding: 0 6px; font-size: 12px; color: var(--cream); z-index: 6;
  border: 7px solid transparent; border-image: url("ui/toast.png") 7 fill / 7px stretch; }
.attrib a { color: var(--cream); }

@media (max-width: 760px) {
  .bar { left: 16px; right: 16px; }
  .bar h1 { font-size: 18px; padding: 0 6px; }
  .bar h1 span { display: none; }
  .controls button { font-size: 12px; padding: 4px 6px; }
  .today { top: 64px; left: 16px; right: 16px; max-width: none; font-size: 12px; }
  .alerts { top: 104px; left: 16px; right: 16px; max-width: none; }
  #shorenav { top: auto; bottom: 30px; left: 16px; right: 16px; width: auto; max-height: calc((46vh) / var(--ui-scale, 1)); }
  #card { left: 16px; bottom: calc(46vh + 40px); }
  #sn-cats { flex-wrap: nowrap; overflow-x: auto; flex-shrink: 0; }
  #sn-cats button { flex-shrink: 0; }
  .attrib { left: 4px; right: 4px; text-align: center; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Favorites, partner logos, billboards ---- */
.mpin.fav::after { content: "★"; position: absolute; top: -10px; right: -8px; font-size: 13px; color: #ffd35a;
  text-shadow: 0 0 2px var(--ink), 0 0 2px var(--ink); }
.mpin.has-logo { overflow: visible; clip-path: none; border-radius: 0; }
.mpin .plogo { position: absolute; left: 50%; bottom: calc(100% + 2px); width: 28px; height: 28px; transform: translateX(-50%);
  image-rendering: pixelated; outline: 2px solid var(--ink); background: var(--cream); }
.board { pointer-events: auto; padding: 0; border: 0; border-image: none; width: 46px; height: 44px; background: none; filter: none; }
.board img { display: block; width: 40px; height: 30px; margin: 0 auto; object-fit: cover; image-rendering: pixelated;
  outline: 3px solid #5b4632; background: var(--cream); }
.board::after { content: ""; display: block; width: 4px; height: 12px; margin: 0 auto; background: #5b4632; }
.board em { position: absolute; top: -2px; right: -2px; font: 400 9px var(--sign); font-style: normal; color: var(--cream); background: var(--ink); padding: 0 2px; }
/* owners' own uploaded logos (owner-media.js) are photos, not pixel art: smooth, and never cropped */
.mpin .plogo[src^="https:"], .board img[src^="https:"], #card .logo[src^="https:"], .list li .ico.logo[src^="https:"] { image-rendering: auto; object-fit: contain; background: #fff; }

/* ---- Card: venue on top, event(s) underneath ---- */
#card { max-height: calc(100vh - 160px); overflow-y: auto; }
#card .venue h2 { display: flex; align-items: center; gap: 6px; }
#card .logo { width: 28px; height: 28px; image-rendering: pixelated; outline: 2px solid var(--ink); }
#card .event { margin-top: 10px; padding-top: 8px; border-top: 2px dashed rgba(87, 77, 64, .5); }
#card .event h3 { margin: 0; font: 400 19px/1.15 var(--sign); letter-spacing: .03em; text-transform: uppercase; }
#card .event .when { margin: 2px 0; font-weight: 700; color: var(--glow); }
#card .event.compact h3 { font-size: 16px; }
#card .sub { margin: 10px 0 0; font: 400 14px var(--sign); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.tag.paid { background: #6b4a12; }
#card .tag.paid { float: none; display: inline-block; margin-bottom: 4px; }

/* ---- Lists: section heads, badge, posts, voices ---- */
.list li.head { cursor: default; padding: 10px 4px 2px; border: 0; font: 400 14px var(--sign); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); background: none; }
.badge:not(:empty) { margin-left: 3px; padding: 0 4px; background: var(--glow); color: #fff; font-size: 11px; }
.list li.post, .list li.voice { padding-left: 4px; cursor: default; }
.list li.post p { margin: 4px 0; font-size: 13px; }
.list li.voice button { margin-top: 4px; font-size: 12px; padding: 3px 8px; }
.list li .ico.logo { padding: 0; object-fit: cover; image-rendering: pixelated; background: var(--cream); }

/* ---- Trip planner ---- */
.trip-dates { margin-bottom: 6px; }
.trip-dates input, .trip-when input, .trip-when select { font: 13px var(--type); padding: 3px 4px; background: #fffaf0;
  border: 2px solid var(--ink-soft); color: var(--ink); }
.trip-item { cursor: default !important; }
.trip-item strong { cursor: pointer; text-decoration: underline dotted; }
.trip-when { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.trip-when input { flex: 1 1 150px; min-width: 0; }
.flag { margin: 4px 0 0; padding: 2px 6px; font-size: 12px; font-weight: 700; color: #7a2a1a; background: #f9ece7; outline: 1px solid #c8553d; }

/* ---- Onboarding area tiers: shore (wide, dark), counties (medium, coloured), towns (small) ---- */
#ob-where { display: block; }
.tier1, .tier2 { margin: 6px 0; }
.tier2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.area-shore { width: 100%; padding: 10px; font: 400 22px var(--sign); letter-spacing: .05em; text-transform: uppercase; }
.county { padding: 6px; outline: 2px solid var(--ink-soft); }
.county-northampton { background: rgba(47, 125, 143, .14); }
.county-accomack { background: rgba(176, 83, 46, .12); }
.area-county { width: 100%; font: 400 16px var(--sign); letter-spacing: .04em; text-transform: uppercase; padding: 6px; }
.tier3 { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.area-town { font-size: 11px; padding: 3px 5px; font-weight: 400; }
.area-near { width: 100%; font-size: 13px; }
.ob-biz { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 760px) { .tier2 { grid-template-columns: 1fr; } }

/* Card sits under the top bar on wide screens so tall venue+event cards never run off the top. */
#card { top: 150px; bottom: auto; max-height: calc(100vh - 200px); overflow-x: hidden; }
@media (max-width: 900px) {
  .today { max-width: none; right: 16px; }
  #shorenav { top: auto; bottom: 30px; left: 16px; right: 16px; width: auto; max-height: calc((46vh) / var(--ui-scale, 1)); }
  #card { top: auto; left: 16px; right: 16px; width: auto; bottom: calc(46vh + 40px); max-height: calc(54vh - 130px); }
  #sn-cats { flex-wrap: nowrap; overflow-x: auto; flex-shrink: 0; }
  #sn-cats button { flex-shrink: 0; }
}

/* Account dialog */
#acct { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; background: rgba(20, 30, 45, .35); }
#acct[hidden] { display: none; }
#acct section { position: relative; width: min(420px, calc(100vw - 32px)); padding: 8px 12px; border: var(--panel);
  border-image: url("ui/panel_paper.png") 21 fill / 18px stretch; filter: drop-shadow(0 6px 14px rgba(20, 16, 10, .5)); }
#acct h2 { margin: 0 0 6px; font: 400 26px var(--sign); text-transform: uppercase; }
#acct label { display: block; margin-top: 8px; font-weight: 700; font-size: 13px; }
#acct input { width: 100%; font: 15px var(--type); padding: 6px 8px; background: #fffaf0; border: 2px solid var(--ink-soft); }
#acct .close { position: absolute; top: -6px; right: -6px; padding: 2px 8px; }
/* sign-in: one box and its button on one row; the code takes the email's place; while the phone keyboard is up the
   box moves to the top of what's still visible and the extras step aside, so the button is never under the keyboard */
#acct .acct-row { display: flex; gap: 6px; align-items: stretch; } #acct .acct-row input { flex: 1; min-width: 0; } #acct .acct-row button { white-space: nowrap; }
#acct .acct-code { display: grid; gap: 6px; margin: 4px 0 8px; } #acct .acct-code .linkish { justify-self: start; }
#acct.coded #acct-form > label, #acct.coded #acct-form > .acct-row, #acct.coded .acct-google, #acct.coded .acct-or { display: none; }
#acct.coded p:has(> .acct-google) { display: none; }
#acct.kb { place-items: start center; padding-top: calc(var(--vv-top, 0px) + 8px); }
#acct.kb #acct-in > p:not(.acct-sent), #acct.kb .note { display: none; }

/* ---- Global search ---- */
.gsearch-wrap { position: relative; flex: 1; max-width: 460px; margin: 6px 12px 0; }
#gsearch { width: 100%; font: 15px var(--type); padding: 8px 10px; background: #fffaf0; border: 3px solid var(--ink); color: var(--ink);
  box-shadow: 0 3px 6px rgba(20, 16, 10, .35); }
#gresults { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 60vh; overflow-y: auto;
  background: #fffaf0; outline: 3px solid var(--ink); box-shadow: 0 6px 14px rgba(20, 16, 10, .4); }
.ghead { padding: 6px 6px 2px; font: 400 13px var(--sign); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.gitem { padding: 5px 8px; cursor: pointer; }
.gitem b { display: block; } .gitem span { font-size: 12px; color: var(--ink-soft); }
.gitem:hover, .gitem.on { background: rgba(176, 83, 46, .14); }

/* ---- Settings menu, offline badge ---- */
.controls { position: relative; align-items: flex-start; }
.settings { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; gap: 6px; padding: 8px; width: 210px;
  border: 14px solid transparent; border-image: url("ui/card_kraft.png") 20 fill / 14px stretch; filter: drop-shadow(0 4px 8px rgba(20, 16, 10, .4)); }
.settings[hidden] { display: none; }
.settings button { width: 100%; text-align: left; font-size: 13px; }
.size-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.size-row button { width: auto; }
.offline { align-self: center; padding: 3px 8px; font: 700 12px var(--type); color: #fff3e0; background: #7a2a1a; outline: 2px solid var(--ink); }
body.contrast { --ink-soft: #2b2620; }
body.contrast .list li span, body.contrast .note, body.contrast .claim, body.contrast .info { color: var(--ink); }
body.contrast #shorenav, body.contrast #card, body.contrast #onboard section { border-image: none; background: #fffaf0; outline: 3px solid var(--ink); }
body.contrast .label { font-size: 115%; }
#shorenav, #card, .bar, #onboard section, #acct section { zoom: var(--ui-scale, 1); }

/* ---- Pins: highlight, closed dimming ---- */
.mpin.lit { scale: 1.45; z-index: 2; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px #ffd35a; clip-path: none; }
body.dimclosed .mpin.closed { opacity: .35; filter: grayscale(1); }
.list li.lit { background: rgba(255, 211, 90, .45); }
/* Sits in the panel bar next to the tabs; pops in after the map is moved. */
.search-area { margin: 0 auto 0 2px; padding: 5px 8px; font-size: 13px; white-space: nowrap; animation: area-pop .22s ease-out; }
@keyframes area-pop { from { transform: translateY(6px) scale(.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .search-area { animation: none; } }

/* ---- Card extras ---- */
.checked { font-size: 12px; color: var(--ink-soft); margin: 6px 0 0; }
.checked .linkish { padding: 0 4px; font-size: 12px; }
.slot { margin-top: 8px; padding: 6px; background: rgba(255, 250, 240, .7); outline: 1px dashed var(--ink-soft); }

/* ---- Trip timeline ---- */
.list li.leg { padding: 2px 4px 2px 30px; border: 0; font-size: 12px; color: var(--ink-soft); cursor: default; }
.list li.leg.tight { color: #7a2a1a; font-weight: 700; }
.trip-tools button { font-size: 12px; }

/* ---- Phone bottom sheet ---- */
.grip { display: none; }
@media (max-width: 900px) {
  .gsearch-wrap { order: 3; flex-basis: 100%; max-width: none; margin: 6px 0 0; }
  .bar { flex-wrap: wrap; }
  .today { top: 112px; } .alerts { top: 150px; }
  .grip { display: block; width: 100%; height: 18px; padding: 0; margin: -6px 0 4px; border: 0; border-image: none; filter: none; background: none; cursor: grab; }
  .grip i { display: block; width: 48px; height: 5px; margin: 0 auto; background: var(--ink-soft); }
  #shorenav { transition: max-height .25s ease; }
  #shorenav.sheet-peek { max-height: calc((96px) / var(--ui-scale, 1)); } #shorenav.sheet-peek [role=tabpanel] { display: none; }
  #shorenav.sheet-half { max-height: calc((46vh) / var(--ui-scale, 1)); }
  #shorenav.sheet-full { max-height: calc((calc(100vh - 130px)) / var(--ui-scale, 1)); }
  body.card-open #shorenav.sheet-full { max-height: calc((46vh) / var(--ui-scale, 1)); }
}

/* ---- Print: just the trip ---- */
@media print {
  body.print-trip > *:not(#shorenav) { display: none !important; }
  body.print-trip #shorenav { position: static; width: auto; max-height: none; border: 0; filter: none; }
  body.print-trip #shorenav .sn-head, body.print-trip #shorenav .grip, body.print-trip .trip-tools, body.print-trip [role=tabpanel]:not(#sn-my),
  body.print-trip .trip-when button { display: none !important; }
  body.print-trip .list { overflow: visible; }
  html, body { overflow: visible; height: auto; background: #fff; }
}
@media (max-width: 900px) {
  .today { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .alerts { max-height: 64px; overflow-y: auto; }
}
@media (max-width: 900px) {
  #shorenav.sheet-full { max-height: calc((calc(100vh - 200px)) / var(--ui-scale, 1)); }
  .dates { flex-wrap: wrap; } .dates label { flex: 1 1 140px; min-width: 0; } .dates input { min-width: 0; }
  .trip-when input { flex-basis: 100%; }
}

/* Weather effects canvas (Desktop Halfpipe weather.js) over the map, under the UI. */
#weather { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---- Real-time sky: light fades with the real sun (--dark 0..1), nights brighten with the moon,
   and the map takes a gentle seasonal grade. Golden-hour intro still wins while it plays. ---- */
:root { --dark: 0; --moonlight: 0; --s-sat: 1; --s-hue: 0deg; --s-sepia: 0; --s-bright: 1; }
body[data-season="winter"] { --s-sat: .78; --s-hue: 8deg; --s-sepia: 0; --s-bright: 1.04; }
body[data-season="spring"] { --s-sat: 1.08; --s-hue: -4deg; --s-sepia: 0; --s-bright: 1.02; }
body[data-season="summer"] { --s-sat: 1.12; --s-hue: 0deg; --s-sepia: .04; --s-bright: 1; }
body[data-season="autumn"] { --s-sat: 1.05; --s-hue: -14deg; --s-sepia: .18; --s-bright: .98; }
#map canvas, body.night #map canvas, body.dusk #map canvas {
  filter: brightness(calc(var(--s-bright) * (1 - var(--dark) * (.52 - var(--moonlight) * .14))))
          saturate(calc(var(--s-sat) * (1 - var(--dark) * .45)))
          sepia(calc(var(--s-sepia) + (1 - var(--dark)) * var(--dusk, 0)))
          hue-rotate(var(--s-hue));
}
body.dusk { --dusk: .22; }
body.golden #map canvas { filter: sepia(.45) saturate(1.3) brightness(1.05) hue-rotate(-12deg); }
body { background: color-mix(in srgb, var(--water-night) calc(var(--dark) * 100%), var(--water)); }
#moon { position: fixed; top: 64px; left: 50%; width: 72px; height: 72px; margin-left: -36px; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity 2s; }
@media (max-width: 900px) { #moon { top: auto; bottom: 52vh; left: auto; right: 12px; margin: 0; width: 56px; height: 56px; } }

/* ---- Today strip (tap target) + Conditions panel ---- */
.today { cursor: pointer; }
.today:focus-visible { outline: 2px solid #ffd35a; }
.today .more { margin-left: auto; text-decoration: underline; }
.conditions { position: fixed; top: 118px; left: 12px; z-index: 7; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 170px);
  overflow-y: auto; padding: 4px 10px; border: var(--panel); border-image: url("ui/panel_paper.png") 21 fill / 18px stretch;
  filter: drop-shadow(0 4px 8px rgba(20, 16, 10, .4)); }
.conditions[hidden] { display: none; }
.conditions .close { position: sticky; top: 0; float: right; padding: 2px 8px; }
.conditions h3 { margin: 10px 0 4px; font: 400 15px var(--sign); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.conditions section:first-of-type h3 { margin-top: 2px; }
.crow { display: flex; justify-content: space-between; gap: 10px; margin: 3px 0; font-size: 13px; }
.crow span { color: var(--ink-soft); flex: 0 0 auto; } .crow b { text-align: right; font-weight: 700; }
.conditions .note { font-size: 12px; } .conditions .src { margin: 10px 0 4px; }
.tide-svg { width: 100%; height: auto; display: block; background: rgba(63, 118, 168, .1); outline: 1px solid rgba(43, 38, 32, .3); }
.tide-fill { fill: rgba(63, 118, 168, .35); } .tide-line { fill: none; stroke: #2f5d8a; stroke-width: 2; }
.tide-now { stroke: var(--glow); stroke-width: 2; stroke-dasharray: 3 2; } .tide-lbl { font: 700 9px var(--type); fill: var(--ink); }
@media (max-width: 900px) { .conditions { top: 140px; left: 16px; right: 16px; width: auto; max-height: calc(100vh - 200px); } }
.tide-lbl { font-size: 6px; }
.cblock { margin: 4px 0; font-size: 13px; } .cblock span { display: block; color: var(--ink-soft); }

/* ---- Facilities pins, verified badge, bike layer, Good to know, print map ---- */
.cat-beach { --pin: #d8b45a; } .cat-ramp { --pin: #2f5d8a; } .cat-restroom { --pin: #5a6a7a; } .cat-ev { --pin: #3d8a4a; }
.cat-farm { --pin: #7a9a2e; } .cat-history { --pin: #8a5a3a; } .cat-wildlife { --pin: #4a7a5a; }
.verified { margin: 0 0 4px; font-size: 12px; font-weight: 700; }
.verified.v2 { color: #2f6a2e; } .verified.v1 { color: #8a6a12; } .verified.v0 { color: var(--ink-soft); font-weight: 400; }
.mpin.verified::before { content: "✓"; position: absolute; top: -9px; left: -7px; width: 13px; height: 13px; font: 700 10px/13px var(--type);
  text-align: center; color: #fff; background: #2f6a2e; border-radius: 50%; outline: 1px solid var(--ink); }
.bike-layer { position: absolute; left: 0; top: 0; pointer-events: none; }
.list li.note-item { cursor: default; padding-left: 4px; } .list li.note-item a { font-size: 12px; }
.print-title { display: none; }
@media print {
  body.print-map > *:not(#map):not(.print-title) { display: none !important; }
  body.print-map #map { position: relative; width: 100%; height: 90vh; }
  body.print-map .print-title { display: block; font: 700 12px var(--type); margin: 0; }
  body.print-map #layer .mpin, body.print-map #layer .cluster, body.print-map .boat, body.print-map .car, body.print-map .spark { display: none !important; }
}


/* Gulls circling over water: two-frame wing flap. */
.gull { width: 22px; height: 10px; pointer-events: none; }
.gull svg { width: 100%; height: 100%; display: block; fill: #f4f1e8; filter: drop-shadow(0 1px 0 rgba(43, 38, 32, .55)); }
.gull .down { visibility: hidden; animation: flap .5s steps(1) infinite; }
.gull .up { animation: flap-up .5s steps(1) infinite; }
@keyframes flap-up { 50% { visibility: hidden; } }
@keyframes flap { 50% { visibility: visible; } }
body.night .gull { display: none !important; }

/* Alert rows with a dismiss button each. */
.alert-row { display: flex; align-items: flex-start; gap: 8px; }
.alert-row a { flex: 1; }
.alert-x { flex: 0 0 auto; padding: 0 6px; font-size: 16px; line-height: 18px; color: #fff3e0; background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 243, 224, .5); border-image: none; filter: none; }
.alert-x:hover { background: rgba(0, 0, 0, .45); }

/* ---- Pins on stalks: head clipped in .ph; stalk and anchor dot are the button background, so ::before
   (verified check) and ::after (favorite star) stay free. ---- */
.mpin { width: 26px; height: 38px; padding: 0; clip-path: none; box-shadow: none; overflow: visible;
  background: linear-gradient(var(--ink), var(--ink)) 12px 28px / 2px 8px no-repeat,
    radial-gradient(circle at 13px 36px, rgba(43, 38, 32, .55) 2px, transparent 3px); }
.mpin .ph { position: absolute; left: 0; top: 0; width: 26px; height: 30px; padding: 3px 3px 7px; background: var(--pin, var(--glow));
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); box-shadow: inset 0 0 0 2px var(--ink); }
.mpin.lit .ph { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px #ffd35a; clip-path: none; }
body.night .mpin .ph { box-shadow: inset 0 0 0 2px var(--ink), 0 0 10px 3px rgba(255, 211, 90, .55); }
.spark-layer { position: absolute; left: 0; top: 0; pointer-events: none; }
.boat::before { content: ""; position: absolute; right: 100%; top: 70%; width: 26px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(240, 248, 252, 0), rgba(240, 248, 252, .75)); clip-path: polygon(0 50%, 100% 0, 100% 100%); }

.alerts[hidden] { display: none; }  /* .alerts sets display:flex, which would override the hidden attribute */

/* Today strip + footer: crisp drawn dark plate instead of the stretched toast image. */
.today, .attrib { border: 2px solid #15120f; border-image: none; background: rgba(43, 38, 32, .94);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, .18), inset 0 -2px 0 rgba(0, 0, 0, .35), 0 2px 0 rgba(20, 16, 10, .35); }
.today { padding: 3px 10px; } .attrib { padding: 2px 8px; }

/* 32px pixel icons: cream glyph + ink outline. On light chips they are darkened to read. */
img.pi { display: block; width: 20px; height: 20px; image-rendering: pixelated; }
.ico img.pi { width: 16px; height: 16px; }
.chips button img.pi { width: 14px; height: 14px; filter: brightness(.25); }

/* Loading sign: the tagline stays still; a fade sweeps across it from the left. */
#loader .tagline { display: block; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: tagline-in 1.3s .35s ease-out both; }
@keyframes tagline-in { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* Pins don't move on hover; a styled label shows the name, a click opens compact details. */
.mpin:hover, .mpin:focus-visible { scale: none; }
.mpin:hover .ph, .mpin:focus-visible .ph { filter: brightness(1.12); }
.pin-tip { position: fixed; z-index: 40; transform: translate(-50%, -100%); pointer-events: none; padding: 2px 8px; white-space: nowrap;
  font: 400 15px var(--sign); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  border: 8px solid transparent; border-image: url("ui/card_kraft.png") 20 fill / 8px stretch; filter: drop-shadow(0 2px 3px rgba(20, 16, 10, .4)); }
.pin-tip[hidden], .pin-pop[hidden] { display: none; }
.pin-pop { position: fixed; z-index: 41; width: 240px; padding: 2px 6px 6px; font-size: 13px;
  border: 14px solid transparent; border-image: url("ui/panel_paper.png") 21 fill / 14px stretch; filter: drop-shadow(0 4px 8px rgba(20, 16, 10, .45)); }
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.pp-head strong { font: 400 17px/1.1 var(--sign); text-transform: uppercase; letter-spacing: .03em; }
.pp-x { padding: 0 6px; font-size: 14px; }
.pin-pop p { margin: 3px 0; } .pp-kind { color: var(--ink-soft); }
.pp-open.open { color: var(--open); font-weight: 700; } .pp-open.closed { color: #7a2a1a; font-weight: 700; }
.pp-ver { color: #2f6a2e; font-weight: 700; font-size: 12px; }
.pp-acts { display: flex; gap: 8px; align-items: center; margin-top: 6px; } .pp-acts button { font-size: 12px; padding: 3px 8px; }
.pp-acts a { color: var(--glow); font-weight: 700; }

/* Animated water canvas under the map tiles (inside #map so the night/season filter applies); night lights layer. */
.water-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#map > .openseadragon-container { z-index: 1; }
.lights-layer { position: absolute; left: 0; top: 0; pointer-events: none; }

/* Night darkening applies to the map and water canvases, never to the light layer itself. */
#map canvas.lights-layer, #map canvas.spark-layer, #map canvas.ambient-glow { filter: none !important; }

/* Night pins: glow follows the pin shape (drop-shadow on the button), no square box. */
body.night .mpin { box-shadow: none; filter: drop-shadow(0 0 3px rgba(255, 211, 90, .65)); }
body.night .mpin .ph { box-shadow: inset 0 0 0 2px var(--ink); }

.ambient-layer, .ambient-glow { position: absolute; left: 0; top: 0; pointer-events: none; }
body.print-map .ambient-layer { display: none; }

/* The moon/sun now only show as a reflection path on the water (water.js). */
#moon { display: none !important; }
.sn-head [role=tablist] { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sn-head [role=tablist] [role=tab], .search-area { flex: none; }
.search-area .short { display: none; }
@media (max-width: 480px) { .search-area .long { display: none; } .search-area .short { display: inline; } }

/* Hide icons: pins, labels and signs off; the living map (water, traffic, boats, lights) stays. */
body.clean-map #layer .mpin, body.clean-map #layer .cluster, body.clean-map #layer .label, body.clean-map #layer .board,
body.clean-map .pin-tip, body.clean-map .pin-pop { display: none !important; }

/* Text size (--ui-scale): panels are zoomed, so every position and height below is divided by the scale; tops
   come from the measured top bar (--bar-b), Today strip (--today-b) and alerts (--stack) set in extras.js. */
html .today, html .alerts, html .conditions { zoom: var(--ui-scale, 1); }
html .today { top: calc((var(--bar-b, 72px) + 6px) / var(--ui-scale, 1)); }
html .alerts { top: calc((var(--today-b, 112px) + 6px) / var(--ui-scale, 1)); }
html .conditions { top: calc((var(--stack, 120px) + 6px) / var(--ui-scale, 1)); max-height: calc((100vh - var(--stack, 120px) - 50px) / var(--ui-scale, 1));
  width: min(420px, calc((100vw - 32px) / var(--ui-scale, 1))); }
html #gresults { max-height: calc(60vh / var(--ui-scale, 1)); }
html #card { width: min(360px, calc((100vw - 32px) / var(--ui-scale, 1))); }
@media (min-width: 901px) {
  html .today, html .alerts { max-width: calc((100vw - 48px) / var(--ui-scale, 1) - 350px); }  /* stop short of the panel */
  html #shorenav { top: calc((var(--bar-b, 72px) + 10px) / var(--ui-scale, 1)); max-height: calc((100vh - var(--bar-b, 72px) - 56px) / var(--ui-scale, 1)); }
  html #card { top: calc((var(--stack, 140px) + 8px) / var(--ui-scale, 1)); max-height: calc((100vh - var(--stack, 140px) - 56px) / var(--ui-scale, 1)); }
}
@media (max-width: 600px) {
  html .bar { zoom: min(var(--ui-scale, 1), 1.2); }  /* phones: the top bar grows less so the map keeps room */
}
@media (max-width: 900px) {
  html #shorenav { --room: calc(100vh - var(--stack, 110px) - 48px); }
  html #shorenav.sheet-half { max-height: calc(min(46vh, var(--room)) / var(--ui-scale, 1)); }
  html #shorenav.sheet-full, html body.card-open #shorenav.sheet-full { max-height: calc(var(--room) / var(--ui-scale, 1)); }
  html #shorenav.sheet-peek { max-height: calc(96px / var(--ui-scale, 1) * min(var(--ui-scale, 1), 1.2)); }
  html #card { bottom: calc((min(46vh, 100vh - var(--stack, 110px) - 48px) + 38px) / var(--ui-scale, 1));
    max-height: calc((100vh - var(--stack, 110px) - min(46vh, 100vh - var(--stack, 110px) - 48px) - 60px) / var(--ui-scale, 1)); }
}
/* Map names grow with the text size too. */
.label.big { font-size: calc(24px * var(--ui-scale, 1)); } .label.mid { font-size: calc(16px * var(--ui-scale, 1)); }
.label.small { font-size: calc(13px * var(--ui-scale, 1)); } .pin-tip { font-size: calc(12px * var(--ui-scale, 1)); }
#shorenav input[type=search], #shorenav input[type=text] { min-width: 0; max-width: 100%; box-sizing: border-box; }

/* ---- Quality of life ---- */
:root { --pin-scale: min(var(--ui-scale, 1), 1.25); }  /* pins grow a little with the text size */
.mpin { transform-origin: 50% 100%; }
/* Keyboard users see where they are. */
:focus-visible { outline: 2px solid #ffd35a; outline-offset: 2px; }
.list li:focus-visible { outline: 2px solid #b0532e; outline-offset: -2px; }
/* Long names wrap to two lines instead of running out of their box. */
.list li strong, .pin-pop strong { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#card h2 { overflow-wrap: anywhere; }
/* Search boxes show their clear (x) button. */
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; cursor: pointer; }
/* Touch screens: comfortable tap areas without making anything look bigger. */
@media (pointer: coarse) {
  .mpin::after { content: ""; position: absolute; inset: -9px; }
  .settings button, [role=tab], .pp-acts a, .pp-acts button { min-height: 40px; }
}
/* Less motion when the system asks for it. */
@media (prefers-reduced-motion: reduce) {
  .gull, .mpin, .pin-pop, .boat, .search-area, #shorenav { animation: none !important; transition: none !important; }
}
/* Landscape phones: the panel sits at the side, leaving the map in the middle. */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 960px) {
  html #shorenav, html #shorenav.sheet-half, html #shorenav.sheet-full, html #shorenav.sheet-peek {
    top: calc((var(--bar-b, 60px) + 6px) / var(--ui-scale, 1)); bottom: calc(30px / var(--ui-scale, 1)); left: auto; right: 8px;
    width: calc(44vw / var(--ui-scale, 1)); max-height: none; }
  html #shorenav.sheet-peek [role=tabpanel]:not([hidden]) { display: block; }
  html .today, html .alerts { right: auto; max-width: calc((54vw - 24px) / var(--ui-scale, 1)); }
  html #card { top: calc((var(--stack, 100px) + 6px) / var(--ui-scale, 1)); bottom: auto; left: 8px; right: auto;
    width: min(360px, calc(50vw / var(--ui-scale, 1))); max-height: calc((100vh - var(--stack, 100px) - 40px) / var(--ui-scale, 1)); }
  .grip { display: none; }
}

/* ---- Fixes: the top bar (with the settings menu) stays above the conditions panel ---- */
.bar { z-index: 9; }
/* Settings, grouped; links to pages that left the phone footer */
.settings .sgroup { display: grid; gap: 5px; }
.settings h4 { margin: 4px 0 0; font: 400 13px var(--sign); letter-spacing: .06em; color: var(--ink-soft); }
.settings .s-you:empty { display: none; }
.settings .s-you { display: grid; gap: 5px; }
.settings .s-links { margin: 2px 0 0; font-size: 12px; }
.locate { display: none; }
.me-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #3d8bfd; border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(61, 139, 253, .3); pointer-events: none; }
/* heading arrow: a small triangle just outside the dot, rotated about the dot's centre (only while moving) */
.me-arrow { position: absolute; left: 50%; top: 50%; width: 0; height: 0; display: none; }
.me-dot.has-heading .me-arrow { display: block; }
.me-arrow::before { content: ""; position: absolute; left: -6px; top: -21px; border: solid transparent; border-width: 0 6px 9px;
  border-bottom-color: #3d8bfd; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); }
.next-row { list-style: none; padding: 4px 0 8px !important; border: 0 !important; cursor: default !important; }
.next-stop { display: block; padding: 12px; text-align: center; font-weight: 700; color: var(--btn-ink); text-decoration: none;
  border: 12px solid transparent; border-image: url("ui/btn_primary.png") 12 fill stretch; image-rendering: pixelated; }

/* ---- Phones ---- */
@media (max-width: 600px) {
  /* One row on top: sign, search, settings. */
  html .bar { flex-wrap: nowrap; gap: 6px; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; align-items: center; }
  .bar h1 { font-size: 16px; padding: 2px 6px; flex: none; }
  .bar h1 span { display: none; }
  html .gsearch-wrap { order: 2; flex: 1 1 0; flex-basis: 0; min-width: 0; margin: 0; }
  html .controls { order: 3; }
  #gsearch { box-sizing: border-box; min-width: 0; font-size: 16px; }  /* 16px stops iOS zooming in on focus */
  .controls { flex: none; }
  .settings { width: min(340px, calc(100vw - 24px)); grid-template-columns: 1fr 1fr; max-height: calc(var(--vvh, 100dvh) - 90px); overflow-y: auto; }
  .settings .s-you { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .settings .sgroup:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr 1fr; }
  .settings .sgroup:last-child h4, .settings .s-links { grid-column: 1 / -1; }
  /* Search results fill the space above the keyboard, with rows big enough for thumbs. */
  #gresults { position: fixed; left: 8px; right: 8px; top: calc(var(--bar-b, 60px) + 4px);
    max-height: calc(var(--vvh, 100dvh) - var(--bar-b, 60px) - 16px) !important; zoom: 1; }
  #gresults .gitem { padding: 10px 8px; }
  /* Footer: one short line, clear of the home indicator. */
  .attrib .wide { display: none; }
  .attrib { bottom: calc(2px + env(safe-area-inset-bottom)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html #shorenav { bottom: calc(26px + env(safe-area-inset-bottom)); }
  html #shorenav { --room: calc(100dvh - var(--stack, 110px) - 40px - env(safe-area-inset-bottom)); }
  /* Place details: a sheet from the bottom with the actions in thumb reach; the panel steps aside. */
  html #card, html body #card { top: auto !important; left: 0 !important; right: 0 !important; width: auto !important;
    bottom: calc(22px + env(safe-area-inset-bottom)) !important; max-height: calc(58dvh / var(--ui-scale, 1)) !important; z-index: 8; touch-action: pan-y; }
  #card .card-actions { position: sticky; bottom: 0; background: inherit; padding: 6px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; }
  #card .links a { display: inline-block; padding: 8px 10px; margin: 2px 4px 2px 0; }
  body.card-open #shorenav, body.cond-open #shorenav { display: none; }
  .pin-pop { left: 8px !important; right: 8px; top: auto !important; bottom: calc(26px + env(safe-area-inset-bottom)); width: auto !important; z-index: 8; }
  .pin-pop .pp-acts a, .pin-pop .pp-acts button { padding: 10px 12px; }
  /* Conditions take the panel's place, as a sheet under the top bar. */
  html .conditions { top: calc((var(--stack, 110px) + 6px) / var(--ui-scale, 1)); left: 8px; right: 8px; width: auto;
    bottom: calc(26px + env(safe-area-inset-bottom)); max-height: none; z-index: 7; }
  /* Locate button: bottom right, above the panel. */
  .locate { display: block; position: fixed; right: 12px; bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 5; width: 44px; height: 44px; padding: 0; font-size: 22px; }
  body.card-open .locate, body.cond-open .locate, #shorenav:not(.sheet-peek) ~ .locate { display: none; }
  /* Map gestures: chrome steps aside. */
  .bar, .today, .alerts, #shorenav, .locate { transition: opacity .2s, transform .25s; }
  body.map-moving .bar, body.chrome-off .bar, body.map-moving .today, body.chrome-off .today, body.map-moving .alerts, body.chrome-off .alerts {
    opacity: 0; transform: translateY(-12px); pointer-events: none; }
  body.map-moving #shorenav, body.chrome-off #shorenav, body.map-moving .locate, body.chrome-off .locate { opacity: 0; transform: translateY(40px); pointer-events: none; }
  /* UI hidden: no hazard button; the footer shrinks to the map credits only (the OSM credit must stay visible) */
  body.chrome-off .rr-btn { display: none; }
  body.chrome-off footer.attrib .pages { display: none; }
  body.chrome-off footer.attrib { left: auto; right: 4px; }
  .next-stop { padding: 14px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .bar, .today, .alerts, .locate { transition: none !important; } }

/* ---- Where can I…, Near me, mini week strip ---- */
.wk { display: flex; align-items: center; gap: 2px; margin-top: 3px; font-size: 10px; flex-wrap: wrap; }
.wk i { width: 15px; height: 15px; display: inline-grid; place-items: center; font-style: normal; color: var(--ink-soft); outline: 1px solid rgba(87, 77, 64, .35); }
.wk i.on { background: #6f9a4e; color: #fff; outline-color: #4d6e35; }
.wk i.now { outline: 2px solid var(--ink); }
.wk em { margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 700; }
.wk em.open { color: #2f7a3e; } .wk em.shut { color: var(--ink-soft); }
.wk-none { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 3px; }
.list li.wci-head { cursor: default; padding: 4px 4px 8px; display: grid; gap: 6px; border-bottom: 2px solid var(--ink-soft); }
.list li.wci-head strong { font: 400 18px var(--sign); letter-spacing: .03em; }
.wci-ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 0; } .seg button { font-size: 12px; padding: 3px 8px; }
.seg button[aria-pressed="true"] { color: var(--btn-ink); border-image-source: url("ui/btn_primary.png"); }
#gresults .wci-start b { color: var(--glow); }
/* ---- Open now map: closed fades out, open glows ---- */
body.open-map #layer .mpin { opacity: .45; }
body.open-map #layer .mpin.closed { opacity: .12; filter: grayscale(1); }
body.open-map #layer .mpin.is-open { opacity: 1; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px #6f9a4e; }
/* ---- Plan my day ---- */
.list li.planner { cursor: default; padding: 8px 4px; display: grid; gap: 8px; background: rgba(176, 83, 46, .08); }
/* ---- Share box (trip link + QR, and incoming shared trips) ---- */
.share-box { position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(320px, calc(100vw - 32px)); padding: 10px 14px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.share-box .close { position: absolute; right: 6px; top: 6px; }
.share-box .qr { background: #fff; padding: 8px; outline: 2px solid var(--ink); }
.share-box .qr img, .share-box .qr canvas { display: block; image-rendering: pixelated; }

/* The selected place's pin bounces while its card is open, so it stands out among close neighbours. */
body.card-open #layer .mpin.lit { z-index: 5; animation: pin-bounce 1.1s ease-in-out infinite; }
@keyframes pin-bounce { 0%, 100% { translate: 0 0; } 25% { translate: 0 -10px; } 45% { translate: 0 0; } 60% { translate: 0 -4px; } 75% { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { body.card-open #layer .mpin.lit { animation: none; outline: 3px solid #ffd35a; } }
.cat-wifi { --pin: #3a6f8f; } .cat-recycle { --pin: #4f7a3a; }

/* Snow on the ground: while it snows and for a day after. Only the map tiles whiten; the water stays water. */
body.snow-cover #map .openseadragon-canvas > canvas { filter: saturate(.3) brightness(1.2) contrast(.9); }
body.night.snow-cover #map .openseadragon-canvas > canvas { filter: saturate(.25) brightness(.62) contrast(1.05); }

.route-layer { position: absolute; left: 0; top: 0; pointer-events: none; }
.route-info { font-size: 13px; margin: 4px 0; }

.hours-line { display: grid; gap: 2px; margin: 4px 0; } .hours-line .fine { font-size: 11px; color: var(--ink-soft); }
.feats { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.feat { font-size: 11px; padding: 1px 6px; border: 1px solid var(--ink-soft); background: #fffaf0; }

/* Collections row, list picker, install hint */
.list li.collections { cursor: default; padding: 4px 2px 8px; display: grid; gap: 4px; border-bottom: 2px solid var(--ink-soft); }
.list li.collections .chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.list li.collections .chips button { font-size: 12px; padding: 3px 8px; white-space: nowrap; }
.list-box { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; } .list-box select, .list-box input { font: 14px var(--type); padding: 4px; }
.install-hint { position: fixed; z-index: 30; left: 50%; bottom: 70px; transform: translateX(-50%); width: min(420px, calc(100vw - 24px));
  padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }

/* Reviews, photos, event form */
.reviews { margin-top: 8px; border-top: 1px dashed rgba(87, 77, 64, .4); padding-top: 4px; }
.reviews .stars { color: #b8862a; font-weight: 700; } .review { font-size: 13px; margin: 4px 0; }
.star-row button { font-size: 20px; padding: 0 3px; border: 0; border-image: none; background: none; color: #b8862a; filter: none; }
.review-form textarea { width: 100%; box-sizing: border-box; font: 14px var(--type); padding: 5px; }
.photos { display: flex; gap: 4px; overflow-x: auto; margin: 6px 0; } .photos img { height: 84px; aspect-ratio: 4 / 3; object-fit: cover; outline: 2px solid var(--ink); }

/* Pin border all the way round, including the angled bottom: ink shape behind, pin colour inset 2px on top. */
.mpin .ph { background: var(--ink); box-shadow: none !important; }
.mpin .ph::before { content: ""; position: absolute; inset: 2px 2px 2px; background: var(--pin, var(--glow));
  clip-path: polygon(0 0, 100% 0, 100% 77%, 50% 100%, 0 77%); }
.mpin .ph > * { position: relative; }
.mpin.lit .ph { clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); }
.mpin.lit { filter: drop-shadow(0 0 0 #ffd35a) drop-shadow(2px 0 0 #ffd35a) drop-shadow(-2px 0 0 #ffd35a) drop-shadow(0 2px 0 #ffd35a) drop-shadow(0 -2px 0 #ffd35a); }

/* ---- Explore-first layout ---- */
html.explore-ui #sn-find > .check, html.explore-ui #sn-cats { display: none; }
html.explore-ui.show-browse #sn-find > .check { display: flex; } html.explore-ui.show-browse #sn-cats { display: flex; }
html.explore-ui #sn-results .collections { display: none; }
.home-sec { list-style: none; cursor: default !important; padding: 8px 2px !important; border-bottom: 1px dashed rgba(87, 77, 64, .35) !important; display: grid; gap: 6px; }
.home-sec .sec-t { font: 400 15px var(--sign); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.now-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.now-card { display: grid; gap: 2px; text-align: left; padding: 8px 10px; min-height: 74px; }
.now-card .nc-kind { font-size: 11px; color: var(--glow); font-weight: 700; } .now-card strong { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.now-card .nc-why { font-size: 11px; color: var(--ink-soft); }
.idea-chips { display: flex; flex-wrap: wrap; gap: 6px; } .idea-chips button { font-size: 12px; padding: 4px 9px; }
.browse-all { justify-self: start; }
#card .primary-act { display: block; text-align: center; margin: 8px 0 4px; padding: 10px; font-weight: 700; color: var(--btn-ink); text-decoration: none;
  border: 10px solid transparent; border-image: url("ui/btn_primary.png") 10 fill stretch; image-rendering: pixelated; }
.where-card { position: fixed; z-index: 40; left: 50%; bottom: 72px; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); padding: 12px 14px; display: grid; gap: 8px; }
.where-card strong { font: 400 22px var(--sign); letter-spacing: .04em; }
.where-btns { display: grid; gap: 6px; } .where-btns button { padding: 10px; font-size: 15px; }
.town-chips { display: flex; flex-wrap: wrap; gap: 5px; } .town-chips button { font-size: 12px; padding: 4px 8px; }
.town-chips[hidden] { display: none; }
.love-chips button { font-size: 14px; padding: 6px 10px; }
/* first run's one "What brings you here?" card: compact chips, Start and Skip side by side, so it all fits a small phone */
.where-card.about { gap: 6px; } .where-card.about .love-chips button { font-size: 13px; padding: 3px 8px; }
.where-card.about .where-btns { grid-template-columns: 1fr auto; align-items: center; }
.mpin.like { scale: 1.35; z-index: 2; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px #ffd35a; clip-path: none; }
/* one-time tips: a small paper note, dismissed once and never shown again */
.sn-tip { position: fixed; z-index: 45; left: 50%; bottom: 76px; transform: translateX(-50%); width: min(360px, calc(100vw - 24px)); padding: 10px 12px; display: grid; gap: 6px; font-size: 14px; }
.sn-tip .where-btns { grid-template-columns: auto auto; justify-content: end; } .sn-tip .where-btns button { padding: 6px 10px; font-size: 13px; }

/* ---- Motion (all of it off under reduced motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  /* first-run card appears once the glide settles */
  .where-card.late { animation: rise-in .6s ease-out 4.6s both; }
  .mpin.like { animation: like-hop .7s ease-in-out infinite alternate; transform-origin: 50% 100%; }
  @keyframes like-hop { from { translate: 0 0; } to { translate: 0 -6px; } }
  .where-card.ready { animation: pop-in .4s ease-out both; }
  @keyframes pop-in { from { scale: .9; } to { scale: 1; } }
  @keyframes rise-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
  /* Explore sections arrive one after another */
  html.explore-ui #sn-results > li { animation: sec-in .35s ease-out both; animation-delay: calc(var(--k, 0) * 60ms); }
  @keyframes sec-in { from { opacity: 0; transform: translateY(8px); } }
  /* cards lift on hover / press */
  .now-card { transition: transform .15s ease, box-shadow .15s ease; }
  .now-card:hover, .now-card:focus-visible { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(43, 38, 32, .25); }
  .now-card:active { transform: translateY(1px); box-shadow: none; }
  /* tab panels slide in from the side you moved toward */
  [role=tabpanel].in-right { animation: tab-r .25s ease-out; } [role=tabpanel].in-left { animation: tab-l .25s ease-out; }
  @keyframes tab-r { from { opacity: 0; transform: translateX(18px); } } @keyframes tab-l { from { opacity: 0; transform: translateX(-18px); } }
  .tab-line { transition: transform .28s cubic-bezier(.3, 1.3, .5, 1), width .28s ease; }
  /* bottom sheet springs between heights */
  #shorenav { transition: max-height .38s cubic-bezier(.3, 1.25, .5, 1), opacity .2s, transform .25s; }
  /* place card slides up */
  #card:not([hidden]) { animation: card-up .28s cubic-bezier(.3, 1.2, .5, 1); }
  @keyframes card-up { from { opacity: 0; transform: translateY(14px); } }
  /* matching pins drop in, nearest first */
  #layer .mpin.drop .ph { animation: pin-drop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d, 0ms); }
  @keyframes pin-drop { from { transform: translateY(-22px); opacity: 0; } }
  /* the chosen town's label pulses once */
  #layer .label.pulse { animation: label-pulse 1.6s ease-out 2; }
  @keyframes label-pulse { 0% { text-shadow: 0 0 0 rgba(255, 211, 90, 0); } 40% { text-shadow: 0 0 14px rgba(255, 211, 90, .95), 0 0 4px rgba(255, 211, 90, .95); } 100% { text-shadow: 0 0 0 rgba(255, 211, 90, 0); } }
  /* route badge pops */
  .route-info b { display: inline-block; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1) .8s both; }
  @keyframes pop { from { transform: scale(.6); opacity: 0; } }
  /* loading shimmer */
  .skeleton i { background: linear-gradient(90deg, rgba(87, 77, 64, .08), rgba(87, 77, 64, .18), rgba(87, 77, 64, .08)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
  @keyframes shimmer { to { background-position: -200% 0; } }
}
/* pins fade rather than snap (open-now map, filtering) */
#layer .mpin { transition: opacity .35s ease, filter .35s ease; }
html.filtering #layer .mpin:not(.match) { opacity: .25; }
/* tab underline */
#shorenav [role=tablist] { position: relative; }
.tab-line { position: absolute; left: 0; bottom: -4px; height: 3px; width: 0; background: #b0532e; border-radius: 2px; pointer-events: none; }
/* Explore header tint follows the real time of day */
.explore-head { list-style: none; cursor: default !important; padding: 10px 12px !important; border: 0 !important; margin-bottom: 4px; display: grid; gap: 2px; }
.explore-head b { font: 400 20px var(--sign); letter-spacing: .04em; } .explore-head span { font-size: 12px; opacity: .85; }
.tint-morning { background: linear-gradient(100deg, rgba(255, 214, 160, .55), rgba(255, 240, 210, .1)); }
.tint-day { background: linear-gradient(100deg, rgba(170, 210, 230, .45), rgba(240, 240, 220, .1)); }
.tint-evening { background: linear-gradient(100deg, rgba(240, 190, 140, .45), rgba(240, 220, 200, .1)); }
.tint-sunset { background: linear-gradient(100deg, rgba(232, 140, 90, .5), rgba(250, 210, 150, .15)); }
.tint-night { background: linear-gradient(100deg, rgba(40, 50, 80, .65), rgba(60, 60, 90, .15)); color: #f4f0e4; }
/* placeholders while loading */
.skeleton { list-style: none; padding: 10px 4px !important; display: grid; gap: 6px; border: 0 !important; }
.skeleton i { display: block; height: 12px; border-radius: 3px; background: rgba(87, 77, 64, .1); } .skeleton i + i { width: 60%; }
/* empty states get a little pixel gull */
.list li.hint::before { content: ""; display: inline-block; width: 18px; height: 9px; margin-right: 6px; vertical-align: middle; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 5' shape-rendering='crispEdges'%3E%3Cpath fill='%235a4f42' d='M0 0h2v1H0zM2 1h2v1H2zM4 2h3v1H4zM7 1h2v1H7zM9 0h2v1H9z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* rewards */
.sparkle { position: fixed; z-index: 60; width: 4px; height: 4px; background: #ffd35a; pointer-events: none; box-shadow: 0 0 4px #ffd35a;
  animation: spark .7s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--x), var(--y)) scale(.3); opacity: 0; } }
.plan-stamp { position: fixed; z-index: 60; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-6deg); pointer-events: none;
  font: 400 26px var(--sign); letter-spacing: .08em; color: #8a2f1c; border: 3px solid #8a2f1c; padding: 4px 14px; background: rgba(255, 250, 240, .85);
  animation: stamp 1.4s ease-out forwards; }
@keyframes stamp { 0% { transform: translate(-50%, -50%) rotate(-6deg) scale(1.8); opacity: 0; } 15% { transform: translate(-50%, -50%) rotate(-6deg) scale(1); opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
#shorenav [role=tablist] { padding-bottom: 5px; } .tab-line { bottom: 0 !important; }

/* ---- Type roles ---- */
/* Headings and names: Literata bold */
#card h2, #onboard h2, .ob-big b, #card .event h3, #acct h2, .pp-head strong, .list li.wci-head strong, .where-card strong,
.explore-head b, .area-shore { font-family: var(--head) !important; text-transform: none !important; letter-spacing: .01em !important; }
#card h2 { font-size: 21px !important; line-height: 1.2 !important; }
/* Courier Prime: numbers, times, conditions, stats */
.today, .today *, .conditions td, .conditions .val, .wk, .wk em, .route-info b, .now-card .nc-why, #s-size, .num, .ledger dd,
.hours-line .fine, .trip-when input, .list li.leg { font-family: var(--data) !important; }
/* Special Elite: stamps, tags and badges */
.tag, .plan-stamp, .stamp, .verified, .pp-ver, .feat { font-family: var(--stamp) !important; }
/* Literata reads a touch larger than Courier at the same size: ease line height for lists */
.list li span, .info, .note { line-height: 1.45; }

/* ---- Place details inside the panel (Explore layout) ---- */
html.explore-ui #shorenav > #card { position: static !important; inset: auto !important; width: auto !important; max-height: none !important; transform: none !important;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 0 !important; border-image: none !important; background: none !important; box-shadow: none !important;
  padding: 0 4px 0 !important; margin: 0; z-index: auto !important; display: flex; flex-direction: column; }
html.explore-ui #shorenav > #card[hidden] { display: none !important; }
html.explore-ui.detail-open #shorenav [role=tabpanel] { display: none !important; }
html.explore-ui #shorenav > #card > .close { display: none; }
.card-back { align-self: flex-start; margin: 4px 0 6px; padding: 4px 10px; font-size: 13px; }
html.explore-ui #shorenav > #card .card-actions { position: sticky; bottom: 0; z-index: 2; background: #f3e6c8; padding: 6px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; border-top: 1px solid rgba(87, 77, 64, .3); }
.more-info { margin: 6px 0; } .more-info summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink-soft); padding: 4px 0; }
/* phones: the card stays in the panel instead of becoming its own sheet */
@media (max-width: 600px) {
  html.explore-ui body.card-open #shorenav { display: flex !important; }
  html.explore-ui.detail-open #shorenav.sheet-half { max-height: calc(min(62dvh, var(--room, 62dvh)) / var(--ui-scale, 1)); }
}

/* ---- Route preview and Drive with ShoreNav ---- */
.route-info:empty { display: none; }
.route-info { display: grid; gap: 6px; }
.rt-sum b { font-size: 17px; margin-right: 4px; }
.rt-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rt-go, .rt-drive { padding: 8px 12px; font-weight: 700; text-decoration: none; }
.rt-go { background: #8fa851; color: #1f1c17; border: 2px solid #2b2620; border-radius: 3px; }
.rt-steps summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.rt-steps ol { margin: 6px 0 0 18px; padding: 0; font-size: 13px; line-height: 1.5; } .rt-steps em { opacity: .7; font-style: normal; font-family: var(--data); }
.rt-note { opacity: .7; font-size: 11px; }
#drive { position: fixed; z-index: 70; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); width: min(520px, calc(100vw - 20px));
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px; background: #2b2620; color: #f6ecd2; border: 3px solid #8fa851; border-radius: 4px; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
#drive .dv-next { font: 400 20px/1.2 var(--head); grid-column: 1; }
#drive .dv-dist { grid-column: 2; grid-row: 1; font: 700 20px var(--data); color: #c9e08a; align-self: center; }
#drive .dv-eta { font: 13px var(--data); opacity: .85; }
#drive .dv-ctl { grid-column: 2; display: flex; gap: 6px; justify-content: end; }
#drive button { background: #f3e6c8; color: #2b2620; border: 2px solid #f3e6c8; border-radius: 3px; padding: 2px 10px; font-weight: 700; cursor: pointer; }
html.driving .topbar, html.driving #onboard { visibility: hidden; }

/* ---- Search: type chips, related tags, invite ---- */
.list li.type-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: default; border: 0 !important; padding: 4px 2px !important; }
.list li.type-chips > span { font-size: 12px; font-weight: 700; opacity: .75; }
.list li.type-chips .chip { font-size: 12px; padding: 3px 9px; text-transform: capitalize; }
.list li.invite { display: grid; gap: 4px; justify-items: start; cursor: default; margin-top: 8px; padding: 10px 12px !important; border: 2px dashed rgba(87, 77, 64, .45) !important; border-radius: 4px; }
.list li.invite span { font-size: 13px; }
.list li.type-chips.related .chip { text-transform: none; }
.list li.invite.crisis { border-style: solid !important; border-color: #8a2f1c !important; }

/* ---- Neighbor posts ---- */
.post-dlg { position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 20px)); max-height: calc(100dvh - 30px); overflow-y: auto; padding: 16px; display: grid; gap: 6px; }
.post-dlg h2 { font-family: var(--head); margin: 0 0 4px; }
.post-dlg input, .post-dlg textarea, .post-dlg select { width: 100%; box-sizing: border-box; }
.post-dlg label { font-weight: 700; font-size: 13px; margin-top: 4px; display: grid; gap: 2px; }
.post-types { display: flex; flex-wrap: wrap; gap: 6px; }
.post-types button { font-size: 13px; padding: 6px 10px; }
.post-dlg .stop { border: 1px solid rgba(87, 77, 64, .35); border-radius: 4px; padding: 8px; margin: 4px 0; display: grid; gap: 6px; }
.post-dlg .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.post-dlg .join:not(:empty) { background: rgba(143, 168, 81, .18); border-radius: 4px; padding: 8px; }
.post-acts { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.post-photos { display: flex; gap: 6px; flex-wrap: wrap; } .post-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 3px; cursor: pointer; }
#card .post-photos img { width: 120px; height: 120px; cursor: default; }
.post-type { font-family: var(--stamp); font-size: 12px; opacity: .8; margin: 0; }
.stops { margin: 0 0 6px 16px; padding: 0; font-size: 13px; }
.list li.post-cta { border: 0 !important; cursor: default; padding: 8px 2px !important; }
.place-pin { position: absolute; left: 50%; top: 50%; width: 26px; height: 38px; margin: -38px 0 0 -13px; z-index: 30; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 19' shape-rendering='crispEdges'%3E%3Cpath fill='%232b2620' d='M3 0h7v1h2v2h1v6h-1v2h-1v2h-1v2h-1v2H8v2H5v-2H4v-2H3v-2H2v-2H1V9H0V3h1V1h2z'/%3E%3Cpath fill='%23b0532e' d='M3 1h7v1h1v1h1v6h-1v2h-1v2H9v2H8v2H5v-2H4v-2H3v-2H2V9H1V3h1V2h1z'/%3E%3Cpath fill='%23f3e6c8' d='M5 4h3v1h1v2H8v1H5V7H4V5h1z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .35)); }
.place-bar { position: fixed; z-index: 80; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(460px, calc(100vw - 20px)); padding: 12px 14px; display: grid; gap: 6px; }
body.placing #card, body.placing .where-card { visibility: hidden; }
.post-dlg[hidden] { display: none; }
/* ---- Narrow phones: all four tabs fit beside the collapse button; status strip hints that it scrolls ---- */
@media (max-width: 440px) {
  #shorenav .sn-head > [role=tablist] { flex: 1 1 auto; min-width: 0; gap: 3px; padding-left: 2px; padding-right: 2px; }
  #shorenav [role=tab] { padding: 5px 5px; flex: 0 1 auto; font-size: 12.5px; }
  #sn-toggle { width: 34px; min-width: 34px; padding-inline: 0; }
  .today { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
@media (max-width: 440px) {
  html.explore-ui #shorenav > #card .card-actions { grid-template-columns: 1.25fr 1.05fr .85fr .85fr; gap: 4px; }
  html.explore-ui #shorenav > #card .card-actions > * { font-size: 12px; padding-inline: 2px; white-space: nowrap; min-width: 0; }
}
/* Links that had no colour of their own showed browser blue on paper and wood */
#settings a:not([class]), #shorenav .list a:not([class]) { color: #6b2a16; }
#settings a:not([class]):hover, #shorenav .list a:not([class]):hover { color: #8a2f1c; }
/* A section heading with nothing under it (straight into the next heading) is hidden */
.list li.head:has(+ li.head), .list li.head:last-child { display: none; }
/* 761–900 px: the panel is already a bottom sheet, so the alert spans the width like the search bar */
@media (max-width: 900px) { html .alerts { left: 16px; right: 16px; max-width: none; } }
/* The panel is about 350 px wide on every screen (side panel on desktop, sheet on phones), so these apply everywhere */
#shorenav .sn-head > [role=tablist] { flex: 1 1 auto; min-width: 0; gap: 3px; padding-left: 2px; padding-right: 2px; }
#shorenav [role=tab] { padding: 5px 5px; flex: 0 1 auto; font-size: 12.5px; }
#sn-toggle { width: 34px; min-width: 34px; padding-inline: 0; }
html.explore-ui #shorenav > #card .card-actions { grid-template-columns: 1.25fr 1.05fr .85fr .85fr; gap: 4px; }
html.explore-ui #shorenav > #card .card-actions > * { font-size: 12px; padding-inline: 2px; white-space: nowrap; min-width: 0; }

.road-labels { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity .15s; }
/* ---- Screensaver: just the map and its life ---- */
html.screensaver .bar, html.screensaver #today, html.screensaver .today, html.screensaver .alerts, html.screensaver #shorenav, html.screensaver #card,
html.screensaver footer.attrib, html.screensaver #settings, html.screensaver .where-card, html.screensaver .conditions, html.screensaver #moon,
html.screensaver #layer .mpin, html.screensaver #layer .label, html.screensaver .road-labels, html.screensaver #drive, html.screensaver .toast, html.screensaver #say { display: none !important; }
html.screensaver, html.screensaver body { cursor: none; }
.ss-veil { position: fixed; inset: 0; z-index: 90; background: #0e0c0a; opacity: 0; pointer-events: none; transition: opacity .9s ease; }
.ss-veil.dark { opacity: 1; }
html:not(.screensaver) .ss-veil, html:not(.screensaver) .ss-cap, html:not(.screensaver) .ss-corner { display: none; }
.ss-cap { position: fixed; z-index: 91; left: 24px; bottom: 22px; font: 400 22px var(--sign); letter-spacing: .06em; color: #f6ecd2; text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .4); pointer-events: none; }
.ss-corner { position: fixed; z-index: 91; right: 20px; top: 16px; font: 13px var(--data); color: #f6ecd2; text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 0 8px rgba(0, 0, 0, .5); opacity: .85; pointer-events: none; }
/* Collapsing (▾ or swipe down) with a place open: the panel shrinks to the place's name and Back; expand to see it all */
#shorenav:is(.collapsed, .sheet-peek) > #card .body > :not(.venue),
#shorenav:is(.collapsed, .sheet-peek) > #card .venue > :not(h2),
#shorenav:is(.collapsed, .sheet-peek) > #card .primary-act,
#shorenav:is(.collapsed, .sheet-peek) > #card .card-actions { display: none !important; }
#shorenav:is(.collapsed, .sheet-peek) > #card { overflow: hidden; flex: 0 0 auto; }
html.explore-ui.detail-open #shorenav:is(.collapsed, .sheet-peek) { max-height: none !important; }
/* "Search this area" floats over the map below the top bar (like a map app), instead of squeezing the panel's tabs */
.search-area { position: fixed; z-index: 6; left: 50%; top: calc((var(--stack, 140px) + 10px) / var(--ui-scale, 1)); margin: 0;
  transform: translateX(-50%); box-shadow: 0 3px 0 rgba(43, 38, 32, .3); animation: area-drop .22s ease-out; }
@keyframes area-drop { from { opacity: 0; transform: translate(-50%, -8px); } }
html.screensaver .search-area { display: none !important; }
/* Pinching on the panel, bars or cards doesn't zoom the page; the map still pinches to zoom */
.bar, #shorenav, #card, .today, .alerts, footer.attrib, #settings, .where-card, .post-dlg, #drive, .conditions { touch-action: pan-x pan-y; }

/* ---- Settings menu: five tidy groups, two even columns, nothing cut off on phones ---- */
html .settings { width: min(330px, calc((100vw - 24px) / var(--ui-scale, 1))); grid-template-columns: 1fr; gap: 10px; padding: 10px 12px;
  max-height: calc((var(--vvh, 100dvh) - 90px - env(safe-area-inset-bottom)) / var(--ui-scale, 1)); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; }  /* the iPhone home bar area isn't usable: keep the last row above it */
/* two columns, or one when the biggest text size on a small phone leaves no room for a long word like "reminders" */
html .settings .s-you { grid-column: auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.4em), 1fr)); }
html .settings .sgroup, html .settings .sgroup:last-child { grid-column: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.4em), 1fr)); gap: 5px;
  padding-top: 8px; border-top: 1px dashed rgba(87, 77, 64, .35); }
html .settings .sgroup:first-of-type { border-top: 0; padding-top: 0; }
html .settings h4, html .settings .s-links, html .settings .size-row { grid-column: 1 / -1; }
html .settings button, html .settings .s-btnlink { min-width: 0; white-space: normal; line-height: 1.15; font-size: 12.5px; padding: 6px 8px; text-align: left; }
html .settings .s-btnlink { display: flex; align-items: center; text-decoration: none; color: inherit; border: 2px solid rgba(87, 77, 64, .55); border-radius: 3px; background: rgba(255, 250, 236, .55); font-weight: 700; }
html .settings .size-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
html .settings .size-row span { text-align: center; }
/* the percentage is a button (tap to go back to 100%) but reads as plain text, not a third A button */
html .settings .size-row #s-size { width: auto; min-width: 3.2em; min-height: 44px; padding: 0 4px; border: 0; background: none; box-shadow: none; color: inherit; font: inherit; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; cursor: pointer; }

#card h2, #onboard h2, .ob-big b, #card .event h3, #acct h2, .pp-head strong, .list li.wci-head strong, .where-card strong, .explore-head b, .area-shore { font-weight: 700 !important; }
/* ---- Shore Scout ---- */
.sc { position: fixed; z-index: 85; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 20px)); max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 14px 16px 16px; display: grid; gap: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); touch-action: pan-y; }
body.sc-open::after { content: ""; position: fixed; inset: 0; z-index: 84; background: rgba(20, 16, 12, .45); }
.sc-top { display: flex; align-items: center; gap: 10px; } .sc-top b { font: 700 18px var(--head); flex: 1; }
.sc-streak { font: 700 14px var(--data); } .sc-x { width: 34px; height: 34px; padding: 0; font-size: 20px; line-height: 1; }
.sc-dots { display: flex; gap: 6px; justify-content: center; } .sc-dots i { width: 28px; height: 6px; border-radius: 3px; background: rgba(87, 77, 64, .25); }
.sc-dots i.on { background: #8fa851; } .sc-dots i.now { background: #b0532e; }
.sc-card { position: relative; background: #fffaf0; border: 2px solid #2b2620; border-radius: 6px; padding: 14px; min-height: 150px; display: grid; gap: 6px; align-content: start;
  box-shadow: 0 4px 0 rgba(43, 38, 32, .25); transition: transform .35s ease, opacity .35s ease; touch-action: pan-y; user-select: none; cursor: grab; }
.sc-card[data-lean="yes"] { box-shadow: 0 0 0 4px rgba(143, 168, 81, .8); } .sc-card[data-lean="no"] { box-shadow: 0 0 0 4px rgba(176, 83, 46, .7); }
.sc-card.out-r { transform: translateX(120%) rotate(12deg); opacity: 0; } .sc-card.out-l { transform: translateX(-120%) rotate(-12deg); opacity: 0; } .sc-card.out-d { transform: translateY(30px); opacity: 0; }
.sc-kind { margin: 0; font: 12px var(--stamp); color: #8a2f1c; letter-spacing: .04em; }
.sc-q { margin: 0; font: 700 19px/1.3 var(--head); }
.sc-map { position: relative; height: 150px; overflow: hidden; border-radius: 4px; border: 1px solid rgba(87, 77, 64, .4); background: #4f86b0; }
.sc-map-in { position: absolute; left: 0; top: 0; width: 1536px; height: 1536px; } .sc-map-in img { position: absolute; width: 512px; height: 512px; image-rendering: pixelated; }
.sc-pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 26px; margin: -26px 0 0 -9px; background: #b0532e; border: 2px solid #2b2620; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.sc-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .sc-btns.yn { grid-template-columns: 1fr auto 1fr; }
.sc-opt { min-height: 48px; font-size: 15px; font-weight: 700; } .sc-opt.unsure { font-weight: 400; font-size: 13px; }
.sc-fb { margin: 0; min-height: 1.3em; text-align: center; font-size: 14px; } .sc-fb.good { color: #4e6b1f; font-weight: 700; }
.sc-hint { text-align: center; margin: 0; }
.sc-welcome h2 { font: 700 21px var(--head); margin: 0 0 6px; } .sc-welcome ul { padding-left: 18px; line-height: 1.6; }
.sc-sum { display: grid; gap: 8px; } .sc-big { font: 700 22px var(--head); margin: 0; text-align: center; }
.sc-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sc-bar { height: 10px; border-radius: 5px; background: rgba(87, 77, 64, .2); overflow: hidden; } .sc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8fa851, #b4c86e); }
.sc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .sc-badge-new { background: rgba(255, 211, 90, .35); padding: 6px 8px; border-radius: 4px; margin: 0; }
.sc-badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sc-badges li { display: grid; gap: 2px; padding: 8px; border: 1px dashed rgba(87, 77, 64, .4); border-radius: 4px; opacity: .55; font-size: 13px; }
.sc-badges li.got { opacity: 1; border-style: solid; background: rgba(143, 168, 81, .18); } .sc-badges li span { font-size: 11px; }
.list li.sc-home { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; cursor: default; background: linear-gradient(100deg, rgba(143, 168, 81, .22), transparent); border: 2px solid rgba(87, 77, 64, .35) !important; border-radius: 6px; margin: 4px 0 8px; padding: 10px 12px !important; }
.list li.sc-home div { display: grid; gap: 2px; } .list li.sc-home b { font: 700 15px var(--head); } .list li.sc-home span { font-size: 12px; }
.sc-payoff { grid-column: 1 / -1; margin: 0; font-weight: 700; color: #4e6b1f; font-size: 13px; }
.sc-saved { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; }
.sc-facts { margin: 2px 0; font-size: 13px; color: #4e6b1f; font-weight: 700; }
.sc-wrong { font-size: 12px; } .sc-wrong-box { display: grid; gap: 6px; } .sc-wrong-box button { text-align: left; }
.love-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; } .love-chips .chip { font-size: 12px; padding: 3px 9px; }
.review-form .warn { color: #8a2f1c; }
html.screensaver .sc, html.screensaver body.sc-open::after { display: none; }

/* Pin tap: a quick press-and-bounce so the tap feels registered */
@media (prefers-reduced-motion: no-preference) {
  #layer .mpin.tapped .ph { animation: pin-tap .32s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes pin-tap { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
}
/* ---- Profile ("My Shore"): full screen over the drifting map ---- */
html.profile-open .bar, html.profile-open #today, html.profile-open .today, html.profile-open .alerts, html.profile-open #shorenav, html.profile-open #card,
html.profile-open footer.attrib, html.profile-open .where-card, html.profile-open .conditions, html.profile-open #moon, html.profile-open #layer .mpin,
html.profile-open #layer .label, html.profile-open .road-labels, html.profile-open .search-area { display: none !important; }
.mys { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: stretch; padding: max(12px, env(safe-area-inset-top)) 12px 12px; pointer-events: none; }
.mys-sheet { pointer-events: auto; width: min(720px, 100%); display: flex; flex-direction: column; min-height: 0; padding: 12px 14px 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); }
.mys-head { display: flex; align-items: center; gap: 8px; } .mys-head b { flex: 1; font: 400 22px var(--sign); letter-spacing: .06em; }
.mys-x { width: 36px; height: 36px; padding: 0; font-size: 20px; }
.mys-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 6px; border-bottom: 2px solid rgba(87, 77, 64, .25); flex: none; }
.mys-tabs::-webkit-scrollbar { display: none; }
.mys-tabs button { flex: none; font-size: 13px; padding: 6px 10px; } .mys-tabs [aria-selected=true] { background: #8fa851; }
.mys-tabs button { flex: 1 1 0; }  /* four tabs share the row evenly */
.mys-body { overflow-y: auto; min-height: 0; flex: 1; padding: 10px 2px 16px; overscroll-behavior: contain; }
.mys-sec { margin: 0 0 16px; } .mys-sec h3 { font: 700 16px var(--head); margin: 0 0 8px; }
.mys-who { display: flex; gap: 12px; align-items: center; } .mys-who h2 { font: 700 24px var(--head); margin: 0; }
.mys-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid #2b2620; }
.mys-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; } .mys-chips span { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: rgba(143, 168, 81, .25); }
.mys-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .mys-row select { flex: 1; min-width: 160px; }
.mys-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mys-stats div { background: #fffaf0; border: 1px solid rgba(87, 77, 64, .35); border-radius: 6px; padding: 10px; display: grid; }
.mys-stats b { font: 700 24px var(--head); } .mys-stats span { font-size: 12px; opacity: .8; }
.mys-map { position: relative; width: min(100%, 360px); border-radius: 6px; overflow: hidden; border: 1px solid rgba(87, 77, 64, .4); background: #4f86b0; }
.mys-map img { display: block; width: 100%; image-rendering: pixelated; }
.mys-map .dot, .mys-legend .dot, .mys-week .dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; border: 1.5px solid #fff; }
.mys-legend .dot, .mys-week .dot { position: static; display: inline-block; margin: 0 2px; vertical-align: middle; }
.dot.fav { background: #c9922b; } .dot.conf { background: #5f8a2a; } .dot.seen { background: #4f7fa8; }
.mys-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; } .mys-acts a { display: inline-flex; align-items: center; }
.mys-week { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.mys-week button { flex: none; display: grid; justify-items: center; gap: 2px; width: 52px; padding: 6px 0; font-size: 12px; } .mys-week button b { font-size: 18px; }
.mys-week button.on { background: #8fa851; }
.mys-agenda, .mys-draft { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mys-agenda li { display: grid; grid-template-columns: 74px 1fr auto auto; gap: 8px; align-items: center; padding: 8px; background: #fffaf0; border-radius: 6px; border: 1px solid rgba(87, 77, 64, .3); }
.mys-agenda li > b, .mys-draft li > b { font: 700 13px var(--data); }
.mys-del { padding: 2px 8px; }
.mys-draft li { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; align-items: center; padding: 8px; background: #fffaf0; border-radius: 6px; border: 1px solid rgba(87, 77, 64, .3); cursor: grab; }
.mys-draft li div { display: grid; } .mys-tools { display: flex; gap: 4px; } .mys-tools button { padding: 2px 8px; min-height: 32px; }
.mys-vibes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .mys-vibes button { font-size: 13px; padding: 6px 10px; }
.mys-found li { cursor: pointer; }
.mys #settings { position: static; width: auto; max-height: none; box-shadow: none; display: grid; }
.mys #sn-feed { display: block !important; } .mys #sn-feed .saved-top, .mys #sn-feed .sc-saved { display: none; }
.profile-tab { font-weight: 700; }
@media (max-width: 600px) { .mys { padding: max(8px, env(safe-area-inset-top)) 6px 6px; } .mys-stats { grid-template-columns: repeat(2, 1fr); } }

/* Backdrop mode (?bg=1): just the drifting map, no loader, no veil text */
html.bgmap #loader, html.bgmap .where-card, html.bgmap .ss-cap, html.bgmap .ss-corner, html.bgmap #onboard { display: none !important; }

/* ---- Occasions ---- */
.list li.occ-head { display: grid; gap: 2px; cursor: default; border: 0 !important; padding: 8px 4px !important; } .list li.occ-head b { font: 700 17px var(--head); } .list li.occ-head span { font-size: 12px; opacity: .8; }
.list li.occ-ok span { color: #4e6b1f; font-weight: 700; }
.list li.occ-banner { display: grid; gap: 2px; cursor: pointer; margin: 0 0 8px; padding: 10px 12px !important; border-radius: 6px; border: 2px solid rgba(176, 83, 46, .45) !important; background: linear-gradient(100deg, rgba(232, 140, 90, .22), transparent); }
.list li.occ-banner b { font: 700 15px var(--head); } .list li.occ-banner span { font-size: 12px; }
.occ-owner { margin: 2px 0; }
/* Short screens (phones sideways): the Where are you? card scrolls instead of running off the top,
   and the side panel can collapse to just its tabs */
.where-card { max-height: calc(100dvh - 90px); overflow-y: auto; }
@media (max-height: 520px) { .where-card { bottom: 12px; max-height: calc(100dvh - 24px); } .where-btns { grid-template-columns: repeat(3, 1fr); } .where-btns button { padding: 8px; font-size: 13px; } }
@media (orientation: landscape) and (max-height: 520px) and (max-width: 960px) {
  html #shorenav.collapsed { bottom: auto; max-height: none; }
}
/* Place actions: each button sizes to its label (longer words in Spanish), all on one row */
html.explore-ui #shorenav > #card .card-actions { display: flex; gap: 4px; }
html.explore-ui #shorenav > #card .card-actions > * { flex: 1 1 auto; padding-inline: 4px; }
/* Card rows: whole cards only, snapping, with arrows when there are more */
.cards-wrap { position: relative; }
.now-cards { scroll-snap-type: x mandatory; scroll-padding: 0; }
.now-cards > * { scroll-snap-align: start; min-width: 0; }
.cards-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 44px; padding: 0; font-size: 22px; line-height: 1; box-shadow: 0 2px 0 rgba(43, 38, 32, .3); }
.cards-arrow.next { right: -4px; } .cards-arrow.prev { left: -4px; }
.cards-arrow[hidden] { display: none; }
.cards-wrap { width: 100%; min-width: 0; max-width: 100%; }
.cards-wrap > .now-cards { width: 100%; max-width: 100%; }
li:has(> .cards-wrap), li:has(> .now-cards) { min-width: 0; max-width: 100%; overflow: hidden; }
.cards-arrow.next { right: -12px; } .cards-arrow.prev { left: -12px; } .cards-arrow { width: 26px; }

/* Search this area: a small pill docked on the panel's top edge (phones), a slim list row (desktop) */
.search-area { position: fixed; z-index: 6; transform: translateX(-50%); margin: 0; padding: 4px 12px; font-size: 13px; border-radius: 999px !important;
  box-shadow: 0 2px 0 rgba(43, 38, 32, .3); animation: area-fade .25s ease-out; }
@keyframes area-fade { from { opacity: 0; transform: translate(-50%, 6px); } }
body.map-moving .search-area { opacity: 0; pointer-events: none; }
.list li.area-row { border: 0 !important; padding: 2px 4px 6px !important; cursor: default; }
.list li.area-row button { font-size: 13px; }
/* Bottom panel: a squatter top (less space above the tabs) */
@media (max-width: 900px) {
  html #shorenav { padding-top: 2px; }
  .grip { height: 12px; margin: -2px 0 2px; }
  .grip i { height: 4px; width: 40px; }
}
/* Shore Scout and seasonal banner: the same paper frame as the cards, with a soft tint */
.list li.sc-home, .list li.occ-banner { position: relative; background: transparent !important; border: 6px solid transparent !important; border-radius: 0;
  border-image: url("ui/btn_secondary.png") 6 fill / 6px stretch !important; filter: drop-shadow(0 2px 3px rgba(20, 16, 10, .3)); padding: 8px 10px !important; margin: 4px 0 10px; }
.list li.sc-home::after, .list li.occ-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; border-radius: 2px; }
.list li.sc-home::after { background: rgba(143, 168, 81, .22); }
.list li.occ-banner::after { background: rgba(214, 120, 60, .18); }
.list li.sc-home > *, .list li.occ-banner > * { position: relative; z-index: 1; }
.list li.occ-banner:hover::after { background: rgba(214, 120, 60, .26); }

/* Trending on the Shore */
.list li.trending { display: grid; gap: 6px; cursor: default; border: 0 !important; padding: 4px 2px 8px !important; }
.list li.trending b { font: 700 13px var(--head); }
.trend-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trend-chips .chip { font-size: 12px; padding: 4px 10px; }
.trend-chips .chip.hot { color: #8a2f1c; }

/* Drive: always above the moving-map chrome hide, bigger tap targets, armed End, re-centre */
html.driving #drive { visibility: visible !important; opacity: 1 !important; }
#drive button { min-height: 40px; min-width: 44px; }
#drive .dv-end.armed { background: #b8432a; border-color: #b8432a; color: #fff; }
#drive .dv-safe { grid-column: 1 / -1; font-size: 12px; color: #e8dcbc; }
.dv-recentre { position: fixed; z-index: 70; right: 14px; bottom: calc(110px + env(safe-area-inset-bottom)); min-height: 48px; padding: 0 18px;
  background: #2b2620; color: #f6ecd2; border: 3px solid #8fa851; border-radius: 24px; font-weight: 700; box-shadow: 0 3px 0 rgba(0,0,0,.35); }

/* Contrast pass (WCAG AA): text never sits on a gradient that fades to the paper under light text */
.tint-night { background: linear-gradient(100deg, rgba(36, 44, 72, .92), rgba(54, 60, 92, .82)); color: #f7f2e4; }
.explore-head span { opacity: 1; }
.explore-head.tint-night span { color: #e4dcc6 !important; }
.bar h1 span { color: #6b2810; }
.trend-chips .chip.hot { color: #7a2a14; }

/* "Loved for" with no picks yet: its own quiet line, not part of the heading */
.loved-empty { display: block; margin-top: 2px; font: italic 400 13px/1.3 var(--type); text-transform: none; letter-spacing: 0; color: #5d5245; }

/* Center on me: always there, round, bottom right (phones: positioned above the panel by extras.js) */
.locate, body.card-open .locate, #shorenav:not(.sheet-peek) ~ .locate { display: grid !important; place-items: center; position: fixed; right: 14px; bottom: 28px; z-index: 6;
  width: 48px; height: 48px; padding: 0; border-radius: 50% !important; font-size: 24px; line-height: 1; box-shadow: 0 3px 0 rgba(43, 38, 32, .35); }
body.cond-open .locate, html.screensaver .locate, html.profile-open .locate { display: none !important; }
html.driving .locate { display: none !important; }

/* Place cards: open/closes status, quick actions under the name */
.list li .oc { display: block; font-size: 12px; font-weight: 700; }
.list li .oc.open { color: #2f6b2a; } .list li .oc.closed { color: #8a2f1c; } .list li .oc.soon { color: #8a5a00; }
.venue .kind b.soon { background: #f2d58a; color: #3b2a00; }
.quick-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.quick-acts .qa { flex: 1 1 0; min-width: 88px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; font-weight: 700; text-decoration: none; }
.sc-wrong { font-size: 13px; margin: 2px 0 6px; }

/* Voice search mic, share-my-spot chip */
.has-mic { position: relative; }
.mic { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0 !important; background: none !important; box-shadow: none !important; font-size: 18px; padding: 4px 6px; cursor: pointer; }
.mic.on { animation: mic-pulse 1s ease-in-out infinite; }
@keyframes mic-pulse { 50% { opacity: .35; } }
.has-mic input[type=search] { padding-right: 40px; }
.share-spot { position: fixed; right: 14px; z-index: 6; padding: 6px 12px; border-radius: 999px !important; font-weight: 700; box-shadow: 0 2px 0 rgba(43, 38, 32, .3); }

.rt-modes { display: flex; gap: 4px; margin-bottom: 6px; }
.rt-modes button { padding: 4px 10px; font-size: 13px; }
.rt-modes button[aria-pressed=true] { background: #8fa851; color: #1f1b16; }

/* ---- Profile timeline (phone first; two columns from 900px) ---- */
.mys { flex-direction: column; align-items: center; }
.mys.tl-on .mys-sheet { width: min(1100px, 100%); flex: 1; }
.tl-script { font: italic 700 26px/1.1 var(--type); }
.tl { display: grid; gap: 12px; padding-top: 18px; }
.tl-cols { display: grid; gap: 12px; }
.tl-main, .tl-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 900px) { .tl-cols { grid-template-columns: minmax(0, 1fr) 300px; } .tl-script { font-size: 34px; } }
.tl-card { background: rgba(255, 252, 244, .72); border: 1px solid rgba(87, 77, 64, .22); border-radius: 8px; padding: 12px 14px; }
.tl-card h3 { margin: 0 0 8px; font-size: 16px; }
.tl-greet h2 { margin: 0 0 4px; color: #2b2620; }
.tl-greet p { margin: 0 0 6px; }
.tl-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.tl-news button { display: flex; gap: 8px; align-items: center; text-align: left; font-size: 13px; padding: 8px 10px; min-height: 48px; }
.tl-news .ic { font-size: 20px; }
.tl-compose textarea { width: 100%; box-sizing: border-box; border-radius: 20px; padding: 10px 14px; resize: vertical; font: inherit; }
.tl-crow { display: flex; gap: 8px; align-items: flex-start; }
.tl-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.tl-tools { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.tl-tools .primary-act { margin-left: auto; }
.tl-tools button:not(.primary-act) { min-width: 44px; min-height: 44px; font-size: 18px; padding: 0; }
.tl-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .tl-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.tl-pinned { display: block; font-size: 13px; font-weight: 700; margin-top: 4px; }
.tl-placepick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .tl-placepick .fine { flex-basis: 100%; margin: 0; }
.tl-entry { border-top: 1px dashed rgba(87, 77, 64, .3); padding: 10px 0; }
.tl-when { margin: 0 0 4px; font-size: 13px; }
.tl-text { margin: 0 0 6px; white-space: pre-wrap; }
.tl-pics { display: grid; gap: 4px; border-radius: 6px; overflow: hidden; }
.tl-pics.n2 { grid-template-columns: 1fr 1fr; } .tl-pics.n3 { grid-template-columns: 2fr 1fr 1fr; }
.tl-pics img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; }
.tl-eacts { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; }
.tl-vibepick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; } .tl-vibepick [aria-pressed=true] { background: #8fa851; }
.tl-ev { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; margin-bottom: 6px; padding: 6px 8px; }
.tl-ev > span:last-child { display: grid; } .tl-ev small { font-size: 12px; color: #5d5245; }
.tl-date { display: grid; place-items: center; width: 42px; flex: none; border: 1px solid rgba(87, 77, 64, .3); border-radius: 4px; background: #fbf7ee; line-height: 1.05; padding: 3px 0; }
.tl-date small { font-size: 10px; } .tl-date b { font-size: 18px; }
.tl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } .tl-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.tl-story { font-size: 16px; line-height: 1.45; }
@media (max-width: 600px) { .tl-script { font-size: 22px; } .tl-card { padding: 10px 12px; } }

/* Journal sharing and the town feed */
.tl-sharemenu { display: grid; gap: 6px; margin-top: 6px; padding: 8px; border: 1px dashed rgba(87, 77, 64, .35); border-radius: 6px; }
.tl-sharemenu button { text-align: left; }
.tl-hearts { margin: 4px 0 0; color: #8a2f1c; }
.list li.nb-feed { display: grid; gap: 8px; cursor: default; border: 0 !important; padding: 4px 2px 8px !important; }
.list li.nb-feed > b { font: 700 13px var(--head); }
.nb-post { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 8px; border-radius: 8px; background: rgba(255, 252, 244, .7); border: 1px solid rgba(87, 77, 64, .2); }
.nb-post img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.nb-post:not(:has(img)) { grid-template-columns: 1fr; }
.nb-who { margin: 0; font-size: 12px; } .nb-text { margin: 2px 0; font-size: 14px; }
.nb-acts { margin: 0; display: flex; gap: 12px; align-items: center; }
.nb-heart { border: 0 !important; background: none !important; box-shadow: none !important; font-size: 20px; color: #b8432a; padding: 0 4px; min-width: 36px; min-height: 36px; }

.mys-acct { font-size: 13px; padding: 4px 10px; }
.mys ~ #acct, html.profile-open #acct { z-index: 80; }
html.bgmap .locate, html.bgmap .share-spot, html.bgmap .search-area { display: none !important; }

.owner-pics { display: flex; gap: 4px; overflow-x: auto; margin: 6px 0; scrollbar-width: thin; }
.owner-pics img { height: 84px; width: auto; border-radius: 6px; flex: none; }

.acct-google { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-weight: 700; }
.acct-or { text-align: center; margin: 4px 0; }
.acct-code { display: flex; gap: 8px; align-items: center; }
.acct-code-in { font: 700 22px/1 var(--data); letter-spacing: .3em; width: 9ch; text-align: center; padding: 6px; }

/* Brand art: loading screen, empty states, Shore Scout badges */

#loader .sign { display: none; }
#loader p { color: #2b2620; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); font-weight: 700; }
#loader .tide { background: rgba(255, 255, 255, .45); }
.empty-art { display: block; width: min(220px, 70%); height: auto; margin: 6px auto 2px; opacity: .95; }
.sc-badges li img { width: 56px; height: 56px; display: block; margin: 0 auto 4px; }
.sc-badges li:not(.got) img { filter: grayscale(1) opacity(.45); }
.tl-crest { width: 64px; height: 64px; float: right; margin: 0 0 6px 10px; }

#loader p { display: none; }


/* Brand-kit pins: one teardrop shape for every category (ui/pins) */
.mpin.pn { width: 30px; height: 30px; background: none; }
.mpin.pn .pin-art { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: auto; filter: drop-shadow(0 1px 1px rgba(43, 38, 32, .45)); }
.mpin.pn .pin-ic { position: absolute; left: 30%; top: 26%; width: 40%; height: 40%; display: grid; place-items: center; color: #2b2620; }
.mpin.pn .pin-ic img, .mpin.pn .pin-ic svg { width: 100%; height: 100%; image-rendering: pixelated; filter: brightness(0) opacity(.85); }
.mpin.pn.lit .pin-art, .mpin.pn.tapped .pin-art { filter: drop-shadow(0 0 3px #ffd35a) drop-shadow(0 0 2px #ffd35a); }
body.night .mpin.pn .pin-art { filter: drop-shadow(0 0 5px rgba(255, 211, 90, .7)); }

.badge-img { display: block; height: 26px; width: auto; margin: 2px 0 4px; }

/* Top bar wordmark: the brand sign (lighthouse, marsh, plank) */
.bar h1.h1-mark { padding: 0; border: 0; border-image: none; background: none; line-height: 0; filter: drop-shadow(0 3px 4px rgba(20, 16, 10, .35)); }
.bar h1.h1-mark img { height: 64px; width: auto; display: block; }
@media (max-width: 600px) { .bar h1.h1-mark img { height: 44px; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Road reports */
.rr-mark { width: 30px; height: 30px; padding: 0; border-radius: 50% !important; border: 2px solid #2b2620 !important; background: #fbf5e6 !important; font-size: 16px; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 2px 0 rgba(43, 38, 32, .35); pointer-events: auto; cursor: pointer; }
.rr-mark.rr-police { border-color: #3f76a8 !important; } .rr-mark.rr-crash, .rr-mark.rr-closure { border-color: #b8432a !important; }
.rr-card, .rr-sheet { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 75; width: min(360px, calc(100vw - 24px));
  background: #fbf5e6; border: 2px solid #2b2620; border-radius: 8px; padding: 12px; display: grid; gap: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.rr-card div { display: flex; gap: 8px; flex-wrap: wrap; }
.rr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.rr-grid button { display: grid; justify-items: center; gap: 2px; min-height: 64px; font-weight: 700; font-size: 13px; }
.rr-grid button span { font-size: 24px; }
.rr-btn { position: fixed; right: 14px; z-index: 6; width: 44px; height: 44px; padding: 0; border-radius: 50% !important; font-size: 20px; bottom: 86px; box-shadow: 0 3px 0 rgba(43, 38, 32, .35); }
html.screensaver .rr-btn, html.profile-open .rr-btn, html.bgmap .rr-btn, html.bgmap .rr-mark { display: none !important; }

/* Follow-me (solid when following) and dropped pins */
.locate.following { background: #3f76a8 !important; color: #fff !important; border-color: #2b2620 !important; }
.drop-pin { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 1px rgba(43, 38, 32, .5)); pointer-events: auto; cursor: pointer; padding: 14px 16px 2px; animation: pin-drop .25s ease-out; }
@keyframes pin-drop { from { transform: translateY(-14px); opacity: 0; } }

/* Loading: the real Cape Charles map (a pre-baked strip) panning slowly under the wordmark sign */
#loader { background: #3f76a8 url("brand/loading-strip.webp") 0 50% / auto max(100vh, 600px) repeat-x; place-content: center; padding: 0; animation: ld-pan 70s linear infinite alternate; }
@keyframes ld-pan { to { background-position: -1400px 50%; } }
#loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20, 16, 10, .05), rgba(20, 16, 10, .35)); pointer-events: none; }
#loader .ld-mark { position: relative; width: min(420px, 78vw); height: auto; filter: drop-shadow(0 6px 10px rgba(20, 16, 10, .45)); }
#loader .tide { position: relative; margin-top: 18px; }
#loader p, #loader .sign { display: none; }
@media (prefers-reduced-motion: reduce) { #loader { animation: none; } }

/* Drive bar in the app's paper style: the direction across the top, distance and time under it,
   then the controls in one even row that always stays inside the frame */
#drive.paper { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "next dist" "eta eta" "ctl ctl" "safe safe"; gap: 4px 12px;
  left: 50%; right: auto; width: min(520px, calc(100vw - 20px)); box-sizing: border-box; padding: 6px 8px 8px; background: none; color: #2b2620;
  border: var(--panel); border-image: url("ui/panel_paper.png") 21 fill / 18px stretch; box-shadow: 0 6px 18px rgba(20, 16, 10, .35); }
#drive.paper .dv-next { grid-area: next; font: 700 22px/1.2 var(--head); color: #2b2620; min-width: 0; overflow-wrap: anywhere; cursor: pointer; }
#drive.paper .dv-dist { grid-area: dist; align-self: start; font: 700 22px/1.2 var(--data); color: #4c6c46; white-space: nowrap; }
#drive.paper .dv-eta { grid-area: eta; font: 13px var(--data); color: #5d5245; opacity: 1; }
#drive.paper .dv-ctl { grid-area: ctl; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; width: 100%; }
#drive.paper .dv-ctl button { min-width: 0; min-height: 44px; padding: 4px 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #fbf5e6; color: #2b2620; border: 2px solid #2b2620; border-radius: 4px; }
#drive.paper .dv-end.armed { background: #b8432a; color: #fff; border-color: #2b2620; }
#drive.paper .dv-safe { grid-area: safe; color: #5d5245; }

/* Navigation icons (brand set, ui/nav): the button text stays for logic and screen readers but is hidden */
#drive.paper .dv-ctl button.dv-report, #drive.paper .dv-ctl button.dv-repeat, #drive.paper .dv-ctl button.dv-mute,
#drive.paper .dv-ctl button.dv-share, #drive.paper .dv-ctl button.dv-over, #drive.paper .dv-ctl button.dv-end:not(.armed) {
  font-size: 0; color: transparent; background-color: #fbf5e6; background-position: center; background-size: 28px; background-repeat: no-repeat; image-rendering: auto; }
#drive.paper .dv-ctl .dv-report { background-image: url("ui/nav/nav_hazard.png"); }
#drive.paper .dv-ctl .dv-repeat { background-image: url("ui/nav/nav_repeat.png"); }
#drive.paper .dv-ctl .dv-mute { background-image: url("ui/nav/nav_voice_on.png"); }
#drive.paper .dv-ctl .dv-mute.muted { background-image: url("ui/nav/nav_voice_off.png"); }
#drive.paper .dv-ctl .dv-share { background-image: url("ui/nav/nav_eta.png"); }
#drive.paper .dv-ctl .dv-over { background-image: url("ui/nav/nav_route.png"); }
#drive.paper .dv-ctl .dv-end:not(.armed) { background-image: url("ui/nav/nav_end.png"); }
#drive.paper .dv-ctl .dv-end.armed { font-size: 12px; }
/* the plain border also drops the paper border-image, whose fill would paint over the icon */
.rr-btn { font-size: 0 !important; color: transparent; background: #fbf5e6 url("ui/nav/nav_hazard.png") center / 24px no-repeat !important;
  border: 2px solid #2b2620 !important; }

/* Step-by-step list while driving: tap the top bar to open or close */
#dv-steps { position: fixed; z-index: 30; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); max-height: 46vh; overflow-y: auto; padding: 6px 10px; background: #fbf5e6; border: 2px solid #2b2620; border-radius: 10px; box-shadow: 0 3px 0 rgba(43, 38, 32, .3); }
#dv-steps ol { margin: 0; padding-left: 22px; }
#dv-steps li { padding: 8px 4px; border-bottom: 1px dashed rgba(43, 38, 32, .25); scroll-margin-top: 6px; }
#dv-steps li.past { opacity: .45; }
#dv-steps li.now { background: #f2d58a; font-weight: 700; border-radius: 6px; }
#dv-steps em { color: #5d5245; font-style: normal; font-size: .9em; }
#drive.paper { cursor: pointer; }

/* ---- Profile: compact header, quick jumps, sorting and private notes on saved places ---- */
.mys-head { justify-content: space-between; }
.mys-me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mys-me-photo { width: 48px; height: 48px; flex: none; padding: 0; border: 2px solid #2b2620 !important; background: #fbf5e6; border-radius: 50% !important; overflow: hidden; display: grid; place-items: center; font-size: 11px; }
.mys-me-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mys-me-text { display: grid; min-width: 0; }
.mys-me-text b { font: 700 18px/1.15 var(--type); letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mys-me-text small { font-size: 12.5px; color: #5d5245; }
.mys-jump, .mys-sort { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.mys-sort [aria-pressed=true] { background: #8fa851; }
.mys-note { margin: 4px 0 0; font-size: 13px; font-style: italic; color: #5d5245; white-space: pre-wrap; }
.mys-note-btn { font-size: 12.5px; }
.mys-note-edit { display: grid; gap: 6px; margin-top: 6px; }
.mys-note-edit textarea { width: 100%; box-sizing: border-box; font: inherit; }

/* ---- A neighbor's public card (user-posts.js) ---- */
.person-pop { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 75;
  width: min(340px, calc(100vw - 32px)); display: grid; gap: 6px; padding: 12px 14px; background: #fbf5e6;
  border: 2px solid #2b2620; border-radius: 6px; box-shadow: 0 3px 0 rgba(43, 38, 32, .3); }
.person-pop p { margin: 0; }
.person-pop .pp-name { font-size: 18px; }
.post-by { margin: 0 0 6px; }
.mys-hist li { display: grid; gap: 2px; }
.mys-st { font-size: 12.5px; font-weight: 700; color: #5d5245; }
.mys-st.st-confirmed, .mys-st.st-verified, .mys-st.st-checked { color: #2f6b2a; }
.mys-st.st-differs, .mys-st.st-rejected { color: #8a2f1c; }
.mys-noterow { display: grid; gap: 2px; margin: 0 0 8px; }
.mys-noterow [aria-pressed=true] { background: #8fa851; }

/* Pixel icons in place of emoji (glyphs.js): sized to the text around them, crisp at any zoom */
img.gl { width: 1.2em; height: 1.2em; vertical-align: -0.25em; image-rendering: pixelated; display: inline-block; }

/* ---- Simpler for first-timers: one search, Basics-first settings, words under the round map buttons ---- */
#sn-find > .mic-wrap, #sn-find > #sn-q { display: none; }  /* the top bar's search does everything (extras.js) */
.sn-filter { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; font-size: 13px; }
#settings:not(.all) .s-more { display: none !important; }
#settings .s-more-btn { grid-column: 1 / -1; justify-self: start; }
.locate[data-cap]::after, .rr-btn[data-cap]::after { content: attr(data-cap); position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  font: 700 10.5px/1.2 var(--type) !important; color: #2b2620 !important; background: rgba(251, 245, 230, .92); padding: 1px 5px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
.locate, .rr-btn { overflow: visible !important; }

/* "How ShoreNav works" guide (guide.js) */
.guide-dlg { position: fixed; z-index: 60; inset: max(12px, 6vh) 50% auto auto; transform: translateX(50%); width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - max(24px, 12vh));
  overflow-y: auto; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.guide-top { display: flex; justify-content: space-between; align-items: center; } .guide-top strong { font: 700 22px var(--sign); letter-spacing: .04em; }
.guide-dlg input[type=search] { width: 100%; padding: 8px; font-size: 15px; }
.guide-list h3 { margin: 10px 0 4px; font-size: 15px; }
.guide-list details { border-top: 1px solid rgba(43, 38, 32, .15); padding: 6px 0; } .guide-list summary { cursor: pointer; font-weight: 600; }
.guide-list details p { margin: 6px 0 2px; }
html.screensaver .guide-dlg, html.screensaver .sn-tip { display: none; }

/* place card: the everyday actions (Plan, Share, Follow, Lists) in one row under Call/Directions/Save */
.top-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 5px; margin: 6px 0 2px; }
.top-acts button { font-size: 13px; padding: 6px 4px; }
.list-box:not(:empty) { display: grid; gap: 4px; margin: 4px 0 6px; } .list-tick { display: flex; gap: 6px; align-items: center; }
.list-new { display: flex; gap: 5px; } .list-new input { flex: 1; min-width: 0; padding: 5px; }
.fol-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .fol-name small { color: var(--ink-soft); }
.mys-view { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.profile-tab .tab-count { margin-left: 4px; padding: 0 5px; border-radius: 8px; background: #b8432a; color: #fff8e6; font-size: 11px; }
.ev-need { margin-top: 4px; }
/* owner tools on their own place card (owner-card.js) */
.own-box { display: grid; gap: 6px; margin: 8px 0; padding: 10px 12px; } .own-box strong { font-size: 15px; }
.own-acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; } .own-acts > * { font-size: 13px; padding: 6px 4px; text-align: center; }
.own-form { display: grid; gap: 6px; } .own-form[hidden] { display: none; } .own-times[hidden] { display: none; }
.own-days { margin: 0; padding-left: 18px; font-size: 13px; } .own-exit summary { cursor: pointer; font-size: 13px; color: var(--ink-soft); }
.own-exit[open] { display: grid; gap: 6px; } .special-hrs { margin: 4px 0; font-weight: 700; color: #b8432a; }
/* friends.js */
.invite-box { display: grid; gap: 6px; } .invite-btns { grid-template-columns: 1fr 1fr; } .invite-box .qr { justify-self: center; padding: 8px; background: #fff; }
.invite-box .qr[hidden] { display: none; } .fol-acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: end; }
.going { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; } .going select[hidden] { display: none; } .going-n { width: 100%; margin: 0; }
.goal-bar { height: 10px; background: rgba(43, 38, 32, .12); border-radius: 5px; overflow: hidden; } .goal-bar i { display: block; height: 100%; background: #8fa851; }
/* Need help now (helpnow.js) */
.help-now { position: fixed; z-index: 70; inset: max(12px, 4vh) 50% auto auto; transform: translateX(50%); width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - max(24px, 8vh)); overflow-y: auto; padding: 14px 16px; display: grid; gap: 8px; }
.hn-911 { display: block; text-align: center; padding: 14px; font: 700 22px var(--sign); color: #fff8e6; background: #b8432a; border: 3px solid var(--ink); text-decoration: none; }
.hn-lines { display: grid; gap: 6px; } .hn-lines .call, .hn-row .call { display: inline-block; padding: 6px 10px; border: 2px solid var(--ink); text-decoration: none; color: inherit; font-weight: 700; }
.hn-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .hn-row span { cursor: pointer; } .hn-row small { display: block; color: var(--ink-soft); }
.help-now h3 { margin: 8px 0 2px; font-size: 15px; } .hn-btn { color: #b8432a; font-weight: 700; }
html.screensaver .help-now { display: none; }
/* Good to go (goodtogo.js) */
.gtg { display: grid; gap: 4px; margin: 8px 0; padding: 8px 10px; border: 2px solid var(--ink); background: rgba(143, 168, 81, .08); }
.gtg-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; } .gtg-row b { padding-left: 14px; position: relative; }
.gtg-row b::before { content: ""; position: absolute; left: 0; top: .35em; width: 9px; height: 9px; border: 1px solid var(--ink); }
.gtg-0 b::before { background: #8fa851; } .gtg-1 b::before { background: #e8b45a; } .gtg-2 b::before { background: #b8432a; }
.gtg-warn { margin: 0; font-weight: 700; color: #b8432a; }
/* Fresh today */
.fresh-line { margin: 4px 0; color: #4f6b1f; } .fresh-line b { color: #4f6b1f; }
.mpin.fresh { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px #8fa851; clip-path: none; }
@media (prefers-reduced-motion: no-preference) { .mpin.fresh { animation: fresh-glow 2.4s ease-in-out infinite; } @keyframes fresh-glow { 50% { box-shadow: inset 0 0 0 2px var(--ink), 0 0 6px 4px #b9d27a; } } }
/* Will my road flood? (flood.js) */
.fl-verdict { display: grid; gap: 2px; padding: 10px; border: 2px solid var(--ink); } .fl-verdict b { font-size: 17px; }
.fl-0 { background: rgba(143, 168, 81, .15); } .fl-1 { background: rgba(232, 180, 90, .2); } .fl-2 { background: rgba(184, 67, 42, .18); } .fl--1 { background: rgba(43, 38, 32, .06); }
.fl-open { margin-top: 6px; }
/* Stories (stories.js) */
.story { display: grid; gap: 4px; margin: 6px 0; padding: 8px 10px; border-left: 3px solid #8a6d3b; background: rgba(138, 109, 59, .07); } .story p { margin: 0; }
.story[hidden] { display: none; } .story-credit { margin: 0; } .story-row { display: block; } .story-t { font-weight: 700; text-align: left; padding: 2px 0; }
/* Big-event live mode (live.js) */
.live-chips { position: fixed; z-index: 25; left: 50%; top: 96px; transform: translateX(-50%); display: flex; gap: 6px; max-width: calc(100vw - 24px); }
.live-chip { font-size: 13px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
.live-chip b { margin-right: 4px; } .live-chip.now b { color: #b8432a; }
.live-report .chips { display: flex; flex-wrap: wrap; gap: 4px; } .live-report button { font-size: 12px; padding: 4px 8px; } .live-report input { width: 100%; margin-top: 4px; padding: 6px; }
.live-acts { grid-template-columns: 1fr; } .live-acts .primary-act { text-align: center; text-decoration: none; padding: 10px; }
html.screensaver .live-chips, html.profile-open .live-chips, html.driving .live-chips { display: none; }
/* planning together (together.js) */
.with-row { margin: 4px 0 0; } .fr-ticks { display: grid; gap: 4px; margin: 6px 0; max-height: 40vh; overflow-y: auto; }
.invite-pop .list { margin: 4px 0; padding: 0; }
/* Shore bingo (badges.js) */
.bingo { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } .bingo.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bingo-sq { display: grid; align-content: start; gap: 2px; min-width: 0; min-height: 76px; padding: 4px 2px; font-size: 11px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.bingo-sq.done { background: #8fa851; color: #1f1b16; } .bingo-sq.done .bq-t::before { content: "✓ "; }
.bq-n, .bq-sp { font-size: 10px; opacity: .8; } .bq-sp { font-style: italic; }
.year-img { width: 100%; max-width: 360px; justify-self: center; border: 2px solid var(--ink); }
.season-sec .idea-chips button { font-weight: 700; }
/* Sky tonight (skytonight.js) */
.sky-tonight { display: grid; gap: 8px; } .sky-row { display: grid; gap: 2px; } .sky-row p { margin: 0; } .sky-row.urgent b { color: #b8432a; }
.sky-btn { width: 100%; text-align: left; font-size: 14px; }
/* performers (performers.js) */
.pick-list li { cursor: pointer; padding: 4px 0; } .pick-list:empty { display: none; } .gig-who { margin: 6px 0; } .gig-form { margin-top: 8px; }
.perf-dlg .qr { justify-self: center; padding: 8px; background: #fff; } .perf-dlg .qr[hidden] { display: none; } .perf-dlg .where-btns a { text-align: center; text-decoration: none; padding: 10px; }
.mpin.gig:not(.fav)::after { content: ""; position: absolute; top: -10px; left: -8px; width: 13px; height: 13px; background: #fff8e6 url("ui/glyphs/radio.png") center / 11px no-repeat; image-rendering: pixelated; border: 1px solid var(--ink); }  /* a pixel radio, not the ♪ character (emoji on some phones) */
.specials-line { margin: 4px 0; } .specials-line .tag { margin-right: 4px; }

/* ---- Live weather on the map (wxmap.js): clouds and radar, frost and snow, warnings, flood gauges ---- */
.wx-map { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#layer > .wx-gauge { pointer-events: auto; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; cursor: pointer; filter: none; display: grid; place-items: center;
  border: 2px solid #2b2620; border-image: none; border-radius: 6px; background: #fbf5e6; box-shadow: 0 2px 0 rgba(43, 38, 32, .3); }
#layer > .wx-gauge img { width: 20px; height: 20px; image-rendering: pixelated; pointer-events: none; }
#layer > .wx-gauge.st-action { box-shadow: 0 0 0 3px #e0b23c, 0 2px 0 3px rgba(43, 38, 32, .3); }
#layer > .wx-gauge.st-minor { box-shadow: 0 0 0 3px #d9822b, 0 2px 0 3px rgba(43, 38, 32, .3); }
#layer > .wx-gauge.st-moderate { box-shadow: 0 0 0 3px #b8432a, 0 2px 0 3px rgba(43, 38, 32, .3); }
#layer > .wx-gauge.st-major { box-shadow: 0 0 0 3px #7d3c98, 0 2px 0 3px rgba(43, 38, 32, .3); }
.wx-pop { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 40;
  width: min(340px, calc(100vw - 32px)); display: grid; gap: 6px; padding: 12px 14px; font-size: 14px; background: #fbf5e6;
  border: 2px solid #2b2620; border-radius: 6px; box-shadow: 0 3px 0 rgba(43, 38, 32, .3); }
.wx-pop p { margin: 0; }
.wx-pop .wx-close { justify-self: end; }
#wx-key { position: fixed; left: 8px; top: calc(var(--stack, 110px) + 8px); z-index: 6; display: grid; gap: 3px; padding: 6px 8px; font-size: 12px;
  background: rgba(251, 245, 230, .94); border: 2px solid #2b2620; border-radius: 4px; }
#wx-key[hidden] { display: none; }
#wx-key .wx-row { display: flex; align-items: center; gap: 6px; }
#wx-key b { width: 34px; }
#wx-key p { margin: 0; }
.wx-sw { display: inline-flex; }
.wx-sw i { display: block; width: 10px; height: 10px; }
html.screensaver #wx-key, html.profile-open #wx-key, body.chrome-off #wx-key, html.screensaver .wx-pop, html.profile-open .wx-pop { display: none; }
/* Language picker in Settings (i18n.js): English, Español, Kreyòl side by side; the Kreyòl "not checked yet" note under it.
   At big text sizes on a phone the three don't fit in a row, so they wrap instead of cutting the words off. */
html .settings .lang-pick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(5.6em, 1fr)); gap: 5px; }
html .settings .lang-pick button { text-align: center; }
html .settings .lang-note { grid-column: 1 / -1; color: var(--ink-soft); }

/* Post tab (post-tab.js): a bold green plus in the tab bar, big tiles in the panel */
.post-tab { font-weight: 700; }
.post-tab .plus { color: #3f7a2a; font-size: 15px; line-height: 1; }
.post-tab[aria-selected="true"] .plus { color: inherit; }
@media (max-width: 400px) { #shorenav .sn-head [role=tablist] [role=tab] { padding-left: 4px; padding-right: 4px; } }
@media (max-width: 420px) { .post-tab .pt-word { display: none; } .post-tab .plus { font-size: 18px; padding: 0 4px; } }
#sn-post { overflow-y: auto; }
.pt-body { display: grid; gap: 10px; padding-bottom: 12px; }
.pt-h { margin: 0; }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-tile { display: grid; justify-items: start; align-content: start; gap: 2px; padding: 10px 10px 12px; text-align: left; min-height: 92px; }
.pt-tile .pt-ic { font-size: 22px; line-height: 1.1; }
.pt-tile strong { font-size: 15px; }
.pt-tile .pt-d { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.pt-more p { margin: 2px 0; }
.pt-mine h4 { margin: 4px 0; }
.pt-list li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.pt-list .pt-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 4px 0; font: inherit; color: inherit; cursor: pointer; }
.pt-list small { color: var(--ink-soft); }
/* Panel tabs: an icon and a word. Five words don't fit the ~350 px panel, so the tabs you're not on show just the
   icon (the word stays for screen readers) and the row never scrolls sideways */
#shorenav [role=tab] { white-space: nowrap; }
#shorenav [role=tab] .tab-ico { width: 16px; height: 16px; image-rendering: pixelated; vertical-align: -3px; margin-right: 3px; }
#shorenav [role=tab][aria-selected="false"] .tab-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#shorenav [role=tab][aria-selected="false"] .tab-ico { margin-right: 0; }
#shorenav [role=tab][aria-selected="false"] { padding-inline: 4px; }
#shorenav .sn-head > [role=tablist] { gap: 2px; } #shorenav [role=tab] .badge:not(:empty) { margin-left: 2px; }
#shorenav .friends-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Phones held upright: the full sheet reaches up to the search bar (over the weather strip and alerts, which come
   back when the sheet drops), so Events, Plan and forms get the whole screen */
@media (max-width: 900px) and (orientation: portrait) {
  html #shorenav.sheet-full { max-height: calc((100dvh - var(--bar-b, 72px) - 48px) / var(--ui-scale, 1)); }
  html body:not(.card-open) #shorenav.sheet-full:not(.collapsed) { height: calc((100dvh - var(--bar-b, 72px) - 48px) / var(--ui-scale, 1)); }  /* full means full, even for a short list */
  html:has(#shorenav.sheet-full) :is(.today, .alerts) { visibility: hidden; }
  #shorenav.sheet-peek #sn-toggle { transform: rotate(180deg); }  /* folded down: the arrow points up to open */
}
/* People online now in the Today strip (conditions.js; shown above 20) */
.live-users { display: inline-flex; align-items: center; gap: 5px; }
.live-users b { font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf5f; box-shadow: 0 0 0 0 rgba(63, 191, 95, .6); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 7px rgba(63, 191, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 191, 95, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* Badge cards (badges.js): one per family, the next tier, a bar, earned tiers as stamps; community goals (goals.js) */
.badge-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.badge-card { display: grid; gap: 5px; padding: 10px; border: 1px dashed rgba(87, 77, 64, .4); border-radius: 4px; }
.badge-card.some { border-style: solid; } .badge-card.done { background: rgba(143, 168, 81, .18); }
.badge-card p { margin: 0; }
.bc-stamps { display: flex; flex-wrap: wrap; gap: 4px; }
.bc-stamps span { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: rgba(143, 168, 81, .3); }
.todo-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 13px; }
.goal { display: grid; gap: 4px; margin-bottom: 10px; } .goal-mini { display: grid; gap: 8px; }
.goal-towns { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.goal-town { display: grid; gap: 3px; } .goal-town.mine b { color: #6b2a16; }

/* host an event: the optional "What kind?" chips (organizer.js) */
.ev-kinds { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 6px; } .ev-kinds button { font-size: 12px; padding: 3px 8px; }
.ev-kinds button[aria-pressed=true] { background: #8fa851; outline: 2px solid var(--ink); }

/* ==========================================================================
   Theme 2026-11: one identity. Clean cards over the pixel map.
   The only art is the logo and the map: no paper, kraft or plate textures.
   This block overrides everything above it; keep it last in the file.
   Palette: Shore red (primary), Marsh green, Dune sand, Bay blue, Shell cream.
   ========================================================================== */
:root {
  --red: #8b3a3a; --red-deep: #6f2c2c; --green: #2e5d47; --sand: #e8d8b7; --blue: #476e8f; --shell: #faf6ee;
  --surface: #faf6ee; --surface-2: #f1e7d2; --field: #fffdf8; --line: rgba(43, 38, 32, .18); --line-strong: rgba(43, 38, 32, .34);
  --ink: #26221d; --ink-soft: #5a5146; --glow: var(--red); --btn-ink: #fff; --open: var(--green);
  --r-card: 20px; --r-ctl: 12px; --r-pill: 999px;
  --shadow: 0 6px 20px rgba(20, 16, 10, .22); --shadow-sm: 0 1px 3px rgba(20, 16, 10, .16);
  --map-sign: "C2 Sign", "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
  --sign: var(--head); --data: var(--type); --stamp: var(--type);
}
*, *::before, *::after { border-image: none !important; }
html, body { font-size: 16px; line-height: 1.45; }
/* Map labels and cluster counts are part of the map art and keep the sign face. */
.label, .cluster { font-family: var(--map-sign) !important; }

/* Surfaces: one card style. The old 18px texture border stays as transparent spacing, so layouts hold. */
.paper, #card, #shorenav, #onboard section, #acct section, .conditions, .pin-pop, #drive.paper, .settings, .pin-tip, .post-dlg, .mys, main {
  background-color: var(--surface) !important; background-clip: border-box !important; border-color: transparent !important;
  border-radius: var(--r-card); filter: none !important; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.pin-tip { border-radius: var(--r-ctl); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.settings, .pin-pop { border-radius: 16px; }

/* Headings: Literata bold, sentence case. */
#card h2, #onboard h2, .bar h1, .ob-big b, #loader .sign, .pin-tip, .conditions h2, .conditions h3, .settings h3, h1, h2, h3 {
  font-family: var(--head) !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; }
#card h2 { font-size: 22px; line-height: 1.2; } #onboard h2 { font-size: 26px; line-height: 1.15; }
.pin-tip { font-size: 14px !important; }
.bar h1 { background: none !important; box-shadow: none !important; filter: drop-shadow(0 2px 4px rgba(20, 16, 10, .35)) !important; }
#loader .sign { background: none; color: var(--shell); }

/* Buttons: outlined by default, filled red when primary or selected. Border width is unchanged so sizes hold. */
button { background-color: var(--field); border-color: transparent; border-radius: var(--r-ctl); filter: none; color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong); text-shadow: none !important; transition: background-color .15s, box-shadow .15s, transform .08s; }
button:hover { background-color: #fff; box-shadow: 0 0 0 1px var(--ink-soft); }
button:active { transform: translateY(1px); }
button[aria-pressed="true"], [role=tab][aria-selected="true"], .seg button[aria-pressed="true"], .ev-kinds button[aria-pressed=true],
button.primary, .next-stop, #card .primary-act, .list li.sc-home .go {
  background-color: var(--red) !important; color: #fff !important; box-shadow: none !important; outline: 0 !important; }
button[aria-pressed="true"]:hover, [role=tab][aria-selected="true"]:hover, button.primary:hover { background-color: var(--red-deep) !important; }
button[aria-pressed="true"] svg, [role=tab][aria-selected="true"] svg, button.primary svg { color: #fff !important; }
.next-stop, #card .primary-act { border-radius: var(--r-ctl); image-rendering: auto; }
.linkish, button.linkish { background: none !important; box-shadow: none !important; color: var(--red); }
.mpin, .mpin:hover, .mpin:active { background-color: transparent; box-shadow: none; transform: none; }
.cluster { background-color: var(--ink); border-radius: var(--r-pill); box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, li:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px; }
a { color: var(--red); }

/* Chips are pills. */
.chips button, .ev-kinds button, .seg button { border-radius: var(--r-pill); }
.seg { gap: 4px; }

/* Fields. */
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], textarea, select, #sn-q, .dates input {
  background: var(--field); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); font-family: var(--type); }

/* Conditions strip: a light pill, like the search bar. */
.today { background: var(--surface) !important; color: var(--ink) !important; border-color: transparent; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.today a, .today button { color: var(--ink) !important; }
.alerts { background: var(--red) !important; color: #fff !important; outline: 0 !important; border-radius: var(--r-ctl); box-shadow: var(--shadow-sm); }
.toast { background: #26221d !important; color: var(--shell) !important; border-color: transparent; border-radius: var(--r-ctl); box-shadow: var(--shadow); }
.attrib { background: rgba(38, 34, 29, .78) !important; color: var(--shell) !important; border-color: transparent; border-radius: 8px; }
.attrib a { color: var(--shell) !important; }

/* Lists: solid hairlines, rounded category squares. */
.list li { border-bottom: 1px solid var(--line); }
.list li:hover, .list li:focus { background: rgba(139, 58, 58, .07); }
.list li.sc-home, .list li.occ-banner { background: var(--surface-2) !important; border-radius: var(--r-ctl); filter: none; box-shadow: inset 0 0 0 1px var(--line); }
.ico { border-radius: 6px; outline: 0; }
.tag { font-family: var(--type) !important; font-weight: 700; letter-spacing: 0; border-radius: var(--r-pill); padding: 1px 8px; background: var(--surface-2); color: var(--ink-soft); }
#card .kind { background: none; border-bottom: 1px solid var(--line); }
#card .kind b { border-radius: var(--r-pill); padding: 1px 8px; } #card .kind b.closed { background: var(--red); }
#onboard { background: rgba(20, 26, 34, .32); }
#loader .tide { outline: 0; border-radius: var(--r-pill); overflow: hidden; background: rgba(255, 255, 255, .25); } #loader .tide i { background: var(--shell); }

/* --- Theme 2026-11, part 2: components --- */
.mpin { border-radius: 0; }
.fine, .note, .claim, .list li span, .settings .s-links { font-size: 13px; }
.chips button, .town-chips button, .love-chips .chip, .trend-chips .chip, .list li.type-chips .chip, .ev-kinds button, .top-acts button, .card-actions button { font-size: 14px; }
.chips button, .town-chips button, .chip { min-height: 40px; padding: 4px 12px; border-radius: var(--r-pill); }
.home-sec { border-bottom: 1px solid var(--line) !important; padding: 12px 2px !important; }
.home-sec .sec-t { font: 700 14px var(--type) !important; letter-spacing: .02em; text-transform: none; color: var(--ink-soft); }
.explore-head { background: none !important; color: var(--ink) !important; padding: 2px 2px 6px !important; }
.explore-head b { font-size: 22px; } .explore-head span, .explore-head.tint-night span { color: var(--ink-soft) !important; font-size: 14px; }

/* Four tabs: icon over label, filled pill on the active one. */
#shorenav .sn-head { align-items: center; }
#shorenav .sn-head > [role=tablist].tabs4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; flex: 1 1 auto; overflow: visible; padding: 0 0 2px; }
#shorenav .tabs4 [role=tab] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 4px 2px;
  background: transparent; box-shadow: none; border-radius: 14px; color: var(--ink-soft); font-weight: 700; }
#shorenav .tabs4 [role=tab] svg.tab-ico { width: 24px; height: 24px; margin: 0; image-rendering: auto; }
#shorenav .tabs4 [role=tab] .tab-lbl, #shorenav .tabs4 [role=tab][aria-selected="false"] .tab-lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: 12px; line-height: 1.1; }
#shorenav .tabs4 [role=tab]:hover { background: rgba(43, 38, 32, .06); }
#shorenav.tabs-neutral .tabs4 [role=tab][aria-selected="true"] { background: transparent !important; color: var(--ink-soft) !important; }
#shorenav.tabs-neutral .tabs4 [role=tab][aria-selected="true"] svg { color: var(--ink-soft) !important; }
.tab-line { display: none !important; }
.tab-legacy[hidden], [role=tab][hidden] { display: none !important; }
#sn-toggle { box-shadow: none; background: transparent; }
.panel-back { background: none !important; box-shadow: none !important; color: var(--red); padding-left: 0; font-size: 15px; }
#sn-events.ev-empty .from-neighbors + .hint { display: none; }

/* Welcome card: one question. */
.where-card { gap: 12px; padding: 14px 16px; bottom: 16px; z-index: 45; }
.where-card.late { animation: none; }
.where-card strong { font-size: 26px; line-height: 1.15; padding-right: 44px; }
.where-card .where-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; padding: 0; font-size: 20px; background: transparent; box-shadow: none; border-radius: var(--r-pill); }
.where-card .first-lang { display: flex; gap: 4px; margin-right: 48px; } .where-card .first-lang button { font-size: 13px; padding: 2px 10px; min-height: 32px; border-radius: var(--r-pill); }
.where-card .primary-act, .where-card .where-loc { min-height: 50px; font-size: 17px; background-color: var(--red) !important; color: #fff !important; box-shadow: none !important; }
.where-card .where-loc svg, .where-card .where-loc img { filter: brightness(0) invert(1); }
.where-card .where-browse { min-height: 48px; font-size: 16px; }
.where-card .where-easy { background: none !important; box-shadow: none !important; color: var(--ink-soft); font-weight: 400; font-size: 14px; text-decoration: underline; padding: 2px; }
.where-card .town-chips { gap: 6px; }

/* Role row on the Explore home. */
.list li.role-row { position: relative; background: var(--surface-2) !important; border: 0 !important; border-radius: var(--r-ctl); padding: 12px 44px 12px 12px !important; margin: 4px 0 8px; }
.role-row .role-x { position: absolute; top: 2px; right: 2px; width: 40px; height: 40px; padding: 0; background: transparent; box-shadow: none; }

/* Place card: four main actions, then the claim row. */
.quick-acts.main-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 6px; margin: 10px 0 8px; }
.quick-acts .qa { min-width: 0; min-height: 48px; padding: 6px 4px; font-size: 14px; border-radius: var(--r-ctl); }
.quick-acts .qa.qa-go { background-color: var(--red) !important; color: #fff !important; box-shadow: none !important; }
a.claim-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; padding: 12px 14px; border-radius: var(--r-ctl);
  background: var(--surface-2); color: var(--ink) !important; text-decoration: none; font-weight: 400 !important; box-shadow: 0 0 0 1px var(--line); }
a.claim-row .cr-text b { display: block; font-weight: 700; } a.claim-row .cr-text span { color: var(--red); text-decoration: underline; font-weight: 700; }
a.claim-row .cr-chev { font-size: 22px; color: var(--ink-soft); }
.top-acts button { min-height: 40px; }

/* You tab. */
.mys-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .mys-nav[hidden] { display: none; }
.mys-back { background: none !important; box-shadow: none !important; color: var(--red); padding-left: 0; } .mys-title { font: 700 20px var(--head); }
.you-over { display: grid; gap: 12px; } .you-rows { display: grid; gap: 8px; }
button.you-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 6px 10px; text-align: left; font-weight: 400; }
.you-row .you-row-t { flex: 1; min-width: 0; display: grid; gap: 2px; } .you-row .you-row-t b { font-size: 16px; } .you-row .you-row-t small { font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.you-row .you-count { font-weight: 700; font-variant-numeric: tabular-nums; } .you-row .you-chev { font-size: 22px; color: var(--ink-soft); }
button.you-row.you-signin { background-color: var(--red) !important; color: #fff; box-shadow: none; }
button.you-row.you-signin small, button.you-row.you-signin .you-chev { color: rgba(255, 255, 255, .88); }
.you-scout-card { background: rgba(46, 93, 71, .1); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.you-scout-card .you-streak { font: 700 20px var(--head); } .you-scout-card .you-level { color: var(--ink-soft); font-size: 14px; }
details.mys-fold { border-top: 1px solid var(--line); } details.mys-fold > summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; }
.you-signed { font-size: 13px; color: var(--ink-soft); }
.mys-stats > * { border-radius: var(--r-ctl); }

/* Settings and the map layers sheet. */
html .settings button, html .settings .s-btnlink { font-size: 14px; min-height: 44px; padding: 6px 10px; }
html .settings .s-btnlink { border: 0; border-radius: var(--r-ctl); background: var(--field); box-shadow: 0 0 0 1px var(--line-strong); }
html .settings h4 { font: 700 13px var(--type) !important; letter-spacing: .02em; text-transform: none; }
html .settings .sgroup { border-top-color: var(--line) !important; }
#settings a:not([class]), #shorenav .list a:not([class]) { color: var(--red); }
#layers.layers-sheet { position: absolute; top: calc(100% + 6px); right: 0; z-index: 31; width: min(330px, calc(100vw - 24px)); max-height: calc(var(--vvh, 100dvh) - 110px); overflow-y: auto;
  display: grid; gap: 10px; padding: 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
#layers.layers-sheet[hidden] { display: none; }
.layers-head { display: flex; align-items: center; justify-content: space-between; font: 700 18px var(--head); }
#layers-x { width: 40px; height: 40px; padding: 0; background: transparent; box-shadow: none; }
.layers-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .layers-list button { min-height: 44px; font-size: 14px; text-align: left; }

/* Owner pieces. */
.biz-qr-img, .own-qr-img { width: 168px; height: 168px; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: var(--r-ctl); box-shadow: 0 0 0 1px var(--line); }
.pitch-head { font-size: 26px; line-height: 1.15; margin: 8px 0 4px; } .pitch-line { font-size: 17px; margin: 0 0 8px; }
.pitch-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.pitch-list li { padding-left: 28px; position: relative; } .pitch-list li::before { content: "\2713"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
@media (max-width: 600px) { #shorenav [role=tab], .settings button { min-height: 44px; } }

/* --- Theme 2026-11, part 3: fixes found in preview --- */
.mys { background-color: transparent !important; box-shadow: none !important; border-radius: 0; }
.mys-body { padding-inline: 6px; }
.list li.sc-home, .list li.occ-banner { border-image: none !important; }
#shorenav .grip, button[aria-label="Resize panel"] { background: transparent !important; box-shadow: none !important; }
.where-card { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.where-card > * { min-width: 0; max-width: 100%; }
.you-scout-card > * { margin: 0; } .you-scout-card h3 { font-size: 18px; }
.you-scout-card .mys-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.toast { bottom: auto; top: 120px; max-width: calc(100vw - 32px); font-size: 15px; }
.rr-btn, #locate, .near-btn { border-radius: var(--r-pill) !important; }

/* --- Theme 2026-11, part 4 --- */
.quick-acts.main-acts { display: flex; flex-wrap: nowrap; gap: 6px; }
.quick-acts.main-acts .qa { flex: 1 1 0; white-space: nowrap; font-size: 13.5px; gap: 3px; overflow: hidden; }
.quick-acts.main-acts .qa.qa-go { flex: 1.7 1 0; }
.quick-acts, a.claim-row, .top-acts { margin-left: 1px; margin-right: 6px; }
.sug, #sn-sug, .suggest, [role=listbox] { border-radius: 16px; border-color: var(--line) !important; box-shadow: var(--shadow); overflow: hidden; }

/* --- Theme 2026-11, part 5: narrow phones, Post tiles, map buttons --- */
#shorenav .tabs4 [role=tab] { border-width: 0; min-width: 0; padding: 4px 0; }
#shorenav .tabs4 [role=tab] .tab-lbl, #shorenav .tabs4 [role=tab][aria-selected="false"] .tab-lbl { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: clip; }
#shorenav .sn-head > [role=tablist].tabs4 { width: 100%; min-width: 0; }
#shorenav .sn-head { gap: 2px; } #sn-toggle { flex: none; }
@media (max-width: 420px) {
  #shorenav { border-left-width: 10px; border-right-width: 10px; }
  #shorenav .sn-head > [role=tablist].tabs4 { gap: 2px; padding-left: 0; padding-right: 0; }
  #sn-toggle { width: 28px; min-width: 28px; border-width: 0; }
}
@media (max-width: 340px) { #shorenav .tabs4 [role=tab] .tab-lbl, #shorenav .tabs4 [role=tab][aria-selected="false"] .tab-lbl { font-size: 11px; } }
/* Scrolling lists keep a little room so card edges are not cut by the scrollbar. */
#shorenav .list, .pt-body { padding-right: 8px; padding-left: 1px; }
.pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1px; }
.pt-tile { min-width: 0; overflow-wrap: anywhere; padding: 8px 8px 10px; }
.pt-tile strong { font-size: 16px; line-height: 1.2; } .pt-tile .pt-d { font-size: 13px; font-weight: 400; line-height: 1.35; }
/* Report and Near me: one round button style. */
.locate, body.card-open .locate, #shorenav:not(.sheet-peek) ~ .locate, .rr-btn {
  width: 48px !important; height: 48px !important; border: 0 !important; border-radius: 50% !important;
  background-color: var(--field) !important; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line-strong) !important; }
@media (max-width: 760px) { html:has(#shorenav.sheet-full) .locate, html:has(#shorenav.sheet-full) .rr-btn { visibility: hidden; } }
@media (max-width: 360px) { #shorenav .tabs4 [role=tab] .tab-lbl, #shorenav .tabs4 [role=tab][aria-selected="false"] .tab-lbl { font-size: 11px; } }
@media (max-width: 760px) { body.card-open .locate, body.card-open .rr-btn, html.profile-open .locate, html.profile-open .rr-btn { visibility: hidden !important; } }
