/*
 * Business Revival: layout and styling for websites that use this theme.
 * Colours, fonts and buttons come from theme.json (and the website's own Site Settings); this file adds the layout.
 * Measurements follow the reference design at a 1920px wide screen.
 */
.theme-business-revival {
  --br-blue: var(--primary);
  --br-cyan: var(--btn-bg, var(--color-two));
  letter-spacing: 0;
}

/* ---- Left navigation rail (measured from the reference at 1920px): 120px wide; home button, menu button, social icons; the links fly out beside it ---- */
.theme-business-revival { --br-rail: 120px; --br-fly: 320px; --br-line: #258fc7; }
.theme-business-revival > header.site-rail { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--br-rail); background: var(--br-blue); color: #fff; border: 0; }
.theme-business-revival .rail-inner { height: 100%; display: flex; flex-direction: column; align-items: center; padding: 24px 0; position: relative; }
.theme-business-revival .rail-top { display: flex; flex-direction: column; gap: 12px; }
.theme-business-revival .rail-btn { width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s, color .2s; }
.theme-business-revival .rail-btn:hover { background: #fff; color: var(--br-blue); }
.theme-business-revival .rail-toggle { position: absolute; top: calc(50% - 23px); left: 49px; width: 23px; height: 36px; display: grid; align-content: center; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0; }
.theme-business-revival .rail-toggle span { display: block; width: 23px; height: 2px; background: #fff; border-radius: 1px; }
.theme-business-revival .rail-social { margin: auto 0 0; display: flex; flex-direction: column; gap: 6px; list-style: none; padding: 0; }
.theme-business-revival .rail-social a { width: 36px; height: 36px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s, color .2s; }
.theme-business-revival .rail-social a:hover { background: #fff; color: var(--br-blue); }
.theme-business-revival .rail-nav {
  position: fixed; left: var(--br-rail); top: 0; bottom: 0; width: min(var(--br-fly), calc(100vw - var(--br-rail))); padding: 24px;
  background: var(--br-blue); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateX(-12px); transition: opacity .2s, transform .2s, visibility .2s;
}
.theme-business-revival .site-rail:hover .rail-nav, .theme-business-revival .site-rail:focus-within .rail-nav { visibility: visible; opacity: 1; transform: none; }
.theme-business-revival .rail-nav ul { list-style: none; margin: 0; padding: 0; display: block; }
.theme-business-revival .rail-nav > ul > li { border-bottom: 1px solid var(--br-line); }
.theme-business-revival .rail-nav > ul > li:last-child { border-bottom: 0; }
.theme-business-revival .rail-row { display: flex; align-items: center; }
.theme-business-revival .rail-link { flex: 1; color: #fff; font-size: 12.4px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; line-height: 18.6px; padding: 18px 0; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.theme-business-revival .rail-nav > ul > li:first-child .rail-link { min-height: 66px; }
.theme-business-revival .rail-link:hover, .theme-business-revival .rail-sublink:hover { text-decoration: underline; }
.theme-business-revival .rail-home-icon { flex: none; width: 16px; height: 16px; }
.theme-business-revival .rail-chevron { width: 36px; height: 30px; flex: none; border: 0; border-left: 1px solid var(--br-line); background: none; color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme-business-revival .rail-chevron svg { transition: transform .2s; }
.theme-business-revival .rail-chevron[aria-expanded="true"] svg { transform: rotate(180deg); }
.theme-business-revival .rail-sub { padding: 0 0 12px; }
.theme-business-revival .rail-sub[hidden] { display: none; }
.theme-business-revival .rail-sublink { display: block; color: #fff; font-size: 10.4px; font-weight: 400; text-transform: uppercase; letter-spacing: 2px; line-height: 15.6px; padding: 12px; text-decoration: none; }

.theme-business-revival > main, .theme-business-revival > footer, .theme-business-revival > .site-top, .theme-business-revival > .site-hero { margin-left: var(--br-rail); }

/* ---- Typography ---- */
.theme-business-revival main h2 { font-size: 40px; line-height: 1.375; font-weight: 700; text-align: center; margin-bottom: 8px; }
.theme-business-revival main p { line-height: 1.6; }
.theme-business-revival [data-block] section > div { max-width: 1296px; }

/* ---- Buttons: colours, radius, font and case come from Site Settings > Design > Button (this theme's defaults: cyan, 5px, uppercase) ---- */
.theme-business-revival .site-btn, .theme-business-revival .site-block-btn, .theme-business-revival .blk-btn { padding: 18px 24px; font-size: 14px; letter-spacing: 2px; box-shadow: none; opacity: 1; }

/* ---- Hero: full-height image with a centred message ---- */
.theme-business-revival [data-block="hero"]:first-child section {
  position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; background: color-mix(in srgb, var(--primary) 25%, #000); padding: 0; overflow: hidden;
}
.theme-business-revival [data-block="hero"]:first-child section::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .22); pointer-events: none; }
.theme-business-revival [data-block="hero"]:first-child section > div { position: relative; z-index: 1; width: 100%; }
.theme-business-revival [data-block="hero"]:first-child section > div > div { display: block; }
.theme-business-revival [data-block="hero"]:first-child section img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; z-index: -1; max-width: none; }
.theme-business-revival [data-block="hero"]:first-child h1, .theme-business-revival [data-block="hero"]:first-child h2,
.theme-business-revival [data-block="hero"]:first-child p { color: #fff; font-size: 26px; line-height: 36px; font-weight: 700; text-align: center; margin: 0 auto 26px; opacity: 1; }
.theme-business-revival [data-block="hero"]:first-child p.mt-6 { margin-top: 36px; }

/* ---- Sections ---- */
.theme-business-revival [data-block] section { padding-top: 72px; padding-bottom: 72px; }
.theme-business-revival .blk-bg-muted { background: var(--color-muted); }
.theme-business-revival [data-block="cta"] h2 { text-align: center; }

/* ---- Stats: four full-width colour tiles ---- */
.theme-business-revival [data-block="stats"] section { padding: 0; background: none; }
.theme-business-revival [data-block="stats"] section > div { max-width: none; padding: 0; }
.theme-business-revival [data-block="stats"] dl { gap: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.theme-business-revival [data-block="stats"] dl > div { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; color: #fff; padding: 24px; }
.theme-business-revival [data-block="stats"] dl > div:nth-child(4n+1) { background: var(--color-three); }
.theme-business-revival [data-block="stats"] dl > div:nth-child(4n+2) { background: var(--primary); }
.theme-business-revival [data-block="stats"] dl > div:nth-child(4n+3) { background: var(--color-four); }
.theme-business-revival [data-block="stats"] dl > div:nth-child(4n+4) { background: var(--color-five); }
.theme-business-revival [data-block="stats"] dd, .theme-business-revival [data-block="stats"] dt { font-size: 22px; line-height: 30px; font-weight: 700; opacity: 1; margin: 0; }
@media (max-width: 900px) { .theme-business-revival [data-block="stats"] dl { grid-template-columns: repeat(2, 1fr); } }

/* ---- Cards: outlined, with a tinted image area and coloured titles ---- */
.theme-business-revival [data-block="cardGrid"] ul { gap: 51px; }
.theme-business-revival [data-block="cardGrid"] li { border: 2px solid var(--primary); border-radius: 0; background: var(--card); }
.theme-business-revival [data-block="cardGrid"] li img { aspect-ratio: 4 / 2.1; object-fit: contain; padding: 36px 56px; }
.theme-business-revival [data-block="cardGrid"] li > div { padding: 32px 24px; }
.theme-business-revival [data-block="cardGrid"] li h3 { font-size: 22px; line-height: 30px; font-weight: 700; margin-bottom: 16px; }
.theme-business-revival [data-block="cardGrid"] li p { font-size: 14px; font-weight: 300; opacity: 1; line-height: 1.7; }
.theme-business-revival [data-block="cardGrid"] li:nth-child(6n+1) h3 { color: var(--color-two); } .theme-business-revival [data-block="cardGrid"] li:nth-child(6n+1) img { background: color-mix(in srgb, var(--color-two) 25%, #fff); }
.theme-business-revival [data-block="cardGrid"] li:nth-child(6n+2) h3 { color: var(--color-six); } .theme-business-revival [data-block="cardGrid"] li:nth-child(6n+2) img { background: color-mix(in srgb, var(--color-six) 25%, #fff); }
.theme-business-revival [data-block="cardGrid"] li:nth-child(6n+3) h3 { color: var(--color-seven); } .theme-business-revival [data-block="cardGrid"] li:nth-child(6n+3) img { background: color-mix(in srgb, var(--color-seven) 25%, #fff); }
.theme-business-revival [data-block="cardGrid"] li:nth-child(6n+4) h3 { color: var(--color-eight); } .theme-business-revival [data-block="cardGrid"] li:nth-child(6n+4) img { background: color-mix(in srgb, var(--color-eight) 25%, #fff); }
.theme-business-revival [data-block="cardGrid"] li:nth-child(6n+5) h3 { color: var(--color-three); } .theme-business-revival [data-block="cardGrid"] li:nth-child(6n+5) img { background: color-mix(in srgb, var(--color-three) 25%, #fff); }
.theme-business-revival [data-block="cardGrid"] li:nth-child(6n+6) h3 { color: var(--color-four); } .theme-business-revival [data-block="cardGrid"] li:nth-child(6n+6) img { background: color-mix(in srgb, var(--color-four) 25%, #fff); }
.theme-business-revival [data-block="cardGrid"] li h3 a { color: inherit; text-decoration: none; }

/* ---- Speakers / people lists ---- */
.theme-business-revival [data-block="speakerList"] section, .theme-business-revival [data-block="exhibitorList"] section { background: var(--color-muted); }
.theme-business-revival [data-block="speakerList"] h2, .theme-business-revival [data-block="exhibitorList"] h2 { text-transform: uppercase; font-size: 24px; line-height: 32px; margin-bottom: 40px; }
.theme-business-revival [data-block="speakerList"] img { border-radius: 0; }

/* ---- Footer: blue panels (organised by / shows / location) and a copyright bar ---- */
.theme-business-revival [data-panel="footer"] { background: var(--br-blue); color: #fff; }
.theme-business-revival [data-panel="footer"] a { color: #fff; font-weight: 700; }
.theme-business-revival [data-panel="footer"] h2, .theme-business-revival [data-panel="footer"] h3 { color: #fff; text-align: left; font-size: 18px; line-height: 26px; }
.theme-business-revival [data-panel="footer"] [data-block] section { padding: 72px 0 0; background: none; }
.theme-business-revival [data-panel="footer"] [data-block] section > div { max-width: 1296px; }
.theme-business-revival [data-panel="footer"] p, .theme-business-revival > footer { font-size: 14px; line-height: 21px; }
.theme-business-revival > footer > .site-footer-bar { max-width: 1296px; margin: 0 auto; padding: 48px 0 72px; border-top: 3px solid rgba(255, 255, 255, .25); display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.theme-business-revival > footer > .site-footer-bar > * { margin: 0; }
.theme-business-revival > footer > .site-footer-bar > p { margin-left: auto; text-align: right; }
.theme-business-revival > footer nav ul { display: flex; gap: 24px; }
.theme-business-revival > footer { background: var(--br-blue); color: #fff; border: 0; }
.theme-business-revival > footer a { color: #fff; font-weight: 700; text-decoration: none; }
.theme-business-revival > footer a:hover { text-decoration: underline; }
.theme-business-revival > footer p { opacity: 1; }

/* ---- Panels in the theme frame (theme.json "panelFrame": true) ---- */
/* Header panels: a white strip beside the rail: logo and dates on the left, buttons on the right. */
.theme-business-revival > .site-top { background: var(--background); border-bottom: 1px solid var(--border); }
.theme-business-revival .site-top [data-article] { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; max-width: 1296px; margin: 0 auto; padding: 0 24px; }
.theme-business-revival .site-top [data-block] section { padding: 16px 0; }
.theme-business-revival .site-top [data-block] section > div { max-width: none; padding: 0; }
.theme-business-revival .site-top img { max-height: 64px; width: auto; }
.theme-business-revival .site-top p { margin: 0; font-size: 14px; line-height: 21px; }
/* Hero panels: the section's background video shows through the hero block. */
.theme-business-revival .site-hero [data-block="hero"]:first-child section { background: transparent; min-height: 70vh; }
.theme-business-revival .site-hero [data-block="buttonRow"] section { padding-top: 0; }
/* Footer panels: side by side (organised by / shows / location), above the menu and copyright bar. */
.theme-business-revival .site-footer-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 48px; max-width: 1296px; margin: 0 auto; padding: 0 0 48px; }
.theme-business-revival .site-footer-panels [data-block] section > div { padding-inline: 0; }
.theme-business-revival .site-footer-panels img { max-width: 100%; height: auto; }

/* ---- White-logo positions (series logo, sticky branding): shown on a blue band so the logos are visible ---- */
.theme-business-revival [data-panel="revival-series-logo"], .theme-business-revival [data-panel="header-sticky-branding"] { background: var(--br-blue); color: #fff; }
.theme-business-revival [data-panel="revival-series-logo"] [data-block] section, .theme-business-revival [data-panel="header-sticky-branding"] [data-block] section { padding: 24px 0; }
.theme-business-revival [data-panel="revival-series-logo"] img { max-height: 72px; width: auto; margin: 0 auto; }
.theme-business-revival [data-panel="header-sticky-branding"] .blk-card { background: none; border: 0; }
.theme-business-revival [data-panel="header-sticky-branding"] img { max-height: 56px; }

/* ---- Logo sliders (Events strip, sponsors): plain logos, no card frame ---- */
.theme-business-revival .blk-logo-slider .blk-card { border: 0; background: none; border-radius: 0; }
.theme-business-revival .blk-logo-slider img { max-height: 96px; }
.theme-business-revival [data-panel="events"] [data-block] section { padding-top: 40px; padding-bottom: 40px; }

/* ---- Small screens: the rail becomes a top bar ---- */
@media (max-width: 767px) {
  .theme-business-revival { --br-rail: 0px; }
  .theme-business-revival > header.site-rail { inset: 0 0 auto 0; width: 100%; height: 64px; }
  .theme-business-revival .rail-inner { flex-direction: row; padding: 12px 16px; align-items: center; }
  .theme-business-revival .rail-toggle { position: static; transform: none; margin-left: auto; }
  .theme-business-revival .rail-social { display: none; }
  .theme-business-revival .rail-nav { left: 0; top: 64px; width: 100%; padding: 8px 24px 24px; }
  .theme-business-revival > main, .theme-business-revival > .site-top, .theme-business-revival > .site-hero { padding-top: 64px; }
  .theme-business-revival > .site-top ~ .site-hero, .theme-business-revival > .site-top ~ main, .theme-business-revival > .site-hero ~ main { padding-top: 0; }
  .theme-business-revival .site-footer-panels { padding-inline: 24px; }
  .theme-business-revival [data-block="hero"]:first-child section { min-height: calc(100vh - 64px); }
  .theme-business-revival main h2 { font-size: 30px; }
}
