/* Keep the notice outside the main layout so revealing it does not move the page. */
body {
  --burk-consent-edge: 10px;
  --burk-consent-bottom: max(12px, env(safe-area-inset-bottom));
  --burk-consent-viewport: 100vh;
  --burk-consent-half-viewport: 52vh;
  --burk-consent-limit: max(0px, min(24rem, var(--burk-consent-half-viewport), calc(var(--burk-consent-viewport) - var(--site-header-height, 0px) - var(--burk-consent-bottom) - var(--burk-consent-edge))));
}
@supports (height: 100dvh) {
  body { --burk-consent-viewport: 100dvh; --burk-consent-half-viewport: 52dvh; }
}
/* All existing mobile CTA bundles use display:grid through 650px. The occupied
   space is 8px bottom + 2px border + 7px top padding + 28px button padding +
   the text line and bottom safe area. An extra 8px separates the two controls. */
@media (max-width: 650px) {
  body { --burk-consent-bottom: calc(53px + max(1.65rem, clamp(18.15px, 6.6vw, 23.1px)) + env(safe-area-inset-bottom)); }
  body:not(:has(> .mobile-cta:not([hidden]))) { --burk-consent-bottom: max(12px, env(safe-area-inset-bottom)); }
}
/* Reserve footer access inside the sticky header's containing block. The
   existing body padding still supplies the mobile contact bar's ordinary space. */
@media screen {
  body:has(> #privacy-banner.burk-consent-notice:not([hidden]))::after {
    content: "";
    display: block;
    height: calc(var(--burk-consent-limit) + var(--burk-consent-bottom) + var(--burk-consent-edge));
    pointer-events: none;
  }
}
#privacy-banner.burk-consent-notice {
  display: block;
  position: fixed;
  inset: auto;
  left: max(var(--burk-consent-edge), env(safe-area-inset-left));
  bottom: var(--burk-consent-bottom);
  z-index: 75;
  box-sizing: border-box;
  width: min(38rem, calc(100% - max(var(--burk-consent-edge), env(safe-area-inset-left)) - max(var(--burk-consent-edge), env(safe-area-inset-right))));
  max-width: none;
  max-height: var(--burk-consent-limit);
  margin: 0;
  padding: .85rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: .5rem;
  text-align: left;
}
#privacy-banner.burk-consent-notice[hidden],
.burk-consent-actions [hidden],
[data-consent-revoke][hidden] { display: none !important; }
.burk-consent-notice h2, .burk-consent-notice p { margin-block: 0 .5rem; }
.burk-consent-notice .burk-consent-actions,
.burk-consent-dialog .burk-consent-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: .5rem;
  max-width: 38rem;
  margin-top: .75rem;
}
.burk-consent-actions .privacy-action {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}
.burk-consent-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin-top: .25rem; }
.burk-consent-links > a, .burk-consent-links > button {
  display: inline-flex; align-items: center; min-height: 44px; max-width: 100%;
}
.burk-consent-text-action, button[data-consent-revoke] {
  appearance: none; border: 0; background: transparent; box-shadow: none;
  padding: 0; color: inherit; font: inherit; line-height: inherit; text-align: left;
  text-decoration: underline; text-underline-offset: .17em; cursor: pointer;
}
button[data-consent-revoke] { justify-self: start; min-height: 44px; max-width: 100%; }
.burk-consent-text-action:focus-visible, button[data-consent-revoke]:focus-visible {
  outline: 3px solid currentColor; outline-offset: 3px;
}
/* Keep both blanket choices together on small screens. */
@media (max-width: 650px), (max-height: 600px) {
  body { --burk-consent-half-viewport: 74vh; }
  @supports (height: 100dvh) {
    body { --burk-consent-half-viewport: 74dvh; }
  }
  #privacy-banner.burk-consent-notice .burk-consent-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #privacy-banner.burk-consent-notice .burk-consent-actions > .privacy-action {
    padding-inline: .45rem;
    white-space: normal;
  }
}
.burk-consent-actions .burk-choose-details,
.burk-consent-actions .burk-save-choices { grid-column: 1 / -1; }
.burk-consent-notice .burk-consent-actions,
.burk-consent-dialog .burk-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.burk-consent-dialog .burk-consent-actions .privacy-action { min-height: 44px; padding-inline: .5rem; }
.burk-optional-choices {
  min-inline-size: 0;
  margin: .85rem 0;
  padding: .55rem .85rem .8rem;
  border: 1px solid var(--ref-line, currentColor);
  border-radius: .5rem;
}
.burk-optional-choices legend { padding-inline: .3rem; font-weight: 700; }
.burk-optional-choices label {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  cursor: pointer;
}
.burk-optional-choices input[type="checkbox"] {
  appearance: auto;
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--ref-primary, #245e99);
}
.burk-optional-choices p { margin: 0 0 .35rem; }
@media print {
  #privacy-banner.burk-consent-notice, .burk-consent-dialog, button[data-consent-revoke] { display: none !important; }
}

/* Keep the main destinations visible at tablet widths and on phones. The
   existing menu button still opens the full vertical list. */
