/*
 * BannerBerth 1.5.3 front end.
 *
 * Theme-native: buttons, cards, headings, forms, tables and alerts take their look from the theme
 * (Gutenberg/Blocksy: .wp-element-button and theme.json presets; Bootstrap themes such as BlockStrap:
 * Bootstrap's own classes, added in the markup by BannerBerth). This file only lays things out and
 * styles what the plugin has to design itself: banner frames, the availability calendar (green =
 * Available, red = Booked) and its key, the featured-events rows and the sponsored slider.
 *
 * Every rule sits in :root :where(...) so its specificity is 0-1-0 and Global Styles, the Customizer
 * or theme CSS can override it. Colours come from theme presets with fallbacks; status colours are
 * meaning (Available / On hold / Booked), not decoration.
 */

/* ---------- tokens ---------- */
:root :where(.bberth-ui, .bberth-slot, .bberth-feat, .bberth-spc, .bberth-sps, .bberth-acal, .bberth-disclosure){
	--bberth-gap:var(--wp--preset--spacing--40, var(--wp--style--block-gap, 1.25rem));
	--bberth-gap-s:var(--wp--preset--spacing--20, .5rem);
	--bberth-line:color-mix(in srgb, currentColor 16%, transparent);
	--bberth-soft:color-mix(in srgb, currentColor 5%, transparent);
	--bberth-muted-o:.75;
	--bberth-radius:var(--wp--custom--border-radius, var(--theme-border-radius, .375rem));
	--bberth-accent:var(--wp--preset--color--primary, var(--wp--preset--color--palette-color-1, var(--theme-palette-color-1, var(--bs-primary, currentColor))));
	--bberth-ok:var(--wp--preset--color--vivid-green-cyan, #198754);
	--bberth-no:var(--wp--preset--color--vivid-red, #c4232f);
	--bberth-wait:var(--wp--preset--color--luminous-vivid-amber, #a06d00);
	--bberth-ok-day:#198754;
	--bberth-no-day:#c4232f;
}
:root :where(.bberth-ui, .bberth-ui *){box-sizing:border-box}
:root :where(.bberth-ui [hidden], .bberth-ui[hidden]){display:none !important}
:root :where(.bberth-sr){position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:root :where(.bberth-hp){position:absolute !important;left:-9999px !important;height:1px;overflow:hidden}
:root :where(.bberth-small, .bberth-form small){display:block;font-size:var(--wp--preset--font-size--small, .875em);opacity:var(--bberth-muted-o);margin-block-start:.3em}

/* ---------- banner units (the ad-slot frame) ---------- */
:root :where(.bberth-slot){display:block;max-width:100%;margin:var(--bberth-gap) auto;clear:both;line-height:0}
:root :where(.bberth-slot--ad, .bberth-slot--affiliate){position:relative}
:root :where(.bberth-slot > a, .bberth-slot > img){display:block;overflow:hidden;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04)}
:root :where(.bberth-slot img){display:block;width:100%;height:auto;max-width:100%;aspect-ratio:var(--bberth-ar, auto);object-fit:cover;margin:0}
:root :where(.bberth-label){display:block;line-height:1.4;font-size:var(--wp--preset--font-size--x-small, .6875rem);letter-spacing:.04em;text-transform:uppercase;opacity:var(--bberth-muted-o);margin:0 0 .25rem;text-align:start;pointer-events:none;user-select:none}
/* 1.5.11: slot name on unbooked banners (never on a paying customer's banner). */
:root :where(.bberth-slotname){display:block;line-height:1.4;font-size:var(--wp--preset--font-size--x-small, .6875rem);opacity:var(--bberth-muted-o);margin:-.2rem 0 .25rem;text-align:start;pointer-events:none;user-select:none}
:root :where(.bberth-house-text){display:flex;flex-direction:column;gap:.25em;align-items:center;justify-content:center;aspect-ratio:var(--bberth-ar, auto);min-height:4.5rem;line-height:1.4;border:1px dashed currentColor;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04);opacity:.8;text-decoration:none;font-weight:600;padding:1em;text-align:center;color:inherit}
:root :where(.bberth-house-text:hover, .bberth-house-text:focus-visible){opacity:1}
:root :where(.bberth-house-text small){font-weight:400;font-size:.8em}
:root :where(.bberth-rotate){max-width:100%}
:root :where(.bberth-rotate > template){display:none}
:root :where(.bberth-slot--adsense){min-height:90px;aspect-ratio:var(--bberth-ar, auto);overflow:visible}
:root :where(.bberth-slot--adsense.is-waiting, .bberth-slot--adsense.is-unfilled, .bberth-consent-fallback.is-off){display:none !important}
:root :where(.bberth-adsense-pair > .bberth-consent-fallback > .bberth-slot){margin-block-start:0}
:root :where(.bberth-plain-note){margin:1rem 0;font-size:var(--wp--preset--font-size--small, .875rem);text-align:center}
@media print{:root :where(.bberth-noprint, .bberth-slot){display:none !important}}

/* ---------- layout helpers shared by cards, sections and forms ---------- */
:root :where(.bberth-ui.bberth-section, .bberth-ui.bberth-services, .bberth-ui.bberth-pricing, .bberth-ui.bberth-cals, .bberth-ui.bberth-table-wrap, .bberth-acal){margin-block:0 var(--bberth-gap)}
:root :where(.bberth-actions, .bberth-renew, .bberth-subscribe, .bberth-range){display:flex;flex-wrap:wrap;gap:var(--bberth-gap-s);align-items:center}
:root :where(.bberth-actions){margin-block-start:var(--bberth-gap)}
:root :where(.bberth-subscribe){margin-block-start:var(--bberth-gap)}
:root :where(.bberth-subscribe .bberth-small){flex-basis:100%;margin:0}
:root :where(.bberth-subscribe__label){font-weight:600}
:root :where(.bberth-range){align-items:end;margin-block-end:1em}

/* Buttons: the theme's own button (.wp-element-button / Bootstrap .btn) is added in the markup.
   Only the outline variant and the "no theme" fallback are drawn here, from currentColor. */
:root :where(.bberth-btn){font-family:inherit;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.4em;text-align:center}
/* 1.5.4: font-family:inherit at zero specificity: the theme's own button font (Blocksy --theme-button-font-family, Bootstrap --bs-btn-font-family) still wins; only the browser's system-font default for <button> is replaced. */
:root :where(.bberth-btn--outline:not(.btn)){padding:.5em 1em;border:1px solid currentColor;border-radius:var(--bberth-radius);background:transparent;color:var(--bberth-accent);font:inherit;line-height:1.4}
:root :where(.bberth-btn--outline:not(.btn):hover, .bberth-btn--outline:not(.btn):focus-visible){text-decoration:underline}
:root :where(.bberth-btn--sm:not(.btn)){font-size:var(--wp--preset--font-size--small, .875em)}
:root :where(.bberth-btn--block){display:flex;width:100%}
:root :where(.bberth-btn-group){display:inline-flex;flex-wrap:wrap;gap:var(--bberth-gap-s)}

/* Cards: grid with auto-fit; the box itself is a light frame in currentColor (Bootstrap themes get .card). */
:root :where(.bberth-ui .bberth-cards, .bberth-ui.bberth-services){display:grid;gap:var(--bberth-gap);grid-template-columns:repeat(auto-fit, minmax(min(100%, 16rem), 1fr))}
:root :where(.bberth-ui .bberth-card:not(.card), .bberth-card-bs:not(.card)){display:flex;flex-direction:column;min-width:0;border:1px solid var(--bberth-line);border-radius:var(--bberth-radius);padding:0}
:root :where(.bberth-ui .bberth-card:not(.card) .bberth-card__header, .bberth-ui .bberth-card:not(.card) .bberth-card__body, .bberth-ui .bberth-card:not(.card) .bberth-card__footer){padding:var(--bberth-gap)}
:root :where(.bberth-ui .bberth-card:not(.card) .bberth-card__header){border-block-end:1px solid var(--bberth-line)}
:root :where(.bberth-ui .bberth-card:not(.card) .bberth-card__footer){border-block-start:1px solid var(--bberth-line)}
:root :where(.bberth-card-bs:not(.card)){padding:var(--bberth-gap)}
:root :where(.bberth-ui .bberth-card__body){flex:1 1 auto}
:root :where(.bberth-ui .bberth-card__title){margin:0 0 .5em}
:root :where(.bberth-ui .bberth-card__header .bberth-card__title){margin:0}
:root :where(.bberth-ui .bberth-card__text){margin:0 0 1em}
:root :where(.bberth-card__facts){display:grid;grid-template-columns:max-content 1fr;gap:.25em 1em;margin:0 0 1em}
:root :where(.bberth-card__facts dt){font-weight:600}
:root :where(.bberth-card__facts dd){margin:0;overflow-wrap:anywhere}
:root :where(.bberth-card__img img){max-width:100%;height:auto}
:root :where(.bberth-card__meta, .bberth-price__extra, .bberth-price__per, .bberth-price__from){opacity:var(--bberth-muted-o)}
:root :where(.bberth-price){margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.35em;line-height:1.2}
:root :where(.bberth-price__amount){font-size:var(--wp--preset--font-size--x-large, clamp(1.5rem, 1.2rem + 1vw, 2rem));font-weight:700}
:root :where(.bberth-price__amount--text){font-size:var(--wp--preset--font-size--large, 1.25rem)}
:root :where(.bberth-checks){list-style:none;margin:1em 0 0;padding:0;display:grid;gap:.5em}
:root :where(.bberth-checks li){padding-inline-start:1.5em;position:relative}
:root :where(.bberth-checks li)::before{content:"\2713";position:absolute;inset-inline-start:0;color:var(--bberth-ok);font-weight:700}
:root :where(.bberth-field--features){margin:.5rem 0}

/* Status pills / badges: words always shown, colour only adds meaning. */
:root :where(.bberth-pill:not(.badge), .bberth-badge-bs:not(.badge), .bberth-chip){display:inline-flex;align-items:center;font-size:var(--wp--preset--font-size--small, .8125rem);font-weight:600;line-height:1.2;padding:.25em .65em;border-radius:999px;border:1px solid currentColor;white-space:nowrap}
:root :where(.bberth-pill--booked:not(.badge), .bberth-badge-bs--danger:not(.badge)){color:var(--bberth-no)}
:root :where(.bberth-pill--hold:not(.badge), .bberth-badge-bs--warning:not(.badge)){color:var(--bberth-wait)}
:root :where(.bberth-pill--free:not(.badge), .bberth-pill--partly:not(.badge), .bberth-badge-bs--success:not(.badge)){color:var(--bberth-ok)}
:root :where(.bberth-badge){display:inline-flex;flex-direction:column;gap:.15em}
:root :where(.bberth-badge__text){font-weight:600}
:root :where(.bberth-badge__detail){font-size:.85em;opacity:var(--bberth-muted-o)}
:root :where(.bberth-badge__detail:empty){display:none}
:root :where(.bberth-badge--available .bberth-badge__text){color:var(--bberth-ok)}
:root :where(.bberth-badge--taken .bberth-badge__text){color:var(--bberth-no)}
:root :where(.bberth-badge--renewal .bberth-badge__text, .bberth-badge--booked .bberth-badge__text){color:var(--bberth-wait)}

/* Notices and alerts (Bootstrap themes get .alert). */
:root :where(.bberth-notice:not(.alert), .bberth-alert:not(.alert), .bberth-sponsored-note, .bberth-next){padding:.75em 1em;border-inline-start:4px solid currentColor;background:var(--bberth-soft);margin:0 0 1em}
:root :where(.bberth-notice--error:not(.alert), .bberth-alert--danger:not(.alert)){border-inline-start-color:var(--bberth-no)}
:root :where(.bberth-notice--ok:not(.alert), .bberth-alert--success:not(.alert), .bberth-next){border-inline-start-color:var(--bberth-ok)}
:root :where(.bberth-alert--warning:not(.alert)){border-inline-start-color:var(--bberth-wait)}
:root :where(.bberth-notice:focus){outline:2px solid currentColor;outline-offset:2px}
:root :where(.bberth-sponsored-label){display:inline-block;font-size:.75em;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:.1em .55em;margin-inline-end:.4em;border:1px solid currentColor;border-radius:999px}

/* ---------- forms: the theme draws the fields; BannerBerth only stacks them ---------- */
:root :where(.bberth-form){max-width:100%}
:root :where(.bberth-form p){margin:0 0 1em}
:root :where(.bberth-form label){display:block;font-weight:600;margin-block-end:.3em}
:root :where(.bberth-form label:has(input[type=checkbox]), .bberth-form .bberth-type-choice){font-weight:400}
:root :where(.bberth-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), .bberth-form select, .bberth-form textarea){width:100%;max-width:100%;font:inherit}
/* 1.5.3: no fixed height (it clipped the slot list on phones); only a minimum, so long labels fit. */
:root :where(.bberth-form select){height:auto;min-height:2.75em;line-height:1.4;padding-block:.5em;white-space:normal;text-overflow:ellipsis}
:root :where(.bberth-form textarea){min-height:6em}
:root :where(.bberth-form input[type=file]){max-width:100%;min-width:0;width:100%}
:root :where(.bberth-form input[type=checkbox], .bberth-form input[type=radio]){width:auto;margin-inline-end:.4em;vertical-align:middle}
:root :where(.bberth-form fieldset){border:0;margin:0;padding:0;min-width:0}
:root :where(.bberth-form .bberth-types, .bberth-form .bberth-interest){margin:0 0 1.25em;padding:.75em 1em;border:1px solid var(--bberth-line);border-radius:var(--bberth-radius)}
:root :where(.bberth-form .bberth-types legend){font-weight:600;padding:0 .3em}
:root :where(.bberth-form .bberth-type-choice){display:block;margin:.35em 0}
:root :where(.bberth-form .bberth-admin-only){font-size:.8em;opacity:var(--bberth-muted-o)}
:root :where(.bberth-part__price){padding:.6em .8em;background:var(--bberth-soft);border-radius:var(--bberth-radius)}
:root :where(.bberth-catpick[hidden]){display:none !important}
:root :where(.bberth-form, .bberth-notice, .bberth-cals, .bberth-table-wrap, .bberth-form [id^=bb-], #bberth-request, #bberth-thanks, #bberth-error, #bberth-availability, #bberth-calendar){scroll-margin-top:var(--bberth-anchor-offset, 120px)}
:root :where(.bberth-waitlist){margin-block-start:.5em;font-size:var(--wp--preset--font-size--small, .9em)}
:root :where(.bberth-waitlist summary){cursor:pointer}
:root :where(.bberth-art){margin-block-start:.75rem}
:root :where(.bberth-art > summary){list-style:none;display:inline-flex}
:root :where(.bberth-art > summary)::-webkit-details-marker{display:none}

/* ---------- availability table (the theme draws the table; Bootstrap themes get .table) ---------- */
:root :where(.bberth-table-wrap){overflow-x:auto}
:root :where(.bberth-table){width:100%;border-collapse:collapse}
:root :where(.bberth-table:not(.table) th, .bberth-table:not(.table) td){text-align:start;padding:.6em .5em;vertical-align:top}
:root :where(.bberth-table__name){display:block;font-weight:600}
:root :where(.bberth-table__note){display:block;font-size:.85em;opacity:var(--bberth-muted-o)}
:root :where(.bberth-table .bberth-table__avail){text-align:end}
:root :where(.bberth-avail){display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}
:root :where(.bberth-ui [data-bberth-state="available"] .bberth-badge){display:none}
:root :where(.bberth-ui tr:not([data-bberth-state="available"]) .bberth-avail__go){display:none}
@media (max-width:600px){
	:root :where(.bberth-table thead){display:none}
	:root :where(.bberth-table, .bberth-table tbody, .bberth-table tr, .bberth-table td){display:block;width:100%}
	:root :where(.bberth-table tr){padding:.75em 0;border-block-end:1px solid var(--bberth-line)}
	:root :where(.bberth-table td){padding:.15em 0;text-align:start}
	:root :where(.bberth-table td[data-label]:not(.bberth-table__slot):not(.bberth-table__avail))::before{content:attr(data-label) ": ";font-weight:600}
	:root :where(.bberth-avail){align-items:flex-start}
}

/* ---------- month lists (banner slots, sponsored articles, featured events) ---------- */
:root :where(.bberth-ui.bberth-cals){display:grid;gap:var(--bberth-gap)}
:root :where(.bberth-cal){border:1px solid var(--bberth-line);border-radius:var(--bberth-radius);padding:var(--bberth-gap)}
:root :where(.bberth-cal__title){margin:0 0 .25em}
:root :where(.bberth-cal__where, .bberth-cal__detail){opacity:var(--bberth-muted-o)}
:root :where(.bberth-cal__where){margin:0 0 1em}
:root :where(.bberth-cal__months){list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 15rem), 1fr));gap:0 var(--bberth-gap)}
:root :where(.bberth-cal__m){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5em 1em;padding:.75em 0;border-block-end:1px solid var(--bberth-line);line-height:1.3}
:root :where(.bberth-cal__left){display:flex;flex-direction:column;min-width:0}
:root :where(.bberth-cal__name){font-weight:600}
:root :where(.bberth-cal__detail, .bberth-cal__state){font-size:var(--wp--preset--font-size--small, .85em)}
:root :where(.bberth-cal__cta){margin-block-start:1em}

