/* ==========================================================================
   Catch Signal: community and account screens (public/css/community.css)

   Loaded by index.html after base.css (and app.css). Every class here starts
   with "co-" so it can't collide with the forecast components. Uses the
   base.css design tokens, so light and dark themes come for free; the few
   extra tokens below (zone colours, avatar tints, provider buttons) are
   defined for both themes in the same way base.css does it.

   Screens: comments component, catch reports, trips, history, profile,
   public profiles, sign-in, species guide, spots.
   No inline styles anywhere (CSP): bar widths are set through CSSOM.
   ========================================================================== */

:root {
  /* Marine park zone badges (map colours: dark blue HPZ, yellow CPZ, green MNP) */
  --zone-hpz-bg: #1d4f91;  --zone-hpz-ink: #ffffff;
  --zone-cpz-bg: #f4d03f;  --zone-cpz-ink: #3a2e00;
  --zone-mnp-bg: #23784a;  --zone-mnp-ink: #ffffff;

  /* Avatar initials: six soft tints, each AA */
  --av0-bg: #d4ebe8; --av0-ink: #0b4f57;
  --av1-bg: #fbe0d2; --av1-ink: #8a3510;
  --av2-bg: #dbe5f5; --av2-ink: #1d4f91;
  --av3-bg: #e6e0f3; --av3-ink: #4a3a7a;
  --av4-bg: #dcefe3; --av4-ink: #1d5e3a;
  --av5-bg: #f6ebc8; --av5-ink: #6b4c00;

  /* Google's button (light theme per Google's sign-in branding guidelines) */
  --g-fill: #ffffff; --g-stroke: #747775; --g-ink: #1f1f1f; --g-hover: #f2f5f8; --g-logo-bg: transparent;
  /* Facebook blue (2023 brand), white text is AA on it */
  --fb-fill: #0866ff; --fb-hover: #0759e0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zone-hpz-bg: #2b5ea8; --zone-cpz-bg: #e8c33a; --zone-cpz-ink: #231b00; --zone-mnp-bg: #23784a;
    --av0-bg: #123b40; --av0-ink: #9fe0e2; --av1-bg: #43230f; --av1-ink: #ffb48a; --av2-bg: #1a2f52; --av2-ink: #a9c6ff;
    --av3-bg: #2c2447; --av3-ink: #cdbdf5; --av4-bg: #12301f; --av4-ink: #8fdcaa; --av5-bg: #3a2d0b; --av5-ink: #f0cf73;
    --g-fill: #131314; --g-stroke: #8e918f; --g-ink: #e3e3e3; --g-hover: #1f2022; --g-logo-bg: #ffffff;
  }
}
:root[data-theme="dark"] {
  --zone-hpz-bg: #2b5ea8; --zone-cpz-bg: #e8c33a; --zone-cpz-ink: #231b00; --zone-mnp-bg: #23784a;
  --av0-bg: #123b40; --av0-ink: #9fe0e2; --av1-bg: #43230f; --av1-ink: #ffb48a; --av2-bg: #1a2f52; --av2-ink: #a9c6ff;
  --av3-bg: #2c2447; --av3-ink: #cdbdf5; --av4-bg: #12301f; --av4-ink: #8fdcaa; --av5-bg: #3a2d0b; --av5-ink: #f0cf73;
  --g-fill: #131314; --g-stroke: #8e918f; --g-ink: #e3e3e3; --g-hover: #1f2022; --g-logo-bg: #ffffff;
}


/* --------------------------------------------------------------------------
   Shared building blocks
   -------------------------------------------------------------------------- */
.co-view { display: grid; gap: var(--space-6); min-width: 0; }
.co-view > * { min-width: 0; }
.co-view > .page-head { margin-bottom: 0; }

