/* Cookie consent banner (consent.js, markup injected by build.py). --consent-offset is the height it covers at the bottom of the viewport. */
html { scroll-padding-bottom: var(--consent-offset, 0px); }
.consent { position: fixed; left: 24px; bottom: 24px; z-index: 15; width: min(440px, calc(100% - 48px)); max-height: calc(100vh - 180px); max-height: calc(100dvh - 180px); overflow-y: auto; padding: 22px 24px; background: var(--charcoal); color: white; border-left: 4px solid var(--orange); box-shadow: 0 5px 30px #0003; font-size: 14px; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.consent-title { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; }
.consent p { margin: 0; }
.consent p + p { margin-top: 10px; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.consent :focus-visible { outline-offset: 3px; }
.consent-status { font-weight: 500; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.consent-actions button { flex: 1 1 0; min-height: 44px; padding: 10px 18px; border: 1px solid white; background: none; color: white; font-size: 15px; font-weight: 500; line-height: 1.2; }
.consent-actions button:hover { background: white; color: var(--charcoal); }
footer { padding-bottom: calc(30px + var(--consent-offset, 0px)); }
@media (max-width: 1000px) { .confirmation { bottom: calc(24px + var(--consent-offset, 0px)); } }
@media (max-width: 700px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: calc(100vh - 105px); max-height: calc(100dvh - 105px); padding: 18px 18px 18px 20px; }
  .confirmation { bottom: calc(20px + var(--consent-offset, 0px)); }
}
/* Short viewports (phone in landscape): a compact, wider banner leaves the page a usable band. */
@media (max-height: 500px) {
  .consent { padding: 14px 20px; }
  .consent-title { margin-bottom: 4px; font-size: 20px; }
  .consent-actions { margin-top: 10px; }
}
@media (max-height: 500px) and (min-width: 701px) { .consent { width: min(680px, calc(100% - 48px)); } }
@media print { .consent { display: none; } }