/* ---------- central availability calendar (plugin-designed: grid, weekday row, day cells, status colours, key) ---------- */
:root :where(.bberth-acal__title){margin:0 0 .25em}
:root :where(.bberth-acal__lead){margin:0 0 1em;opacity:var(--bberth-muted-o)}
:root :where(.bberth-nav-pills){display:flex;flex-wrap:wrap;gap:var(--bberth-gap-s);margin:0 0 1em;padding:0}
:root :where(.bberth-nav-link:not(.nav-link)){display:inline-flex;align-items:center;gap:.4em;font:inherit;line-height:1.4;padding:.4em .85em;border:1px solid var(--bberth-line);border-radius:999px;background:transparent;color:inherit;cursor:pointer}
:root :where(.bberth-nav-link:not(.nav-link)[aria-pressed="true"]){border-color:currentColor;font-weight:700;background:var(--bberth-soft)}
:root :where(.bberth-key){display:inline-flex;align-items:center;justify-content:center;min-width:1.35em;height:1.35em;padding:0 .2em;border-radius:.25em;border:1px solid currentColor;font-size:.75em;font-weight:700;line-height:1}
:root :where(.bberth-acal__legend){display:flex;flex-wrap:wrap;gap:.5em 1em;list-style:none;margin:0 0 1em;padding:0;align-items:center}
:root :where(.bberth-acal__legend .bberth-badge-bs:not(.badge)){color:#fff;border-color:transparent}
:root :where(.bberth-acal__legend .bberth-badge-bs--success:not(.badge)){background:var(--bberth-ok-day)}
:root :where(.bberth-acal__legend .bberth-badge-bs--danger:not(.badge)){background:var(--bberth-no-day)}
:root :where(.bberth-acal__months){display:grid;gap:var(--bberth-gap);grid-template-columns:repeat(auto-fit, minmax(min(100%, 18rem), 1fr))}
:root :where(.bberth-acal--compact .bberth-acal__months){grid-template-columns:repeat(auto-fit, minmax(min(100%, 16rem), 1fr))}
:root :where(.bberth-acal__month){margin:0;min-width:0}
:root :where(.bberth-acal__mname){margin:0 0 .75em}
:root :where(.bberth-acal__grid){display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));gap:clamp(2px, .6vw, .25rem)}
:root :where(.bberth-acal__wd){font-size:clamp(.6rem, 2.4vw, .72rem);font-weight:700;text-transform:uppercase;letter-spacing:.02em;opacity:var(--bberth-muted-o);text-align:center;padding:.25em 0;overflow:hidden;text-overflow:clip}
:root :where(.bberth-acal__d){min-width:0;min-height:clamp(2.4rem, 9vw, 3.1rem);border:1px solid var(--bberth-line);border-radius:.3rem;padding:clamp(1px, .5vw, .2rem);display:flex;flex-direction:column;gap:2px}
:root :where(.bberth-acal__d--pad){border:0;background:transparent}
:root :where(.bberth-acal__d--past){opacity:.45}
:root :where(.bberth-acal__n){font-size:clamp(.62rem, 2.6vw, .75rem);font-weight:600;line-height:1}
/* 1.5.3: the day keys wrap instead of shrinking to nothing, and the letters always stay readable on phones. */
:root :where(.bberth-acal__chips){display:flex;flex-wrap:wrap;gap:1px;min-width:0}
:root :where(.bberth-acal__chip){flex:1 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:1.05em;padding:.05em .12em;border-radius:.2rem;font-size:clamp(.56rem, 2.5vw, .66rem);font-weight:700;line-height:1.1;text-decoration:none;color:#fff;overflow:visible}
:root :where(.bberth-acal__chip.is-free){background:var(--bberth-ok-day)}
:root :where(.bberth-acal__chip.is-booked){background:var(--bberth-no-day);cursor:default}
:root :where(a.bberth-acal__chip.is-free:hover, a.bberth-acal__chip.is-free:focus-visible){outline:2px solid var(--bberth-ok-day);outline-offset:1px}
/* Filtered view: only the chosen service, and the whole day turns green or red. */
:root :where(.bberth-acal:not([data-filter="all"]) .bberth-acal__chip){display:none}
:root :where(.bberth-acal[data-filter="banner"] .bberth-acal__chip--banner, .bberth-acal[data-filter="article"] .bberth-acal__chip--article, .bberth-acal[data-filter="event"] .bberth-acal__chip--event){display:inline-flex;flex:1 1 auto;min-height:1.3em}
:root :where(.bberth-acal[data-filter="banner"] .bberth-acal__d[data-banner="free"], .bberth-acal[data-filter="article"] .bberth-acal__d[data-article="free"], .bberth-acal[data-filter="event"] .bberth-acal__d[data-event="free"]){background:color-mix(in srgb, var(--bberth-ok-day) 18%, transparent);border-color:color-mix(in srgb, var(--bberth-ok-day) 45%, transparent)}
:root :where(.bberth-acal[data-filter="banner"] .bberth-acal__d[data-banner="booked"], .bberth-acal[data-filter="article"] .bberth-acal__d[data-article="booked"], .bberth-acal[data-filter="event"] .bberth-acal__d[data-event="booked"]){background:color-mix(in srgb, var(--bberth-no-day) 15%, transparent);border-color:color-mix(in srgb, var(--bberth-no-day) 40%, transparent)}
:root :where(.bberth-acal:not([data-filter="all"]) .bberth-acal__chip span[aria-hidden]){visibility:hidden}
:root :where(.bberth-acal__foot){margin-block-start:1em}
:root :where(.bberth-acal-link){margin:.75rem 0 1.5rem}

/* ---------- featured events (rows like The Events Calendar list view) ---------- */
:root :where(.bberth-feat){display:block;clear:both;position:relative;width:100%;margin-block:var(--bberth-gap) calc(var(--bberth-gap) * 2)}
:root :where(.bberth-feat__title){margin:0 0 1rem}
:root :where(.bberth-feat__list){list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-block-end:1px solid var(--bberth-line)}
:root :where(.bberth-feat__row){display:grid;grid-template-columns:3.5rem minmax(0, 12.5rem) minmax(0, 1fr);gap:var(--bberth-gap);align-items:start;padding-block:var(--bberth-gap);border-block-start:1px solid var(--bberth-line);margin:0}
:root :where(.bberth-feat__row[hidden]){display:none}
:root :where(.bberth-feat__day){display:flex;flex-direction:column;align-items:center;line-height:1.1;padding-top:.15rem}
:root :where(.bberth-feat__wd){font-size:var(--wp--preset--font-size--x-small, .75rem);font-weight:600;text-transform:uppercase;letter-spacing:.06em;opacity:var(--bberth-muted-o)}
:root :where(.bberth-feat__dn){font-size:var(--wp--preset--font-size--x-large, clamp(1.35rem, 1rem + 1.2vw, 1.65rem));font-weight:700}
:root :where(.bberth-feat__media){position:relative;display:block;aspect-ratio:16/9;border-radius:var(--bberth-radius);overflow:hidden;background:var(--bberth-soft)}
:root :where(.bberth-feat__img){position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;margin:0}
:root :where(.bberth-feat__badge){position:absolute;top:.45rem;inset-inline-start:.45rem;background:var(--wp--preset--color--contrast, #101828);color:var(--wp--preset--color--base, #fff);font-size:.6875rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:.15rem .45rem;border-radius:4px;line-height:1.3}
:root :where(.bberth-feat__body){min-width:0}
:root :where(.bberth-feat__when, .bberth-feat__name, .bberth-feat__venue){margin:0 0 .3rem}
:root :where(.bberth-feat__when){font-weight:600;font-size:var(--wp--preset--font-size--small, .875rem)}
:root :where(.bberth-feat__venue, .bberth-feat__excerpt){font-size:var(--wp--preset--font-size--small, .9375rem);opacity:.85}
:root :where(.bberth-feat__excerpt){margin:0}
:root :where(.bberth-feat__name a){text-decoration:none}
:root :where(.bberth-feat__name a:hover, .bberth-feat__name a:focus-visible){text-decoration:underline}
@media (max-width:640px){
	:root :where(.bberth-feat__row){grid-template-columns:2.75rem minmax(0, 1fr);gap:.75rem 1rem}
	:root :where(.bberth-feat__media){grid-column:2;grid-row:1}
	:root :where(.bberth-feat__body){grid-column:2}
	:root :where(.bberth-feat__day){grid-row:1 / span 2}
}

/* ---------- sponsored article card ---------- */
:root :where(.bberth-spc){margin-block:var(--bberth-gap)}
:root :where(.bberth-spc__title){margin:0 0 .9rem}
:root :where(.bberth-spc__card){display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 18rem), 1fr));gap:var(--bberth-gap);align-items:center}
:root :where(.bberth-spc__media){display:block;border-radius:var(--bberth-radius);overflow:hidden;background:var(--bberth-soft)}
:root :where(.bberth-spc__img){display:block;width:100%;height:auto;object-fit:contain;margin:0}
:root :where(.bberth-spc__meta, .bberth-spc__who){margin:0 0 .5rem;font-size:var(--wp--preset--font-size--small, .8125rem)}
:root :where(.bberth-spc__cat){margin-inline-start:.4rem}
:root :where(.bberth-spc__name){margin:0 0 .6rem}
:root :where(.bberth-spc__name a){text-decoration:none}
:root :where(.bberth-spc__excerpt){margin:0 0 .6rem}