.co-head { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.co-head-text { display: grid; gap: var(--space-3); max-width: var(--measure); min-width: 0; }
.co-head-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.co-back { font-size: var(--fs-sm); font-weight: 600; }
.co-back a { text-decoration: none; }
.co-back a:hover { text-decoration: underline; }

.co-card {
  min-width: 0;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
@media (min-width: 40rem) { .co-card { padding: 20px 22px; } }

.co-section { display: grid; gap: var(--space-3); min-width: 0; }
.co-section > p { max-width: var(--measure); }
.co-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.co-section-head a { font-size: var(--fs-sm); font-weight: 600; }
.co-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); min-width: 0; }
.co-trips-body, .co-history-body, .co-user-catches { display: grid; gap: var(--space-6); min-width: 0; }

.co-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--sunken); color: var(--muted);
  font: 600 .6875rem/1.5 var(--font-body); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.co-tag.due { background: var(--caution-bg); color: var(--marker-text); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-tag.due { background: color-mix(in srgb, var(--marker) 16%, var(--surface)); } }

.co-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .75rem/1.5 var(--font-body); white-space: nowrap;
}
.co-badge.peak { background: var(--accent); color: var(--accent-ink); }
.co-badge.ok { background: var(--heat-0); color: var(--ink); border-color: var(--accent); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-badge.ok { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } }
.co-badge.off { background: var(--sunken); color: var(--muted); }
.co-badge.closed { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bg); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-badge.closed { border-color: color-mix(in srgb, var(--warn) 40%, transparent); } }
.co-badge.soon { background: var(--caution-bg); color: var(--caution); }
.co-badge.plain { background: transparent; color: var(--muted); border-color: var(--line); }
.co-badge.reported { background: var(--caution-bg); color: var(--marker-text); border-color: var(--marker); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-badge.reported { background: color-mix(in srgb, var(--marker) 14%, var(--surface)); border-color: color-mix(in srgb, var(--marker) 45%, transparent); } }

.co-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.co-chips li {
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--field);
  font-size: var(--fs-sm); line-height: 1.4; max-width: 100%; overflow-wrap: anywhere;
}
.co-chips a { text-decoration: none; }
.co-chips a:hover { text-decoration: underline; }
.co-chips b { font-family: var(--font-data); font-weight: 500; margin-left: 2px; }

.co-empty {
  display: grid; gap: var(--space-3); justify-items: start;
  padding: var(--space-5); border: 1px dashed var(--field-line); border-radius: var(--radius-lg);
  color: var(--muted);
}
.co-empty strong { color: var(--ink); font-size: var(--fs-md); }
.co-empty-line { color: var(--muted); }

.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; }
.co-counter { font: 400 var(--fs-xs)/1.3 var(--font-data); color: var(--muted); justify-self: end; }
.co-counter.over { color: var(--warn); font-weight: 500; }
.co-view [aria-invalid="true"], .co-comments [aria-invalid="true"] { border-color: var(--warn); }

.co-load-error { display: grid; gap: var(--space-3); justify-items: start; }

