/* css/feedback.css — split out of site.css, 2026-10-01 v4 S0 (mechanical
 * prep, see docs-v4-contracts.md). Owns the fixed feedback bar (chrome,
 * every page, template/partials/chrome.html) and the body padding every
 * page needs so its content doesn't sit under the bar. Uses the shell's
 * own tokens, same rule as site.css.
 * S3 (footer + destination slice) owns the next round of changes here
 * (#1 UI) — this split only moves the existing rules verbatim.
 */

/* ---------- feedback bar (glued/fixed to viewport bottom, wrapper chrome —
   rendered on EVERY page from template/partials/chrome.html, same as the
   navbar, independent of page content, 2026-10-01 owner spec). Also carries
   the owner contact line that used to live in the shell's footer: the shell
   footer is stripped from every offer page in bin/build (it belongs to the
   live forcepush.club nav, not this preview — #proces/#narzedzia/#kontakt
   anchors don't exist here), and its contact info moves here, compactly. ---------- */
.feedback-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--bg-raised); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(10,30,60,.1);
}
.feedback-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; flex-wrap: wrap; }
/* min-height: the counter is filled by js/widgets.js after first paint;
   reserve its line so the bar never grows under reduced motion. */
.feedback-bar__count { font-family: var(--font-mono); font-size: .78rem; color: var(--fg-muted); min-height: 1lh; }
.feedback-bar__contact {
  font-family: var(--font-mono); font-size: .72rem; color: var(--fg-subtle);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.feedback-bar__contact a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); }
.feedback-bar__contact a:hover, .feedback-bar__contact a:focus-visible { color: var(--accent); border-color: var(--accent); }
.feedback-bar__contact .sep { opacity: .5; }
.feedback-bar__actions { display: flex; align-items: center; gap: 12px; }
.feedback-bar__toast {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin-bottom: 10px; padding: 10px 18px; border-radius: var(--radius-md);
  background: var(--fg-base); color: #fff; font-size: .85rem; white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.feedback-bar__toast[hidden] { display: none; }
.feedback-bar__toast.is-error { background: var(--accent-deep); }
/* a fixed bottom bar needs every page to leave room for it, and the
   floating legend-toggle/back-to-top buttons need to move up so it doesn't
   cover them — unconditional now that the bar is on every page. (Round 2
   fix, 2026-10-01: this used to duplicate-declare .legend-toggle/.back-to-
   top's `bottom` here, BEFORE their own base rule further down the file —
   same specificity, later-in-file rule won, so the override was silently
   dead and the pill sat at its original bottom:20px, overlapping the bar's
   "N z M wypełnione" counter. Fixed at the base rule itself instead of a
   losing override — see css/site.css's `.back-to-top` comment.) */
body { padding-bottom: 76px; }
@media (max-width: 600px) {
  body { padding-bottom: 104px; }
  .feedback-bar__contact { display: none; }
}

@media (max-width: 389px) {
  .feedback-bar__inner { padding: 12px 16px; }
}