/* ---------- sponsored slider (3 / 2 / 1 per view by available width) ---------- */
:root :where(.bberth-sps){margin-block:var(--bberth-gap);position:relative;container-type:inline-size}
:root :where(.bberth-sps__head){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 .75rem}
:root :where(.bberth-sps__title){margin:0}
:root :where(.bberth-sps__nav){display:flex;gap:.5rem}
:root :where(.bberth-sps__btn){width:2.5rem;height:2.5rem;border-radius:999px;border:1px solid var(--bberth-line);background:transparent;color:inherit;font-size:1.5rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0 0 3px}
:root :where(.bberth-sps__btn:hover, .bberth-sps__btn:focus-visible){border-color:currentColor}
:root :where(.bberth-sps__btn:disabled){opacity:.35;cursor:default}
:root :where(.bberth-sps__track){--bberth-per:3;list-style:none;margin:0;padding:0 0 .25rem;display:flex;gap:var(--bberth-gap);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;scrollbar-width:none}
:root :where(.bberth-sps__track)::-webkit-scrollbar{display:none}
:root :where(.bberth-sps__card){flex:0 0 calc((100% - (var(--bberth-per) - 1) * var(--bberth-gap)) / var(--bberth-per));min-width:0;margin:0;scroll-snap-align:start}
@container (max-width:52rem){:root :where(.bberth-sps__track){--bberth-per:2}}
@container (max-width:32rem){:root :where(.bberth-sps__track){--bberth-per:1}}
:root :where(.bberth-sps__card[hidden]){display:none}
:root :where(.bberth-sps__card a){display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
:root :where(.bberth-sps__media){position:relative;display:block;border-radius:var(--bberth-radius);overflow:hidden;background:var(--bberth-soft)}
:root :where(.bberth-sps__img){display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;margin:0;transition:transform .3s ease}
:root :where(.bberth-sps__card a:hover .bberth-sps__img){transform:scale(1.03)}
:root :where(.bberth-sps__label){position:absolute;top:.6rem;inset-inline-start:.6rem;background:var(--wp--preset--color--base, #fff);color:var(--wp--preset--color--contrast, #101828);font-weight:700;letter-spacing:.05em;text-transform:uppercase;font-size:.6875rem;line-height:1.4;padding:.15rem .5rem;border-radius:4px}
:root :where(.bberth-sps__body){display:flex;flex-direction:column;gap:.25rem;padding:.85rem .1rem 0}
:root :where(.bberth-sps__name){font-weight:700;line-height:1.3}
:root :where(.bberth-sps__card a:hover .bberth-sps__name){text-decoration:underline}
:root :where(.bberth-sps__who){font-size:var(--wp--preset--font-size--small, .8125rem);opacity:var(--bberth-muted-o)}
:root :where(.bberth-sps__dots){display:flex;justify-content:center;gap:.5rem;margin:1rem 0 0;padding:0;list-style:none}
:root :where(.bberth-sps__dot){width:.625rem;height:.625rem;border-radius:999px;border:0;padding:0;background:currentColor;opacity:.3;cursor:pointer;transition:opacity .2s, width .2s}
:root :where(.bberth-sps__dot[aria-current="true"]){opacity:1;width:1.5rem}
:root :where(.bberth-sps.is-static .bberth-sps__nav, .bberth-sps.is-static .bberth-sps__dots){display:none}
:root :where(.bberth-sps__more){margin:.75rem 0 0;text-align:end;font-size:var(--wp--preset--font-size--small, .875rem)}
@media (prefers-reduced-motion:reduce){:root :where(.bberth-sps__track){scroll-behavior:auto} :root :where(.bberth-sps__img){transition:none}}

/* ---------- advertiser dashboard and media kit ---------- */
:root :where(.bberth-ui.bberth-dash > .bberth-card){margin:0 0 var(--bberth-gap)}
:root :where(.bberth-dash__extras){margin-block-start:.5rem}
:root :where(.bberth-mk__head){display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;margin:0 0 1rem}
:root :where(.bberth-mk__title, .bberth-mk__h, .bberth-mk__aud h3){margin-block:0 .5em}
:root :where(.bberth-mk__h){margin-block-start:1.5em}
:root :where(.bberth-mk__terms){margin-block:1.5rem}
:root :where(.bberth-section__title){margin:0 0 .5rem}
:root :where(.bberth-section__intro){margin:0 0 1.25rem}
:root :where(.bberth-section__note){margin:.25rem 0 0}
:root :where(.bberth-hero__title){margin:0 0 .5rem}
:root :where(.bberth-hero__lead){margin:0 0 1rem}
:root :where(.bberth-faq__item){border-block-end:1px solid var(--bberth-line);padding-block:.75em}
:root :where(.bberth-faq__q){cursor:pointer;font-weight:600}
:root :where(.bberth-faq__a p){margin:.5em 0 0}
:root :where(ul.bberth-prices){margin:.5rem 0 1rem}

/* ---------- 1.5.3 automatic affiliate disclosure: small theme type, no card ---------- */
/* 1.5.6: the affiliate note is one quiet line in the theme's small text: no bar, background, border or band. */
/* 1.5.7: the meta note (under the date) has no extra fade, so on Blocksy it can match the date colour from ul.entry-meta. Bottom and last-resort notes keep opacity:.75. */
/* 1.5.8: 12px to match the Blocksy date (the previous .8125rem fallback was 13px). */
:root :where(.bberth-disclosure){font-size:12px;line-height:1.5;opacity:.75;margin-block:.75em 0;background:none;border:0}
:root :where(.bberth-disclosure--bottom, .bberth-disclosure--page){margin-block:1.5em 0}
:root :where(.bberth-disclosure--meta){opacity:1;font-size:12px}
:root :where(.bberth-disclosure-wrap){max-width:var(--wp--style--global--content-size, 100%);margin-inline:auto}
:root :where(.bberth-disclosure-wrap:not(.container)){padding-inline:1rem;box-sizing:border-box}

/* The Events Calendar resets headings, lists and paragraphs inside .tribe-common (0-1-1); keep the rows' spacing there. */
.tribe-common .bberth-feat__title{margin:0 0 1rem}
.tribe-common .bberth-feat__list{list-style:none;margin:0;padding:0}
.tribe-common .bberth-feat__when,.tribe-common .bberth-feat__name,.tribe-common .bberth-feat__venue{margin:0 0 .3rem}
