/* ============================================================================
   CONSENT — the analytics banner (src/partials/analytics.js).

   Loaded on every page via layout.js's BASE_CSS, since gtag is gated behind
   it site-wide, not per-template. position:fixed on purpose: whether the
   banner is showing or [hidden], nothing else on the page ever reflows for
   it — see base.css for the [hidden] rule.
   ========================================================================= */

.consent-banner {
  position: fixed;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  max-width: 620px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-panel);
}

.consent-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--body);
}

.consent-link { color: var(--brand); text-decoration: underline; }
.consent-link:hover { color: var(--accent); }

.consent-actions {
  display: flex;
  gap: var(--sp-3);
  flex: 0 0 auto;
}

.btn-consent {
  min-height: var(--tap-min);
  padding: 0 var(--sp-5);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease);
}

.btn-consent--primary {
  background: var(--brand-grad);
  color: var(--on-brand);
  box-shadow: var(--sh-brand);
}
.btn-consent--primary:hover { transform: translateY(-2px); }

.btn-consent--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-consent--ghost:hover { border-color: var(--brand); color: var(--brand); }

@media (max-width: 480px) {
  .consent-banner {
    left: var(--sp-3);
    right: var(--sp-3);
    bottom: var(--sp-3);
    padding: var(--sp-4);
  }
  .consent-actions { width: 100%; }
  .btn-consent { flex: 1; }
}
