/* trips.css — trips / catch-log frontend: sidebar "Fangstrapporter" section,
   the submit-form + detail modal (#trip-view), and the "Min fangstlogg" panel.
   Uses the sidebar-redesign tokens from style.css (one cool blue-gray system).
   The section's primary action is petrol (--fk-natt / --fk-fjord, as .sb-route-btn);
   --sb-accent blue stays reserved for Kjøp and links. The purple 'user' map tier
   lives in map.js. No warm grays, no drop shadows on the grouped surfaces. */

/* ── Fangstrapporter section (in the sidebar) ─────────────────────────────────
   One white grouped card; report rows divided by cool hairlines. The register
   action has two presentations: a centred empty-state block when the lake has no
   visible reports, and the card's last row when it does. */
.sb-trips-card { padding: 6px 14px; }

.sb-trip-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 12px 0; font: inherit; color: inherit;
}
.sb-trip-row[hidden] { display: none; }
.sb-trip-row + .sb-trip-row,
.sb-trip-row + .sb-trips-expand { border-top: 1px solid var(--sb-hairline); }
.sb-trip-row:hover .sb-trip-headline { color: var(--sb-accent); }

.sb-trip-main { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.sb-trip-headline {
  font-size: 14px; font-weight: 600; color: var(--sb-text); line-height: 1.3;
}
/* Gear + position for the headline catch. Sits between the headline (14px, 600)
   and the note (12.5px italic): same size as the note but NOT italic, so it reads
   as data rather than more of the author's prose, and one step darker than
   .sb-trip-meta so it doesn't sink to the same priority as the username/date. */
.sb-trip-gear {
  font-size: 12.5px; color: var(--sb-text-2); margin-top: 3px; line-height: 1.35;
}
/* The badge leads the row now, so it sheds its top margin and gains a bottom one.
   Scoped to .sb-trip-main: the same badge also renders in the trip detail modal
   header, where it must keep its own spacing. */
.sb-trip-main .sb-trip-badge { margin-top: 0; margin-bottom: 5px; }
/* Date on its own line under the name — tighter than the 5px .sb-trip-meta gap,
   so the two read as one block rather than two unrelated facts. */
.sb-trip-date { margin-top: 1px; }
.sb-trip-note {
  font-style: italic; font-size: 12.5px; color: var(--sb-text-2); margin-top: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sb-trip-meta { font-size: 12px; color: var(--sb-text-muted); margin-top: 5px; }
.sb-trip-pending { font-size: 11.5px; color: var(--sb-nudge-accent); margin-top: 5px; font-weight: 500; }
/* Author-only status line in the trip detail view (held / admin-hidden). Quiet by
   design — informative, not an alarm, and never shown to anyone but the author. */
.trip-detail-status {
  font-size: 12.5px; line-height: 1.5; color: var(--sb-text-2);
  background: var(--sb-card); border: 1px solid var(--sb-card-border);
  border-radius: var(--sb-radius-el); padding: 10px 12px; margin-bottom: 12px;
}
.trip-detail-status a { color: var(--sb-accent); }

/* Right column: the trip's first photo as a 76px thumbnail + a count chip when >1. */
.sb-trip-photo { position: relative; flex: none; width: 76px; height: 76px; }
.sb-trip-photo-img {
  width: 76px; height: 76px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--sb-card-border); display: block;
}
.sb-trip-photo-chip {
  position: absolute; right: 5px; bottom: 5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: rgba(28,41,51,0.72); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}

/* Badges: stranger user-report (amber), own public "Din tur" (blue tint / cool-gray
   text), own private "Bare for deg" (neutral + lock). */
.sb-trip-badge {
  flex: none; align-self: flex-start; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; letter-spacing: .3px;
  background: var(--sb-badge-report-bg); color: var(--sb-badge-report-text);
  border-radius: 999px; padding: 3px 8px;
}
.sb-trip-badge .fk-ic { width: 11px; height: 11px; }
.sb-trip-badge-private { background: var(--sb-badge-private-bg); color: var(--sb-badge-private-text); }
.sb-trip-badge-own { background: var(--sb-badge-own-bg); color: var(--sb-badge-own-text); }

/* "Vis alle N rapporter" — a hairline row that expands/collapses all rows in place.
   Petrol, matching the action row below it: the card shows one action colour. */
.sb-trips-expand {
  display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%;
  background: none; color: var(--fk-fjord); border: 0;
  padding: 12px 0; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
.sb-trips-expand:hover { text-decoration: underline; }
.sb-trips-caret { font-size: 10px; }

/* ── The "Registrer tur eller fangst" action ──────────────────────────────────
   Two presentations of one action (one id, one handler). Petrol — the panel's
   primary action colour (--fk-natt, hovering to --fk-fjord, exactly like
   .sb-route-btn) — NOT the --sb-accent blue, which belongs to Kjøp/links. No
   dashed borders and no box nested inside the white card. */

/* EMPTY state: centred block that IS the card's content. */
/* No horizontal padding: the card already pads 14px, and the button must span the
   card's full inner width. */
.sb-trips-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 16px 0 12px;
}
.sb-trips-empty-ic {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--sb-hairline); color: var(--sb-text-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.sb-trips-empty-ic .fk-ic { width: 20px; height: 20px; }
.sb-trips-empty-title { font-size: 13.5px; font-weight: 600; color: var(--sb-text); margin: 11px 0 0; }
.sb-trips-empty-sub { font-size: 12.5px; color: var(--sb-text-muted); line-height: 1.45; margin: 5px 0 0; }
.sb-trips-cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 14px; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--fk-natt); border: 0; border-radius: var(--sb-radius-el);
  padding: 14px;   /* ≥44px tap target, matching the row variant */
}
.sb-trips-cta:hover { background: var(--fk-fjord); }
.sb-trips-cta .fk-ic { width: 16px; height: 16px; }

