/* Consent controls share the site's existing colours and type. */
.analytics-settings {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.analytics-consent {
  position: fixed;
  z-index: 120;
  inset: auto 1rem max(1rem, env(safe-area-inset-bottom));
  width: min(64rem, calc(100% - 2rem));
  max-height: 80dvh;
  overflow: auto;
  margin-inline: auto;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  line-height: 1.5;
}
.analytics-consent[hidden], .analytics-settings[hidden], .analytics-consent button[hidden] { display: none; }
.analytics-consent-copy { flex: 1 1 30rem; min-width: 0; }
.analytics-consent h2 { margin: 0 0 0.5rem; font: 600 1.25rem/1.3 var(--sans); }
.analytics-consent p { margin: 0 0 0.6rem; color: inherit; }
.analytics-consent p:last-child { margin: 0; }
.analytics-consent a { color: var(--gold); text-decoration: underline; text-underline-offset: 0.2em; }
.analytics-consent-status:empty { display: none; }
.analytics-consent-actions { display: grid; grid-template-columns: 1fr; gap: 0.65rem; flex: 0 1 12rem; }
.analytics-consent button {
  appearance: none;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font: 600 1rem/1.4 var(--sans);
  cursor: pointer;
}
.analytics-consent button:hover { background: var(--ink-soft); }
.analytics-consent :focus-visible, .analytics-settings:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .analytics-consent { display: block; padding: 1rem; }
  .analytics-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
  .analytics-consent [data-consent-close] { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .analytics-consent-actions { grid-template-columns: 1fr; }
}
