/* Optional local presentation. The original palette and layout remain the default. */
:root { --bn-text-scale: 1; scrollbar-gutter: stable; }
:root[data-bn-font="125"] { font-size: 125%; --bn-text-scale: 1.25; }
:root[data-bn-font="150"] { font-size: 150%; --bn-text-scale: 1.5; }
:root[data-bn-font="200"] { font-size: 200%; --bn-text-scale: 2; }
:root[data-bn-palette="light"] .brand { background: var(--brand-bg); border-radius: var(--radius-xs); }
:root:is([data-bn-palette="light"],[data-bn-palette="dark"]) .event-media-placeholder { background: var(--panel); }
:root[data-bn-spacing="true"] :where(main, .site-footer, .display-preferences) :is(p, li, dt, dd, address, label) { line-height: var(--leading-spacious); }
:root[data-bn-links="true"] :where(main, .site-header, .site-footer) a[href]:not(:where(.brand,.button,.control-button,.wp-block-button__link,[role="button"],.header-calendar,.concert-months a,.booking-day)) { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .2em; }
:root[data-bn-grayscale="true"] :where(main, .site-header, .site-footer, .display-preferences, .skip-link) { filter: grayscale(1); }
:root[data-bn-reduced-motion="true"] { scroll-behavior: auto; }
:root[data-bn-reduced-motion="true"] :where(main, .site-header, .site-footer, .display-preferences),
:root[data-bn-reduced-motion="true"] :where(main, .site-header, .site-footer, .display-preferences) *,
:root[data-bn-reduced-motion="true"] :where(main, .site-header, .site-footer, .display-preferences) *::before,
:root[data-bn-reduced-motion="true"] :where(main, .site-header, .site-footer, .display-preferences) *::after {
    transition: none !important; animation: none !important; scroll-behavior: auto !important;
}
.display-preferences-open { font: inherit; font-size: var(--text-sm); line-height: var(--leading-tight); background: transparent; color: var(--text); border: 0; padding: 9px; width: 44px; min-height: 44px; flex-shrink: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.display-preferences-open[hidden] { display: none !important; }
.display-preferences-menu { margin-top: var(--space-4); }
.display-preferences-open:hover { color:var(--gold); }
.has-display-dialog { overflow: hidden; }
.display-preferences {
    --control-radius: var(--radius-xs);
    --control-padding: var(--space-2) 10px;
    width: min(36rem, calc(100% - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    margin: auto; padding: var(--space-6); overflow: auto; overscroll-behavior: contain; scroll-behavior: auto;
    border: 1px solid var(--control-border); border-radius: var(--radius-lg); background: var(--bg); color: var(--text);
    font: var(--text-base)/var(--leading-body) var(--sans); box-shadow: var(--shadow-dialog);
}
.display-preferences::backdrop { background: #000b; }
.display-preferences-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: var(--space-4); margin-bottom: 18px; }
.display-preferences h2 { font: var(--weight-semibold) 1.75rem/1.25 var(--sans); margin: 0; overflow-wrap: anywhere; }
.display-preferences :is(.control-button, .form-control) { max-width: 100%; }
.display-preferences button { cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.display-preferences-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.display-preferences-fields > :nth-child(n+3) { grid-column: 1 / -1; }
.display-preferences-fields label { display: grid; min-width: 0; gap: 6px; font-weight: 600; }
.display-preferences select { width: 100%; font-weight: 400; }
.display-preferences .display-preferences-help { font-size: var(--text-control); color: var(--muted); margin: 0 0 var(--space-4); }
.display-preferences-options { margin: var(--space-2) 0 var(--space-5); padding: var(--space-3) 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.display-preferences-options legend { font-weight: 600; padding: 0 var(--space-3) 0 0; }
.display-preferences-options label { display: flex; align-items: start; gap: var(--space-3); padding-block: 10px; cursor: pointer; overflow-wrap: anywhere; }
.display-preferences-options input { accent-color: var(--gold); flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: .2em 0 0; }
.display-preferences-status { min-height: 1.6em; font-size: var(--text-control); }
.display-preferences-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); }
.display-preferences :focus-visible { outline: var(--focus-width) solid var(--gold); outline-offset: 3px; }
:root[data-bn-large-text="true"] .display-preferences-fields { grid-template-columns: minmax(0,1fr); }
@media(max-width:600px) { .display-preferences-fields { grid-template-columns: minmax(0,1fr); } }
@media(forced-colors:active) {
    :root[data-bn-grayscale="true"] :where(main, .site-header, .site-footer, .display-preferences, .skip-link) { filter: none; }
    .display-preferences-options input { accent-color: auto; }
}

/* Reserve the header slot; enhancement changes visibility, never its width. */
html:not(.has-display-controls) .display-preferences-open { visibility: hidden; }
