/* ==========================================================================
   Best Bet Guide v2 — main stylesheet
   No build step: edit this file directly. Colours, fonts and spacing live in
   the tokens below; change a token and it updates everywhere.
   ========================================================================== */

:root {
  /* Brand */
  --bbg-teal: #00323C;          /* primary brand (header, hero, dark panels) */
  --bbg-teal-900: #00262E;      /* top bar, footer */
  --bbg-teal-800: #0A4450;      /* raised dark surfaces */
  --bbg-teal-line: #1D5A65;     /* borders on dark */
  --bbg-teal-soft: #C6D8D8;     /* body text on dark */
  --bbg-mint: #2EFEA2;          /* accent from the logo — CTAs and highlights only */
  --bbg-mint-hover: #5BFFB6;

  /* Neutrals */
  --bbg-ink: #12201F;           /* headings / main text */
  --bbg-ink-2: #3E4B48;         /* body text */
  --bbg-muted: #56625F;         /* captions, meta (AA on white and on --bbg-bg) */
  --bbg-bg: #F4F2EC;            /* page background */
  --bbg-surface: #FFFFFF;
  --bbg-surface-2: #FAF9F5;
  --bbg-line: #E3DFD4;
  --bbg-line-2: #D6D1C4;
  --bbg-tint: #E4EFEE;          /* soft teal fill (badges, icon tiles) */

  /* Status */
  --bbg-ok: #0B7A5E;
  --bbg-hot-bg: #FFE6D5;   --bbg-hot-ink: #8A3300;
  --bbg-new-bg: #D3FBE8;   --bbg-new-ink: #005B3A;
  --bbg-excl-bg: #ECE4FF;  --bbg-excl-ink: #4A2A8C;

  /* Type */
  --bbg-font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --bbg-font-body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --bbg-container: 1200px;
  --bbg-gutter: 24px;
  --bbg-radius: 16px;
  --bbg-radius-lg: 22px;
  --bbg-radius-sm: 10px;
  --bbg-shadow: 0 24px 60px rgba(0, 38, 46, 0.16);
  --bbg-header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bbg-header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--bbg-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bbg-ink-2);
  background: var(--bbg-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--bbg-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bbg-teal-800); }
:focus-visible { outline: 3px solid var(--bbg-mint); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--bbg-font-display);
  color: var(--bbg-ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 800;
}
.bbg-icon { flex-shrink: 0; vertical-align: middle; }

.bbg-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;
}
.bbg-skip {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--bbg-mint); color: var(--bbg-teal); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.bbg-skip:focus { top: 12px; }

.bbg-container {
  width: 100%;
  max-width: calc(var(--bbg-container) + var(--bbg-gutter) * 2);
  margin: 0 auto;
  padding-left: var(--bbg-gutter);
  padding-right: var(--bbg-gutter);
}
.bbg-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 32px; }

/* ---------- Buttons & small parts ---------- */
.bbg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.bbg-btn--cta { background: var(--bbg-mint); color: var(--bbg-teal); }
.bbg-btn--cta:hover { background: var(--bbg-mint-hover); color: var(--bbg-teal); }
.bbg-btn--cta:active { transform: translateY(1px); }
.bbg-btn--ghost { background: transparent; color: var(--bbg-teal); border-color: var(--bbg-line-2); }
.bbg-btn--ghost:hover { border-color: var(--bbg-teal); color: var(--bbg-teal); }
.bbg-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }
.bbg-link-arrow:hover { text-decoration: underline; }

