/* Bridges between the preview stylesheet and Bricks markup. */
#brx-header { position: sticky; top: 0; z-index: 50; }
#brx-header .site-header { position: static; }
#brx-content { display: block; }
/* Native Bricks nav menu, styled like the preview's .site-nav */
.site-nav-menu { flex-grow: 1; }
.site-nav-menu .bricks-nav-menu { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.site-nav-menu .bricks-nav-menu > li { margin: 0; }
.site-nav-menu .bricks-nav-menu > li > a { color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; line-height: inherit; }
.site-nav-menu .bricks-nav-menu > li > a:hover,
.site-nav-menu .bricks-nav-menu > li.current-menu-item > a { border-bottom-color: var(--tan, var(--accent)); }
.site-nav-menu .bricks-mobile-menu-toggle { color: var(--dark-fg); }
@media (max-width: 900px) { .site-nav-menu { flex-grow: 0; order: 2; margin-left: auto; } }
/* Bricks form, styled like the preview's .form/.field */
.bx-form { gap: 14px; }
.bx-form .form-group { padding: 0; font-size: 14px; font-weight: 600; }
.bx-form label { margin-bottom: 6px; display: block; }
.bx-form input:not([type=submit]):not([type=checkbox]):not([type=radio]), .bx-form select, .bx-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); width: 100%; line-height: 1.4; }
.bx-form textarea { min-height: 120px; }
.bx-form .submit-button-wrapper { margin-top: 6px; }
.bx-form button[type=submit] { font: inherit; font-weight: 700; cursor: pointer; }
/* Monogram built from two editable letters */
.monogram-box { position: relative; width: clamp(110px, 16vw, 200px); aspect-ratio: 120 / 170; background: #8d703b; justify-self: end; align-self: start; font-family: "Playfair Display", Georgia, serif; font-weight: 700; line-height: 1; container-type: inline-size; }
.monogram-box span { position: absolute; font-size: 76cqw; }
.monogram-box .m1 { left: 11%; top: 8%; color: #121212; }
.monogram-box .m2 { left: 43%; top: 45%; color: #fff; }
@media (max-width: 720px) { .monogram-box { width: 96px; justify-self: start; order: -1; } }
.rich-wrap > :first-child { margin-top: 0; }
.site-nav-menu .bricks-nav-menu > li { border: 0; padding: 0; }
.bx-form .form-group { width: 100%; }
.bx-form button[type=submit] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: var(--radius); font-size: 15px; letter-spacing: .5px; text-transform: uppercase; border: 2px solid var(--gold, var(--accent)); background: var(--gold, var(--accent)); color: var(--accent-fg, #fff); }
.bx-form button[type=submit]:hover { filter: brightness(1.08); }
.poster-event > a { display: block; }
.poster-text > :first-child { margin-top: 0; } .poster-text > :last-child { margin-bottom: 0; } .poster-text:empty { display: none; }
.poster-single img { width: 100%; height: auto; border-radius: var(--radius); }
.poster-single .btn { align-self: flex-start; }
/* Fallback for the What's On single-post hero on sites whose stylesheet has no type-only hero (zero specificity, so a site's own rule wins). */
:where(.page-hero-type) { padding-block: clamp(48px, 7vw, 96px) 8px; }
:where(.page-hero-type) h1 { margin: 6px 0 10px; }
/* Half-width Bricks form fields sit side by side: Bricks sets width:50% per field, so gutters come from padding, not gap */
.bx-form { column-gap: 0; margin-inline: -7px; }
.bx-form > .form-group, .bx-form > .submit-button-wrapper { padding-inline: 7px; }
@media (max-width: 600px) { .bx-form > .form-group { width: 100% !important; } }
.site-nav-menu .bricks-nav-menu > li { gap: 0; } /* Bricks li is a 2-column grid (link + empty submenu toggle); its gap widened every item */
/* Single event landing pages (poster + link back to What's On) */
.event-page img { width: 100%; max-width: 560px; height: auto; border-radius: var(--radius, 6px); }
/* Bricks wraps a linked image in <a class="brxe-image tag">; the preview stylesheets also use .tag for small pill labels,
   which drew a rounded border around linked images (What's On posters). Reset it for images only. */
.brxe-image.tag { border: 0; border-radius: 0; padding: 0; background: none; box-shadow: none; display: block; }
/* Hero H1 width: the preview capped hero headings at 11 to 14 characters. A wider default here; any Max width set on the
   heading in Bricks (Style > Layout) overrides it, and a line break typed in the heading text controls where it wraps. */
.hero h1.brxe-heading { max-width: 22ch; }
/* Photo galleries: one even grid with the same 4:3 crop for every photo. The preview's "wide" tiles spanned two
   columns but were forced square, which made them twice as tall as their neighbours and left holes in the grid. */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery > img, .gallery > .brxe-image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery > .wide { grid-column: auto; grid-row: auto; }
/* What's On posters: masonry columns, so each poster keeps its full shape (no cropping of the poster text) and the
   cards stack without gaps. Order runs down each column. */
.poster-list { display: block; columns: 3 280px; column-gap: 24px; }
.poster-list > .poster-event { break-inside: avoid; display: flex; margin: 0 0 32px; width: 100%; }
.poster-list > .poster-event img { height: auto; }
/* The loop's description is a Bricks text block (.poster-text), not a <p>, so the dark-section text colour never reached it */
.band-dark .poster-event .poster-text, .band-dark .poster-event .poster-text p { color: var(--dark-muted, rgba(255,255,255,.78)); }
.poster-event .poster-text, .poster-event .poster-text p { color: var(--fg-muted); }

/* Compliance pages: content copied from the old sites (build/compliance_apply.php) */
.compliance-content { width: 100%; max-width: 860px; }
:is(div, section):has(> .section h1, > div > .section h1) + .section.compliance { padding-top: 0; }
.compliance-content h2 { margin-top: 2.5rem; }
.compliance-content p { margin: 0 0 1em; }
.compliance-content a { overflow-wrap: anywhere; }
.compliance-content .rg-logo img { display: block; height: 72px; width: auto; max-width: 100%; object-fit: contain; background: #fff; padding: 8px; border-radius: 6px; }
.compliance-content .rg-gamesure { margin-bottom: 1.5rem; }
.compliance-content .rg-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1.25rem 0 2rem; }
.compliance-content .rg-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 10px; }
.compliance-content .rg-card p { margin: 0; }
.compliance-content .rg-card .rg-logo img { height: 64px; }

/* Footer social icons: default look for sites whose theme has no .socials styles (zero specificity, so a theme's own rules win) */
:where(.socials) { display: flex; gap: 10px; margin-top: 14px; }
:where(.socials a) { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 50%; color: inherit; transition: border-color .2s; }
:where(.socials a:hover) { border-color: currentColor; }
:where(.socials svg) { width: 18px; height: 18px; fill: currentColor; }

/* Phones and tablets: form fields at 16px, otherwise iPhone/iPad Safari zooms the page in when a field is tapped. */
@media (max-width: 1024px), (pointer: coarse) {
  .bx-form input:not([type=submit]):not([type=checkbox]):not([type=radio]), .bx-form select, .bx-form textarea { font-size: 16px; }
}

/* Mobile menu (Bricks' dark slide-out panel): white links. The sites' accent link colours were hard to read on it (Pink Hill's red: 2.4:1). */
.site-nav-menu .bricks-mobile-menu-wrapper a { color: #fff; }
.site-nav-menu .bricks-mobile-menu-wrapper .current-menu-item > a { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

/* Tablets: Bricks only switches to the hamburger below 768px, but from 768px to 900px the full menu wraps and runs into the header buttons.
   Hamburger up to 900px on every site (the header's mobile layout above already starts at 900px). Sites whose menu needs more room
   raise this in child-sites/<site>/site.css (Dorset, Settlement, Diamond Creek 1023px; Roxburgh Park 1179px). */
@media (max-width: 900px) {
  .site-nav-menu > .bricks-nav-menu-wrapper { display: none; }
  .site-nav-menu .bricks-mobile-menu-toggle { display: block; }
}
/* Long email addresses wrap instead of pushing the page sideways in narrow columns (e.g. contact details on tablets). */
a[href^="mailto:"] { overflow-wrap: anywhere; }
/* Button labels that need two lines split evenly ("Download bistro / menu (PDF)") instead of leaving one word alone on the second line, and stay centred. */
.btn, .bx-form button[type=submit] { text-wrap: balance; text-align: center; justify-content: center; }
/* Images inside a text column are badges or logos (e.g. Dorset's QTAB accreditation): show them whole, never cropped to the photo ratio. */
.feature .text img { aspect-ratio: auto; height: auto; object-fit: contain; width: auto; max-width: min(100%, 360px); }

/* Heading with a small coloured first line: <h3><span class="title-pre">Sports Bar</span> Menu</h3> (the heading still reads "Sports Bar Menu") */
.title-pre { display: block; font-size: .58em; letter-spacing: .08em; line-height: 1.2; color: var(--accent); margin-bottom: 4px; }
/* Short coloured line under a card heading (Text element with class card-tagline) */
.card-tagline { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; line-height: 1.4; margin: 2px 0 8px; }
/* On dark bands, match the site's dark-band label colour (Chase and Golden Nugget use --tan) */
.band-dark .card-tagline, .band-dark .title-pre { color: var(--tan, var(--accent)); }