/* Loading placeholders */
.co-skeleton-cards { display: grid; gap: var(--space-3); }
.co-skeleton-block, .co-skeleton li {
  height: 96px; border-radius: var(--radius-lg); background: var(--sunken);
  animation: co-pulse 1.4s ease-in-out infinite alternate;
}
.co-skeleton { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.co-skeleton li { height: 56px; border-radius: var(--radius); }
@keyframes co-pulse { from { opacity: .55; } to { opacity: 1; } }

/* In-page two-step confirm */
.co-confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.co-confirm-q { font-size: var(--fs-sm); font-weight: 600; color: var(--warn); }
.co-confirm-btns { display: inline-flex; gap: 6px; }

/* Forms */
.co-form { display: grid; gap: var(--space-4); }
.co-form h2 { font-size: var(--fs-lg); }
.co-grid2, .co-grid3 { display: grid; gap: var(--space-3); align-items: end; }
.co-grid3 { grid-template-columns: repeat(auto-fit, minmax(4.75rem, 1fr)); }
@media (min-width: 34rem) { .co-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Forms read better at a measure than stretched across a 1024px column */
.co-profile > .co-card, .co-catches > .co-form { max-width: 46rem; }
.co-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
.co-form .callout { margin: 0; }
.co-warnings ul { margin: 0; padding-left: 1.2em; }
.co-rule-line:empty { display: none; }
.co-trip-note { font-size: var(--fs-sm); }

/* Avatars */
.co-avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: var(--av0-bg); color: var(--av0-ink);
  font: 600 .875rem/1 var(--font-body); letter-spacing: .02em; -webkit-user-select: none; user-select: none;
}
.co-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.co-avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.co-avatar.lg { width: 88px; height: 88px; font: 700 2rem/1 var(--font-display); }
.co-av-1 { background: var(--av1-bg); color: var(--av1-ink); }
.co-av-2 { background: var(--av2-bg); color: var(--av2-ink); }
.co-av-3 { background: var(--av3-bg); color: var(--av3-ink); }
.co-av-4 { background: var(--av4-bg); color: var(--av4-ink); }
.co-av-5 { background: var(--av5-bg); color: var(--av5-ink); }


/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */
.co-comments { display: grid; gap: var(--space-4); min-width: 0; }
.co-comments-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); }
.co-comments-count { color: var(--muted); font-size: var(--fs-sm); }

.co-signin-prompt {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4); border-radius: var(--radius-lg); background: var(--sunken);
}
.co-signin-prompt p { flex: 1 1 16rem; }

.co-composer {
  display: grid; gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.co-composer-who { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--muted); }
.co-composer-who strong { color: var(--ink); }
.co-composer-who > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.co-composer textarea, .co-edit textarea { min-height: 5.5rem; }
.co-composer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.co-composer .hint { font-size: var(--fs-xs); }
.co-turnstile:empty { display: none; }
.co-composer.sending textarea { opacity: .7; }

.co-comment-list { margin: 0; padding: 0; list-style: none; }
.co-comment {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3);
  padding: var(--space-3) 0; border-top: 1px solid var(--line);
}
.co-comment:first-child { border-top: 0; padding-top: 0; }
.co-comment-av { text-decoration: none; }
.co-comment-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.co-comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: var(--fs-sm); color: var(--muted); }
.co-comment-name { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 600; text-decoration: none; }
.co-comment-name:hover { text-decoration: underline; }
.co-you { padding: 0 6px; border-radius: 999px; background: var(--sunken); font-size: var(--fs-xs); font-weight: 600; }
.co-edited { font-size: var(--fs-xs); }
.co-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.co-comment-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -10px; }
.co-edit { display: grid; gap: var(--space-2); }
.co-edit-btns { display: inline-flex; gap: 6px; }
.co-comments-body { display: grid; gap: var(--space-3); justify-items: stretch; }
.co-comments-body .co-more { justify-self: start; }


/* --------------------------------------------------------------------------
   Catch reports
   -------------------------------------------------------------------------- */
