/* Optional analytics uses the site's existing quiet colors and upright type. */
.footer-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-privacy a, .analytics-settings { display: inline-flex; align-items: center; min-height: 44px; }
.analytics-settings { border: 0; padding: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
[data-analytics-settings][hidden] { display: none; }
.analytics-notice { position: fixed; z-index: 20; inset: auto 24px 24px; width: min(1000px, calc(100% - 48px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; margin-inline: auto; display: flex; align-items: center; gap: 26px; padding: 23px 26px; color: var(--ink); background: var(--white); border: 1px solid var(--panel-line); border-radius: 8px; box-shadow: 0 7px 28px #293a3e26; }
.analytics-notice[hidden], .analytics-notice [hidden] { display: none; }
.analytics-copy { flex: 1 1 480px; min-width: 0; }
.analytics-notice h2 { font: 700 21px/1.3 var(--display); letter-spacing: 0; margin: 0 0 8px; text-wrap: initial; }
.analytics-notice p { font-size: 16px; line-height: 1.5; margin: 0; }
.analytics-notice .analytics-status { margin-top: 10px; font-weight: 600; }
.analytics-details { display: inline-flex; align-items: center; min-height: 36px; margin-top: 4px; color: var(--accent-dark); font-size: 15px; }
.analytics-actions { flex: 0 1 245px; display: grid; grid-template-columns: 1fr; gap: 9px; }
.analytics-choice, .analytics-close { min-height: 44px; padding: 10px 18px; color: var(--button-text); background: var(--button-fill); border: 1px solid var(--button-border); border-radius: 4px; font: 600 16px/1.35 var(--body); cursor: pointer; }
.analytics-choice:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.analytics-close { border-color: transparent; background: transparent; font-weight: 400; }
@media (hover: hover) {
  :is(.analytics-choice, .analytics-close):enabled:hover { background: var(--button-hover); }
}
.analytics-notice a:focus-visible, .analytics-notice button:focus-visible, .analytics-notice h2:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 800px) {
  .analytics-notice { align-items: stretch; flex-direction: column; gap: 16px; }
  .analytics-copy, .analytics-actions { flex-basis: auto; }
  .analytics-actions { grid-template-columns: 1fr 1fr; }
  .analytics-close { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .analytics-notice { inset: auto 12px 12px; width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 18px; gap: 12px; }
  .analytics-notice h2 { font-size: 20px; }
  .analytics-notice p { font-size: 15px; }
  .analytics-actions { gap: 8px; }
  .analytics-choice, .analytics-close { padding-inline: 10px; font-size: 15px; }
  .footer-privacy { gap: 4px 18px; }
}