/* POPULATED state: the card's last row, under the same hairline the report rows
   use. Same hit area as a report row (>=44px). */
.sb-trips-row-cta {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--sb-hairline);
  padding: 14px 0; font: inherit; cursor: pointer;
}
.sb-trips-row-cta-plus { width: 17px; height: 17px; color: var(--fk-fjord); }
.sb-trips-row-cta-label { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--fk-fjord); }
.sb-trips-row-cta-chev { width: 16px; height: 16px; color: var(--sb-text-muted); }
.sb-trips-row-cta:hover .sb-trips-row-cta-label { text-decoration: underline; }

.sb-trips-help { font-size: 11.5px; color: var(--sb-text-muted); line-height: 1.4; margin: 6px 0 0; text-align: center; }

/* ── Min fangstlogg panel (reuses .favorites-panel positioning) ───────────── */
/* Compact thumbnail strip (photoStrip) used by the fangstlogg rows. */
.sb-trip-thumbs { display: flex; gap: 4px; align-items: center; margin-top: 6px; }
.sb-trip-thumb {
  width: 44px; height: 44px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--sb-card-border); display: block; flex: none;
}
.sb-trip-thumb-more { font-size: 12px; font-weight: 600; color: var(--sb-text-2); padding-left: 2px; }

.cl-row { display: flex; align-items: stretch; gap: 4px; padding: 2px 0; }
.cl-row-main {
  flex: 1; min-width: 0; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: none; border: 0; border-radius: var(--sb-radius-el); padding: 8px 10px;
  display: flex; align-items: center; gap: 10px;
}
.cl-row-main:hover { background: var(--sb-ground); }
.cl-row-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cl-row-thumb { position: relative; flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--sb-card-border); }
.cl-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-row-thumb-tag { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(28,41,51,0.6); color: #fff; font-size: 8px; line-height: 1.4; text-align: center; }
.cl-row-name { font-size: 14px; font-weight: 600; color: var(--sb-text); display: flex; align-items: center; gap: 6px; }
.cl-row-vis { display: inline-flex; color: var(--sb-text-muted); }
.cl-row-vis .fk-ic { width: 13px; height: 13px; }
.cl-row-sub { font-size: 12.5px; color: var(--sb-text-2); margin-top: 2px; }
.cl-row-vislabel { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; margin-top: 4px; }
.cl-row-vislabel .fk-ic { width: 12px; height: 12px; }
.cl-row-vislabel.is-private { background: var(--sb-badge-private-bg); color: var(--sb-badge-private-text); }
.cl-row-vislabel.is-public { background: var(--sb-badge-own-bg); color: var(--sb-badge-own-text); }
.cl-row-status { font-size: 11.5px; color: var(--sb-nudge-accent); margin-top: 3px; font-weight: 500; }
.cl-row-del {
  flex: none; background: none; border: 0; cursor: pointer; color: var(--sb-text-muted);
  padding: 0 8px; display: inline-flex; align-items: center; border-radius: var(--sb-radius-el);
}
.cl-row-del:hover { color: #DC2626; background: #FEF2F2; }
.cl-row-del .fk-ic { width: 17px; height: 17px; }

/* ── Trip modal host (form + detail) ──────────────────────────────────────── */
.trip-view {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(20,30,38,0.55); padding: 24px; overflow-y: auto;
}
.trip-view[hidden] { display: none; }
.trip-modal {
  background: var(--sb-ground); border-radius: var(--fk-radius-lg); box-shadow: var(--fk-shadow-lg);
  width: 100%; max-width: 480px; max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  overflow: hidden;
}
.trip-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--sb-card-border); background: var(--sb-card);
  /* Flush at <=768px, where .trip-view drops its padding and the modal goes
     edge-to-edge (see the media block below) — so this header becomes the top of
     the screen and .overlay-header.is-flush adds the status-bar clearance to the
     18px above. Above that breakpoint the modal is a centred card and env()
     resolves to 0 on every device that can show it, so the same rule is a no-op
     rather than a second, divergent desktop value. */
  --overlay-header-pad: 18px;
}
.trip-modal-title { font-size: 19px; font-weight: 600; color: var(--sb-text); margin: 0; }
.trip-modal-sub { font-size: 13px; color: var(--sb-text-2); margin-top: 2px; }
.trip-modal-close { background: none; border: 0; cursor: pointer; color: var(--sb-text-muted); padding: 4px; display: inline-flex; flex: none; }
.trip-modal-close .fk-ic { width: 20px; height: 20px; }
.trip-modal-body { padding: 16px 20px 22px; overflow-y: auto; }