.co-feed { display: grid; gap: var(--space-3); }
.co-feed-more:empty { display: none; }
.co-summary { display: grid; gap: var(--space-2); }
.co-summary-h { font: 600 .75rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.co-catch { display: grid; gap: var(--space-3); }
.co-catch-top { display: flex; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.co-catch-mark {
  display: grid; place-items: center; flex: none;
  min-width: 44px; height: 44px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: 700 1.375rem/1 var(--font-display);
}
.co-catch-mark.other { background: var(--sunken); color: var(--ink); }
.co-catch-headline { display: grid; gap: 2px; min-width: 0; }
.co-catch-title { font-size: 1.375rem; text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.co-catch.full .co-catch-title { font-size: var(--fs-2xl); }
.co-catch.full .co-catch-mark { min-width: 56px; height: 56px; font-size: 1.75rem; }
.co-catch-title a { color: var(--ink); text-decoration: none; }
.co-catch-title a:hover { color: var(--accent); }
.co-catch-where { color: var(--muted); font-size: var(--fs-sm); }
.co-catch-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.co-catch-notes.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.co-catch-guide { font-weight: 600; }
.co-catch-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted);
}
.co-who { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.co-who span:last-child { overflow-wrap: anywhere; }
.co-who:hover span:last-child { text-decoration: underline; }
.co-catch-foot-end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-left: auto; }
.co-comment-link { font-weight: 600; }
.co-thread:empty { display: none; }


/* --------------------------------------------------------------------------
   Trips and history
   -------------------------------------------------------------------------- */
.co-trip { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
@media (min-width: 40rem) { .co-trip { grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--space-4) var(--space-5); } }
.co-trip.tolog { border-color: var(--marker); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-trip.tolog { border-color: color-mix(in srgb, var(--marker) 55%, var(--line)); } }
.co-trip.cancelled { opacity: .78; }
.co-trip-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-2); }
@media (min-width: 40rem) { .co-trip-when { display: grid; align-content: start; gap: 2px; } }
.co-trip-when b { font: 700 1.25rem/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.co-trip-when span { color: var(--muted); font-weight: 500; }
.co-trip-date { font-size: var(--fs-sm); }
.co-trip-main { display: grid; gap: var(--space-2); min-width: 0; }
.co-trip-spot { font-size: var(--fs-md); letter-spacing: .03em; }
.co-trip-spot a { color: var(--ink); text-decoration: none; }
.co-trip-spot a:hover { color: var(--accent); }
.co-trip-meta > span:not(.chip):not(.co-tag), .co-trip-facts, .co-trip-spot { min-width: 0; overflow-wrap: anywhere; }
.co-trip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: var(--fs-sm); }
.co-trip-best { font-size: var(--fs-sm); }
.co-trip-result { display: grid; gap: 2px; padding: var(--space-2) var(--space-3); border-radius: var(--radius); background: var(--sunken); }
.co-trip-caught { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-2); }
.co-trip-caught b { font: 700 2rem/1 var(--font-display); }
.co-trip-facts { color: var(--muted); font-size: var(--fs-sm); }
.co-trip-notes { color: var(--muted); font-size: var(--fs-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
.co-stars-show { color: var(--marker); letter-spacing: 1px; }
.co-stars-show .off { color: var(--line); }
.co-trip-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.co-trip-panel:empty { display: none; }
.co-trip-panel { padding: var(--space-4); border-radius: var(--radius); background: var(--sunken); }
.co-log, .co-plan { display: grid; gap: var(--space-3); }
.co-log h4, .co-plan h3 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .04em; }
.co-plan-card { border-color: var(--accent); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-plan-card { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); } }
.co-need > h2 { color: var(--marker-text); }

