/* The CV Method — analytics consent banner. Scoped under .cv-consent so it
   never collides with site components. Brand tokens come from colors.css /
   typography.css / effects.css (loaded before this file). Rectangular buttons
   (--r-xs) per the CV design system. */
/* 2026-09-26: a slim strip docked to the bottom edge, full width, content on the
   site's text column (was a floating 640px card that sat over the home stats and
   form labels at the fold). Green hairline on top, like the scrolled nav. */
.cv-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px max(24px, calc(50% - 576px));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(10, 24, 54, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(46, 224, 154, 0.35);
  box-shadow: 0 -8px 24px rgba(5, 10, 18, 0.35);
  animation: cv-consent-in 0.28s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes cv-consent-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.cv-consent__text {
  margin: 0;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1 1 420px;
  max-width: 72ch;
}
.cv-consent__text a {
  color: var(--accent, #2ee09a);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cv-consent__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
.cv-consent__btn {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: var(--r-xs, 3px);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.cv-consent__btn--accept {
  background: var(--green, #17b87a);
  color: var(--ink-900, #0a1836); /* navy on green = 6.1:1; white was 2.57:1 (2026-09-25) */
}
.cv-consent__btn--accept:hover { background: var(--accent, #2ee09a); color: var(--ink-900, #0a1836); }
.cv-consent__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.28);
}
.cv-consent__btn--ghost:hover { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
/* Phones: a compact strip, not a sheet. In a column layout the text's
   flex-basis turns into HEIGHT, so the text gets flex:none; buttons share one
   row at the 44px tap-target floor. */
@media (max-width: 520px) {
  .cv-consent { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .cv-consent__text { flex: none; max-width: none; font-size: 12.5px; line-height: 1.45; }
  .cv-consent__actions { gap: 8px; }
  .cv-consent__btn { flex: 1; min-height: 44px; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) { .cv-consent { animation: none; } }