.bbg-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bbg-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1;
  padding: 5px 7px; border-radius: 6px; background: var(--bbg-tint); color: var(--bbg-teal); vertical-align: middle;
  font-family: var(--bbg-font-body);
}
.bbg-badge--featured { background: var(--bbg-teal); color: #fff; }
.bbg-badge--hot { background: var(--bbg-hot-bg); color: var(--bbg-hot-ink); }
.bbg-badge--new { background: var(--bbg-new-bg); color: var(--bbg-new-ink); }
.bbg-badge--exclusive { background: var(--bbg-excl-bg); color: var(--bbg-excl-ink); }
.bbg-badge--featured, .bbg-badge--hot, .bbg-badge--new, .bbg-badge--exclusive { text-transform: uppercase; letter-spacing: .05em; }
.bbg-btn--light { background: #fff; color: var(--bbg-teal); }
.bbg-btn--light:hover { background: var(--bbg-mint); color: var(--bbg-teal); }
.bbg-badge--dark { background: var(--bbg-ink); color: #fff; }
.bbg-18 {
  display: inline-block; font-weight: 700; font-size: 12px; line-height: 1; color: #fff;
  border: 1px solid #5E8A8F; border-radius: 6px; padding: 3px 6px; margin-right: 4px;
}
.bbg-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bbg-mint); margin: 0 0 14px;
}
.bbg-eyebrow a { color: inherit; text-decoration: none; }

.bbg-iconbtn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bbg-teal-line);
  background: var(--bbg-teal-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- Header ---------- */
.bbg-topbar { background: var(--bbg-teal-900); color: #B9CFCF; font-size: 13px; }
.bbg-topbar__inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bbg-topbar__rg { margin: 0; display: flex; align-items: center; gap: 8px; }
.bbg-topbar a { color: #fff; }
.bbg-topbar__links { display: flex; align-items: center; gap: 20px; }
.bbg-topbar__links > a { color: #B9CFCF; text-decoration: none; }
.bbg-topbar__links > a:hover { color: #fff; text-decoration: underline; }
.bbg-country {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #3F6D73; border-radius: 999px; padding: 0 10px; height: 30px; color: #fff; cursor: pointer;
}
.bbg-country__select {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: #fff;
  font: inherit; font-size: 13px; padding: 0 16px 0 0; margin-right: -16px; cursor: pointer; max-width: 150px;
}
.bbg-country__select option { color: var(--bbg-ink); }
.bbg-country .bbg-icon:last-child { pointer-events: none; }

/* The whole header sticks, offset by the top bar's height so only the main bar stays visible. */
.bbg-header { position: sticky; top: -40px; z-index: 50; }
.admin-bar .bbg-header { top: -8px; }
.bbg-topbar__inner { height: 40px; overflow: hidden; white-space: nowrap; }
.bbg-mainbar { background: var(--bbg-teal); border-bottom: 1px solid #0F4B56; position: relative; }
.bbg-mainbar__inner { min-height: var(--bbg-header-h); display: flex; align-items: center; gap: 24px; }
.bbg-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.bbg-brand img { height: 44px; width: auto; display: block; }
.bbg-navtoggle { display: none; margin-left: auto; }
.bbg-navtoggle__close { display: none; }

.bbg-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.bbg-nav__list, .bbg-nav__list ul { list-style: none; margin: 0; padding: 0; }
.bbg-nav__list { display: flex; align-items: center; gap: 2px; }
.bbg-nav__list > li { position: relative; }
.bbg-nav__list > li > a {
  display: flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 10px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.bbg-nav__list > li > a:hover,
.bbg-nav__list > li:focus-within > a,
.bbg-nav__list > li.current-menu-item > a:not([href$="#"]),
.bbg-nav__list > li.current-menu-ancestor > a:not([href$="#"]) { background: var(--bbg-teal-800); color: #fff; }
.bbg-nav__list > li.menu-item-has-children > a::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); opacity: .7; margin-left: 2px;
}
.bbg-nav__list .sub-menu {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 260px; padding: 8px;
  background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: 14px; box-shadow: var(--bbg-shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
}
.bbg-nav__list > li:last-child .sub-menu,
.bbg-nav__list > li:nth-last-child(2) .sub-menu { left: auto; right: 0; }
.bbg-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.bbg-nav__list > li:hover > .sub-menu,
.bbg-nav__list > li:focus-within > .sub-menu,
.bbg-nav__list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bbg-nav__list .sub-menu a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--bbg-ink); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.bbg-nav__list .sub-menu a:hover, .bbg-nav__list .sub-menu .current-menu-item > a { background: var(--bbg-bg); color: var(--bbg-teal); }
.bbg-nav__list .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
.bbg-subtoggle { display: none; }

.bbg-nav__search { position: relative; display: flex; align-items: center; }
.bbg-nav__search input {
  width: 44px; height: 44px; padding: 0 44px 0 12px; border-radius: 12px; border: 1px solid var(--bbg-teal-line);
  background: var(--bbg-teal-800); color: #fff; font: inherit; font-size: 15px; transition: width .2s ease;
}
.bbg-nav__search input::placeholder { color: transparent; }
.bbg-nav__search input:focus { width: 240px; outline: none; border-color: var(--bbg-mint); }
.bbg-nav__search input:focus::placeholder { color: #9FBABA; }
.bbg-nav__search button { position: absolute; right: 0; top: 0; background: transparent; border-color: transparent; }

/* Search: in the top bar on desktop, inside the menu drawer on smaller screens */
.bbg-nav__search { display: none; }
.bbg-topsearch { position: relative; display: inline-flex; align-items: center; color: #B9CFCF; }
.bbg-topsearch .bbg-icon { position: absolute; left: 10px; pointer-events: none; }
.bbg-topsearch input {
  width: 150px; height: 30px; border-radius: 999px; border: 1px solid #3F6D73; background: transparent; color: #fff;
  font: inherit; font-size: 13px; padding: 0 12px 0 30px; transition: width .2s ease;
}
.bbg-topsearch input::placeholder { color: #9FBABA; }
.bbg-topsearch input:focus { width: 220px; outline: none; border-color: var(--bbg-mint); }

/* Compact desktop nav so the full menu fits on one line */
.bbg-nav__list > li > a { padding: 10px 8px; font-size: 14.5px; }
.bbg-nav__list > li.menu-item-has-children > a::after { width: 6px; height: 6px; margin-left: 0; }
.bbg-mainbar__inner { gap: 16px; }
.bbg-brand img { height: 40px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1260px) {
  .bbg-navtoggle { display: inline-flex; }
  .bbg-nav__search { display: flex; }
  .bbg-topsearch { display: none; }
  .bbg-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bbg-teal); border-top: 1px solid var(--bbg-teal-line);
    flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--bbg-gutter) 28px;
    max-height: calc(100vh - var(--bbg-header-h)); overflow-y: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  }
  .bbg-nav.is-open { display: flex; }
  .bbg-header.nav-open .bbg-navtoggle__open { display: none; }
  .bbg-header.nav-open .bbg-navtoggle__close { display: inline-flex; }
  .bbg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .bbg-nav__list > li { border-bottom: 1px solid var(--bbg-teal-line); display: flex; flex-wrap: wrap; align-items: center; }
  .bbg-nav__list > li > a { flex: 1; padding: 14px 4px; font-size: 17px; }
  .bbg-nav__list > li > a:hover, .bbg-nav__list > li:focus-within > a { background: transparent; }
  .bbg-nav__list > li.menu-item-has-children > a::after { display: none; }
  .bbg-subtoggle {
    display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
    background: transparent; border: 0; color: #fff; cursor: pointer;
  }
  .bbg-subtoggle[aria-expanded="true"] .bbg-icon { transform: rotate(180deg); }
  .bbg-nav__list .sub-menu {
    position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none;
    background: var(--bbg-teal-800); border: 0; box-shadow: none; border-radius: 12px; margin: 0 0 12px; padding: 6px;
  }
  .bbg-nav__list > li:hover > .sub-menu { display: none; }
  .bbg-nav__list > li.is-open > .sub-menu { display: block; }
  .bbg-nav__list .sub-menu a { color: #E6F0F0; font-size: 15.5px; padding: 11px 12px; }
  .bbg-nav__list .sub-menu a:hover { background: var(--bbg-teal); color: #fff; }
  .bbg-nav__search input, .bbg-nav__search input:focus { width: 100%; }
  .bbg-nav__search input::placeholder { color: #9FBABA; }
  .bbg-nav__search { width: 100%; }
}
@media (max-width: 782px) { .admin-bar .bbg-header { top: -40px; } }
@media (max-width: 720px) {
  :root { --bbg-gutter: 16px; --bbg-header-h: 64px; }
  .bbg-topbar__links > a { display: none; }
  .bbg-topbar__gba { display: none; }
  .bbg-brand img { height: 36px; }
}

/* ---------- Hero ---------- */
.bbg-hero {
  position: relative; background: var(--bbg-teal); color: #fff; overflow: hidden;
  padding: 64px 0 72px;
}
.bbg-hero.has-image::before {
  content: ""; position: absolute; inset: 0; background-image: var(--bbg-hero-img); background-size: cover; background-position: center;
}
.bbg-hero.has-image::after { content: ""; position: absolute; inset: 0; background: rgba(0, 50, 60, 0.86); }
.bbg-hero__inner { position: relative; z-index: 1; }
.bbg-hero__text { max-width: 820px; }
.bbg-hero h1, .bbg-hero .bbg-prose h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.03em; color: #fff; margin: 0 0 18px;
}
.bbg-hero h1 * { color: inherit !important; font-weight: inherit; }
.bbg-hero__lead, .bbg-hero .bbg-prose p { font-size: 18.5px; line-height: 1.6; color: var(--bbg-teal-soft); }
.bbg-hero .bbg-prose > *:last-child { margin-bottom: 0; }

.bbg-hero--home { padding: 72px 0 196px; }
.bbg-hero--home .bbg-hero__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 56px; }
.bbg-hero--home h1 { font-size: clamp(38px, 5.4vw, 68px); max-width: 760px; }
.bbg-hero--home .bbg-hero__lead { max-width: 620px; margin: 0; }
.bbg-hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 300px; flex-shrink: 0; }
.bbg-hero__trust li {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: var(--bbg-teal-800); border: 1px solid var(--bbg-teal-line); color: #E6F0F0; font-size: 15px; line-height: 1.35;
}
.bbg-hero__trust .bbg-icon { color: var(--bbg-mint); }

.bbg-pagehead { background: var(--bbg-teal); color: #fff; padding: 56px 0 56px; }
.bbg-pagehead h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); margin: 0 0 14px; }
.bbg-pagehead__lead, .bbg-pagehead__desc { color: var(--bbg-teal-soft); font-size: 18px; max-width: 760px; }
.bbg-pagehead__narrow { max-width: calc(820px + var(--bbg-gutter) * 2); }
.bbg-pagehead .bbg-meta { color: var(--bbg-teal-soft); font-size: 14.5px; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bbg-pagehead .bbg-meta a { color: #fff; }
.bbg-article__figure { max-width: calc(820px + var(--bbg-gutter) * 2); margin-top: 36px; }
.bbg-article__img { width: auto; max-width: 100%; height: auto; max-height: 400px; margin: 0 auto; border-radius: var(--bbg-radius); display: block; }
.bbg-article__figure + .bbg-module { padding-top: 32px; }

@media (max-width: 960px) {
  .bbg-hero--home .bbg-hero__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .bbg-hero__trust { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .bbg-hero__trust li { flex: 1 1 220px; }
}
@media (max-width: 720px) {
  .bbg-hero { padding: 40px 0 48px; }
  .bbg-hero--home { padding: 36px 0 120px; }
  .bbg-hero__lead, .bbg-hero .bbg-prose p { font-size: 16.5px; }
  .bbg-hero__trust { display: none; }
  .bbg-pagehead { padding: 36px 0; }
}

/* ---------- Sections ---------- */
.bbg-module { padding: 44px 0; }
.bbg-module + .bbg-module { padding-top: 12px; }
.bbg-hero + .bbg-module, .bbg-pagehead + .bbg-module { padding-top: 44px; }
.bbg-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.bbg-section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.bbg-section-head p { margin: 8px 0 0; color: var(--bbg-ink-2); }
.bbg-module__more { text-align: center; margin: 24px 0 0; }

/* ---------- Offer rows (Offers module + homepage toplist) ---------- */
.bbg-offers {
  background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: var(--bbg-radius-lg);
  overflow: hidden; box-shadow: 0 1px 2px rgba(0, 38, 46, .04);
}
.bbg-offers__foot { margin: 0; padding: 14px 24px; font-size: 13px; color: var(--bbg-muted); background: var(--bbg-surface-2); border-top: 1px solid var(--bbg-line); }

.bbg-offer {
  display: grid;
  grid-template-columns: [rank] 32px [brand] minmax(200px, 270px) [deal] minmax(0, 1fr) [points] minmax(160px, 210px) [actions] 180px;
  grid-template-areas: "rank brand deal points actions";
  gap: 22px; align-items: center; padding: 22px 24px;
}
.bbg-offer + .bbg-offer { border-top: 1px solid var(--bbg-line); }
.bbg-offers--single .bbg-offer,
.bbg-offer:not(:has(.bbg-offer__rank)) { grid-template-columns: [brand] minmax(200px, 270px) [deal] minmax(0, 1fr) [points] minmax(160px, 210px) [actions] 180px; grid-template-areas: "brand deal points actions"; }


.bbg-offer__rank { grid-area: rank; font-family: var(--bbg-font-display); font-weight: 800; font-size: 24px; color: var(--bbg-teal); text-align: center; }
.bbg-offer__brand { grid-area: brand; display: flex; align-items: center; gap: 14px; min-width: 0; }
.bbg-logo {
  flex-shrink: 0; width: 112px; height: 56px; border-radius: 12px; background: var(--bbg-teal);
  display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none;
}
.bbg-logo img, .bbg-logo__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bbg-logo__initials { font-family: var(--bbg-font-display); font-weight: 800; font-size: 20px; color: #fff; }
.bbg-offer__id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bbg-offer__name { font-family: var(--bbg-font-body); font-size: 17px; font-weight: 700; letter-spacing: 0; line-height: 1.25; margin: 0; color: var(--bbg-ink); }
.bbg-offer__score { margin: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--bbg-muted); }
.bbg-offer__score .bbg-icon { color: #C98A00; fill: #F2B632; stroke: #C98A00; }
.bbg-offer__score strong { font-family: var(--bbg-font-display); font-size: 16px; color: var(--bbg-ink); }

.bbg-offer__deal { grid-area: deal; min-width: 0; }
.bbg-offer__headline {
  margin: 0 0 6px; font-family: var(--bbg-font-display); font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--bbg-ink);
  overflow-wrap: anywhere;
}
.bbg-offer__terms { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--bbg-muted); }
.bbg-offer__terms span + span::before { content: "·"; margin: 0 6px; }
.bbg-offer__terms a { color: var(--bbg-muted); }
.bbg-offer__full-terms { margin-top: 6px; font-size: 12.5px; }
.bbg-offer__full-terms summary { cursor: pointer; color: var(--bbg-teal); font-weight: 600; list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.bbg-offer__full-terms summary::-webkit-details-marker { display: none; }
.bbg-offer__full-terms summary::after { content: "+"; font-weight: 700; }
.bbg-offer__full-terms[open] summary::after { content: "–"; }
.bbg-offer__terms-text { margin-top: 8px; padding: 12px 14px; background: var(--bbg-surface-2); border: 1px solid var(--bbg-line); border-radius: 10px; color: var(--bbg-ink-2); max-height: 240px; overflow: auto; }
.bbg-offer__terms-text p { margin: 0 0 8px; }

.bbg-offer__points { grid-area: points; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--bbg-ink-2); }
.bbg-offer__points li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.bbg-offer__points .bbg-icon { color: var(--bbg-ok); margin-top: 1px; }

.bbg-offer__actions { grid-area: actions; display: flex; flex-direction: column; gap: 8px; }
.bbg-offer__actions .bbg-btn { width: 100%; min-height: 50px; }
.bbg-offer__review { text-align: center; font-size: 13.5px; font-weight: 600; }

@media (max-width: 1100px) {
  .bbg-offer, .bbg-offers--single .bbg-offer, .bbg-offer:not(:has(.bbg-offer__rank)) {
    grid-template-columns: [rank] 28px [brand] minmax(0, 1fr) [actions] 190px;
    grid-template-areas: "rank brand actions" "rank deal actions" "rank points actions";
    gap: 10px 18px; align-items: start;
  }
  .bbg-offers--single .bbg-offer, .bbg-offer:not(:has(.bbg-offer__rank)) {
    grid-template-columns: [brand] minmax(0, 1fr) [actions] 190px;
    grid-template-areas: "brand actions" "deal actions" "points actions";
  }
  .bbg-offer__actions { align-self: center; }
  .bbg-offer__points { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
}
@media (max-width: 640px) {
  .bbg-offer, .bbg-offers--single .bbg-offer, .bbg-offer:not(:has(.bbg-offer__rank)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "deal" "points" "actions";
    gap: 12px; padding: 18px 16px; position: relative;
  }
  .bbg-offer__rank {
    position: absolute; top: 12px; left: 10px; z-index: 1; width: 24px; height: 24px; border-radius: 999px;
    background: var(--bbg-mint); color: var(--bbg-teal); font-size: 13px; line-height: 24px;
  }
  .bbg-logo { width: 96px; height: 48px; }
  .bbg-offer__headline { font-size: 19px; }
  .bbg-offer__points { display: none; }
  .bbg-offer__actions { flex-direction: row; align-items: center; }
  .bbg-offer__actions .bbg-btn { flex: 1; }
  .bbg-offer__review { flex: 0 0 auto; padding: 0 6px; }
  .bbg-offers__foot { padding: 12px 16px; }
}

/* ---------- Homepage toplist ---------- */
.bbg-toplist { margin-top: -150px; position: relative; z-index: 2; }
.bbg-toplist__panel {
  background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: var(--bbg-radius-lg);
  box-shadow: var(--bbg-shadow); overflow: hidden;
}
.bbg-toplist__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; border-bottom: 1px solid var(--bbg-line); }
.bbg-toplist__title { font-size: 26px; margin: 0 0 4px; }
.bbg-toplist__sub { margin: 0; font-size: 13.5px; color: var(--bbg-muted); }
.bbg-toplist__rows .bbg-offer { border-top: 1px solid var(--bbg-line); }
.bbg-toplist__rows .bbg-offer:first-child { border-top: 0; }
.bbg-toplist__rows .bbg-offer.is-extra, .bbg-toplist__rows .bbg-offer.is-filtered { display: none; }
.bbg-toplist__rows.is-loading { opacity: .5; transition: opacity .2s ease; }
.bbg-toplist__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; background: var(--bbg-surface-2); border-top: 1px solid var(--bbg-line); font-size: 13px; color: var(--bbg-muted);
}
.bbg-toplist__foot p { margin: 0; }
.bbg-toplist__foot a { color: var(--bbg-muted); }
.bbg-toplist__foot .bbg-link-arrow { color: var(--bbg-teal); }
.bbg-toplist__actions { display: flex; align-items: center; gap: 16px; }
.bbg-toplist__actions .bbg-btn { min-height: 42px; font-size: 14.5px; }

.bbg-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bbg-bg); border-radius: 14px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.bbg-tabs::-webkit-scrollbar { display: none; }
.bbg-tab {
  flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 0; background: transparent;
  color: var(--bbg-ink); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.bbg-tab:hover { background: rgba(0, 50, 60, .06); }
.bbg-tab[aria-selected="true"] { background: var(--bbg-teal); color: #fff; font-weight: 700; }

@media (max-width: 720px) {
  .bbg-toplist { margin-top: -96px; }
  .bbg-toplist .bbg-container { padding-left: 10px; padding-right: 10px; }
  .bbg-toplist__head { padding: 18px 16px 14px; }
  .bbg-toplist__title { font-size: 21px; }
  .bbg-tabs { width: 100%; }
  .bbg-toplist__foot { padding: 14px 16px; }
}

/* ---------- Tiles, events ---------- */
.bbg-module--tiles { padding-top: 80px; }
.bbg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bbg-tile {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--bbg-surface);
  border: 1px solid var(--bbg-line); border-radius: 18px; text-decoration: none; color: var(--bbg-ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bbg-tile:hover { border-color: var(--bbg-teal); color: var(--bbg-ink); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 38, 46, .08); }
.bbg-tile__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--bbg-tint); color: var(--bbg-teal); display: flex; align-items: center; justify-content: center; }
.bbg-tile__title { font-family: var(--bbg-font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.bbg-tile__text { font-size: 15px; color: var(--bbg-ink-2); line-height: 1.5; }

.bbg-events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bbg-event {
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 230px; padding: 24px;
  border-radius: 18px; background: var(--bbg-surface); border: 1px solid var(--bbg-line); color: var(--bbg-ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.bbg-event:hover { border-color: var(--bbg-teal); color: var(--bbg-ink); transform: translateY(-2px); }
.bbg-event__top { display: flex; justify-content: space-between; align-items: center; color: var(--bbg-ink-2); }
.bbg-event__when { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--bbg-bg); }
.bbg-event__body { display: flex; flex-direction: column; gap: 8px; }
.bbg-event__title { font-family: var(--bbg-font-display); font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.bbg-event__text { font-size: 14.5px; line-height: 1.5; color: var(--bbg-ink-2); }
.bbg-event--featured { background: var(--bbg-teal); border-color: var(--bbg-teal); color: #fff; }
.bbg-event--featured:hover { color: #fff; border-color: var(--bbg-mint); }
.bbg-event--featured .bbg-event__top, .bbg-event--featured .bbg-event__text { color: var(--bbg-teal-soft); }
.bbg-event--featured .bbg-event__when { background: var(--bbg-teal-800); }

@media (max-width: 1000px) {
  .bbg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbg-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bbg-module--tiles { padding-top: 48px; }
  .bbg-tiles { gap: 10px; }
  .bbg-tile { padding: 16px; gap: 8px; }
  .bbg-tile__icon { width: 40px; height: 40px; border-radius: 11px; }
  .bbg-tile__icon .bbg-icon { width: 21px; height: 21px; }
  .bbg-tile__title { font-size: 16.5px; }
  .bbg-tile__text { display: none; }
  .bbg-events { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--bbg-gutter) * -1); padding-right: var(--bbg-gutter); padding-bottom: 6px; }
  .bbg-event { flex: 0 0 250px; min-height: 200px; scroll-snap-align: start; padding: 20px; }
  .bbg-event__title { font-size: 22px; }
}

/* ---------- Guide cards ---------- */
.bbg-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bbg-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bbg-card__media {
  display: block; aspect-ratio: 16 / 10; border-radius: var(--bbg-radius); overflow: hidden; background: var(--bbg-tint);
}
.bbg-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.bbg-card:hover .bbg-card__media img { transform: scale(1.03); }
.bbg-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--bbg-teal); opacity: .5; }
.bbg-card__kicker { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bbg-ok); }
.bbg-card__title { font-size: 20px; line-height: 1.22; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.bbg-card__title a { color: var(--bbg-ink); text-decoration: none; }
.bbg-card__title a:hover { color: var(--bbg-teal); text-decoration: underline; }
.bbg-card__excerpt { margin: 0; font-size: 15px; color: var(--bbg-ink-2); line-height: 1.5; }
.bbg-card__meta { margin: 0; font-size: 13px; color: var(--bbg-muted); }
@media (max-width: 1000px) { .bbg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .bbg-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bbg-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
  .bbg-card__media { grid-row: span 4; aspect-ratio: 1; border-radius: 12px; }
  .bbg-card__kicker { margin: 0; }
  .bbg-card__title { font-size: 17px; }
  .bbg-card__excerpt { display: none; }
}

/* ---------- How we rank, newsletter ---------- */
.bbg-rank {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; padding: 52px;
  background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: 24px;
}
.bbg-rank h2 { font-size: clamp(28px, 3.4vw, 40px); }
.bbg-rank__intro p { color: var(--bbg-ink-2); }
.bbg-rank__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bbg-rank__point { padding: 22px; border-radius: 16px; background: var(--bbg-bg); color: var(--bbg-teal); }
.bbg-rank__point h3 { font-family: var(--bbg-font-body); font-size: 17px; font-weight: 700; letter-spacing: 0; margin: 10px 0 6px; }
.bbg-rank__point p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--bbg-ink-2); }
.bbg-reviewer { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.bbg-reviewer__photo { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; }
.bbg-reviewer p { margin: 0; }
.bbg-reviewer__name { font-weight: 700; color: var(--bbg-ink); }
.bbg-reviewer__role { font-size: 14px; color: var(--bbg-muted); }

.bbg-newsletter {
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 44px 52px; border-radius: 24px; background: var(--bbg-teal); color: #fff;
}
.bbg-newsletter h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.bbg-newsletter p { color: var(--bbg-teal-soft); margin: 0; }
.bbg-newsletter__form, .bbg-newsletter__form label { color: #E6F0F0; }
.bbg-newsletter__form input[type="email"], .bbg-newsletter__form input[type="text"], .bbg-newsletter__form select {
  min-height: 48px; border-radius: 12px !important; border: 1px solid #3F6D73 !important; background: var(--bbg-teal-800) !important; color: #fff !important; padding: 0 14px !important;
}
.bbg-newsletter__form button, .bbg-newsletter__form input[type="submit"] {
  min-height: 48px; border-radius: 12px !important; border: 0 !important; background: var(--bbg-mint) !important; color: var(--bbg-teal) !important; font-weight: 700 !important; padding: 0 22px !important;
}
@media (max-width: 960px) {
  .bbg-rank, .bbg-newsletter { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 28px 22px; }
}
@media (max-width: 560px) { .bbg-rank__points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQs ---------- */
.bbg-faqs { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; }
.bbg-faqs__title { font-size: clamp(28px, 3.4vw, 40px); }
.bbg-faqs__list { border-top: 1px solid var(--bbg-line-2); }
.bbg-faq { border-bottom: 1px solid var(--bbg-line-2); }
.bbg-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 18px; font-weight: 700; color: var(--bbg-ink); line-height: 1.35;
}
.bbg-faq summary::-webkit-details-marker { display: none; }
.bbg-faq summary .bbg-icon { transition: transform .2s ease; color: var(--bbg-teal); }
.bbg-faq[open] summary .bbg-icon { transform: rotate(45deg); }
.bbg-faq__answer { padding: 0 0 20px; max-width: 700px; color: var(--bbg-ink-2); }
.bbg-faq__answer p { margin: 0 0 10px; }
@media (max-width: 900px) { .bbg-faqs { grid-template-columns: minmax(0, 1fr); gap: 12px; } .bbg-faq summary { font-size: 16.5px; } }

/* ---------- Long-form content (Text modules, posts) ---------- */
.bbg-prose { max-width: 820px; margin: 0 auto; font-size: 17.5px; line-height: 1.7; color: var(--bbg-ink-2); overflow-wrap: break-word; }
.bbg-hero .bbg-prose, .bbg-pagehead .bbg-prose { margin: 0; }
.bbg-prose > *:first-child { margin-top: 0; }
.bbg-prose p, .bbg-prose ul, .bbg-prose ol, .bbg-prose table, .bbg-prose blockquote, .bbg-prose figure, .bbg-prose details { margin: 0 0 1.1em; }
.bbg-prose h1 { font-size: clamp(30px, 3.6vw, 42px); margin: 1.2em 0 .5em; }
.bbg-prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 .5em; }
.bbg-prose h3 { font-size: 23px; margin: 1.5em 0 .45em; font-weight: 700; }
.bbg-prose h4 { font-size: 19px; margin: 1.4em 0 .4em; font-weight: 700; letter-spacing: -0.01em; }
.bbg-prose h5, .bbg-prose h6 { font-family: var(--bbg-font-body); font-size: 16px; letter-spacing: 0; margin: 1.2em 0 .4em; font-weight: 700; }
.bbg-prose strong, .bbg-prose b { color: var(--bbg-ink); }
.bbg-prose a { color: var(--bbg-teal); text-decoration: underline; font-weight: 500; }
.bbg-prose ul, .bbg-prose ol { padding-left: 1.3em; }
.bbg-prose li { margin: 0 0 .45em; }
.bbg-prose li::marker { color: var(--bbg-teal); }
.bbg-prose hr { border: 0; border-top: 1px solid var(--bbg-line-2); margin: 2em 0; }
.bbg-prose blockquote { border-left: 0; padding: 18px 22px; background: var(--bbg-surface); border-radius: 14px; border: 1px solid var(--bbg-line); font-size: 17px; }
.bbg-prose blockquote p:last-child { margin: 0; }
.bbg-prose img { border-radius: 12px; height: auto !important; }
/* Big images and infographics in content: keep them to a comfortable reading size */
.bbg-prose img:not(.alignleft):not(.alignright) { display: block; max-width: min(100%, 620px) !important; margin: 1.6em auto; }
.bbg-prose .alignleft, .bbg-prose .alignright { max-width: min(45%, 320px) !important; }
.bbg-prose figure { max-width: 100%; }
.bbg-prose figcaption, .bbg-prose .wp-caption-text { font-size: 13.5px; color: var(--bbg-muted); margin-top: 8px; }
.bbg-prose .alignleft { float: left; margin: 0 24px 16px 0; }
.bbg-prose .alignright { float: right; margin: 0 0 16px 24px; }
.bbg-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.bbg-prose::after { content: ""; display: table; clear: both; }
.bbg-prose iframe { max-width: 100%; border-radius: 12px; }
.bbg-prose iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Tables: scroll sideways on small screens instead of breaking the layout */
.bbg-prose table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.45;
  background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: 14px; overflow: hidden;
}
.bbg-prose th, .bbg-prose td { padding: 12px 16px !important; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bbg-line) !important; }
.bbg-prose th, .bbg-prose thead td { background: var(--bbg-teal) !important; color: #fff !important; font-weight: 700; }
.bbg-prose th * , .bbg-prose thead td * { color: #fff !important; }
.bbg-prose tr:last-child td { border-bottom: 0 !important; }
.bbg-prose tbody tr:nth-child(even) td { background: var(--bbg-surface-2); }
.bbg-table-scroll { overflow-x: auto; margin: 0 0 1.1em; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.bbg-table-scroll > table { margin: 0; min-width: 520px; }

.bbg-prose details { background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: 12px; padding: 14px 18px; }
.bbg-prose summary { cursor: pointer; font-weight: 700; color: var(--bbg-ink); }

/* Invert for text on the teal hero */
.bbg-prose--invert { color: var(--bbg-teal-soft); }
.bbg-prose--invert h1, .bbg-prose--invert h2, .bbg-prose--invert h3, .bbg-prose--invert strong, .bbg-prose--invert b { color: #fff; }
.bbg-prose--invert a { color: #fff; }

/* Raw HTML module: full width, content controls its own look */
.bbg-module--html { padding: 32px 0; }
.bbg-module--html > .bbg-module--html { padding: 0; }

/* ---------- Footer ---------- */
.bbg-footer { background: var(--bbg-teal-900); color: #B9CFCF; margin-top: 56px; font-size: 14.5px; }
.bbg-footer a { color: #E6F0F0; }
.bbg-footer__rg { background: var(--bbg-teal); border-bottom: 1px solid #0F4B56; }
.bbg-footer__rg-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.bbg-footer__rg p { margin: 0; color: #E6F0F0; }
.bbg-footer__rg p a { margin-left: 6px; }
.bbg-footer__help { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.bbg-footer__help a { color: #fff; font-weight: 600; }
.bbg-footer__main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 52px; padding-bottom: 36px; }
.bbg-footer__brand p { margin: 14px 0 0; line-height: 1.6; max-width: 320px; }
.bbg-footer__brand img { height: 40px; width: auto; }
.bbg-footer h3, .bbg-footer h4, .bbg-footer .widget-title, .bbg-footer .widgettitle {
  font-family: var(--bbg-font-body); font-size: 14.5px; font-weight: 700; letter-spacing: 0; color: #fff; margin: 0 0 12px;
}
.bbg-footer ul { list-style: none; margin: 0; padding: 0; }
.bbg-footer .widget ul li { margin: 0 0 9px; }
.bbg-footer .widget a { color: #B9CFCF; text-decoration: none; }
.bbg-footer .widget a:hover { color: #fff; text-decoration: underline; }
.bbg-footer .widget p { margin: 0 0 10px; }
.bbg-footer .widget li:empty { display: none; }
.bbg-social { display: flex; gap: 14px; margin-top: 16px !important; }
.bbg-footer__legal { border-top: 1px solid #0F4B56; padding-top: 24px; padding-bottom: 40px; font-size: 13px; line-height: 1.6; }
.bbg-footer__legal p { margin: 0 0 10px; max-width: 980px; }
.bbg-footer__logos { display: flex; align-items: center; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.bbg-footer__logos img { display: block; height: auto; }
.bbg-footer__copy { color: #8FAFAF; }
@media (max-width: 1000px) { .bbg-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bbg-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .bbg-footer__main { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Sidebar / archives / misc ---------- */
.bbg-sidebar .widget { background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.bbg-sidebar h3 { font-size: 18px; }
.bbg-pagination { margin-top: 32px; }
.bbg-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.bbg-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--bbg-line-2); text-decoration: none; padding: 0 12px; }
.bbg-pagination .current { background: var(--bbg-teal); color: #fff; border-color: var(--bbg-teal); }
.bbg-empty, .bbg-404 { max-width: 640px; }
.bbg-404__links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bbg-404__links a { display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--bbg-surface); border: 1px solid var(--bbg-line); text-decoration: none; font-weight: 600; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--bbg-line-2); font: inherit; background: #fff; }
.search-form .search-submit { min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--bbg-teal); color: #fff; font-weight: 700; cursor: pointer; }
.page-nav { padding: 24px 0; }

/* ---------- Plugin output (same as the old theme) ---------- */
.post-views, .pvc_stats, .pvc_clearer, .entry-views, .post-views-count { display: none !important; }
#author-bio-box, .saboxplugin-wrap { display: none !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .bbg-topbar, .bbg-mainbar, .bbg-footer__rg, .bbg-offer__actions, .bbg-tabs { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   v2.1 additions
   ========================================================================== */

/* ---------- Homepage hero ---------- */
.bbg-homehero { position: relative; overflow: hidden; background: var(--bbg-teal); color: #fff; padding: 88px 0 190px; isolation: isolate; }
.bbg-homehero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.bbg-homehero__bg::before {
  /* fine dot grid, fading out to the left */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(46, 254, 162, .22) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 75%);
}
.bbg-homehero__bg::after {
  /* the logo's flag shape, very large and faint */
  content: ""; position: absolute; right: -80px; top: 50%; width: 520px; height: 520px; transform: translateY(-58%) rotate(-8deg);
  border: 2px solid rgba(46, 254, 162, .16); border-radius: 48px;
  clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(46, 254, 162, .07), rgba(46, 254, 162, 0) 60%);
}
.bbg-homehero__inner { position: relative; max-width: calc(var(--bbg-container) + var(--bbg-gutter) * 2); }
.bbg-homehero__title {
  color: #fff; font-size: clamp(38px, 5.6vw, 70px); line-height: 1.02; letter-spacing: -0.035em; max-width: 880px; margin: 0 0 22px;
}
.bbg-hl { color: var(--bbg-mint); }
.bbg-homehero__lead { font-size: 19px; line-height: 1.6; color: var(--bbg-teal-soft); max-width: 640px; margin: 0 0 30px; }
.bbg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bbg-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none;
  font-size: 14.5px; font-weight: 600; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  backdrop-filter: blur(4px);
}
.bbg-chip:hover { background: var(--bbg-mint); border-color: var(--bbg-mint); color: var(--bbg-teal); }

.bbg-live { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: #17C77E; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(23, 199, 126, .5); animation: bbg-pulse 2s infinite; }
@keyframes bbg-pulse { 0% { box-shadow: 0 0 0 0 rgba(23, 199, 126, .45); } 70% { box-shadow: 0 0 0 8px rgba(23, 199, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 199, 126, 0); } }

/* Label on toplist rows gets a thin accent line */
.bbg-offer.has-label { box-shadow: inset 3px 0 0 var(--bbg-mint); }

/* ---------- Tiles (sleeker, horizontal) ---------- */
.bbg-tile { flex-direction: row; align-items: center; gap: 16px; padding: 22px; }
.bbg-tile__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.bbg-tile__icon { width: 50px; height: 50px; flex-shrink: 0; }
.bbg-tile__title { font-size: 19px; }
.bbg-tile__text { font-size: 14.5px; }
.bbg-tile__go { color: var(--bbg-teal); opacity: .35; transition: transform .15s ease, opacity .15s ease; flex-shrink: 0; }
.bbg-tile:hover .bbg-tile__go { opacity: 1; transform: translateX(3px); }
.bbg-tile:hover .bbg-tile__icon { background: var(--bbg-mint); }

/* ---------- About ---------- */
.bbg-about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.bbg-about h2 { font-size: clamp(28px, 3.4vw, 40px); }
.bbg-prose--flush { max-width: none; margin: 0; }
.bbg-about__card {
  list-style: none; margin: 0; padding: 28px; border-radius: 20px; background: var(--bbg-teal); color: #E6F0F0;
  display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.45;
}
.bbg-about__card li { display: flex; gap: 12px; align-items: flex-start; }
.bbg-about__tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; background: var(--bbg-mint); color: var(--bbg-teal); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Steps ---------- */
.bbg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: bbg-step; }
.bbg-step { position: relative; padding: 26px 24px 24px; background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: 18px; counter-increment: bbg-step; }
.bbg-step::before {
  content: counter(bbg-step); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--bbg-teal); color: var(--bbg-mint); font-family: var(--bbg-font-display); font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.bbg-step__title { font-family: var(--bbg-font-body); font-size: 17px; letter-spacing: 0; font-weight: 700; margin: 0 0 6px; }
.bbg-step p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bbg-ink-2); }
.bbg-steps--list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.bbg-steps--list .bbg-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; padding: 20px; }
.bbg-steps--list .bbg-step::before { grid-row: span 2; margin: 0; }

/* ---------- Sports ---------- */
.bbg-sports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bbg-sport {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 18px; border-radius: 14px; background: var(--bbg-surface);
  border: 1px solid var(--bbg-line); color: var(--bbg-ink); text-decoration: none; font-weight: 700; font-size: 16px;
  transition: border-color .15s ease, background-color .15s ease;
}
.bbg-sport > .bbg-icon:first-child { color: var(--bbg-teal); }
.bbg-sport span { flex: 1; }
.bbg-sport__go { opacity: .35; transition: transform .15s ease, opacity .15s ease; }
.bbg-sport:hover { border-color: var(--bbg-teal); color: var(--bbg-ink); }
.bbg-sport:hover .bbg-sport__go { opacity: 1; transform: translateX(3px); }

/* ---------- What we check ---------- */
.bbg-rank { align-items: start; }
.bbg-rank__point { background: var(--bbg-surface-2); border: 1px solid var(--bbg-line); }
.bbg-rank__icon { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; background: var(--bbg-tint); color: var(--bbg-teal); }

/* ---------- Responsible gambling box ---------- */
.bbg-rgbox {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 32px 36px; border-radius: 22px; background: var(--bbg-teal); color: var(--bbg-teal-soft);
}
.bbg-rgbox h2 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.bbg-rgbox p { margin: 0; font-size: 15.5px; line-height: 1.55; max-width: 760px; }
.bbg-rgbox__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--bbg-teal-800); color: var(--bbg-mint); display: inline-flex; align-items: center; justify-content: center; }

/* ---------- v2 page modules ---------- */
.bbg-narrow { max-width: calc(820px + var(--bbg-gutter) * 2); }
.bbg-module__title { font-size: clamp(26px, 3vw, 34px); }
.bbg-module__intro { margin: -4px 0 18px; color: var(--bbg-ink-2); }
.bbg-module--callout .bbg-container, .bbg-module--facts .bbg-container { max-width: calc(820px + var(--bbg-gutter) * 2); }
.bbg-callout { display: flex; gap: 16px; padding: 22px 24px; border-radius: 18px; background: var(--bbg-tint); color: var(--bbg-ink-2); border: 1px solid rgba(0, 50, 60, .08); }
.bbg-callout__icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--bbg-teal); display: inline-flex; align-items: center; justify-content: center; }
.bbg-callout__title { margin: 2px 0 6px; font-weight: 700; color: var(--bbg-ink); font-size: 17px; }
.bbg-callout .bbg-prose { font-size: 16px; }
.bbg-callout--tip { background: var(--bbg-new-bg); }
.bbg-callout--warning { background: #FFF1D6; }
.bbg-callout--warning .bbg-callout__icon { color: #8A5A00; }
.bbg-callout--dark { background: var(--bbg-teal); color: var(--bbg-teal-soft); border: 0; }
.bbg-callout--dark .bbg-callout__title, .bbg-callout--dark .bbg-prose, .bbg-callout--dark .bbg-prose strong { color: #fff; }
.bbg-callout--dark .bbg-callout__icon { background: var(--bbg-teal-800); color: var(--bbg-mint); }
.bbg-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bbg-proscons__col { padding: 22px 24px; border-radius: 18px; background: var(--bbg-surface); border: 1px solid var(--bbg-line); }
.bbg-proscons__title { margin: 0 0 12px; font-weight: 800; font-family: var(--bbg-font-display); font-size: 20px; color: var(--bbg-ink); }
.bbg-proscons ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bbg-proscons li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.bbg-proscons__col--pros .bbg-icon { color: var(--bbg-ok); margin-top: 2px; }
.bbg-proscons__col--cons .bbg-icon { color: #B3261E; margin-top: 2px; }
.bbg-facts { margin: 0; border: 1px solid var(--bbg-line); border-radius: 16px; overflow: hidden; background: var(--bbg-surface); }
.bbg-facts__row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); border-top: 1px solid var(--bbg-line); }
.bbg-facts__row:first-child { border-top: 0; }
.bbg-facts dt, .bbg-facts dd { margin: 0; padding: 14px 18px; font-size: 15.5px; }
.bbg-facts dt { background: var(--bbg-surface-2); font-weight: 700; color: var(--bbg-ink); }

/* ---------- Footer lists ---------- */
.bbg-footer__list li { margin: 0 0 11px; line-height: 1.4; }
.bbg-footer__list a { color: #B9CFCF; text-decoration: none; }
.bbg-footer__list a:hover { color: #fff; }
.bbg-footer__list strong { color: #fff; font-weight: 600; display: block; }
.bbg-footer__list span { font-size: 13.5px; }
.bbg-footer__col h3 { font-family: var(--bbg-font-body); font-size: 14.5px; font-weight: 700; letter-spacing: 0; color: #fff; margin: 0 0 14px; }
.bbg-footer__main { display: flex; flex-wrap: wrap; gap: 36px 48px; }
.bbg-footer__main > * { flex: 1 1 180px; min-width: 0; }
.bbg-footer__main > .bbg-footer__brand { flex: 1.4 1 260px; }

/* ---------- GTranslate floating switcher: keep it out of the header ---------- */
#gt_float_wrapper, .gt_float_switcher.notranslate { top: auto !important; bottom: 16px !important; left: 16px !important; right: auto !important; z-index: 40 !important; }

/* ---------- Inner page hero: "Read more" on small screens ---------- */
.bbg-hero__more { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bbg-about { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bbg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbg-sports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bbg-rgbox { grid-template-columns: auto minmax(0, 1fr); }
  .bbg-rgbox .bbg-btn { grid-column: 1 / -1; justify-self: start; }
  .bbg-homehero__bg::after { opacity: .5; }
}
@media (max-width: 720px) {
  /* Home hero: compact so the offers start on the first screen */
  .bbg-homehero { padding: 28px 0 88px; }
  .bbg-homehero__title { font-size: 33px; line-height: 1.06; margin-bottom: 12px; }
  .bbg-homehero__lead { font-size: 15.5px; line-height: 1.5; margin-bottom: 18px; }
  .bbg-homehero__bg::after { display: none; }
  .bbg-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--bbg-gutter) * -1); padding-right: var(--bbg-gutter); scrollbar-width: none; }
  .bbg-chips::-webkit-scrollbar { display: none; }
  .bbg-chip { flex-shrink: 0; min-height: 36px; font-size: 13.5px; padding: 0 14px; }
  .bbg-toplist { margin-top: -68px; }

  /* Inner page hero: smaller type, intro clamped with "Read more" */
  .bbg-hero { padding: 26px 0 30px; }
  .bbg-hero h1, .bbg-hero .bbg-prose h1 { font-size: 30px; margin-bottom: 10px; }
  .bbg-hero .bbg-prose p, .bbg-hero__lead { font-size: 15.5px; line-height: 1.55; }
  .bbg-hero__text.is-clamped { max-height: 196px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .bbg-hero__more {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 0; background: none; border: 0; color: var(--bbg-mint);
    font-weight: 700; font-size: 14.5px; cursor: pointer; min-height: 32px;
  }
  .bbg-hero + .bbg-module, .bbg-pagehead + .bbg-module { padding-top: 20px; }
  .bbg-pagehead { padding: 26px 0 28px; }
  .bbg-pagehead h1 { font-size: 30px; }
  .bbg-pagehead__lead, .bbg-pagehead__desc { font-size: 15.5px; }
  .bbg-article__figure { margin-top: 20px; }
  .bbg-article__img { max-height: 260px; }

  .bbg-module { padding: 32px 0; }
  .bbg-section-head { margin-bottom: 16px; }
  .bbg-section-head h2, .bbg-about h2, .bbg-rank h2, .bbg-faqs__title, .bbg-module__title { font-size: 26px; }
  .bbg-prose { font-size: 16.5px; }
  .bbg-prose h2 { font-size: 24px; }
  .bbg-prose h3 { font-size: 20px; }
  .bbg-tile { padding: 14px; gap: 12px; }
  .bbg-tile__icon { width: 40px; height: 40px; }
  .bbg-tile__title { font-size: 15.5px; }
  .bbg-tile__go { display: none; }
  .bbg-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bbg-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .bbg-step::before { grid-row: span 2; margin: 0; }
  .bbg-sport { min-height: 54px; font-size: 15px; padding: 0 14px; }
  .bbg-about__card { padding: 22px; }
  .bbg-rgbox { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 14px; }
  .bbg-rgbox h2 { font-size: 22px; }
  .bbg-proscons { grid-template-columns: minmax(0, 1fr); }
  .bbg-facts__row { grid-template-columns: minmax(0, 1fr); }
  .bbg-facts dt { padding-bottom: 4px; } .bbg-facts dd { padding-top: 4px; }
  .bbg-callout { padding: 18px; }
  .bbg-offer.has-label { box-shadow: inset 3px 0 0 var(--bbg-mint); }
}
@media (max-width: 400px) { .bbg-sports { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   v2.2 — Offer Finder, sign-up, scrolling bars, popup
   ========================================================================== */

.bbg-btn--lg { min-height: 54px; padding: 0 24px; font-size: 16.5px; border-radius: 14px; }
.bbg-homehero__cta { margin: -6px 0 22px; }
.bbg-homehero__cta .bbg-icon { fill: var(--bbg-teal); }

/* ---------- Why-we-picked-it chips on offer rows ---------- */
.bbg-offer__why { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.bbg-offer__why span {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px;
  background: var(--bbg-new-bg); color: var(--bbg-new-ink); font-size: 12.5px; font-weight: 600; line-height: 1.2;
}

/* ---------- Offer Finder ---------- */
.bbg-finder-wrap { max-width: calc(900px + var(--bbg-gutter) * 2); }
.bbg-finder {
  background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: 24px; padding: 32px;
  box-shadow: 0 18px 50px rgba(0, 38, 46, .08);
}
.bbg-finder__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.bbg-finder__spark {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--bbg-teal); color: var(--bbg-mint);
  display: inline-flex; align-items: center; justify-content: center;
}
.bbg-finder__spark .bbg-icon { fill: var(--bbg-mint); }
.bbg-finder__title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.bbg-finder__intro { margin: 0; color: var(--bbg-ink-2); }
.bbg-finder__progress { height: 6px; border-radius: 999px; background: var(--bbg-bg); overflow: hidden; margin-bottom: 26px; }
.bbg-finder__progress span { display: block; height: 100%; background: var(--bbg-mint); border-radius: inherit; transition: width .35s ease; }
.bbg-finder__step { border: 0; margin: 0; padding: 0; min-width: 0; animation: bbg-fade .3s ease; }
@keyframes bbg-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bbg-finder__q { font-family: var(--bbg-font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--bbg-ink); padding: 0; margin: 0 0 6px; }
.bbg-finder__count { display: block; font-family: var(--bbg-font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bbg-muted); margin-bottom: 6px; }
.bbg-finder__hint { margin: 0 0 16px; color: var(--bbg-muted); font-size: 14.5px; }
.bbg-finder__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 24px; }
.bbg-opt { position: relative; cursor: pointer; }
.bbg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bbg-opt span {
  display: flex; align-items: center; min-height: 52px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--bbg-line-2);
  background: var(--bbg-surface); font-weight: 600; font-size: 15.5px; color: var(--bbg-ink); transition: border-color .15s ease, background-color .15s ease;
}
.bbg-opt:hover span { border-color: var(--bbg-teal); }
.bbg-opt input:checked + span { border-color: var(--bbg-teal); background: var(--bbg-tint); box-shadow: inset 0 0 0 1px var(--bbg-teal); }
.bbg-opt input:checked + span::after { content: "✓"; margin-left: auto; font-weight: 800; color: var(--bbg-teal); }
.bbg-opt input:focus-visible + span { outline: 3px solid var(--bbg-mint); outline-offset: 2px; }
.bbg-finder__nav { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.bbg-finder__back, .bbg-finder__skip, .bbg-finder__restart {
  background: none; border: 0; min-height: 44px; padding: 0 10px; color: var(--bbg-muted); font-weight: 600; cursor: pointer; font-size: 15px;
}
.bbg-finder__back { margin-right: auto; }
.bbg-finder__back:hover, .bbg-finder__skip:hover, .bbg-finder__restart:hover { color: var(--bbg-teal); text-decoration: underline; }
.bbg-finder__thinking { display: flex; align-items: center; gap: 12px; padding: 28px 0; font-weight: 600; color: var(--bbg-ink); }
.bbg-dots { display: inline-flex; gap: 5px; }
.bbg-dots i { width: 9px; height: 9px; border-radius: 999px; background: var(--bbg-mint); animation: bbg-dot 1s infinite ease-in-out; }
.bbg-dots i:nth-child(2) { animation-delay: .15s; } .bbg-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bbg-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
.bbg-finder__summary { font-family: var(--bbg-font-display); font-weight: 700; font-size: 20px; color: var(--bbg-ink); margin: 0 0 14px; }
.bbg-finder__note { background: #FFF1D6; color: #6B4600; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; }
.bbg-finder__offers { box-shadow: none; }
.bbg-finder__offers .bbg-offer { grid-template-columns: [rank] 28px [brand] minmax(0, 1fr) [actions] 180px; grid-template-areas: "rank brand actions" "rank deal actions"; gap: 8px 18px; align-items: start; }
.bbg-finder__offers .bbg-offer__points { display: none; }
.bbg-finder__offers .bbg-offer__actions { align-self: center; }
.bbg-finder__small { font-size: 12.5px; color: var(--bbg-muted); margin: 10px 0 0; }
.bbg-finder__signup { margin-top: 28px; padding: 24px; border-radius: 18px; background: var(--bbg-bg); }
.bbg-finder__signup h3 { font-size: 21px; margin: 0 0 4px; }
.bbg-finder__signup > p { margin: 0 0 14px; color: var(--bbg-ink-2); font-size: 15px; }
.bbg-finder__restart { margin-top: 12px; }
.bbg-finder__empty { padding: 20px; margin: 0; }

/* ---------- Sign-up form ---------- */
.bbg-signup__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bbg-signup__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.bbg-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--bbg-ink-2); }
.bbg-field input, .bbg-field select {
  min-height: 48px; border-radius: 12px; border: 1px solid var(--bbg-line-2); background: #fff; color: var(--bbg-ink);
  padding: 0 14px; font: inherit; font-size: 15px; font-weight: 400; width: 100%;
}
.bbg-field input:focus, .bbg-field select:focus { outline: none; border-color: var(--bbg-teal); box-shadow: 0 0 0 3px rgba(46, 254, 162, .35); }
.bbg-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 13.5px; line-height: 1.45; color: var(--bbg-ink-2); cursor: pointer; }
.bbg-check input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--bbg-teal); }
.bbg-signup__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bbg-signup__msg { margin: 0; font-size: 14.5px; font-weight: 600; }
.bbg-signup__msg.is-ok { color: var(--bbg-ok); }
.bbg-signup__msg.is-error { color: #B3261E; }
.bbg-signup.is-done .bbg-signup__row, .bbg-signup.is-done .bbg-check, .bbg-signup.is-done button { display: none; }
.bbg-signup--dark .bbg-field, .bbg-signup--dark .bbg-check { color: #E6F0F0; }
.bbg-signup--dark .bbg-field input, .bbg-signup--dark .bbg-field select { background: var(--bbg-teal-800); border-color: #3F6D73; color: #fff; }
.bbg-signup--dark .bbg-check a { color: #fff; }
.bbg-signup--dark .bbg-signup__msg.is-ok { color: var(--bbg-mint); }
.bbg-signup--dark .bbg-signup__msg.is-error { color: #FFB4AB; }
@media (min-width: 961px) { .bbg-newsletter { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }

/* ---------- Scrolling bars ---------- */
.bbg-ticker { background: var(--bbg-teal-900); color: #E6F0F0; border-bottom: 1px solid #0F4B56; font-size: 14px; }
.bbg-ticker--posts { background: var(--bbg-surface); color: var(--bbg-ink); border-top: 1px solid var(--bbg-line); border-bottom: 0; margin-top: 40px; }
.bbg-ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.bbg-ticker__label {
  margin: 0; flex-shrink: 0; display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bbg-mint); padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .14);
}
.bbg-ticker--posts .bbg-ticker__label { color: var(--bbg-teal); border-right-color: var(--bbg-line); }
.bbg-ticker__viewport {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.bbg-ticker__track { display: flex; width: max-content; animation: bbg-marquee 60s linear infinite; }
.bbg-ticker--slow .bbg-ticker__track { animation-duration: 90s; }
.bbg-ticker--fast .bbg-ticker__track { animation-duration: 38s; }
.bbg-ticker:hover .bbg-ticker__track, .bbg-ticker:focus-within .bbg-ticker__track, .bbg-ticker.is-paused .bbg-ticker__track { animation-play-state: paused; }
@keyframes bbg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bbg-ticker__list { display: flex; list-style: none; margin: 0; padding: 0; }
.bbg-ticker__item { flex-shrink: 0; }
.bbg-ticker__item a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; color: inherit; text-decoration: none; white-space: nowrap; position: relative;
}
.bbg-ticker__item a::after { content: ""; position: absolute; right: 0; top: 50%; width: 4px; height: 4px; border-radius: 999px; background: currentColor; opacity: .35; transform: translateY(-50%); }
.bbg-ticker__item a:hover span { text-decoration: underline; }
.bbg-ticker__item strong { color: #fff; font-weight: 700; }
.bbg-ticker__item span { opacity: .85; }
.bbg-ticker__item .bbg-badge { font-style: normal; font-size: 10px; padding: 4px 6px; }
.bbg-ticker--posts .bbg-ticker__item em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bbg-ok); }
.bbg-ticker--posts .bbg-ticker__item span { opacity: 1; font-weight: 600; }
.bbg-ticker__pause {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: inherit;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: .75;
}
.bbg-ticker--posts .bbg-ticker__pause { border-color: var(--bbg-line-2); }
.bbg-ticker__pause[aria-pressed="true"] { background: var(--bbg-mint); color: var(--bbg-teal); border-color: var(--bbg-mint); opacity: 1; }
/* Reduced motion: no animation, scroll sideways instead */
.bbg-ticker.is-static .bbg-ticker__track { animation: none; }
.bbg-ticker.is-static .bbg-ticker__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.bbg-ticker.is-static .bbg-ticker__list[aria-hidden="true"], .bbg-ticker.is-static .bbg-ticker__pause { display: none; }
.bbg-ticker--posts + .bbg-footer { margin-top: 0; }

/* ---------- Popup ---------- */
.bbg-popup {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 24px;
  background: var(--bbg-surface); color: var(--bbg-ink); box-shadow: 0 30px 80px rgba(0, 20, 26, .45); overflow: auto;
}
.bbg-popup[open] { animation: bbg-pop .25s ease; }
@keyframes bbg-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.bbg-popup::backdrop { background: rgba(0, 25, 31, .6); backdrop-filter: blur(3px); }
.bbg-popup__head { display: flex; justify-content: space-between; gap: 16px; padding: 24px 24px 18px; background: var(--bbg-teal); color: #fff; }
.bbg-popup__head h2 { color: #fff; font-size: 26px; margin: 0 0 4px; }
.bbg-popup__eyebrow { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--bbg-mint); display: flex; align-items: center; }
.bbg-popup__text { margin: 0; color: var(--bbg-teal-soft); font-size: 15px; }
.bbg-popup__close {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--bbg-teal-line); background: var(--bbg-teal-800);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bbg-popup__offers { padding: 8px 20px; }
.bbg-mini { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bbg-line); }
.bbg-mini:last-child { border-bottom: 0; }
.bbg-logo--sm { width: 84px; height: 44px; border-radius: 10px; }
.bbg-mini__name { margin: 0 0 2px; font-weight: 700; font-size: 14.5px; color: var(--bbg-ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bbg-mini__name .bbg-badge { font-size: 10px; padding: 4px 6px; }
.bbg-mini__headline { margin: 0; font-family: var(--bbg-font-display); font-weight: 700; font-size: 17px; line-height: 1.2; color: var(--bbg-ink); }
.bbg-mini__cta { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.bbg-popup__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px 20px; background: var(--bbg-surface-2); border-top: 1px solid var(--bbg-line); }
.bbg-popup__foot p { margin: 0; font-size: 12.5px; color: var(--bbg-muted); }
.bbg-popup__foot p a { color: var(--bbg-muted); }

@media (max-width: 720px) {
  .bbg-finder { padding: 20px 16px; border-radius: 20px; }
  .bbg-finder__head { flex-direction: column; gap: 10px; }
  .bbg-finder__spark { width: 40px; height: 40px; }
  .bbg-finder__q { font-size: 20px; }
  .bbg-finder__options { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .bbg-opt span { min-height: 48px; font-size: 14.5px; padding: 8px 12px; }
  .bbg-finder__offers .bbg-offer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "deal" "actions"; }
  .bbg-finder__signup { padding: 18px 14px; }
  .bbg-signup__row { grid-template-columns: minmax(0, 1fr); }
  .bbg-ticker__inner { gap: 10px; min-height: 40px; }
  .bbg-ticker__label { font-size: 11px; padding-right: 10px; }
  .bbg-ticker__label .bbg-live { display: none; }
  .bbg-ticker__item a { padding: 10px 16px; font-size: 13.5px; }
  .bbg-ticker__pause { display: none; }
  /* Popup becomes a bottom sheet */
  .bbg-popup { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 88vh; }
  .bbg-popup__head { padding: 20px 16px 14px; }
  .bbg-popup__head h2 { font-size: 22px; }
  .bbg-popup__offers { padding: 4px 16px; }
  .bbg-mini { grid-template-columns: auto minmax(0, 1fr); }
  .bbg-mini__cta { grid-column: 1 / -1; }
  .bbg-popup__foot { padding: 12px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .bbg-ticker__track { animation: none !important; }
}

/* ==========================================================================
   v2.3 — BestBet Match (chat-style offer assistant) + homepage band
   ========================================================================== */
:root {
  --bbg-ai-bg: #011A20;
  --bbg-ai-panel: #062830;
  --bbg-ai-line: rgba(46, 254, 162, .16);
  --bbg-ai-glow: rgba(46, 254, 162, .22);
}

.bbg-match {
  position: relative; display: flex; flex-direction: column; min-height: 560px; max-height: min(820px, 88vh);
  background: var(--bbg-ai-bg); color: #E6F0F0; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--bbg-ai-line);
  box-shadow: 0 0 0 1px rgba(46, 254, 162, .05), 0 30px 80px rgba(0, 20, 26, .35), 0 0 60px -20px var(--bbg-ai-glow);
  isolation: isolate;
}
.bbg-match::before {
  /* soft moving glow + fine grid, gives the "live system" feel */
  content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(46, 254, 162, .12), transparent 70%) 20% 10% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(0, 170, 200, .12), transparent 70%) 85% 80% / 55% 55% no-repeat;
  animation: bbg-drift 18s ease-in-out infinite alternate;
}
.bbg-match::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(46, 254, 162, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 254, 162, .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%);
}
@keyframes bbg-drift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); } to { transform: translate3d(3%, 2%, 0) rotate(6deg); } }

.bbg-match__bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--bbg-ai-line); background: rgba(6, 40, 48, .7); backdrop-filter: blur(8px); }
.bbg-match__avatar {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(from 180deg, var(--bbg-mint), #00C2D1, var(--bbg-mint)); color: var(--bbg-teal);
  box-shadow: 0 0 22px var(--bbg-ai-glow);
}
.bbg-match__avatar .bbg-icon { fill: var(--bbg-teal); stroke: var(--bbg-teal); }
.bbg-match__who { flex: 1; min-width: 0; }
.bbg-match__name { margin: 0; font-family: var(--bbg-font-display); font-weight: 800; font-size: 17px; color: #fff; letter-spacing: -0.01em; }
.bbg-match__status { margin: 0; font-size: 13px; color: var(--bbg-teal-soft); display: flex; align-items: center; gap: 6px; }
.bbg-match__online { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--bbg-mint); box-shadow: 0 0 0 0 rgba(46, 254, 162, .6); animation: bbg-pulse 2s infinite; }
.bbg-match__meta { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bbg-mint); padding: 6px 10px; border: 1px solid var(--bbg-ai-line); border-radius: 999px; white-space: nowrap; }

.bbg-match__log { flex: 1; overflow-y: auto; padding: 22px 20px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.bbg-msg {
  max-width: min(78%, 560px); padding: 12px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.5; animation: bbg-msg-in .28s ease both;
}
@keyframes bbg-msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.bbg-msg--bot { align-self: flex-start; background: var(--bbg-ai-panel); border: 1px solid var(--bbg-ai-line); border-top-left-radius: 6px; color: #EAF6F4; }
.bbg-msg--user { align-self: flex-end; background: var(--bbg-mint); color: var(--bbg-teal); font-weight: 700; border-top-right-radius: 6px; }
.bbg-msg--user.is-muted { background: transparent; color: var(--bbg-teal-soft); border: 1px dashed rgba(198, 216, 216, .35); font-weight: 600; }
.bbg-msg.is-typing { padding: 14px 16px; }
.bbg-msg.is-note { background: rgba(255, 196, 84, .12); border-color: rgba(255, 196, 84, .35); color: #FFE2A8; }
.bbg-msg--wide { max-width: 100%; width: 100%; }
.bbg-msg--results { max-width: 100%; width: 100%; padding: 0; background: transparent; border: 0; }
.bbg-msg--form { background: var(--bbg-ai-panel); }

/* Analysing sequence */
.bbg-analyse__title { margin: 0 0 10px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.bbg-analyse__title::before { content: ""; width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--bbg-mint); border-right-color: transparent; animation: bbg-spin .8s linear infinite; }
.is-complete .bbg-analyse__title::before { animation: none; border-color: var(--bbg-mint); background: var(--bbg-mint); }
@keyframes bbg-spin { to { transform: rotate(360deg); } }
.bbg-analyse { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: rgba(230, 240, 240, .45); }
.bbg-analyse li { display: flex; align-items: center; gap: 10px; transition: color .2s ease; }
.bbg-analyse li.is-active { color: #fff; }
.bbg-analyse li.is-done { color: var(--bbg-teal-soft); }
.bbg-analyse__tick { width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid rgba(230, 240, 240, .25); flex-shrink: 0; position: relative; }
.is-active .bbg-analyse__tick { border-color: var(--bbg-mint); box-shadow: 0 0 12px var(--bbg-ai-glow); }
.is-done .bbg-analyse__tick { background: var(--bbg-mint); border-color: var(--bbg-mint); }
.is-done .bbg-analyse__tick::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--bbg-teal); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.bbg-analyse__bar { height: 4px; border-radius: 999px; background: rgba(46, 254, 162, .12); overflow: hidden; }
.bbg-analyse__bar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--bbg-mint), #00C2D1); transition: width .45s ease; }

/* Composer: answer chips */
.bbg-match__composer { padding: 14px 20px 18px; border-top: 1px solid var(--bbg-ai-line); background: rgba(1, 26, 32, .85); backdrop-filter: blur(8px); min-height: 72px; }
.bbg-match__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.bbg-choice {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(46, 254, 162, .35); background: rgba(46, 254, 162, .06);
  color: #EAF6F4; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}
.bbg-choice:hover { background: rgba(46, 254, 162, .16); border-color: var(--bbg-mint); }
.bbg-choice:active { transform: scale(.97); }
.bbg-choice[aria-pressed="true"], .bbg-choice[aria-pressed="true"]:hover { background: var(--bbg-mint); color: var(--bbg-teal); border-color: var(--bbg-mint); }
.bbg-choice.is-suggested { border-color: var(--bbg-mint); box-shadow: 0 0 0 3px rgba(46, 254, 162, .18); }
.bbg-choice.is-suggested::after { content: " · suggested"; font-weight: 500; opacity: .7; font-size: 12.5px; }
.bbg-match__actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.bbg-match__done { margin-left: auto; min-height: 44px; }
.bbg-match__done:disabled { opacity: .4; cursor: not-allowed; }
.bbg-match__skip { background: none; border: 0; color: var(--bbg-teal-soft); font-weight: 600; font-size: 14.5px; min-height: 44px; padding: 0 8px; cursor: pointer; }
.bbg-match__skip:hover { color: #fff; text-decoration: underline; }
.bbg-match__noscript { padding: 20px; margin: 0; }

/* Results inside the chat */
.bbg-match__offers { border-color: var(--bbg-ai-line); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.bbg-match__offers .bbg-offer { grid-template-columns: [rank] 28px [brand] minmax(0, 1fr) [actions] 170px; grid-template-areas: "rank brand actions" "rank deal actions"; gap: 8px 16px; align-items: start; padding: 18px 20px; }
.bbg-match__offers .bbg-offer__points { display: none; }
.bbg-match__offers .bbg-offer__actions { align-self: center; }
.bbg-match__small { font-size: 12.5px; color: var(--bbg-teal-soft); margin: 10px 4px 0; }
.bbg-match__small a { color: #fff; }
.bbg-offer__match { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--bbg-ok); }
.bbg-offer__match-bar { position: relative; display: inline-block; width: 64px; height: 6px; border-radius: 999px; background: var(--bbg-new-bg); overflow: hidden; }
.bbg-offer__match-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--m); background: linear-gradient(90deg, #17C77E, var(--bbg-mint)); border-radius: inherit; }
.bbg-msg--form .bbg-signup { margin-top: 2px; }
.bbg-msg--form .bbg-signup__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); }

/* ---------- Homepage band ---------- */
.bbg-module--match { padding-top: 64px; padding-bottom: 8px; }
.bbg-matchband {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 40px 44px; border-radius: 26px; background: var(--bbg-ai-bg); color: #E6F0F0; text-decoration: none; overflow: hidden; isolation: isolate;
  border: 1px solid var(--bbg-ai-line); box-shadow: 0 0 60px -24px var(--bbg-ai-glow);
}
.bbg-matchband::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background: radial-gradient(closest-side, rgba(46, 254, 162, .14), transparent 70%) 90% 50% / 55% 70% no-repeat;
  animation: bbg-drift 16s ease-in-out infinite alternate;
}
.bbg-matchband:hover { color: #E6F0F0; border-color: rgba(46, 254, 162, .4); }
.bbg-matchband__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bbg-matchband__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bbg-mint); }
.bbg-matchband__title { font-family: var(--bbg-font-display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.bbg-matchband__copy { font-size: 16.5px; line-height: 1.6; color: var(--bbg-teal-soft); max-width: 560px; }
.bbg-matchband__btn { margin-top: 6px; }
.bbg-matchband:hover .bbg-matchband__btn { background: var(--bbg-mint-hover); }
.bbg-matchband__demo { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: rgba(6, 40, 48, .7); border: 1px solid var(--bbg-ai-line); }
.bbg-matchband__demo .bbg-msg { animation: none; font-size: 14.5px; }
.bbg-matchband__scan { display: inline-flex; align-items: center; gap: 8px; }
.bbg-matchband__scan i { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--bbg-mint); border-right-color: transparent; animation: bbg-spin .8s linear infinite; }
.bbg-matchband__result { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--bbg-ok); font-size: 14px; }
.bbg-matchband__result .bbg-offer__match-bar { width: 90px; }

@media (max-width: 900px) {
  .bbg-matchband { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 22px; }
}
@media (max-width: 720px) {
  .bbg-match { min-height: 70vh; max-height: 82vh; border-radius: 20px; }
  .bbg-match__bar { padding: 12px 14px; }
  .bbg-match__meta { display: none; }
  .bbg-match__log { padding: 16px 12px 6px; }
  .bbg-msg { max-width: 88%; font-size: 15px; }
  .bbg-match__composer { padding: 12px 12px 14px; }
  .bbg-choice { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .bbg-choice.is-suggested::after { content: ""; }
  .bbg-match__offers .bbg-offer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "deal" "actions"; padding: 16px 14px; }
  .bbg-msg--form .bbg-signup__row { grid-template-columns: minmax(0, 1fr); }
  .bbg-matchband__demo { display: none; }
  .bbg-module--match { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .bbg-match::before, .bbg-matchband::before { animation: none; }
}

/* =========================================================================
   v2.4 Author profiles: byline, author box, profile page, team cards
   ========================================================================= */
.bbg-avatar { display: block; border-radius: 999px; object-fit: cover; background: var(--bbg-tint); flex: none; }
.bbg-avatar--initials { display: flex; align-items: center; justify-content: center; font-family: var(--bbg-font-display); font-weight: 800; color: var(--bbg-teal); }

.bbg-byline { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; }
.bbg-byline__img { flex: none; line-height: 0; }
.bbg-byline__img .bbg-avatar { width: 44px; height: 44px; box-shadow: 0 0 0 2px var(--bbg-mint); }
.bbg-byline__text { min-width: 0; }
.bbg-byline p { margin: 0; }
.bbg-byline__who { font-size: 15px; font-weight: 600; color: #fff; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.bbg-byline__who a { color: #fff; text-decoration: underline; text-decoration-color: rgba(46, 254, 162, .6); text-underline-offset: 3px; }
.bbg-byline__who a:hover { color: var(--bbg-mint); }
.bbg-byline__ed { font-weight: 500; color: var(--bbg-teal-soft); }
.bbg-byline__meta { font-size: 13.5px; color: var(--bbg-teal-soft); display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px !important; }
.bbg-hero .bbg-byline { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 760px; }
/* Light version (page with no header and no hero) */
.bbg-bylineband { padding: 24px 0 0; }
.bbg-bylineband .bbg-byline { margin: 0; }
.bbg-bylineband .bbg-byline__who, .bbg-bylineband .bbg-byline__who a { color: var(--bbg-ink); }
.bbg-bylineband .bbg-byline__ed, .bbg-bylineband .bbg-byline__meta { color: var(--bbg-muted); }

.bbg-chips--sm { list-style: none; margin: 0; padding: 0; gap: 8px; }
.bbg-chips--sm li { font-size: 13px; font-weight: 600; color: var(--bbg-teal); background: var(--bbg-tint); border-radius: 999px; padding: 5px 12px; line-height: 1.3; }

.bbg-authorbox-wrap { padding-top: 12px; }
.bbg-authorbox {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start;
  background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: var(--bbg-radius-lg); padding: 26px 28px; max-width: 860px;
}
.bbg-authorbox__img .bbg-avatar { width: 96px; height: 96px; }
.bbg-authorbox .bbg-eyebrow { color: var(--bbg-ok); margin-bottom: 6px; font-size: 12px; }
.bbg-authorbox__name { font-size: 24px; margin: 0; }
.bbg-authorbox__name a { color: var(--bbg-ink); text-decoration: none; }
.bbg-authorbox__name a:hover { text-decoration: underline; }
.bbg-authorbox__title { font-weight: 600; color: var(--bbg-muted); font-size: 14.5px; margin: 4px 0 12px; }
.bbg-authorbox__bio { color: var(--bbg-ink-2); font-size: 15.5px; line-height: 1.6; margin: 0 0 14px; }
.bbg-authorbox .bbg-chips--sm { margin-bottom: 16px; }
.bbg-authorbox__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--bbg-teal); text-decoration: none; font-size: 15px; }
.bbg-authorbox__more:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .bbg-authorbox { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 20px 18px; }
  .bbg-authorbox__img .bbg-avatar { width: 64px; height: 64px; }
  .bbg-authorbox__name { font-size: 20px; }
  .bbg-chips--sm { flex-wrap: wrap !important; overflow: visible !important; margin-right: 0 !important; padding-right: 0 !important; }
}

.bbg-profile__inner { display: flex; align-items: center; gap: 36px; }
.bbg-profile__img .bbg-avatar { width: 180px; height: 180px; box-shadow: 0 0 0 4px var(--bbg-teal-800), 0 0 0 6px var(--bbg-mint); }
.bbg-profile h1 { margin-bottom: 6px; }
.bbg-profile__title { font-size: 19px; color: var(--bbg-teal-soft); margin: 0; font-weight: 600; }
.bbg-profile__social { display: flex; gap: 16px; margin: 16px 0 0; }
.bbg-profile__social a { color: #fff; font-weight: 600; }
.bbg-profile__about { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.bbg-profile__skills { background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: var(--bbg-radius-lg); padding: 24px; }
.bbg-profile__h { font-size: 19px; margin: 0 0 14px; }
.bbg-profile__count { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--bbg-line); color: var(--bbg-muted); font-size: 14.5px; font-weight: 600; }
.bbg-section-title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 22px; }
@media (max-width: 900px) {
  .bbg-profile__about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .bbg-profile__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .bbg-profile__img .bbg-avatar { width: 112px; height: 112px; }
  .bbg-profile__title { font-size: 16.5px; }
}

.bbg-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin: 28px 0; }
.bbg-teamcard { background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: var(--bbg-radius-lg); padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.bbg-teamcard__img .bbg-avatar { width: 96px; height: 96px; margin-bottom: 16px; }
.bbg-prose .bbg-teamcard__name, .bbg-teamcard__name { font-size: 22px; margin: 0; }
.bbg-teamcard__name a { color: var(--bbg-ink); text-decoration: none; }
.bbg-prose .bbg-teamcard__title, .bbg-teamcard__title { font-weight: 600; color: var(--bbg-muted); font-size: 14.5px; margin: 4px 0 12px; }
.bbg-prose .bbg-teamcard__bio, .bbg-teamcard__bio { font-size: 15px; margin: 0 0 14px; }
.bbg-teamcard .bbg-chips--sm { margin-bottom: 16px; }
.bbg-prose .bbg-chips--sm li { margin: 0; }
.bbg-teamcard .bbg-authorbox__more { margin-top: auto; }
@media (max-width: 640px) {
  /* Keep the byline to two short lines on phones so the offers stay near the top */
  .bbg-byline { gap: 10px; }
  .bbg-hero .bbg-byline { margin-top: 16px; padding-top: 14px; }
  .bbg-byline__img .bbg-avatar { width: 36px; height: 36px; }
  .bbg-byline__ed, .bbg-byline__job { display: none; }
  .bbg-byline__who { font-size: 14.5px; }
}

/* =========================================================================
   v2.5 Homepage "Latest articles" tiles
   ========================================================================= */
.bbg-event--post { gap: 26px; }
.bbg-event__labels { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.bbg-event__when { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bbg-event__new { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--bbg-new-bg); color: var(--bbg-new-ink); }
.bbg-event--post .bbg-event__title { font-size: 21px; line-height: 1.18; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bbg-event--post .bbg-event__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bbg-event--post.bbg-event--featured .bbg-event__title { font-size: 24px; }
.bbg-event__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--bbg-muted); margin-top: 6px; }
.bbg-event__meta .bbg-avatar { width: 24px; height: 24px; font-size: 10px; }
.bbg-event--featured .bbg-event__meta { color: var(--bbg-teal-soft); }
.bbg-event--featured .bbg-event__top .bbg-icon { color: var(--bbg-mint); }
.bbg-events--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .bbg-events--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bbg-event--post .bbg-event__title { font-size: 19px; } .bbg-event--post { flex-basis: 270px; } }

/* =========================================================================
   v2.5 Article layout (posts)
   ========================================================================= */
.bbg-readbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.bbg-readbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--bbg-mint), #7CFFD0); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(46, 254, 162, .6); }
.admin-bar .bbg-readbar { top: 32px; }

.bbg-arthead { position: relative; overflow: hidden; background: var(--bbg-teal); color: #fff; padding: 44px 0 52px; isolation: isolate; }
.bbg-arthead::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(46, 254, 162, .16), rgba(46, 254, 162, 0) 70%);
}
.bbg-arthead::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.bbg-arthead__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.bbg-arthead.has-media .bbg-arthead__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.bbg-arthead__text { max-width: 780px; min-width: 0; }
.bbg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--bbg-teal-soft); margin: 0 0 18px; }
.bbg-crumbs a { color: var(--bbg-teal-soft); text-decoration: none; }
.bbg-crumbs a:hover { color: #fff; text-decoration: underline; }
.bbg-crumbs span { opacity: .5; }
.bbg-arthead__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.bbg-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: var(--bbg-teal-soft); text-decoration: none; }
.bbg-tag--cat { background: var(--bbg-mint); border-color: var(--bbg-mint); color: var(--bbg-teal); }
.bbg-tag--cat:hover { background: var(--bbg-mint-hover); color: var(--bbg-teal); }
.bbg-tag--new { background: var(--bbg-new-bg); border-color: var(--bbg-new-bg); color: var(--bbg-new-ink); text-transform: uppercase; letter-spacing: .06em; }
.bbg-arthead h1 { color: #fff; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.bbg-arthead__lead { font-size: 18.5px; line-height: 1.6; color: var(--bbg-teal-soft); margin: 0; max-width: 700px; }
.bbg-arthead__date { font-size: 14px; color: var(--bbg-teal-soft); margin: 20px 0 0; }
.bbg-arthead .bbg-byline { margin-top: 24px; }
.bbg-arthead__media { margin: 0; position: relative; }
.bbg-arthead__media::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 22px; border: 1px solid rgba(46, 254, 162, .35); z-index: -1; }
.bbg-arthead__img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: var(--bbg-teal-800); }

.bbg-artgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 24px; }
.bbg-artgrid--single { grid-template-columns: minmax(0, 780px); justify-content: center; }
.bbg-artmain { min-width: 0; max-width: 780px; }
.bbg-artfigure { margin: 0 0 32px; }
.bbg-artfigure img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 18px; }

/* Article text */
.bbg-prose--article { max-width: none; margin: 0; font-size: 18px; line-height: 1.75; }
.bbg-prose--article > p:first-of-type { font-size: 20px; line-height: 1.6; color: var(--bbg-ink); }
.bbg-prose--article h2 { scroll-margin-top: 100px; font-size: clamp(25px, 2.6vw, 32px); margin: 1.9em 0 .6em; padding-top: 1.1em; border-top: 1px solid var(--bbg-line); }
.bbg-prose--article > h2:first-child { border-top: 0; padding-top: 0; }
.bbg-prose--article h3 { scroll-margin-top: 100px; }
.bbg-prose--article img:not(.alignleft):not(.alignright) { max-width: 100% !important; width: auto; max-height: 460px; object-fit: contain; margin: 2em auto; border-radius: 16px; box-shadow: 0 1px 0 var(--bbg-line), 0 14px 34px rgba(0, 38, 46, .10); }
.bbg-prose--article img.is-zoomable { cursor: zoom-in; }
.bbg-prose--article table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; border: 1px solid var(--bbg-line); border-radius: 14px; overflow: hidden; background: var(--bbg-surface); }
.bbg-prose--article th { background: var(--bbg-teal); color: #fff; text-align: left; font-weight: 700; padding: 12px 14px; }
.bbg-prose--article td { padding: 12px 14px; border-top: 1px solid var(--bbg-line); vertical-align: top; }
.bbg-prose--article tr:nth-child(even) td { background: var(--bbg-surface-2); }
.bbg-prose--article blockquote { border-left: 4px solid var(--bbg-mint); }

/* Contents + sidebar */
.bbg-artside { min-width: 0; align-self: stretch; }
.bbg-artside__sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .bbg-artside__sticky { top: 132px; }
.bbg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.bbg-toc li { counter-increment: toc; margin: 0; }
.bbg-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px; padding: 8px 10px; border-radius: 10px; color: var(--bbg-ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.4; transition: background-color .15s ease, color .15s ease; }
.bbg-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--bbg-muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.bbg-toc a:hover { background: var(--bbg-tint); color: var(--bbg-teal); }
.bbg-toc a.is-active { background: var(--bbg-teal); color: #fff; }
.bbg-toc a.is-active::before { color: var(--bbg-mint); }
.bbg-toc--side { background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: var(--bbg-radius-lg); padding: 18px 12px 12px; max-height: calc(100vh - 380px); min-height: 160px; overflow: auto; scrollbar-width: thin; }
.bbg-toc__title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bbg-muted); margin: 0 10px 8px; }
.bbg-toc--inline { display: none; background: var(--bbg-surface); border: 1px solid var(--bbg-line); border-radius: 16px; margin: 0 0 28px; }
.bbg-toc--inline summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; color: var(--bbg-ink); }
.bbg-toc--inline summary::-webkit-details-marker { display: none; }
.bbg-toc--inline summary span { margin-left: auto; font-size: 12px; font-weight: 800; background: var(--bbg-tint); color: var(--bbg-teal); border-radius: 999px; padding: 3px 9px; }
.bbg-toc--inline[open] summary { border-bottom: 1px solid var(--bbg-line); }
.bbg-toc--inline ol { padding: 8px; }

.bbg-sideoffers { background: var(--bbg-teal); color: #fff; border-radius: var(--bbg-radius-lg); padding: 18px 18px 16px; }
.bbg-sideoffers__title { display: flex; align-items: center; font-family: var(--bbg-font-display); font-weight: 800; font-size: 18px; margin: 0 0 6px; }
.bbg-sideoffers .bbg-mini { grid-template-columns: auto minmax(0, 1fr); border-bottom-color: var(--bbg-teal-line); padding: 12px 0; gap: 6px 12px; }
.bbg-sideoffers .bbg-mini__name { color: #fff; }
.bbg-sideoffers .bbg-mini__headline { color: var(--bbg-teal-soft); font-size: 13.5px; margin: 0; }
.bbg-sideoffers .bbg-mini__cta { grid-column: 1 / -1; min-height: 40px; font-size: 14.5px; }
.bbg-sideoffers .bbg-logo--sm { width: 72px; height: 40px; }
.bbg-sideoffers__small { font-size: 11.5px; color: var(--bbg-teal-soft); margin: 10px 0 0; }
.bbg-sideoffers__small a { color: var(--bbg-teal-soft); }
.bbg-sideoffers__finder { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 12px; border: 1px dashed rgba(46, 254, 162, .5); color: var(--bbg-mint); font-weight: 700; font-size: 14px; text-decoration: none; }
.bbg-sideoffers__finder:hover { background: rgba(46, 254, 162, .08); color: var(--bbg-mint); }

/* Share + tags */
.bbg-artfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--bbg-line); }
.bbg-arttags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.bbg-arttags a { font-size: 13.5px; font-weight: 600; color: var(--bbg-teal); background: var(--bbg-tint); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.bbg-share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bbg-share__label { font-size: 13px; font-weight: 700; color: var(--bbg-muted); margin-right: 4px; }
.bbg-share__btn { position: relative; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--bbg-line-2); background: var(--bbg-surface); color: var(--bbg-teal); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.bbg-share__btn:hover, .bbg-share__btn.is-done { background: var(--bbg-teal); border-color: var(--bbg-teal); color: var(--bbg-mint); }
.bbg-share__done:not(:empty) { position: absolute; bottom: calc(100% + 8px); right: 0; white-space: nowrap; font-size: 12px; font-weight: 700; background: var(--bbg-ink); color: #fff; padding: 5px 9px; border-radius: 8px; }

.bbg-artmodules:empty { display: none; }
.bbg-article--v25 .bbg-authorbox-wrap .bbg-container, .bbg-article--v25 .bbg-authorbox-wrap { padding-top: 8px; }
.bbg-related { background: var(--bbg-surface-2); border-top: 1px solid var(--bbg-line); margin-top: 32px; padding: 52px 0 60px; }

/* Lightbox */
.bbg-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.bbg-lightbox::backdrop { background: rgba(0, 20, 25, .88); backdrop-filter: blur(4px); }
.bbg-lightbox img { display: block; max-width: 96vw; max-height: 90vh; border-radius: 12px; cursor: zoom-out; }
.bbg-lightbox__close { position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--bbg-ink); font-size: 26px; line-height: 1; cursor: pointer; }

@media (max-width: 1100px) {
  .bbg-artgrid { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
}
@media (max-width: 900px) {
  .bbg-arthead.has-media .bbg-arthead__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bbg-arthead__media { max-width: 560px; }
  .bbg-arthead__media::before { display: none; }
  .bbg-arthead__img { aspect-ratio: 16 / 9; max-height: 300px; }
  .bbg-artgrid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .bbg-artmain { max-width: none; }
  .bbg-toc--side { display: none; }
  .bbg-toc--inline { display: block; }
  .bbg-artside__sticky { position: static; margin-top: 36px; }
}
@media (max-width: 640px) {
  .bbg-arthead { padding: 24px 0 30px; }
  .bbg-crumbs { margin-bottom: 12px; font-size: 13px; }
  .bbg-arthead__tags { margin-bottom: 14px; }
  .bbg-arthead h1 { font-size: 31px; }
  .bbg-arthead__lead { font-size: 16.5px; }
  .bbg-arthead__img { max-height: 210px; border-radius: 16px; }
  .bbg-prose--article { font-size: 17px; }
  .bbg-prose--article > p:first-of-type { font-size: 18px; }
  .bbg-prose--article img:not(.alignleft):not(.alignright) { max-height: 360px; }
  .bbg-artfoot { flex-direction: column; align-items: flex-start; }
  .bbg-share { margin-left: 0; }
  .bbg-related { padding: 36px 0 44px; }
}
@media (prefers-reduced-motion: reduce) { .bbg-readbar { display: none; } }
.bbg-module.bbg-related { padding: 52px 0 60px; margin-bottom: 0; }
.bbg-article--v25 .bbg-authorbox { max-width: 780px; }
@media (max-width: 640px) { .bbg-module.bbg-related { padding: 36px 0 44px; } }
@media (min-width: 901px) { .bbg-artside__sticky { max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: none; } .bbg-artside__sticky::-webkit-scrollbar { display: none; } }