.co-stars { display: grid; gap: 4px; }
.co-stars-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.co-star { position: relative; padding: 2px 4px; border-radius: 6px; color: var(--field-line); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.co-star.on { color: var(--marker); }
.co-star input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.co-star:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.co-stars-clear { margin-left: var(--space-2); }

.co-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.co-filter select { width: auto; max-width: 100%; }

.co-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 48rem) { .co-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.co-tile {
  display: grid; gap: 4px; align-content: start; min-width: 0;
  padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.co-tile.wide { grid-column: span 2; }
.co-tile b { font: 700 2.125rem/1 var(--font-display); overflow-wrap: anywhere; }
.co-tile b.text { font-size: 1.375rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.co-tile span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.co-check { display: grid; gap: var(--space-3); }
.co-bars { display: grid; gap: var(--space-3); }
.co-bar-row { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); align-items: center; gap: 4px var(--space-3); }
.co-bar-n { grid-column: 2; font-size: var(--fs-sm); color: var(--muted); }
.co-bar-n b { color: var(--ink); font-family: var(--font-data); font-weight: 500; }
@media (min-width: 40rem) {
  .co-bar-row { grid-template-columns: 7rem minmax(0, 1fr) 15rem; }
  .co-bar-n { grid-column: auto; }
}
.co-bar-label { display: flex; align-items: center; min-width: 0; }
.co-bar-track { display: block; height: 14px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.co-bar-fill { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .4s ease; }
.co-bar-fill.b-excellent { background: var(--heat-4); }
.co-bar-fill.b-good { background: var(--heat-3); }
.co-bar-fill.b-fair { background: var(--heat-2); }
.co-bar-fill.b-poor { background: var(--heat-1); }
.co-bar-fill.b-no-go { background: var(--warn); }
.co-bar-fill.b-none { background: var(--field-line); }
.co-verdict { font-weight: 600; max-width: var(--measure); }


/* --------------------------------------------------------------------------
   Profile and public profiles
   -------------------------------------------------------------------------- */
.co-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); min-width: 0; }
.co-profile-id { display: grid; gap: 4px; min-width: 0; flex: 1 1 14rem; }
.co-profile-id h1 { overflow-wrap: anywhere; }
.co-profile-links { display: flex; flex-wrap: wrap; gap: 4px var(--space-4); font-weight: 600; font-size: var(--fs-sm); }
.co-bio { white-space: pre-wrap; overflow-wrap: anywhere; max-width: var(--measure); font-size: var(--fs-md); }
.co-stats { display: flex; flex-wrap: wrap; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.co-stats li { display: grid; gap: 2px; }
.co-stats b { font: 700 1.75rem/1 var(--font-display); }
.co-stats span { font-size: var(--fs-sm); color: var(--muted); }
.co-user { gap: var(--space-5); }
.co-user-top { display: grid; gap: var(--space-4); }

.co-modes { display: grid; gap: var(--space-2); }
.co-mode-row { display: grid; gap: var(--space-2); }
@media (min-width: 34rem) { .co-mode-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.co-mode-opt {
  display: flex; align-items: flex-start; gap: var(--space-2);
  padding: 10px 12px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--field); cursor: pointer;
}
.co-mode-opt input { margin-top: 3px; flex: none; }
.co-mode-opt span { display: grid; gap: 2px; }
.co-mode-opt small { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.co-mode-opt:has(input:checked) { border-color: var(--accent); background: var(--field); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-mode-opt:has(input:checked) { background: color-mix(in srgb, var(--accent) 9%, var(--field)); } }
.co-mode-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

.co-accounts, .co-danger { display: grid; gap: var(--space-3); }
.co-accounts h2, .co-danger h2 { font-size: var(--fs-lg); }
.co-provider-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.co-provider-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-3); }
.co-provider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.co-provider-dot.google { background: #4285f4; }
.co-provider-dot.facebook { background: #0866ff; }
.co-provider-manage { margin-left: auto; font-size: var(--fs-sm); }
.co-danger { border-color: var(--warn); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-danger { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); } }
.co-danger h2 { color: var(--warn); }
.co-delete-step { display: grid; gap: var(--space-3); justify-items: start; }
.co-delete-confirm { display: grid; gap: var(--space-3); width: 100%; }


/* --------------------------------------------------------------------------
   Sign in
   -------------------------------------------------------------------------- */
.co-signin { display: grid; justify-items: center; padding-block: var(--space-2) var(--space-5); }
.co-signin-card {
  width: 100%; max-width: 30rem; display: grid; gap: var(--space-4);
  padding: var(--space-5) var(--space-4); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
@media (min-width: 30rem) { .co-signin-card { padding: var(--space-6); } }
.co-signin-head { display: grid; gap: var(--space-2); }
.co-signin-h { font-size: var(--fs-2xl); }
.co-signin-lead { color: var(--muted); }
.co-signin-card .callout { margin: 0; }
.co-signed-as { display: flex; align-items: center; gap: var(--space-3); }
.co-signed-as > div { min-width: 0; overflow-wrap: anywhere; }

.co-providers { display: grid; gap: var(--space-3); }
.co-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid transparent;
  font: 500 .875rem/1.25rem var(--font-body); letter-spacing: .25px; text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.co-provider-logo { display: block; flex: none; width: 20px; height: 20px; }
/* Google: Roboto Medium 14/20, fill/stroke/text per Google's branding guidelines; the G is never recoloured. */
.co-google { background: var(--g-fill); border-color: var(--g-stroke); color: var(--g-ink); font-family: 'Roboto', arial, sans-serif; }
.co-google:hover { background: var(--g-hover); color: var(--g-ink); }
.co-g { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--g-logo-bg); flex: none; }
/* Facebook: the same neutral button as Google's with Meta's blue logo. A solid blue button next to Google's outlined
   one would make Facebook the more prominent option, which Google's branding rules (needed for verification) don't allow. */
.co-facebook { background: var(--g-fill); border-color: var(--g-stroke); color: var(--g-ink); font-family: Helvetica, Arial, var(--font-body); }
.co-facebook:hover { background: var(--g-hover); color: var(--g-ink); }
.co-provider:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.co-collect { font-size: var(--fs-sm); color: var(--muted); }
.co-inapp-copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.co-copy-status { font-size: var(--fs-sm); overflow-wrap: anywhere; }

.co-dev { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px dashed var(--field-line); border-radius: var(--radius); }
.co-dev-h { font-size: var(--fs-sm); letter-spacing: .08em; }

.co-perks { display: grid; gap: 6px; margin: 0; padding: var(--space-3) 0 0; list-style: none; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.co-perks li { position: relative; padding-left: 1.25em; }
.co-perks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.co-perks strong { color: var(--ink); }
.co-signin-foot { font-size: var(--fs-xs); color: var(--muted); }
.co-signin-foot a { color: inherit; }


/* --------------------------------------------------------------------------
   Species guide
   -------------------------------------------------------------------------- */
.co-legend { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); margin: 0; padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--muted); }
.co-legend li { display: inline-flex; align-items: center; gap: 6px; }
.co-legend i { display: inline-block; width: 16px; height: 11px; border-radius: 2px; }

.co-season-wrap { overflow-x: auto; margin-inline: -2px; }
.co-season { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; font-size: var(--fs-xs); }
.co-season th { padding: 0 0 2px; font: 500 .6875rem/1.2 var(--font-data); color: var(--muted); text-align: center; }
.co-season th abbr { text-decoration: none; }
.co-season th.now { color: var(--marker-text); font-weight: 700; }
.co-season .co-season-name { width: 36%; padding: 0 6px 0 0; text-align: left; font: 500 .8125rem/1.15 var(--font-body); color: var(--ink); }
.co-season tbody .co-season-name a { color: var(--ink); text-decoration: none; }
.co-season tbody .co-season-name a:hover { color: var(--accent); text-decoration: underline; }
.co-season td { height: 22px; padding: 0; border-radius: 3px; }
.co-season.single td { height: 30px; }
.co-season.single th { font-size: .6875rem; }
@media (min-width: 40rem) { .co-season .co-season-name { width: 13rem; } .co-season td { height: 24px; } }

.co-s2 { background: var(--accent); }
.co-s1 { background: var(--heat-1); }
@supports (color: color-mix(in srgb, red 50%, red)) { .co-s1 { background: color-mix(in srgb, var(--accent) 32%, var(--surface)); } }
.co-s0 { background: var(--sunken); }
.co-season td.co-s0 { background: var(--sunken); }
/* Off-season cells (and their key swatch) are nearly the page colour in the dark theme: outline them so they read as cells */
.co-s0 { box-shadow: inset 0 0 0 1px var(--line); }
.co-season td.closed, .co-legend i.closed {
  background-image: repeating-linear-gradient(-45deg, var(--warn) 0 2px, transparent 2px 5px);
}
@supports (color: color-mix(in srgb, red 50%, red)) { .co-season td.closed, .co-legend i.closed { background-image: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--warn) 75%, transparent) 0 2px, transparent 2px 5px); } }
.co-season td.now { box-shadow: inset 0 0 0 2px var(--marker); }

