/* Shared consent controls. Keep independent from the page layout and the visual scene. */
.analytics-consent {
  position: fixed;
  z-index: 100;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  max-width: min(39rem, calc(100vw - 2.5rem));
  padding: .75rem 1rem;
  border: 1px solid var(--gold, #c4a15a);
  border-radius: var(--radius, 4px);
  background: var(--paper, #f7f3e8);
  color: var(--ink, #1a1814);
  box-shadow: 0 8px 32px #0b211b26;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: .9rem;
  line-height: 1.5;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent-copy { min-width: 0; }
.analytics-consent-copy strong { font-weight: 600; }
.analytics-consent-copy p { margin: 0; max-width: 50ch; }
.analytics-consent-copy a { color: var(--forest, #14352c); text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-shrink: 0; gap: .6rem; }
.analytics-consent-actions button {
  min-height: 44px;
  border: 1px solid var(--forest, #14352c);
  border-radius: var(--radius, 4px);
  padding: .65rem .85rem;
  background: transparent;
  color: var(--forest, #14352c);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.analytics-consent-actions button:hover { background: var(--paper-2, #efe8d6); }
.analytics-consent :focus-visible,
.analytics-settings:focus-visible { outline: 3px solid var(--gold-deep, #8a6a2a); outline-offset: 3px; }
.analytics-settings {
  min-height: 44px;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .analytics-consent { flex-direction: column; align-items: stretch; gap: .9rem; }
  .analytics-consent-actions button { flex: 1; }
}
@media (max-width: 480px) {
  .analytics-consent {
    right: .5rem;
    bottom: .5rem;
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    padding: .5rem .75rem;
    gap: .375rem;
    font-size: .875rem;
    line-height: 1.4;
  }
  .analytics-consent-actions button { white-space: nowrap; padding: .5rem .6rem; }
}
@media (max-height: 420px) {
  .analytics-consent { max-height: calc(100dvh - 1.5rem); overflow-y: auto; }
}
@media print {
  .analytics-consent, .analytics-settings { display: none; }
}