@media screen and (max-width: 1279px) {
  .site-header .container.nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px 44px;
    row-gap: 4px;
  }
  .site-header .nav-links:not(.open) {
    display: flex;
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    transform: none;
    align-items: center;
    justify-content: flex-start;
    flex-flow: row nowrap;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 2px;
    margin: 0;
    padding: 2px 2px 3px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    border: 0;
    border-top: 1px solid var(--ref-line);
    border-radius: 0;
    box-shadow: none;
    background: var(--ref-surface);
  }
  .site-header .nav-links:not(.open) > a {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 6px 8px;
    font-size: .9375rem;
    line-height: 1.3;
    white-space: nowrap;
  }
  .site-header .nav-links:not(.open) > a:focus-visible {
    outline-offset: -3px;
  }
}
@media screen and (min-width: 760px) and (max-width: 1279px) {
  .site-header .nav-links:not(.open) {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* The base stylesheet's no-script rule sets overflow:visible. Let the row
   scroll even when JavaScript is blocked and no menu button is available. */
@media screen and (max-width: 1279px) {
  html:not([data-theme]) .site-header .nav-links:not(.open) {
    overflow-x: auto;
    overflow-y: hidden;
  }
}
@media screen {
  html:not([data-theme]) .site-header { position: sticky; top: 0; }
  /* A wrapped skip link can be taller than a fixed negative offset when
     visitors choose larger text. Hide its entire box until it has focus. */
  .skip-link:not(:focus) { top: 0; transform: translateY(calc(-100% - 2px)); }
  .skip-link:focus { transform: none; }
}
@media screen and (max-height: 500px) and (min-width: 760px) and (max-width: 1279px) {
  .site-header .nav-links:not(.open) { justify-content: flex-start; flex-wrap: nowrap; }
}

/* The tablet header gains a second row for the destination links. Keep the two
   toolbar buttons in row one as the links wrap or the full menu opens. */
@media screen and (min-width: 651px) and (max-width: 1279px) {
  .site-header .container.nav {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  }
  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .site-header .menu-btn,
  .site-header .theme-toggle {
    position: static;
    inset: auto;
    grid-row: 1;
    transform: none;
  }
  .site-header .menu-btn { grid-column: 2; justify-self: center; }
  .site-header .theme-toggle { grid-column: 3; justify-self: end; }
}

/* The server supplies the light canvas. Keep no-script navigation and FAQs usable. */
html[data-burk-nojs] .site-header { position: sticky; top: 0; }
html[data-burk-nojs] .site-header .menu-btn,
html[data-burk-nojs] .site-header .theme-toggle[hidden] { display: none !important; }
html[data-burk-nojs] .faq-a { max-height: none; }
@media screen and (max-width: 1279px) {
  html[data-burk-nojs] .site-header .nav-links:not(.open) { display: flex; position: static; transform: none; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; }
}
/* A disclosure button opens the display choices without changing the theme. */
.site-header .theme-picker {
  position: relative;
  flex: none;
}
.site-header .theme-picker[hidden],
.site-header .theme-picker-panel[hidden] { display: none; }
.site-header .theme-picker .theme-toggle {
  position: static;
  transform: none;
  width: 44px;
  height: 44px;
  padding: 9px;
}
.site-header .theme-picker-panel {
  position: absolute;
  z-index: 5;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: .35rem;
  box-sizing: border-box;
  width: min(17rem, calc(100vw - 2rem));
  max-height: 60vh;
  overflow-y: auto;
  padding: .65rem;
  color: var(--ref-ink);
  background: var(--ref-surface);
  border: 1px solid var(--ref-line);
  border-radius: 10px;
  box-shadow: 0 6px 20px #102e4c26;
  text-align: start;
}
.theme-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-inline-start: .45rem;
}
.theme-picker-panel button {
  min-height: 44px;
  margin: 0;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.theme-picker-panel [data-theme-close] { width: 44px; padding: 0; font-size: 1.35rem; }
.theme-picker-panel [data-theme-choice] {
  padding: .45rem .6rem;
  line-height: 1.35;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.theme-picker-panel [data-theme-choice][aria-pressed="true"] {
  border-color: var(--ref-line);
  background: var(--ref-soft);
  font-weight: 700;
}
.theme-picker-panel button:hover { background: var(--ref-hover); }
.site-header .theme-picker-panel button:focus-visible {
  outline: 2px solid var(--ref-focus);
  outline-offset: -2px;
}
@media screen and (min-width: 651px) and (max-width: 1279px) {
  .site-header .theme-picker { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media screen and (max-width: 650px) {
  /* On a narrow screen anchor the panel to the whole header, including its link row. */
  .site-header .theme-picker { position: static; }
}
@media print {
  .site-header .theme-picker { display: none; }
}

@media screen and (min-width: 1280px) {
  /* Reserve the switch's natural width. The links can wrap within the remaining space. */
  .site-header .nav-links { flex: 1 1 0%; min-width: 0; flex-wrap: wrap; }
}
@media screen and (min-width: 1280px) and (max-width: 1399px) {
  .site-header .container.nav { column-gap: 10px; }
  .site-header .nav-links > a:not(.nav-cta) { padding-inline: 4px; }
  .site-header .nav-links > .nav-cta { margin-inline-start: 4px; }
}
@media screen and (max-width: 650px) {
  .site-header .container.nav {
    display: flex; flex-wrap: wrap; justify-content: flex-start; column-gap: 4px;
  }
  .site-header .brand { margin-inline-end: auto; }
  .site-header .nav-links { order: 1; flex-basis: 100%; }
}
@media screen and (max-width: 359px) {
  .site-header .container.nav { width: calc(100% - 16px); }
  .site-header .btn.header-whatsapp { padding-inline: 6px; }
}
