/* ==========================================================================
   Catch Signal: places (public/css/places.css)

   Linked by index.html after app.css (community, now and media.css come
   with the views that use them, app.js VIEW_CSS, and go in before or after
   this one as index.html used to list them). The location bar (the place
   search, "Use my location", "My places", "Save this place", a point's
   line, and its one-row summary on a phone), the area and spot pickers, the
   place prompt (<dialog id="place-prompt">), the toast's Undo, the mismatch
   notice, boat size, area chips, overlay chips, lake conditions, the bar,
   trip and lake cards, the Conditions-now area banners, Profile → My
   places, our spot guides' cards and lists (DESIGN-AU §9.13), and two
   shell rules: the intro off the forecast route (<html data-route>) and
   the tab bar while typing on a phone.

   Floor: Safari / iOS 15.4, Chrome 118. No nesting, no container queries,
   no colour-mixing functions: every colour is a design token from base.css / app.css, so
   the light and dark themes come for free. Works at 375 px.
   ========================================================================== */

:root {
  --guz: #3c5a66; --guz-bg: #e3ecef;
  --fresh: #1f6b59; --fresh-bg: #dcefe8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --guz: #a9c4cf; --guz-bg: #1b2d35;
    --fresh: #8fdcc4; --fresh-bg: #12302a;
  }
}
:root[data-theme="dark"] {
  --guz: #a9c4cf; --guz-bg: #1b2d35;
  --fresh: #8fdcc4; --fresh-bg: #12302a;
}

/* ---- Pickers: the area select above the spot select */
.loc-pair { display: grid; gap: var(--space-3); min-width: 0; }
.loc-area .loc-status { display: none; }

/* ---- The location bar (DESIGN-AU §9.7): the place search with "Map" and "My places" beside it (under it on a phone),
   the "Save this place" form, then the place: the SEQ pickers, or a point's own line */
