/* Independent of homepage animation and layout styles. */
.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.6;
}
.analytics-consent[hidden],
.analytics-consent [hidden] { display: none; }
.analytics-consent h2 {
  margin: 0 0 8px;
  font: 700 20px/1.3 Habitat, sans-serif;
  letter-spacing: -.02em;
  color: var(--ink);
}
.analytics-consent p { margin: 0 0 16px; color: var(--muted); }
.analytics-consent a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent .analytics-current { margin-bottom: 12px; color: var(--ink); font-weight: 700; }
.analytics-actions { display: flex; gap: 12px; }
.analytics-actions button {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--moss-soft);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.4;
}
.analytics-actions button:hover { border-color: var(--moss); }
.analytics-close {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-preferences {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer nav { flex-wrap: wrap; }
.analytics-consent :focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; }
@media (max-width: 400px) {
  .analytics-consent { padding: 20px; }
}
