/* Audio Chronicle's privacy dialog, using this site's type and accent. */
.ad-consent[hidden], .ad-consent-backdrop[hidden] { display: none; }
:root.ad-consent-lock { overflow: hidden; scrollbar-gutter: stable; }
.ad-consent-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / 25%); touch-action: none; -webkit-backdrop-filter: brightness(.75); backdrop-filter: brightness(.75); }
.ad-consent { position: fixed; z-index: 1001; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(1040px, calc(100% - 48px)); margin: auto; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 48px 48px rgb(0 0 0 / 25%); display: grid; gap: 16px; font: 16px/1.6 var(--body); max-height: calc(100dvh - 32px); overflow-y: auto; }
.site-page .ad-consent h2 { color: var(--ink); margin: 0; font: 700 24px/1.3 var(--body); letter-spacing: -.025em; }
.ad-consent p { margin: 0; color: var(--ink); }
.ad-consent a { text-decoration: underline; text-underline-offset: 2px; }
.ad-consent-status:empty { display: none; }
.ad-consent-status { font-size: 14px; color: var(--muted); }
.ad-consent-actions { display: flex; flex-flow: row-reverse wrap; justify-content: flex-end; gap: 16px; padding-top: 14px; }
.ad-consent-actions button { min-height: 46px; padding: 10px 24px; border: 1px solid transparent; border-radius: 999px; background: var(--accent, var(--purple)); color: #fff; cursor: pointer; font: 700 14px/1.5 var(--body); }
.ad-consent-actions [data-ad-choice="denied"], .ad-consent-actions [data-ad-close] { background: #e3e3e6; color: #505159; }
.ad-consent-actions button:hover { background: var(--ink); color: #fff; }
.ad-consent-actions button:disabled { opacity: .5; cursor: default; }
.ad-consent :focus-visible, .ad-choices:focus-visible { outline: 2px solid var(--accent, var(--purple)); outline-offset: 3px; }
.ad-consent:focus { outline: none; }
.ad-choices { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 4px 0; }
@media (min-width: 810px) {
  .ad-consent { bottom: auto; top: 50%; transform: translateY(-50%); }
}
@media (min-width: 1200px) {
  .ad-consent-backdrop { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@media (max-width: 809px) {
  .ad-consent { width: calc(100% - 32px); padding: 24px; }
  .page-audio .ad-consent { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 96px - env(safe-area-inset-bottom, 0px)); }
  .ad-consent-actions button { flex: 0 0 100%; width: 100%; }
}