.co-species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--space-3); }
.co-sp-card { display: grid; gap: var(--space-2); align-content: start; }
@media (max-width: 39.99rem) { .co-sp-card, .co-spot-card { padding: 14px 16px; } }
.co-sp-card h3 { font-size: var(--fs-lg); }
.co-sp-card h3 a { color: var(--ink); text-decoration: none; }
.co-sp-card h3 a:hover { color: var(--accent); }
.co-sp-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* Label/value pairs: one grid for the whole list, so the label column fits its longest label */
.co-mini { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px var(--space-3); margin: 0; }
.co-mini > div { display: contents; }
.co-mini dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.co-mini dd { margin: 0; font-size: var(--fs-sm); }

.co-later { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; }
.co-later li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.co-later li > a { font-size: var(--fs-base); }
.co-later a { font-weight: 600; }

.co-bait-grid, .co-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--space-3); }
.co-bait, .co-shop { display: grid; gap: 6px; align-content: start; font-size: var(--fs-sm); box-shadow: none; }
.co-bait h3, .co-shop h3 { font-size: var(--fs-md); }
.co-bait-for { font-weight: 600; }
.co-other-rules { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.co-other-rules li { display: grid; gap: 2px; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.co-other-rules li > b { font-size: var(--fs-base); }
.co-other-rules .co-badge { justify-self: start; }
.co-rules-foot { font-size: var(--fs-sm); color: var(--muted); max-width: var(--measure); }

.co-sp-head { gap: var(--space-2); }
.co-closed-banner p, .co-reported p { margin: 0; }
.co-sp-season { display: grid; gap: var(--space-3); }
.co-sp-season h2 { font-size: var(--fs-lg); }
.co-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: var(--space-2) var(--space-4); margin: 0; }
.co-facts dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.co-facts dd { margin: 0; font-weight: 500; }
.co-sp-cols { display: grid; gap: var(--space-5); }
@media (min-width: 48rem) { .co-sp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-6); } }
.co-sp-block { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.co-sp-block h3 { margin-top: var(--space-2); font-size: var(--fs-md); }
.co-sp-block ul { margin: 0; padding-left: 1.2em; }
.co-sp-block ul.co-chips { padding-left: 0; }
.co-sp-block li + li { margin-top: 4px; }
.co-spot-chips { margin-top: var(--space-1); }
.co-rules { display: grid; gap: var(--space-2); border-left: 4px solid var(--accent); }
.co-rules h2 { font-size: var(--fs-lg); }
.co-rules-key { font-size: var(--fs-md); font-weight: 600; }
.co-closed-text { color: var(--warn); }
.co-checked { font-size: var(--fs-sm); color: var(--muted); }
.co-sp-next { display: flex; flex-wrap: wrap; gap: var(--space-2); }


/* --------------------------------------------------------------------------
   Spots
   -------------------------------------------------------------------------- */
.co-spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: var(--space-3); }
.co-spot-card { display: grid; gap: var(--space-2); align-content: start; }
.co-spot-name { font-size: var(--fs-lg); letter-spacing: .03em; }
.co-spot-name a { color: var(--ink); text-decoration: none; }
.co-spot-name a:hover { color: var(--accent); }
.co-spot-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.co-zone {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font: 500 .75rem/1.5 var(--font-body); white-space: nowrap;
  background: var(--sunken); color: var(--muted);
}
.co-zone b { font-family: var(--font-data); font-weight: 500; }
.co-zone.z-hpz { background: var(--zone-hpz-bg); color: var(--zone-hpz-ink); }
.co-zone.z-cpz { background: var(--zone-cpz-bg); color: var(--zone-cpz-ink); }
.co-zone.z-mnp { background: var(--zone-mnp-bg); color: var(--zone-mnp-ink); }
.co-expo { display: inline-flex; justify-self: start; padding: 2px 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; }
.co-expo.off { background: var(--good-bg); color: var(--good); }
.co-expo.cross { background: var(--caution-bg); color: var(--caution); }
.co-expo.on { background: var(--warn-bg); color: var(--warn); }
.co-spot-warn { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--warn); }
.co-warn-mark {
  display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--warn); color: var(--surface); font: 700 .75rem/1 var(--font-body);
}
.co-wind-now { display: grid; gap: 2px; font-size: var(--fs-sm); color: var(--muted); }
.co-wind-live { display: grid; gap: 4px; }
.co-wind-now p, .co-wind-live p { margin: 0; }
.co-wind-now b { color: var(--ink); }
.co-zone-foot { max-width: var(--measure); }

