/* Optional language storage, with equal choice controls and no tracking toggles. */
.preferences-banner, .preferences-dialog, .preferences-feedback { box-sizing: border-box; font-family: Manrope, Arial, sans-serif; color: #171717; background: #fff; }
.preferences-banner *, .preferences-dialog * { box-sizing: border-box; }
.preferences-banner[hidden], .preferences-feedback[hidden] { display: none !important; }
.preferences-banner { position: fixed; z-index: 45; inset: auto 20px 20px; display: flex; align-items: center; justify-content: space-between; gap: 36px; max-width: 1528px; margin-inline: auto; padding: 24px 30px; border: 1px solid #d6d3d0; border-radius: 4px; box-shadow: 0 4px 40px rgba(0,0,0,.1); }
.preferences-banner-copy { min-width: 0; max-width: 660px; }
.preferences-banner h2 { margin: 0 0 9px; font-family: 'Instrument Serif', Georgia, serif; font-size: 29px; font-weight: 400; line-height: 1.2; }
.preferences-banner p { margin: 0; font-size: 16px; line-height: 1.65; }
.preferences-banner-actions { flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.preferences-manage { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; padding: 7px 0; color: #171717; background: transparent; border: 0; font: inherit; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.preferences-choice-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preferences-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 148px; padding: 12px 19px; border: 1px solid #171717; border-radius: 0; background: #171717; color: white; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.55; text-align: center; cursor: pointer; }
.preferences-action:hover { background: #383838; border-color: #383838; }
.preferences-banner :focus-visible, .preferences-dialog :focus-visible, [data-open-preferences]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.preferences-action:focus-visible { outline-color: #171717; }
.has-consent-banner { scroll-padding-bottom: var(--consent-banner-height, 300px); }
.has-consent-banner body { padding-bottom: var(--consent-banner-height, 300px); }
.has-consent-banner .mobile-cta { visibility: hidden; transform: translateY(110%); pointer-events: none; }
html.has-legal-preferences { overflow: hidden; overscroll-behavior: none; }

.preferences-dialog { padding: 0; border: 0; border-radius: 5px; width: min(600px, calc(100% - 32px)); max-width: calc(100% - 32px); height: auto; max-height: min(90dvh, 850px); margin: auto; overflow: hidden; box-shadow: 0 20px 90px rgba(0,0,0,.2); }
.preferences-dialog[open] { display: flex; flex-direction: column; }
.preferences-dialog::backdrop { background: rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.preferences-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; padding: 22px 28px 16px; }
.preferences-logo { display: block; width: 135px; height: auto; max-width: 55%; }
.preferences-close { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #171717; font: inherit; cursor: pointer; }
.preferences-close span { font-family: Arial, sans-serif; font-size: 32px; line-height: 1; font-weight: 300; }
.preferences-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 28px 24px; }
.preferences-body h2 { margin: 0 0 20px; font-family: 'Instrument Serif', Georgia, serif; font-size: 36px; font-weight: 400; line-height: 1.15; }
.preferences-body h2[tabindex="-1"]:focus { outline: none; }
.preferences-introduction { margin: 18px 0 20px; font-size: 14px; line-height: 1.8; color: #4e4e4e; }
.preferences-necessary { margin: 0 0 20px; border-block: 1px solid #d6d3d0; }
.preferences-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; min-height: 54px; padding: 13px 22px 13px 0; font-size: 14px; font-weight: 500; line-height: 1.6; list-style: none; cursor: pointer; }
.preferences-category-heading::-webkit-details-marker { display: none; }
.preferences-category-heading::after { content: '+'; position: absolute; right: 0; top: 13px; font-size: 20px; font-weight: 400; line-height: 1.3; }
.preferences-necessary[open] > summary::after { content: '−'; }
.preferences-required { flex-shrink: 0; font-size: 12px; font-weight: 400; line-height: 1.6; color: #565656; }
.preferences-necessary > p { margin: 0; padding: 0 0 18px; font-size: 16px; line-height: 1.75; color: #4e4e4e; }
.preferences-language-card { display: block; padding: 19px 20px; border: 1px solid #797570; border-radius: 3px; background: #fff; cursor: pointer; }
.preferences-language-card.is-enabled { border-color: #171717; background: #f6f5f3; }
.preferences-language-card:has(input:focus-visible) { outline: 2px solid #171717; outline-offset: 3px; }
.preferences-language-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; }
.preferences-language-text { display: block; min-width: 0; }
.preferences-language-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.5; }
.preferences-language-state { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; line-height: 1.5; color: #4e4e4e; }
.preferences-language-card.is-enabled .preferences-language-state { color: #171717; }
.preferences-language-description { display: block; margin-top: 14px; font-size: 16px; font-weight: 400; line-height: 1.75; color: #4e4e4e; }
.preferences-switch { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; width: 58px; height: 48px; }
.preferences-switch input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.preferences-switch-visual { display: block; width: 58px; height: 34px; border: 1px solid #625f5b; border-radius: 20px; background: #e4e1dc; pointer-events: none; }
.preferences-switch-visual::after { content: ''; display: block; width: 24px; height: 24px; margin: 4px; border: 1px solid #8b8782; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1); transition: transform .15s; }
.preferences-switch input:checked + .preferences-switch-visual { background: #171717; border-color: #171717; }
.preferences-switch input:checked + .preferences-switch-visual::after { transform: translateX(24px); border-color: #fff; }
.preferences-change-note { margin: 0 0 12px; font-size: 14px; line-height: 1.8; color: #4e4e4e; }
.preferences-legal-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.preferences-legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: #171717; font-size: 14px; line-height: 1.6; text-decoration: underline; text-underline-offset: 5px; }
.preferences-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex-shrink: 0; padding: 20px 28px 24px; border-top: 1px solid #d6d3d0; background: #fff; }
.preferences-footer .preferences-action { min-width: 0; }
.preferences-feedback { pointer-events: none; position: fixed; z-index: 50; inset: auto 20px 88px auto; max-width: min(400px, calc(100% - 40px)); border: 1px solid #a6a19b; border-radius: 3px; padding: 16px 20px; font-size: 14px; line-height: 1.7; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.site-footer [data-open-preferences], .legal-footer [data-open-preferences] { display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: inherit; font: inherit; font-size: 14px; background: none; border: 0; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }

@media (max-width: 900px) {
  .preferences-banner { gap: 24px; padding: 22px 24px; }
  .preferences-banner-actions { max-width: 320px; }
  .preferences-action { min-width: 130px; padding-inline: 14px; }
}
@media (max-width: 700px) {
  .preferences-banner { inset: auto 12px 12px; display: block; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
  .preferences-banner h2 { font-size: 27px; margin-bottom: 7px; }
  .preferences-banner-actions { max-width: none; margin-top: 7px; gap: 5px; }
  .preferences-choice-pair { gap: 10px; }
  .preferences-action { min-width: 0; padding-inline: 13px; }
  .preferences-dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .preferences-header { padding: 17px 22px 10px; }
  .preferences-body { padding: 6px 22px 20px; }
  .preferences-body h2 { font-size: 32px; margin-bottom: 18px; }
  .preferences-footer { padding: 18px 22px calc(20px + env(safe-area-inset-bottom)); gap: 10px; }
  .preferences-category-heading { flex-wrap: wrap; gap: 6px 14px; }
  .preferences-language-card { padding: 16px; }
  .preferences-language-row { gap: 16px; }
  .preferences-feedback { inset: auto 12px 86px; max-width: none; }
}
@media (max-width: 350px) {
  .preferences-banner { padding-inline: 17px; }
  .preferences-header { padding-inline: 18px; }
  .preferences-body { padding-inline: 18px; }
  .preferences-body h2 { font-size: 30px; }
  .preferences-language-card { padding: 14px; }
  .preferences-footer { padding-inline: 18px; }
  .preferences-footer .preferences-action { padding-inline: 9px; }
}
@media (max-height: 480px) and (min-width: 701px) {
  .preferences-banner { inset: auto 12px 12px; padding: 15px 22px; gap: 24px; }
  .preferences-banner h2 { font-size: 25px; }
  .preferences-banner-actions { gap: 0; }
  .preferences-manage { min-height: 36px; }
  .preferences-dialog { max-height: calc(100dvh - 20px); }
  .preferences-header { padding-block: 10px 4px; }
  .preferences-footer { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .preferences-switch-visual::after { transition: none; }
}
@media (max-height: 600px) {
  .preferences-dialog { max-height: calc(100dvh - 16px); }
  .preferences-header { padding: 6px 18px 2px; }
  .preferences-logo { width: 112px; }
  .preferences-body { padding: 0 18px 14px; }
  .preferences-body h2 { font-size: 28px; margin-bottom: 12px; }
  .preferences-language-card { padding: 13px 14px; }
  .preferences-language-description { margin-top: 11px; }
  .preferences-footer { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
}
@media (forced-colors: active) {
  .preferences-language-card { border-color: ButtonText; }
  .preferences-switch-visual { forced-color-adjust: none; background: Canvas; border-color: ButtonText; }
  .preferences-switch-visual::after { background: ButtonText; border-color: ButtonText; }
  .preferences-switch input:checked + .preferences-switch-visual { background: Highlight; border-color: Highlight; }
  .preferences-switch input:checked + .preferences-switch-visual::after { background: HighlightText; border-color: HighlightText; }
}