.locbar-find { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.locbar-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.locbar-acts .btn.small { min-height: 40px; padding: 6px 12px; }
.locbar-acts .ic { color: var(--accent); flex: none; }
.locbar-body { display: grid; gap: var(--space-3); min-width: 0; }
/* "Use my location" (app.js useMyLocation) and what it says while it works or why it couldn't */
.locbar-gps .ic { color: var(--accent); flex: none; }
.btn.primary.locbar-gps .ic { color: inherit; }
.locbar-gps[aria-busy="true"] { cursor: progress; }
.locbar-msg { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.locbar-msg:empty { display: none; }
.locbar-msg.is-err { color: var(--warn); font-weight: 600; }
.loc-gps-note { margin: 0; color: var(--muted); font-size: var(--fs-xs); }

/* The bar's summary row (DESIGN-AU §9.7, audit S-U1; at every width since the landing redesign of 1 Dec 2026): the
   place on screen as the button that opens the rest ("📍 <place> · Change"), so the forecast starts high on the first
   screen. The search, "Map", "My places", the area and spot pickers and "Forget" are in the opened bar. On a phone
   "Use my location" sits in the row too (the media query at the end). */
.locbar-sum { display: flex; align-items: stretch; gap: var(--space-2); min-width: 0; }
.locbar-body:not(.is-open) { display: none; }
.locbar-sum .locbar-gps-sum { display: none; }
.locbar-here {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 6px 12px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 var(--fs-base)/1.25 var(--font-body);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.locbar-here:hover { border-color: var(--accent); }
.locbar-here:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.locbar-pin { flex: none; color: var(--accent); }
.locbar-place { display: grid; gap: 1px; flex: 1 1 auto; min-width: 0; }
/* (two lines at most: a long name is cut with an ellipsis; the opened bar has it in full) */
.locbar-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.locbar-label { color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.locbar-change { color: var(--accent); font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; }
.locbar-here[aria-expanded="true"] .locbar-shut, .locbar-here[aria-expanded="false"] .locbar-done { display: none; }
.locbar-caret { flex: none; color: var(--muted); transition: transform .15s ease; }
.locbar-here[aria-expanded="true"] .locbar-caret { transform: rotate(180deg); }
/* The row's "Use my location": the pin over two short lines, so the place keeps most of the row */
.locbar-gps-sum {
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
  width: 5.25rem;
  min-height: 48px;
  padding: 4px 6px;
  border-radius: 12px;
  line-height: 1.15;
  white-space: normal;
}

/* The search box: a combobox with its listbox in a popup under it */
.ps { position: relative; flex: 1 1 12rem; min-width: 0; }
.ps-field { position: relative; min-width: 0; }
.ps-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ps-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 var(--fs-base)/1.2 var(--font-body);
}
.ps-input:hover { border-color: var(--accent); }
.ps-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.ps-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 30;
  min-width: 100%;
  width: min(22rem, calc(100vw - 32px));
  max-height: min(26rem, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-1) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ps-pop[hidden] { display: none; }
.ps-list { display: grid; }
.ps-group { display: grid; }
.ps-group + .ps-group { border-top: 1px solid var(--line); }
.ps-glabel { padding: 8px 12px 2px; color: var(--muted); font: 600 .6875rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.ps-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-left: 3px solid transparent;
  color: var(--ink);
  cursor: pointer;
}
.ps-opt .ic { flex: none; margin-top: 2px; color: var(--accent); }
.ps-opt:hover { background: var(--sunken); }
.ps-opt.is-active, .ps-opt[aria-selected="true"] { border-left-color: var(--accent); background: var(--sunken); }
.ps-text { display: grid; gap: 1px; min-width: 0; }
.ps-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ps-meta { display: block; color: var(--muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.ps-k-map { border-top: 1px solid var(--line); }
.ps-msg { margin: 0; padding: 8px 12px; color: var(--muted); font-size: var(--fs-sm); }
.ps-msg[hidden] { display: none; }

/* "My places": a <details> menu whose popup spans the bar (so it stays on screen at 375 px) */
.myp-menu { position: static; }
.myp-menu > summary { list-style: none; cursor: pointer; }
.myp-menu > summary::-webkit-details-marker { display: none; }
.myp-menu[open] > summary { border-color: var(--accent); background: var(--sunken); }
.myp-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 .6875rem/1.4 var(--font-body);
  text-align: center;
}
.myp-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: grid;
  gap: var(--space-1);
  max-height: min(26rem, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.myp-h { margin: 0; padding: 4px 8px; color: var(--muted); font: 600 .6875rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.myp-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.myp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.myp-item .ic { flex: none; margin-top: 2px; color: var(--accent); }
.myp-item:hover { background: var(--sunken); }
.myp-item.is-here { background: var(--sunken); box-shadow: inset 3px 0 0 var(--accent); }
.myp-text { display: grid; gap: 1px; min-width: 0; }
.myp-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.myp-meta { display: block; color: var(--muted); font-size: var(--fs-xs); }
.myp-none { padding: 8px; color: var(--muted); font-size: var(--fs-sm); }
.myp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; padding: var(--space-2) var(--space-1) 0; border-top: 1px solid var(--line); }
.myp-foot .btn { white-space: normal; text-align: left; }

/* Form status lines (the bar's "Save this place", Profile and the map's rename): community.css has the same three rules
   for its own forms, but the forecast and the map don't load it (app.js VIEW_CSS) */
.co-form-status { font-size: var(--fs-sm); color: var(--good); min-height: 0; }
.co-form-status:empty { display: none; }
.co-form-status.err { color: var(--warn); font-weight: 600; }

/* "Save this place": a small form that opens under the search */
.locbar-save { display: grid; gap: 6px; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--sunken); }
.locbar-save[hidden] { display: none; }
.locbar-save .hint, .locbar-save .co-form-status { margin: 0; font-size: var(--fs-xs); }
.locbar-save .co-form-status:empty { display: none; }
.locbar-save .co-form-status { color: var(--warn); }

/* A point: its name, label and water type in a box like the spot select, with "Change" */
.loc-here {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--field-line);
  border-radius: 12px;
  background: var(--surface);
}
.loc-here-pin { flex: none; color: var(--accent); }
.loc-here-text { display: grid; gap: 1px; flex: 1 1 auto; min-width: 0; margin: 0; }
.loc-here-name { font-weight: 600; overflow-wrap: anywhere; }
.loc-here-meta { color: var(--muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.loc-change { flex: none; }
.loc-compact .loc-here { min-height: 44px; }
/* A point's water type: a compact select under its name (changing it re-forecasts the place) */
.loc-water { display: flex; align-items: center; gap: var(--space-2); min-width: 0; margin: 0; font-size: var(--fs-sm); }
.loc-water label { flex: none; color: var(--muted); font-weight: 600; }
.loc-water select { flex: 0 1 auto; width: auto; max-width: 100%; min-height: 40px; padding: 6px 10px; font-size: var(--fs-base); text-overflow: ellipsis; }
/* "Forecast for <spot>, 1.2 km from <your place>" */
.loc-alias { display: flex; gap: 6px; align-items: flex-start; margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.loc-alias .ic { flex: none; margin-top: 2px; color: var(--accent); }
.loc-alias b { color: var(--ink); }

/* Profile → My places */
.myp-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.myp-row { display: grid; gap: var(--space-2); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.myp-row:first-child { border-top: 0; padding-top: 0; }
.myp-row-main { display: grid; gap: 2px; min-width: 0; }
.myp-row-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.myp-row-meta { margin: 0; color: var(--muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.myp-row.is-here { box-shadow: inset 3px 0 0 var(--accent); padding-left: var(--space-3); }
.myp-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 600; }
.myp-rename { display: grid; gap: 6px; margin-top: var(--space-2); }
.myp-rename .co-form-status:empty { display: none; }
.myp-error { margin: 0 0 var(--space-3); }
.zone-guz { background: var(--guz-bg); color: var(--guz); }
.co-zone.z-guz { background: var(--guz-bg); color: var(--guz); }

/* ---- The place prompt (§8.12): a modal <dialog>, opened with showModal() */
.place-prompt {
  width: min(32rem, calc(100vw - 32px));
  /* A modal dialog is position: fixed, so % follows the visible viewport: with Safari's toolbars showing, 100vh (the
     large viewport) put the sticky Cancel under the bottom toolbar (audit C-F10) */
  max-height: calc(100% - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}
.place-prompt::backdrop { background: rgb(10 24 32 / .55); }
.pp { display: grid; gap: var(--space-3); padding: var(--space-4); }
.pp-head { display: grid; gap: var(--space-1); }
.pp-title { margin: 0; font: 700 1.375rem/1.15 var(--font-display); letter-spacing: .01em; text-transform: none; }
.pp-sub { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.pp-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pp-opt {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pp-opt:hover { border-color: var(--accent); }
.pp-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.pp-name { font-weight: 600; overflow-wrap: anywhere; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 4px var(--space-2); color: var(--muted); font-size: var(--fs-xs); }
.pp-kind { padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunken); color: var(--ink); font-weight: 600; }
.pp-km { font-family: var(--font-data); }
.pp-area { font-style: italic; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-badge { padding: 1px 7px; border-radius: 999px; background: var(--caution-bg); color: var(--caution); font-size: var(--fs-xs); font-weight: 600; }
.pp-more { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pp-more:empty { display: none; }
.pp-none { margin: 0; color: var(--muted); }
.pp-save { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 600; font-size: var(--fs-sm); }
.pp-save input { width: 20px; height: 20px; accent-color: var(--accent); }
.pp-badge.is-info { padding: 0 7px; border: 1px solid var(--line); background: var(--sunken); color: var(--ink); }
/* Cancel stays in reach on a short phone screen: the foot sticks to the bottom of the scrolling dialog */
.pp-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  margin: 0 calc(var(--space-4) * -1) calc(var(--space-4) * -1);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* ---- The toast's Undo (§8.12 T5), and its other button ("Save" after "Use my location") */
.toast.show.has-undo, .toast.show.has-act { pointer-events: auto; display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.toast-undo {
  min-height: 36px;
  padding: 4px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 700 var(--fs-sm)/1 var(--font-body);
  cursor: pointer;
}
.toast-undo:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---- One-line notices under the controls (T8, T11) and the first visit's card */
.place-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--caution);
  border-radius: var(--radius);
  background: var(--caution-bg);
  color: var(--ink);
  font-size: var(--fs-sm);
}
.place-notice > .ic { color: var(--caution); flex: none; }
.place-notice > span:first-of-type { flex: 1 1 14rem; min-width: 0; }
.place-notice-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---- Boat size (open-water limits) */
.boat-size { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bs-legend { padding: 0; margin-bottom: 6px; font: 600 .75rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bs-legend .muted { letter-spacing: 0; text-transform: none; }
.bs-opts { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--sunken); max-width: 22rem; }
.bs-opt { position: relative; display: block; cursor: pointer; }
.bs-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bs-opt span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 10px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: var(--fs-sm); text-align: center; }
.bs-opt input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(15 42 58 / .12), 0 0 0 1px var(--line); }
.bs-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.bs-note { margin: 0; color: var(--muted); font-size: var(--fs-xs); }
.boat-size.is-compact .bs-note { display: none; }

/* ---- Area chips (forecast header), overlay chips (day rows), lake conditions */
.rchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
}
.rchip-ok { background: var(--good-bg); color: var(--good); }
.rchip-uncal { background: var(--caution-bg); color: var(--caution); }
.rchip-beta { background: var(--fresh-bg); color: var(--fresh); }
.rchip-q { flex: none; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; white-space: nowrap; }
.rchip-q-approx { background: var(--caution-bg); color: var(--caution); }
.ochips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
/* A day row's overlay chips get their own row (another area's rows only: Scarborough's rows have none and keep their grid) */
.fc-seq .day-row {
  grid-template-areas:
    "date verdict"
    "facts facts"
    "chips chips"
    "spot spot"
    "gate gate"
    "alert alert"
    "strip strip";
}
.day-row > .ochips { grid-area: chips; min-width: 0; }
.ochip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; }
.ochip-ok { background: var(--good-bg); color: var(--good); }
.ochip-maybe { background: var(--caution-bg); color: var(--caution); }
.ochip-no { background: var(--warn-bg); color: var(--warn); }
.chip.cond { border-color: transparent; }
.chip.cond-good { background: var(--fresh-bg); color: var(--fresh); }
.chip.cond-ok { background: var(--sunken); color: var(--ink); border-color: var(--line); }
.chip.cond-tough { background: transparent; color: var(--muted); border-color: var(--line); }
.day-row.is-cond-good { border-left: 4px solid var(--fresh); }
.day-row.is-cond-tough .dr-title { color: var(--muted); }
.pill-approx { background: var(--caution-bg); color: var(--caution); }
.hero-spot-note {
  display: flex;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--ink);
  font-size: var(--fs-sm);
}
.hero-spot-note .ic { color: var(--warn); flex: none; margin-top: 2px; }

/* ---- The lake card (forecast) and the lake rules card */
.lake-card { border-left: 4px solid var(--fresh); }
.lake-card .eyebrow { display: flex; align-items: center; gap: 6px; color: var(--fresh); }
.lake-status { padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--sunken); }
.lake-status-restricted { background: var(--caution-bg); }
.lake-status-closed { background: var(--warn-bg); }
.lake-rules h2 { display: flex; align-items: center; gap: var(--space-2); }
.seq-list { margin: 0; padding-left: 1.2em; }
.seq-list li + li { margin-top: var(--space-1); }
.seq-links { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.seq-k { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--space-1); font-weight: 600; }
.seq-k .ic { color: var(--accent); flex: none; }
.seq-gear, .tide-here { display: grid; gap: var(--space-1); }
.tide-here-times { margin: 0; display: flex; flex-wrap: wrap; gap: 4px var(--space-3); }
.seq-rescue, .seq-fad { display: flex; gap: var(--space-2); margin: 0; font-size: var(--fs-sm); }
.seq-rescue .ic { color: var(--accent); flex: none; margin-top: 2px; }
.seq-fad .ic { color: var(--caution); flex: none; margin-top: 2px; }
.fresh-species { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
.fresh-species h3 { margin: 0 0 var(--space-1); font-size: var(--fs-md); }
.fresh-species p { margin: 0; }

/* ---- The bar card and "Your trip" */
.bar-card { border-left: 4px solid var(--line); }
.bar-card.bar-ok { border-left-color: var(--good); }
.bar-card.bar-maybe { border-left-color: var(--caution); }
.bar-card.bar-no { border-left-color: var(--warn); }
.bar-head { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; font: 600 var(--fs-md)/1.3 var(--font-body); text-transform: none; letter-spacing: 0; }
.bar-head .ic { color: var(--accent); flex: none; margin-top: 2px; }
.bar-window, .bar-best, .bar-status { margin: 0; font-size: var(--fs-sm); }
.bar-best { display: flex; gap: 6px; align-items: center; }
.bar-status { color: var(--caution); }
.bar-lines { margin: 0; padding-left: 1.2em; font-size: var(--fs-sm); }
.bar-lines li + li { margin-top: 2px; }
.bar-dangers > summary { min-height: 32px; color: var(--accent); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.bar-dangers ul { margin: var(--space-1) 0; padding-left: 1.2em; font-size: var(--fs-sm); }
.trip-card { border-left: 4px solid var(--accent); }
.trip-card.trip-ok { border-left-color: var(--good); }
.trip-card.trip-maybe { border-left-color: var(--caution); }
.trip-card.trip-no { border-left-color: var(--warn); }
.trip-head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; }
.trip-lvl { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; }
.trip-lvl.trip-ok { background: var(--good-bg); color: var(--good); }
.trip-lvl.trip-maybe { background: var(--caution-bg); color: var(--caution); }
.trip-lvl.trip-no { background: var(--warn-bg); color: var(--warn); }
.trip-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.trip-times select { width: 100%; }
.trip-facts { display: grid; gap: var(--space-3); margin: 0; }
.trip-facts > div { display: grid; gap: 2px; }
.trip-facts dt { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); }
.trip-facts dt .ic { color: var(--accent); }
.trip-facts dd { margin: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.trip-why { display: block; color: var(--muted); font-size: var(--fs-xs); }
.trip-nogo { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.trip-alts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-sm); }

/* ---- Conditions now: area banners, the return bar, the lake */
.now-region {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}
.now-region p { display: flex; gap: var(--space-2); margin: 0; flex: 1 1 14rem; min-width: 0; }
.now-region .ic { color: var(--accent); flex: none; margin-top: 2px; }
.now-region-open { border-left-color: var(--caution); background: var(--caution-bg); }
.now-region-open .ic { color: var(--caution); }
.now-banner {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--caution-bg);
  color: var(--ink);
}
.now-banner .ic { flex: none; color: var(--caution); }
.now-banner p { display: grid; gap: 4px; margin: 0; min-width: 0; }
.now-banner b { overflow-wrap: anywhere; }
.now-banner-restricted, .now-banner-no-fishing { background: var(--warn-bg); }
.now-banner-restricted .ic, .now-banner-no-fishing .ic { color: var(--warn); }
.now-bar { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.now-lake .now-note b { font-weight: 700; }

/* ---- Spots and species pages */
.co-tag-slow { background: var(--caution-bg); color: var(--caution); }
.co-tag-reef { background: var(--hpz-bg); color: var(--hpz); }
.co-nofish-list { margin: 0; padding-left: 1.2em; }
.co-nofish-list li + li { margin-top: var(--space-1); }
.co-area-pick { max-width: 24rem; margin-top: var(--space-3); }
.co-tide-src, .co-gear, .co-rescue { margin-top: var(--space-4); }
.attrs-area { display: grid; gap: var(--space-1); }

/* ---- Our spot guides outside SEQ (DESIGN-AU §9.13, components/guide-spots.js): a point's "Your place" card from its
   guide on the forecast (and the same block in the day page's "Your place"), and the guide spots on #/spots */
.gd-card { display: grid; gap: var(--space-3); border-left: 4px solid var(--accent); }
.gd-card > * + * { margin-top: 0; }
.gd-title { display: flex; align-items: center; gap: var(--space-2); }
.gd-title .ic { color: var(--accent); }
.gd-name { margin: 0; font-size: var(--fs-md); overflow-wrap: anywhere; }
.gd-block { display: grid; gap: var(--space-3); min-width: 0; }
.gd-block > * { margin: 0; }
.ys .gd-block { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.gd-from { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: var(--fs-sm); }
.gd-from .ic { flex: none; margin-top: 3px; color: var(--accent); }
.gd-from b { color: var(--ink); }
.gd-notes { max-width: var(--measure); overflow-wrap: anywhere; }
.gd-facts { display: grid; gap: var(--space-3); margin: 0; }
.gd-facts > div { display: grid; gap: 4px; min-width: 0; }
.gd-facts dt { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 600 .75rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.gd-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.gd-safety-h { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.gd-safety-h .ic { color: var(--accent); }
.gd-safety ul { margin: var(--space-1) 0 0; padding-left: 1.2em; font-size: var(--fs-sm); }
.gd-safety li + li { margin-top: 4px; }
.gd-zone { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-sm); }
.gd-zone .ic { flex: none; margin-top: 3px; color: var(--muted); }
.gd-zone.is-near { color: var(--caution); }
.gd-zone.is-near .ic, .gd-zone a { color: inherit; }
.gd-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.gd-slot:empty { display: none; }
.gd-near { display: grid; gap: var(--space-3); }
.gd-near > * { margin: 0; }
.gd-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.gd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.gd-row.is-here { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.gd-row-text { flex: 1 1 13rem; min-width: 0; overflow-wrap: anywhere; }
.gd-row-name { font-weight: 600; }
.gd-row-meta { display: block; color: var(--muted); font-size: var(--fs-sm); }
.gd-row .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.gd-area { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sunken); }
/* (a list item, so it keeps the browser's open/shut triangle) */
.gd-area > summary { min-height: 44px; padding: var(--space-2) var(--space-3); cursor: pointer; }
.gd-area > summary .gd-row-meta { display: inline; margin-left: var(--space-1); }
.gd-area-name { font-weight: 600; }
.gd-area > .gd-list, .gd-area > .gd-links { padding: 0 var(--space-3) var(--space-3); }
.gd-others { font-size: var(--fs-sm); }
@media (min-width: 48rem) {
  .gd-card .gd-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .fc-seq .day-row {
    grid-template-areas:
      "date verdict facts go"
      "date verdict chips go"
      "date verdict spot go"
      "date verdict gate go"
      "date verdict alert go"
      "strip strip strip strip";
  }
}

@media (min-width: 40rem) {
  .loc-pair { grid-template-columns: minmax(0, 1fr); }
  .fresh-species { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp { padding: var(--space-5); }
  /* the sticky Cancel bar reaches the dialog's edges at the wider padding too (audit C-F10) */
  .pp-foot { margin: 0 calc(var(--space-5) * -1) calc(var(--space-5) * -1); padding-inline: var(--space-5); }
}

/* Phones: "Use my location" is in the summary row, so the opened bar's own copy steps aside (the bar folds to its
   summary row at every width until Change opens it: app.js setLocBar) */
@media (max-width: 39.99rem) {
  .locbar-sum .locbar-gps-sum { display: inline-flex; }
  .locbar-acts .locbar-gps-bar { display: none; }
  /* While a text box has the focus the tab bar steps aside for the on-screen keyboard and the search's list (S-U4) */
  body.is-typing .tabbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .locbar-caret { transition: none; }
}

/* ---- The page's route (js/hint.js marks <html data-route> before the first paint, app.js keeps it in step): the
   forecast's intro (index.html #home-intro) is the forecast route's only, so a deep link (#/now, #/day/…, #/map) never
   shows it while the scripts load (audit PP13). The intro's own look is app.css's. */
html[data-route]:not([data-route="forecast"]) #home-intro { display: none; }

/* ---- The first visit's setup card (components/setup.js): where and how you fish, then the forecast. Its own search box
   is the location bar's (.ps); the boat size reuses the boat size control's segmented look (.bs-opts) */
.su { display: grid; gap: var(--space-5); max-width: 46rem; padding: var(--space-5); box-shadow: var(--shadow); }
.su > * + * { margin-top: 0; }
.su-head { display: grid; gap: var(--space-1); }
.su .su-title { font-size: var(--fs-2xl); line-height: var(--lh-tight); letter-spacing: .01em; }
.su-form { display: grid; gap: var(--space-5); min-width: 0; }
.su-step { display: grid; gap: var(--space-3); min-width: 0; margin: 0; padding: 0; border: 0; }
/* (a quiet label over each choice: the card's one loud line is its title) */
.su-q { margin-bottom: var(--space-2); padding: 0; color: var(--muted); font: 600 .75rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.su-sub { margin: 0; padding: 0; color: var(--muted); font: 600 .75rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.su-where { display: grid; gap: var(--space-3); min-width: 0; }
.su-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.su-acts .ic { color: var(--accent); }
.su-gps[aria-busy="true"] { cursor: progress; }
.su-saved { display: grid; gap: 6px; }
.su-saved-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.su-saved-list .btn { gap: 6px; }
.su-saved-list .ic { color: var(--marker); }
.su-msg { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.su-msg:empty { display: none; }
.su-msg.is-err { color: var(--warn); }
.su-picked {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--field);
}
.su-picked-pin { color: var(--accent); }
.su-picked-text { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; margin: 0; }
.su-picked-name { font-size: var(--fs-md); overflow-wrap: anywhere; }
.su-picked-meta { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.su-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.su-mode { position: relative; display: block; min-width: 0; cursor: pointer; }
.su-mode input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.su-mode-in {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  height: 100%;
  min-height: 84px;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  text-align: center;
}
.su-mode-in .ic { margin-bottom: 2px; color: var(--muted); }
.su-mode-in b { font: 700 var(--fs-md)/1.1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.su-mode input:checked + .su-mode-in { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.su-mode input:checked + .su-mode-in .ic { color: var(--accent); }
.su-mode input:focus-visible + .su-mode-in { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { .su-mode:hover .su-mode-in { border-color: var(--accent); } }
.su-mode:active .su-mode-in { background: var(--sunken); }
.su-boat { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.su-boat legend { margin-bottom: 6px; }
.su-boat .hint { margin: 0; font-size: var(--fs-xs); }
.su-foot { display: grid; gap: var(--space-3); }
.su-keep { display: grid; gap: 2px; }
.su-keep .hint { margin: 0 0 0 26px; font-size: var(--fs-xs); }
.su-kept { margin: 0; font-size: var(--fs-xs); }
.su-error { margin: 0; color: var(--warn); font-size: var(--fs-sm); font-weight: 600; }
.su-go { justify-self: start; min-height: 48px; padding-inline: var(--space-6); font-size: var(--fs-base); }
.su-go[aria-busy="true"] { cursor: progress; }
/* Phones: the three tiles stay side by side (a name and an icon each), and the button takes the width */
@media (max-width: 39.99rem) {
  .su { gap: var(--space-4); padding: var(--space-4); }
  .su-form { gap: var(--space-4); }
  .su-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .su-acts .btn { padding-inline: var(--space-2); }
  .su-mode-in { min-height: 76px; }
  .su-go { justify-self: stretch; }
}

/* The location bar's "Forget" / "Remember on this device" (signed out): a button that reads as the line's link */
.loc-keep { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.loc-keep:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

@media (min-width: 48rem) {
  .myp-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

@media (forced-colors: active) {
  .place-prompt, .pp-opt, .place-notice, .su-mode-in, .su-picked, .rchip, .ochip, .bar-card, .trip-card, .now-region, .now-banner { border: 1px solid CanvasText; }
  .ps-pop, .myp-pop, .loc-here, .locbar-save, .locbar-here { border: 1px solid CanvasText; }
  .gd-card, .gd-row, .gd-area { border: 1px solid CanvasText; }
  .gd-row.is-here { outline: 3px solid Highlight; }
  .su-mode input:checked + .su-mode-in { outline: 3px solid Highlight; }
  .ps-opt.is-active, .ps-opt[aria-selected="true"], .myp-item.is-here { outline: 2px solid Highlight; outline-offset: -2px; }
}

@media print {
  .place-prompt, .place-notice-acts, .su-acts, .boat-size, .locbar-find, .locbar-save, .loc-change, .locbar-sum, .locbar-msg { display: none; }
}