.co-spot-head { gap: var(--space-2); }
.co-green-warn p { margin: 0; }
.co-zone-card { display: grid; gap: var(--space-2); box-shadow: none; }
.co-zone-card h2 { font-size: var(--fs-md); }
.co-wind-live:empty { display: none; }
.co-spot-cols { display: grid; gap: var(--space-3); }
@media (min-width: 48rem) { .co-spot-cols { grid-template-columns: 3fr 2fr; } }
.co-spot-wind, .co-spot-map { display: grid; gap: var(--space-3); align-content: start; }
.co-spot-wind h2, .co-spot-map h2 { font-size: var(--fs-lg); }
.co-spot-wind-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.co-spot-wind-row .co-facts { flex: 1 1 12rem; }
.co-spot-map .btn { justify-self: start; }
.co-rose { flex: none; }
.co-rose-ring { fill: var(--sunken); stroke: var(--line); stroke-width: 2; }
.co-rose-n { fill: var(--muted); font: 600 12px var(--font-data); }
.co-rose-arrow { fill: var(--accent); }
.co-rose-shaft { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.co-prose { max-width: var(--measure); }
.co-prose a { overflow-wrap: anywhere; }
.co-here { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.co-here li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.co-here a { font-weight: 600; }

/* Where you fish (docs/DESIGN.md §6.0b): the "Fishing at" picker above the list, the spot you're fishing at, and the
   "Fish here" / "Make this my default" actions on each tile and on a spot's page */
.co-spot-picker { min-width: 0; max-width: 34rem; }
.co-spot-card.is-here { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.co-spot-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-1); min-width: 0; }
.co-spot-acts .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
/* Statuses, not buttons: plain coloured text with an icon, like the picker's "Your default" */
.co-spot-here, .co-spot-default { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.co-spot-here { color: var(--accent); }
.co-spot-default { color: var(--good); }
.co-spot-here .ic, .co-spot-default .ic { flex: none; }
.co-spot-acts[tabindex="-1"]:focus { outline: none; }
.co-spot-acts.on-page {
  padding: var(--space-3) var(--space-4); margin-top: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.co-spot-acts-note { flex: 1 1 100%; margin: 0; font-size: var(--fs-sm); color: var(--muted); max-width: var(--measure); }


/* --------------------------------------------------------------------------
   Forced colours and print
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .co-card, .co-badge, .co-zone, .co-tag, .co-provider, .co-season td { border: 1px solid CanvasText; }
  .co-spot-card.is-here { outline: 3px solid Highlight; }
  .co-bar-fill { background: Highlight; }
  .co-star.on { color: Highlight; }
}
@media print {
  .co-composer, .co-signin-prompt, .co-trip-actions, .co-catch-foot-end, .co-head-actions, .co-feed-more, .co-spot-picker, .co-spot-acts { display: none; }
  .co-card { box-shadow: none; }
}
