/* Theme typography, colours and button radius are inherited; all rules are scoped. */
.gbe {
    --gbe-width: var(--wp--style--global--wide-size, 1200px);
    --gbe-accent: var(--wp--preset--color--primary, var(--wp--preset--color--contrast, currentColor));
    --gbe-line: color-mix(in srgb, currentColor 22%, transparent);
    --gbe-surface: var(--wp--preset--color--base, Canvas);
    --gbe-header-offset: 24px;
    --gbe-button-bg: var(--wp--preset--color--primary, var(--wp--preset--color--contrast, ButtonFace));
    --gbe-button-text: var(--wp--preset--color--base, ButtonText);
    width: min(var(--gbe-width), calc(100% - 48px)); margin: 0 auto;
    padding-block: clamp(32px, 6vw, 88px); font-family: inherit; line-height: 1.65;
}
.gbe *, .gbe *::before, .gbe *::after { box-sizing: border-box; }
.gbe h1, .gbe h2, .gbe h3, .gbe h4 { color: inherit; overflow-wrap: anywhere; }
.gbe h1 { font-size: clamp(2.25em, 5vw, 4.5em); line-height: 1.09; letter-spacing: -.035em; margin: 12px 0 24px; }
.gbe h2 { font-size: clamp(1.5em, 2.5vw, 2.125em); line-height: 1.25; margin: 0 0 24px; letter-spacing: -.02em; }
.gbe h3 { font-size: 1.2em; line-height: 1.35; margin: 0 0 12px; }
.gbe h4 { font-size: 1.05em; margin: 0 0 8px; }
.gbe p { margin-block: 0 16px; }
.gbe a { text-underline-offset: .22em; }
.gbe :where(a, button, input, summary):focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.gbe img { display: block; max-width: 100%; height: auto; }
.gbe .gbe-summary { font-size: clamp(1.1em, 1.6vw, 1.3em); max-width: 44em; }
.gbe .gbe-small { font-size: .875em; line-height: 1.6; }
.gbe .gbe-status { font-size: .875em; font-weight: 600; }
.gbe-back { display: inline-block; margin-bottom: 32px; }
.gbe-hero { margin: 0 0 clamp(32px, 5vw, 64px); }
.gbe-hero img { width: 100%; max-height: 65vh; object-fit: cover; object-position: 50% var(--gbe-focal, 50%); aspect-ratio: 2.4; }
.gbe-event-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.gbe-intro, .gbe-content { grid-column: 1; min-width: 0; }
.gbe-intro { grid-row: 1; padding-block: 12px 32px; }
.gbe-registration { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; min-width: 0; }
.gbe-registration-inner { border: 1px solid var(--gbe-line); padding: clamp(20px, 3vw, 32px); background: var(--gbe-surface); }
.gbe-registration[data-gbe-sticky=yes].gbe-can-stick .gbe-registration-inner { position: sticky; top: calc(var(--gbe-header-offset) + var(--wp-admin--admin-bar--height, 0px)); }
.gbe-registration h2 { font-size: 1.45em; }
.gbe-price { font-size: 1.75em; line-height: 1.4; margin-block: 20px 8px; }
.gbe-price del { font-size: 1em; }.gbe-price ins { text-decoration: none; }
.gbe-price small { display: block; font-size: .875em; }
.gbe-inclusions { padding-inline-start: 20px; margin-block: 20px 24px; }.gbe-inclusions li { padding-block: 3px; }
.gbe .gbe-register-form { display: grid; gap: 12px; margin-block: 20px 0; }
.gbe-register-form label { font-size: .875em; font-weight: 600; }
.gbe .quantity input.qty { width: 100%; max-width: 120px; min-height: 44px; text-align: start; padding: 8px 12px; font: inherit; }
.gbe .gbe-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 48px; padding: 12px 24px; font-weight: 600; line-height: 1.35; white-space: normal; border-radius: var(--gbe-button-radius, 0); background: var(--gbe-button-bg, ButtonFace); color: var(--gbe-button-text, ButtonText); border: 1px solid var(--gbe-button-border, transparent); cursor: pointer; }
.gbe .gbe-button:disabled { opacity: .65; cursor: wait; }
.gbe-facts { margin-block: 32px 0; }.gbe-facts > div { border-top: 1px solid var(--gbe-line); padding-block: 16px; display: grid; grid-template-columns: 70px 1fr; gap: 16px; }
.gbe-facts dt { font-size: .8em; font-weight: 600; }.gbe-facts dd { margin: 0; }
.gbe-section { border-top: 1px solid var(--gbe-line); padding-block: clamp(32px, 5vw, 56px); scroll-margin-top: calc(var(--gbe-header-offset) + 20px); overflow-wrap: anywhere; }
.gbe-section > :last-child { margin-bottom: 0; }.gbe-section > img { margin-top: 24px; }
.gbe-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.gbe-speakers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.gbe-speaker img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 20px; }
.gbe-agenda { padding: 0; margin: 0 0 32px; list-style: none; }.gbe-agenda li { display: grid; grid-template-columns: 105px 1fr; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--gbe-line); }.gbe-agenda-time { font-variant-numeric: tabular-nums; font-size: .875em; }
.gbe-faq + .gbe-faq { margin-top: 28px; }.gbe-section address { font-style: normal; margin-bottom: 20px; }
.gbe-section .alignwide, .gbe-section .alignfull { max-width: 100%; margin-inline: 0; }
.gbe-archive-intro { max-width: 800px; margin-bottom: clamp(48px, 7vw, 96px); }
.gbe-archive-section { margin-bottom: 64px; }.gbe-archive-section > h2 { border-top: 1px solid var(--gbe-line); padding-top: 28px; }
.gbe-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gbe-card { display: flex; flex-direction: column; border: 1px solid var(--gbe-line); min-width: 0; }
.gbe-card-image { display: block; }.gbe-card-image img { aspect-ratio: 1.6; width: 100%; object-fit: cover; }
.gbe-card-body { display: flex; flex-direction: column; padding: clamp(20px, 2.5vw, 32px); flex: 1; }
.gbe-card h3 { font-size: clamp(1.35em, 2vw, 1.8em); letter-spacing: -.02em; }.gbe-card h3 a { color: inherit; text-decoration: none; }.gbe-card h3 a:hover { text-decoration: underline; }
.gbe-card-date { font-weight: 600; }.gbe-card-bottom { padding-top: 24px; margin-top: auto; }.gbe-card-bottom > a { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.gbe-archive-section nav { display: flex; gap: 16px; margin-top: 24px; }
.gbe-mobile-bar { display: none; }.gbe [hidden] { display: none; }
@media(max-width:1050px){.gbe-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.gbe-event-grid{grid-template-columns:minmax(0,1fr) 300px;gap:32px}}
@media(max-width:760px){
    .gbe { width: calc(100% - 32px); padding-block: 32px 48px; }
    .gbe-event-grid { display: flex; flex-direction: column; gap: 12px; }.gbe-intro,.gbe-registration,.gbe-content{width:100%}
    .gbe-intro{padding-bottom:16px}.gbe-registration[data-gbe-sticky=yes].gbe-can-stick .gbe-registration-inner{position:static}
    .gbe-content{margin-top:24px}.gbe-cards{grid-template-columns:1fr}.gbe-speakers{gap:24px}.gbe-benefits{grid-template-columns:1fr}
    .gbe-mobile-bar:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:16px;position:fixed;inset:auto 0 0;z-index:100;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--gbe-line);background:var(--gbe-surface)}
    .gbe-mobile-bar > span{font-size:.95em;line-height:1.3}.gbe-mobile-bar .gbe-button{padding:12px 16px;flex-shrink:0}.gbe-mobile-bar small{display:block;font-size:.75em}
    .gbe-event.gbe-has-mobile{padding-bottom:calc(120px + env(safe-area-inset-bottom))}.gbe-hero img{aspect-ratio:1.6}.gbe-agenda li{grid-template-columns:80px 1fr;gap:12px}
    #gbe-registration{scroll-margin-top:calc(var(--gbe-header-offset) + 16px)}
}
@media(max-width:420px){.gbe-speakers{grid-template-columns:1fr}.gbe-facts>div{grid-template-columns:1fr;gap:4px}}
@media(prefers-reduced-motion:reduce){.gbe *{scroll-behavior:auto;transition:none;animation:none}}
@media print{.gbe-registration,.gbe-mobile-bar,.gbe-back{display:none}.gbe-event-grid{display:block}.gbe{width:100%;padding:0}}
.gbe-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}
.gbe-gallery img{width:100%;height:auto}@media(max-width:500px){.gbe-gallery{grid-template-columns:1fr}}
/* Guten's header opens the content container. Keep its header/footer grid, and give this template one set of gutters. */
body.gbe-page.theme-guten #content.content-container{max-width:none;padding-inline:0}
body.gbe-page .gbe button.gbe-button,body.gbe-page .gbe a.gbe-button{background:var(--gbe-button-bg,ButtonFace);color:var(--gbe-button-text,ButtonText);border-radius:var(--gbe-button-radius,0)}
/* Keep text links readable even when a theme's accent colour has low contrast on its page surface. */
.gbe a:not(.gbe-button){color:inherit}

