/* Design 080 option A / ADR 0139. Tokens and company identity are supplied by the consumer. */
:root {
  color-scheme: light dark;
  --sr-footer-block-size: calc(3.5rem + env(safe-area-inset-bottom, 0px));
  --sr-site-footer-h: var(--sr-footer-block-size);
  scroll-padding-block-end: calc(var(--sr-footer-block-size) + 1rem);
}
.sr-footer-view { display: contents; }
.sr-footer {
  container: sr-footer / inline-size;
  box-sizing: border-box;
  color: var(--sr-site-text, var(--sr-color-text, CanvasText));
  background: var(--sr-site-surface, var(--sr-color-surface, Canvas));
  font-family: var(--sr-site-font-body, var(--sr-font-sans, system-ui));
  border-block-start: 1px solid var(--sr-site-border, var(--sr-color-border, currentColor));
  z-index: 30;
}
.sr-footer *, .sr-footer *::before, .sr-footer *::after { box-sizing: border-box; }
.sr-footer[data-enhanced][data-position="fixed"][data-variant="compact"], .sr-footer[data-enhanced][data-position="fixed"][data-variant="minimal"] { position: fixed; inset-block-end: 0; inset-inline: 0; }
.sr-footer[data-position="sticky"] { position: sticky; inset-block-end: 0; }
.sr-footer-row { display: none; align-items: center; gap: .75rem; block-size: calc(var(--sr-footer-block-size) - 1px); padding: 0 1rem env(safe-area-inset-bottom, 0px); }
.sr-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-inline-size: 0; overflow-wrap: anywhere; }
.sr-footer-row > .sr-footer-legal { flex: 1; }
.sr-footer-row > .sr-footer-legal > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sr-footer-row > .sr-footer-legal > a { display: none; }
.sr-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.sr-footer a { color: inherit; text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.sr-footer a, .sr-footer button, .sr-footer summary, .sr-footer select { min-block-size: 2.75rem; align-content: center; }
.sr-footer nav a { display: block; padding: .4rem; }
.sr-footer :focus-visible { outline: 3px solid var(--sr-site-cyan, Highlight); outline-offset: 3px; }
.sr-footer-content { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem; }
.sr-footer-content > .sr-footer-legal { flex-basis: 100%; }
.sr-footer-content h2 { font-size: 1rem; margin: 0 0 .5rem; }
.sr-footer-extra:empty { display: none; }
.sr-footer-extra { max-inline-size: 24rem; overflow-wrap: anywhere; }
.sr-footer-priority ul { display: flex; }
.sr-footer-more { flex: none; cursor: pointer; }
.sr-footer-group summary h2 { display: inline; }
.sr-footer-priority [data-overflowed], .sr-footer[data-variant="minimal"] .sr-footer-priority { display: none; }
.sr-footer[data-enhanced]:not([data-variant="full"]) .sr-footer-row { display: flex; }
.sr-footer[data-enhanced]:not([data-variant="full"]) .sr-footer-content { display: none; }
.sr-footer-sheet { margin: auto 0 0; inline-size: 100%; max-inline-size: none; max-block-size: 90dvh; border: 1px solid currentColor; border-radius: 1rem 1rem 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px)); overflow: auto; color: inherit; background: var(--sr-site-surface, var(--sr-color-surface, Canvas)); }
.sr-footer-sheet::backdrop { background: var(--sr-site-shadow, CanvasText); opacity: .65; }
.sr-footer-sheet > * { margin-block-end: 1rem; }
.sr-footer-sheet h2 { font-size: 1.1rem; }
@container sr-footer (max-width: 47.999rem) {
  .sr-footer-row { gap: .25rem; padding-inline: .5rem; }
  .sr-footer-priority { display: none; }
  .sr-footer-content { padding: 1rem; gap: 1rem; }
}
/* In a short viewport chrome is ordinary flow content; consent owns its separate <480px fallback. */
@media (max-height: 499px) {
  :root { --sr-footer-block-size: 0px; --sr-site-footer-h: 0px; }
  .sr-footer[data-enhanced][data-position][data-variant], .sr-footer[data-position] { position: static; }
  .sr-footer-row { block-size: 3.5rem; }
}
@media (forced-colors: active) { .sr-footer { border-color: CanvasText; } .sr-footer :focus-visible { outline-color: Highlight; } }

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