/* ── Form ─────────────────────────────────────────────────────────────────── */
.trip-form { display: flex; flex-direction: column; gap: 16px; }
.trip-field { display: flex; flex-direction: column; gap: 7px; }
.trip-label { font-size: 12px; font-weight: 600; letter-spacing: .3px; color: var(--sb-text-2); text-transform: uppercase; }
.trip-input, .trip-select, .trip-note-input, .trip-date-input {
  font: inherit; font-size: 15px; color: var(--sb-text);
  background: var(--sb-card); border: 1px solid var(--sb-card-border); border-radius: var(--sb-radius-el); padding: 10px 12px; width: 100%;
}
.trip-input:focus, .trip-select:focus, .trip-note-input:focus, .trip-date-input:focus { outline: none; border-color: var(--sb-accent); }
.trip-note-input { resize: vertical; min-height: 64px; }

/* Heading + hint that frame the catch cards as OPTIONAL. The form's flex gap is 16px;
   this pulls the intro down to the same 7px a .trip-field puts between its label and
   its control, so it reads as a heading FOR the card below rather than a loose block. */
.trip-catch-intro { display: flex; flex-direction: column; gap: 5px; margin-bottom: -9px; }

.trip-catch { background: var(--sb-card); border: 1px solid var(--sb-card-border); border-radius: var(--sb-radius-card); padding: 14px; display: flex; flex-direction: column; gap: 13px; }
.trip-catch-head { display: flex; align-items: center; justify-content: space-between; }
.trip-catch-title { font-size: 13px; font-weight: 700; letter-spacing: .4px; color: var(--fk-natt); text-transform: uppercase; }
.trip-catch-remove { background: none; border: 0; cursor: pointer; color: var(--sb-text-muted); padding: 2px; display: inline-flex; }
.trip-catch-remove:hover { color: #DC2626; }
.trip-catch-remove .fk-ic { width: 16px; height: 16px; }

.trip-chips { display: flex; flex-wrap: wrap; gap: 7px; }
/* Horizontal padding is 11px, not 13px, so the six-chip REDSKAP row fits on one
   line in the 410px desktop modal. At 13px the row measured 425px and dropped
   "Annet" alone onto a second line, which reads as broken rather than wrapped.
   Shared with the DATO and POSISJON rows, which are short enough that the 2px is
   invisible on them. */
.trip-chip {
  font: inherit; font-size: 13.5px; cursor: pointer;
  background: var(--sb-card); color: var(--sb-text);
  border: 1px solid var(--sb-card-border); border-radius: 999px; padding: 7px 11px;
}
.trip-chip:hover { border-color: var(--sb-accent); }
.trip-chip.is-on { background: var(--fk-natt); color: #fff; border-color: var(--fk-natt); }

.trip-add-catch, .trip-photo-add {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: var(--sb-accent); background: none;
  border: 1.5px dashed var(--sb-accent); border-radius: var(--sb-radius-card); padding: 11px;
}
.trip-add-catch:hover, .trip-photo-add:hover { background: rgba(37,99,235,0.06); }
.trip-add-catch .fk-ic, .trip-photo-add .fk-ic { width: 15px; height: 15px; }

.trip-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-photos:empty { display: none; }
.trip-photo-thumb { position: relative; width: 72px; height: 72px; border-radius: var(--sb-radius-el); overflow: hidden; border: 1px solid var(--sb-card-border); }
.trip-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-photo-remove {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; cursor: pointer;
  background: rgba(28,41,51,0.6); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.trip-photo-remove .fk-ic { width: 13px; height: 13px; }
.trip-hint { font-size: 12px; color: var(--sb-text-muted); margin: 0; }

.trip-vis { display: flex; flex-direction: column; gap: 8px; }
.trip-vis-card {
  text-align: left; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 3px;
  background: var(--sb-card); border: 1.5px solid var(--sb-card-border); border-radius: var(--sb-radius-card); padding: 12px 14px;
}
.trip-vis-card:hover { border-color: var(--sb-accent); }
.trip-vis-card.is-on { border-color: var(--sb-accent); background: rgba(37,99,235,0.06); }
.trip-vis-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--sb-text); }
.trip-vis-title .fk-ic { width: 15px; height: 15px; color: var(--sb-accent); }
.trip-vis-desc { font-size: 12.5px; color: var(--sb-text-2); line-height: 1.4; }

.trip-info-banner {
  background: var(--sb-nudge-bg); color: var(--sb-nudge-text);
  border: 1px solid var(--sb-nudge-border);
  border-radius: var(--sb-radius-el); padding: 11px 13px; font-size: 12.5px; line-height: 1.45;
}
.trip-form-error, .trip-username-error { background: #FEF2F2; color: #B91C1C; border-radius: var(--sb-radius-el); padding: 9px 12px; font-size: 13px; }
.trip-submit {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: #fff;
  background: var(--sb-accent); border: 0; border-radius: var(--sb-radius-card); padding: 13px;
}
.trip-submit:hover { background: #1D4FD0; }
.trip-submit:disabled { opacity: .6; cursor: default; }
.trip-progress { font-size: 13px; color: var(--sb-text-2); text-align: center; }

/* Username capture card (blue-tinted, top of form) */
.trip-username-card { background: rgba(37,99,235,0.06); border: 1px solid var(--sb-species-border); border-radius: var(--sb-radius-card); padding: 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.trip-username-title { font-size: 15px; font-weight: 600; color: var(--fk-natt); }
.trip-username-help { font-size: 12.5px; color: var(--sb-text-2); margin: 0; line-height: 1.4; }
.trip-username-save {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: #fff;
  background: var(--sb-accent); border: 0; border-radius: var(--sb-radius-el); padding: 10px; align-self: flex-start; padding-left: 18px; padding-right: 18px;
}
.trip-username-save:disabled { opacity: .6; }

/* Success confirmation */
.trip-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 8px; }
.trip-success-check { width: 54px; height: 54px; border-radius: 50%; background: #DCFCE7; color: #16A34A; display: flex; align-items: center; justify-content: center; }
.trip-success-check .fk-ic { width: 28px; height: 28px; }
.trip-success-title { font-size: 18px; font-weight: 600; color: var(--sb-text); margin: 0; }
.trip-success-text { font-size: 14px; color: var(--sb-text-2); margin: 0; line-height: 1.5; }
.trip-success .trip-submit { margin-top: 6px; align-self: stretch; }
/* Partial-failure screen (some photos didn't upload). */
.trip-fail-check { background: var(--sb-nudge-bg); color: var(--sb-nudge-accent); }
.trip-fail-thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.trip-fail-thumb { position: relative; width: 64px; }
.trip-fail-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--sb-nudge-border); opacity: .7; }
.trip-fail-reason { display: block; font-size: 10px; color: var(--sb-nudge-accent); margin-top: 2px; }
.trip-fail-actions { display: flex; flex-direction: column; gap: 8px; align-self: stretch; margin-top: 6px; }
.trip-cancel {
  font: inherit; font-size: 14px; cursor: pointer; color: var(--sb-text-2);
  background: none; border: 0; padding: 6px;
}
.trip-cancel:hover { color: var(--sb-text); }

/* ── Detail view ──────────────────────────────────────────────────────────── */
.trip-detail { display: flex; flex-direction: column; gap: 14px; }
.trip-gallery { display: flex; flex-direction: column; gap: 8px; }
.trip-gallery-hero { position: relative; border-radius: var(--sb-radius-card); overflow: hidden; background: #0B1A24; cursor: pointer; }
.trip-gallery-hero img { width: 100%; max-height: 340px; object-fit: contain; display: block; }
.trip-gallery-overlay {
  position: absolute; left: 8px; bottom: 8px; background: rgba(28,41,51,0.65); color: #fff;
  font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px;
}
.trip-gallery-count { position: absolute; right: 8px; bottom: 8px; background: rgba(28,41,51,0.6); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.trip-gallery-strip { display: flex; gap: 6px; flex-wrap: wrap; }
.trip-gallery-thumb { position: relative; width: 56px; height: 56px; border-radius: var(--sb-radius-el); overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; }
.trip-gallery-thumb.is-on { border-color: var(--sb-accent); }
.trip-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-gallery-pending { position: absolute; inset: 0; background: rgba(28,41,51,0.45); color: #fff; font-size: 9px; display: flex; align-items: center; justify-content: center; }

.trip-detail-head { display: flex; align-items: center; gap: 10px; }
.trip-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--fk-fjord); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.trip-detail-user { font-size: 15px; font-weight: 600; color: var(--sb-text); }
.trip-detail-meta { font-size: 12.5px; color: var(--sb-text-2); }
.trip-detail-head .sb-trip-badge { margin-left: auto; }
.trip-detail-catches { display: flex; flex-direction: column; gap: 6px; }
.trip-detail-catch { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: var(--sb-card); border: 1px solid var(--sb-card-border); border-radius: var(--sb-radius-el); padding: 10px 12px; }
.trip-detail-catch-l { font-size: 14.5px; font-weight: 600; color: var(--sb-text); }
.trip-detail-catch-r { font-size: 12.5px; color: var(--sb-text-2); text-align: right; }
/* Catch-less trip: the same card slot a catch would occupy, stated rather than left
   blank — an empty gap here reads as missing data, not as "caught nothing". Muted and
   not bold, so it never competes with a real catch row. */
.trip-detail-nocatch { background: var(--sb-card); border: 1px solid var(--sb-card-border); border-radius: var(--sb-radius-el); padding: 10px 12px; font-size: 13.5px; color: var(--sb-text-muted); }
.trip-detail-note { margin: 0; padding: 10px 14px; border-left: 3px solid var(--sb-accent); background: var(--sb-card); border-radius: 0 var(--sb-radius-el) var(--sb-radius-el) 0; font-size: 14px; color: var(--sb-text); line-height: 1.5; font-style: italic; }
.trip-detail-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.trip-approved { font-size: 12px; color: var(--sb-text-muted); }
.trip-flag { background: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--sb-text-muted); text-decoration: underline; padding: 0; }
.trip-flag:hover { color: #DC2626; }

/* ── Mobile: full-height sheet ≤768px ─────────────────────────────────────── */
@media (max-width: 768px) {
  .trip-view { padding: 0; align-items: stretch; }
  .trip-modal { max-width: none; max-height: none; height: 100dvh; height: 100vh; border-radius: 0; }
  .trip-modal-body { flex: 1; }
  .favorites-panel.catchlog-panel { left: 8px; right: 8px; width: auto; max-width: none; }
}

/* ── One-time fangstlogg announcement modal ───────────────────────────────────
   The catch-log's launch announcement (fangstlogg-intro.js). Structurally the
   favorites intro (.fav-intro-*, style.css) — same overlay, same z-index band,
   same one-shot contract — but with a navy header block and, in place of a
   hand-drawn mock, the REAL Fangstrapporter empty section rendered by trips.js.

   Two deliberate colour decisions:

   1. The kicker is --sb-gold (#E3A94C), not --fk-gull (#D97706). The product's
      orange-gold is a light-ground colour; on the --fk-natt header it falls to
      about 3:1. --sb-gold is the gold this system already uses ON dark (the
      sidebar header star) and clears 4.5:1 there.

   2. The dismiss button is NOT petrol. Petrol (--fk-natt/--fk-fjord) is the
      catch-log's primary action colour, and the preview directly above contains
      a petrol "Registrer tur eller fangst" button that is deliberately dead. A
      second, identical-looking petrol button 40px below it would be a misclick
      generator pointed straight at the inert one. The dismiss reads as what it
      is — quiet, secondary, closes the modal — and the petrol button keeps its
      single meaning: the thing to look for on a lake. */
.fl-intro-overlay {
  position: fixed; inset: 0; z-index: 90;   /* same band as .fav-intro-overlay */
  background: rgba(27,58,75,0.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fl-intro-modal {
  width: min(400px, 100%); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--fk-snø); border-radius: 16px; font-family: var(--fk-font);
  box-shadow: 0 18px 60px rgba(27,58,75,0.35);
}

/* Header — the dark navy block. Same gradient as the favorites intro's lake
   mock, so the two announcements read as one family. */
.fl-intro-head {
  position: relative; flex: none;
  background: linear-gradient(135deg, var(--fk-natt) 0%, var(--fk-fjord) 100%);
  padding: 22px 22px 20px;
}
.fl-intro-kicker {
  margin: 0; font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.4px; color: var(--sb-gold);
}
/* The display face. Fraunces is already loaded on /kart (index.html) for the
   Forslag board headings. The serif caution in style.css is about FIGURES — the
   Georgia fallback renders old-style digits short next to a unit — which doesn't
   apply here: this title is letters only. */
.fl-intro-title {
  margin: 6px 0 0; font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500; font-size: 25px; line-height: 1.18; letter-spacing: -0.2px;
  color: #fff;
}
.fl-intro-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12); border: 0; border-radius: 50%;
  color: var(--fk-text-on-dark); cursor: pointer; padding: 0;
}
.fl-intro-close:hover { background: rgba(255,255,255,0.22); }
.fl-intro-close .fk-ic {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Body — scrolls if the viewport is short, so the button is always reachable. */
.fl-intro-body { padding: 18px 22px 22px; overflow-y: auto; }
.fl-intro-lede { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fk-text-primary); }
.fl-intro-cue { margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--fk-text-secondary); }

/* The preview frame. Mirrors .fav-intro-frame: an inset panel that says "this is
   a picture of the app", not another live control. Inside it, .sb-ground is the
   sidebar's own panel colour — the .sb-card/.sb-trips-* classes are global (never
   scoped under #sidebar), so the shipped markup renders here byte-identically. */
.fl-intro-preview {
  background: var(--sb-ground); border: 1px solid var(--fk-border);
  border-radius: 12px; padding: 4px 12px 12px;
}
.fl-intro-preview .sb-h { margin-top: 10px; }
/* The preview's CTA is disabled (see emptyState({inert}) in trips.js). Hold its
   painted appearance — the whole point is that it looks exactly like the live one
   the user will meet — while dropping the affordances of a real control. */
.fl-intro-preview .sb-trips-cta:disabled { opacity: 1; cursor: default; }
.fl-intro-preview .sb-trips-cta:disabled:hover { background: var(--fk-natt); }

/* Privacy note. Cool neutral tint, the same family as the "Bare for deg" private
   badge (--sb-badge-private-bg) — privacy is stated calmly here, not warned about,
   so it deliberately avoids the amber nudge palette. */
.fl-intro-privacy {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 16px;
  background: var(--sb-badge-private-bg); border: 1px solid var(--sb-card-border);
  border-radius: var(--sb-radius-el); padding: 12px 13px;
}
.fl-intro-lock {
  width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--sb-text-2);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.fl-intro-privacy p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--sb-text-2); }

.fl-intro-btn {
  width: 100%; margin-top: 18px; cursor: pointer; font: inherit;
  font-size: 15px; font-weight: 600; color: var(--fk-natt);
  background: #fff; border: 1.5px solid var(--fk-border); border-radius: 10px;
  padding: 13px; transition: background 150ms, border-color 150ms;
}
.fl-intro-btn:hover { background: var(--fk-snø-dark); border-color: #D6D2C9; }

@media (max-width: 480px) {
  .fl-intro-overlay { padding: 12px; }
  .fl-intro-head { padding: 20px 18px 18px; }
  .fl-intro-title { font-size: 23px; }
  .fl-intro-body { padding: 16px 18px 18px; }
}