/* Day columns use the full event width; the mobile reading order remains Day 1 then Day 2. */
.gbe-programme-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(24px,4vw,56px);align-items:start}
.gbe-programme-days--single{grid-template-columns:minmax(0,1fr)}
.gbe-programme-day{min-width:0}.gbe-programme-day>h3{padding-bottom:20px;border-bottom:1px solid var(--gbe-line)}
.gbe-programme-day .gbe-agenda li{grid-template-columns:85px minmax(0,1fr)}
.gbe-wide-content{min-width:0}.gbe-wide-content>.gbe-section:not(.gbe-section-programme):not(.gbe-section-venue){max-width:820px}
.gbe-visual-slot{margin:24px 0 0}.gbe-visual-slot.gbe-hero{margin:0 0 clamp(32px,5vw,64px)}
.gbe-visual-slot img{width:100%;object-position:50% var(--gbe-focal,50%)}
.gbe-image-placeholder{min-height:210px;aspect-ratio:16/9;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:16px;padding:32px;border:1px dashed var(--gbe-line);background:color-mix(in srgb,currentColor 4%,var(--gbe-surface));color:inherit}
.gbe-hero .gbe-image-placeholder{aspect-ratio:2.4;min-height:220px}.gbe-image-placeholder svg{width:64px;height:auto;opacity:.6}
.gbe .gbe-image-placeholder p{max-width:44ch;margin:0;font-size:1em;line-height:1.5}.gbe-image-placeholder span{font-size:.875em}
.gbe-venue-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}.gbe-venue-grid .gbe-visual-slot{margin-top:0}
.gbe-announcement{padding:32px;border:1px solid var(--gbe-line)}.gbe-announcement>:last-child{margin-bottom:0}
@media(max-width:900px){.gbe-programme-days,.gbe-venue-grid{grid-template-columns:minmax(0,1fr)}.gbe-programme-day .gbe-agenda li{grid-template-columns:80px minmax(0,1fr)}}
@media(max-width:760px){.gbe-hero .gbe-image-placeholder{aspect-ratio:1.6;min-height:200px}.gbe-image-placeholder{padding:24px}.gbe-announcement{padding:24px}}

.gbe-agenda li.gbe-untimed{grid-template-columns:minmax(0,1fr)}

/* Optional rooms remain separate native WooCommerce lines; choices are one room per ticket. */
.gbe-stays{min-width:0;border:0;padding:0;margin:16px 0}.gbe-stays legend{font-size:18px;font-weight:600;padding:0;margin-bottom:12px}
.gbe .gbe-stay{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-top:1px solid var(--gbe-line);font-weight:400;cursor:pointer}.gbe-stay>span{min-width:0;flex:1}.gbe-stay>span>span{display:block;font-size:14px;line-height:1.55;margin-top:4px}.gbe-stay input[type=checkbox]{width:20px;height:20px;min-width:20px;margin:4px 0 0;accent-color:var(--gbe-button-bg)}.gbe-stay:has(input:disabled){opacity:.65;cursor:default}
.gbe-booking-total{border-top:1px solid var(--gbe-line);padding-top:16px}.gbe-booking-total output{font:inherit}.gbe-booking-total p{margin-top:6px}
