/* The cookie banner that assets/consent.js draws on every oxagen.sh page.
   Some pages load no other house stylesheet, so this one brings the kit's
   tokens with it. Each page links it with media="not all", so it never holds
   up the first paint, and the script turns it on before the banner shows. */
@import "./house-tokens.css?v=946717630253";

/* The banner's roles, on soot. A light page swaps them for bone below. */
.ox-consent {
  --consent-bg: var(--ox-panel);
  --consent-line: var(--ox-border);
  --consent-text: var(--ox-text-body);
  --consent-muted: var(--ox-muted);
  --consent-link: var(--ox-rust-text);
  --consent-button-bg: var(--ox-ink);
  --consent-button-line: var(--ox-rule);
  --consent-button-text: var(--ox-text);
  --consent-button-hover: var(--ox-hl);
  --consent-ring: var(--ox-gold);
  --consent-shadow: var(--ox-shadow-pop);
  --consent-motion: var(--ox-motion-control);
}
:root[data-theme="light"] .ox-consent {
  --consent-bg: var(--ox-paper-panel);
  --consent-line: var(--ox-paper-border);
  --consent-text: var(--ox-text-ink-body);
  --consent-muted: var(--ox-muted-ink);
  --consent-link: var(--ox-rust-text-ink);
  --consent-button-bg: var(--ox-paper);
  --consent-button-line: var(--ox-paper-rule);
  --consent-button-text: var(--ox-text-ink);
  --consent-button-hover: var(--ox-paper-hl);
  --consent-ring: var(--ox-rust-ink);
  --consent-shadow: var(--ox-shadow-pop-ink);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .ox-consent {
    --consent-bg: var(--ox-paper-panel);
    --consent-line: var(--ox-paper-border);
    --consent-text: var(--ox-text-ink-body);
    --consent-muted: var(--ox-muted-ink);
    --consent-link: var(--ox-rust-text-ink);
    --consent-button-bg: var(--ox-paper);
    --consent-button-line: var(--ox-paper-rule);
    --consent-button-text: var(--ox-text-ink);
    --consent-button-hover: var(--ox-paper-hl);
    --consent-ring: var(--ox-rust-ink);
    --consent-shadow: var(--ox-shadow-pop-ink);
  }
}

.ox-consent {
  position: fixed;
  inset-inline: calc(var(--ox-space) * 4);
  bottom: calc(var(--ox-space) * 4);
  z-index: 300;
  box-sizing: border-box;
  max-width: calc(var(--ox-space) * 120);
  margin-inline: auto;
  padding: calc(var(--ox-space) * 4);
  border: 1px solid var(--consent-line);
  border-radius: var(--ox-radius);
  background: var(--consent-bg);
  box-shadow: var(--consent-shadow);
  color: var(--consent-text);
  font-family: inherit;
  font-size: var(--ox-m-micro);
  line-height: var(--ox-m-micro-leading);
}
.ox-consent[hidden] {
  display: none;
}
.ox-consent p {
  margin: 0 0 calc(var(--ox-space) * 3);
}
.ox-consent a {
  color: var(--consent-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.ox-consent-state {
  color: var(--consent-muted);
}
.ox-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--ox-space) * 2);
}
/* Both choices look the same, so neither is easier to pick. */
.ox-consent-button {
  flex: 1 1 calc(var(--ox-space) * 36);
  min-height: calc(var(--ox-space) * 11);
  padding: 0 calc(var(--ox-space) * 4);
  border: 1px solid var(--consent-button-line);
  border-radius: var(--ox-radius-pill);
  background: var(--consent-button-bg);
  color: var(--consent-button-text);
  font: inherit;
  cursor: pointer;
  transition: background-color var(--consent-motion) ease;
}
.ox-consent-button:hover {
  background: var(--consent-button-hover);
}
.ox-consent-button:focus-visible,
.ox-consent a:focus-visible {
  outline: 2px solid var(--consent-ring);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .ox-consent-button {
    transition: none;
  }
}
