/* BGC AGM 2027 - the 2026 BGC look (Billy, 2026-10-23: "using the guidelines and their
   new website, attempt to replicate it but maintain the copy and header image and register
   links from the current one").

   Taken from BGC's new main site, https://bgc.reach.build/ (studied 2026-10-23), and the
   BGC Brand Guidelines PDF (colours p7, Gotham p8-9):
     - header: their red-to-blue bar with the white official logo, white nav, white
       outline "pill" button with a ↗ arrow
     - headings: Gotham Medium, large and tight (-0.05em), the closing words in a
       red-to-blue gradient
     - a faint square grid behind the content; rounded cards with a gradient hairline
     - buttons: rounded pills with the ↗ arrow
     - footer: BGC blue with a red glow rising from the bottom, the grid, the white logo
   Copy, the header picture and every Register link are unchanged.

   Linked from every page by tools/rebrand-2026.py (inside <!-- FE REBRAND 2026 --> markers).
   Selectors start "html body" so they win over the theme and the earlier FE blocks
   whatever order the tools are re-run in. To undo: delete this file's <link> (re-run
   nothing) - see README "Rebrand 2026". */

:root {
  --bgc-red: #e30613;
  --bgc-blue: #273476;
  --bgc-grey: #3f4b53;
  --bgc-ink: #0a0a0a;
  --bgc-grad: linear-gradient(90deg, #e30613 0%, #8e1a4a 52%, #273476 100%);
  --bgc-grid: rgba(39, 52, 118, .07);
  --bgc-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 9.5 9.5 2.5M3.6 2.5h5.9v5.9' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Header: the red-to-blue bar ---------- */
/* On #brx-header, which spans the window: the row inside (#brxe-uoafgm) stops at 1200px. */
html body #brx-header {
  background: linear-gradient(90deg, #e30613 0%, #a01341 14%, #273476 40%, #273476 100%);
}
html body #brxe-uoafgm { background: transparent; color: #fff; }
html body #brxe-rpghjl img.bricks-site-logo {
  width: 170px;
  height: auto;
  max-width: 100%;
}
/* The logo may shrink when the row is tight (e.g. phone text at 200%, where the theme's
   rem-based gaps grow), so the menu button never leaves the screen. */
html body #brxe-ptfxpg, html body #brxe-rpghjl { min-width: 0; flex-shrink: 1; }
@media (max-width: 1024px) { html body #brxe-rpghjl img.bricks-site-logo { width: 150px; } }
@media (max-width: 393px)  { html body #brxe-rpghjl img.bricks-site-logo { width: 118px; } }

/* Nav link: white, sentence case, Gotham Medium (their nav). */
html body #brxe-uarehg .bricks-nav-menu .menu-item > a {
  color: #fff;
  text-transform: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
}
html body #brxe-uarehg .bricks-nav-menu .menu-item > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* "Event partner" label beside the First Event mark */
html body #brxe-mtuuqc { color: rgba(255, 255, 255, .85); }

/* Header Register Now: their white outline pill with the arrow ("Contact us" on their site). */
html body #brx-header .fe-header-register {
  gap: 12px;
  min-height: 46px;
  padding: 0 22px 0 24px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
}
html body #brx-header .fe-header-register::after,
html body #brxe-tsaevk .fe-register-cta__btn::after,
html body .bgc-regform__submit::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: var(--bgc-arrow) center / contain no-repeat;
  mask: var(--bgc-arrow) center / contain no-repeat;
}
html body #brx-header .fe-header-register:hover { background: #fff; color: var(--bgc-blue); }
html body #brx-header .fe-header-register:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Phone menu: button bars white; the panel in the brand gradient with white links
   (was black 12px on red, 4.3:1 - review 2026-10-17). */
html body #brxe-uarehg .bricks-mobile-menu-toggle { color: #fff; }
html body #brxe-uarehg .bricks-mobile-menu-toggle span { background-color: #fff; }
/* (the theme paints the panel with ::before) */
html body #brxe-uarehg .bricks-mobile-menu-wrapper::before {
  background: linear-gradient(160deg, #e30613 0%, #a01341 30%, #273476 75%);
}
html body #brxe-uarehg .bricks-mobile-menu-wrapper .bricks-mobile-menu .menu-item > a {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  text-transform: none;
}

/* ---------- The header picture: unchanged, just without the old red rules ---------- */
html body .fe-hero { border-top: 0; border-bottom: 0; }

/* ---------- Content sections: the faint grid instead of the grey globe ---------- */
html body #brxe-gzlotb,
html body #brxe-vztvgt {
  background-color: #fff;
  background-image:
    linear-gradient(var(--bgc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bgc-grid) 1px, transparent 1px) !important;
  background-size: 140px 140px !important;
  background-position: center -1px !important;
  padding: clamp(40px, 7vw, 110px) clamp(12px, 3vw, 40px);
  border-top: 0; /* the Register page's old red rule under the header */
}

/* The content card: white, rounded, a red-to-blue hairline (their "plan" card). */
html body #brxe-ybbfmq,
html body #brxe-pslndr {
  box-sizing: border-box;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 5.5vw, 76px) clamp(18px, 5.5vw, 76px);
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(227, 6, 19, .55), rgba(39, 52, 118, .55)) border-box;
  box-shadow: 0 30px 60px -40px rgba(39, 52, 118, .35);
}

/* ---------- Home: type ---------- */
html body #brxe-tsaevk { color: var(--bgc-ink); }
html body #brxe-tsaevk h3 {
  margin: 0 0 .45em;
  color: var(--bgc-ink);
  font-weight: 500;
  font-size: clamp(4.4rem, 8vw, 8.8rem);
  line-height: 1;
  letter-spacing: -.05em;
}
html body #brxe-tsaevk p {
  text-wrap: balance;
  color: var(--bgc-ink);
  font-size: 1.8rem;
  line-height: 1.65;
}
html body #brxe-tsaevk strong { font-weight: 500; }

/* The closing words of a heading in the red-to-blue gradient, as on their site. */
html body .fe-grad {
  background: var(--bgc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: .06em; /* keeps the "g"/"y" descenders inside the painted box */
}
@media (forced-colors: active) { html body .fe-grad { background: none; color: CanvasText; } }
@media print { html body .fe-grad { background: none; color: var(--bgc-red); } }

/* Date and venue (Billy, 2026-10-23): "Thursday 25th February 2027 at" and
   "No.11 Cavendish Square, London." never break inside themselves, at any width; they
   scale down a little on the narrowest phones so neither has to. (Also used for the
   LinkedIn handle and its full stop.) */
html body #brxe-tsaevk .fe-keep {
  white-space: nowrap;
  font-size: min(1em, 5.15vw);
}
/* Billy, 2026-10-23 (second message): the whole "Thursday 25th February 2027 at No.11
   Cavendish Square, London." on ONE line - it starts its own line and, wherever it fits
   (tablets and up), stays whole. A phone is too narrow for it at a readable size, so
   there it wraps only between "at" and "No.11" (each half is one unbroken .fe-keep). */
html body #brxe-tsaevk .fe-dateline::before { content: "\A"; white-space: pre; }

/* Text links: the brand red, blue on hover (the copy's own inline red stays red). */
html body #brxe-tsaevk a, html body #brxe-yllztr a, html body .bgc-regform__other a { transition: color .15s; }
html body #brxe-tsaevk a:hover, html body #brxe-yllztr a:hover, html body .bgc-regform__other a:hover { color: var(--bgc-blue) !important; }

/* Register Now (below the copy): a filled red pill with the arrow. */
html body #brxe-tsaevk .fe-register-cta { margin-top: 3.2rem; }
html body #brxe-tsaevk .fe-register-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px 0 32px;
  border-radius: 999px;
  background: var(--bgc-red);
  color: #fff;
  font-weight: 500;
  font-size: 1.7rem;
  text-decoration: none;
  transition: background-color .15s;
}
html body #brxe-tsaevk .fe-register-cta__btn:hover { background: var(--bgc-blue); color: #fff !important; }

/* "For all other enquiries…" at the foot of the home page (Billy, 2026-10-23). */
html body #brxe-tsaevk p.fe-other-enquiries {
  text-align: center; /* Billy, 2026-10-26: "center this line on the page" (the rest of the copy is centred) */
  margin-top: 2.4rem;
  color: var(--bgc-grey);
  font-size: 1.6rem;
}
html body #brxe-tsaevk p.fe-other-enquiries a { color: var(--bgc-red); font-weight: 500; }

/* ---------- Register page and its result pages ---------- */
html body #brxe-ruvaaq {
  color: var(--bgc-ink);
  font-weight: 500;
  font-size: clamp(3.4rem, 5.6vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-transform: none;
  margin-bottom: .5em;
}
html body #brxe-hzutho {
  color: var(--bgc-ink);
  font-weight: 300;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
html body #brxe-yllztr { color: var(--bgc-ink); }

/* Register page key details (Billy 2026-11-09: "easier to read"): date, venue and times as an
   icon list, then the closing date in its own tinted box. The words are the client's, unchanged. */
html body .fe-regkey { margin: 0 0 2.4rem; color: var(--bgc-ink); }
html body .fe-regkey__facts { list-style: none; margin: 0; padding: 0; }
html body .fe-regkey__facts li {
  display: flex; align-items: flex-start; gap: 1.4rem;
  margin: 0; padding: 1.4rem 0;
  font-size: clamp(1.7rem, 2vw, 2rem); line-height: 1.4; font-weight: 300;
}
html body .fe-regkey__facts li + li { border-top: 1px solid rgba(39, 52, 118, .15); }
html body .fe-regkey__facts li:first-child { padding-top: 0; }
html body .fe-regkey__facts strong { font-weight: 500; }
html body .fe-regkey__facts svg { flex: none; color: var(--bgc-red); margin-top: -.1rem; }
html body .fe-regkey__close {
  margin: 1.6rem 0 0; padding: 1.4rem 1.8rem;
  border-left: 4px solid var(--bgc-red); border-radius: 0 12px 12px 0;
  background: rgba(39, 52, 118, .06);
  font-size: 1.7rem; line-height: 1.5; color: var(--bgc-ink);
}
html body .fe-regkey__close strong { font-weight: 500; }

/* The form: rounded boxes and a pill button, otherwise as tested (contrast, focus, sizes). */
html body .bgc-field input[type=text],
html body .bgc-field input[type=email],
html body .bgc-field input[type=tel],
html body .bgc-field input[type=password],
html body .bgc-field select,
html body .bgc-field textarea { border-radius: 12px; }
html body .bgc-field select { padding-right: 12px; }
html body .bgc-field__label { color: var(--bgc-blue); }
html body .bgc-regform__submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 28px 0 32px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1.7rem;
}
html body .bgc-regform__submit:hover { background: var(--bgc-blue); }
html body .bgc-regform__status { border-radius: 12px; }

/* ---------- Footer: BGC blue, a red glow from below, the grid, the white logo ---------- */
html body #brxe-rlewal {
  background-color: var(--bgc-blue);
  background-image:
    radial-gradient(ellipse at 50% 135%, rgba(227, 6, 19, .8), rgba(227, 6, 19, 0) 72%),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) !important;
  background-size: auto, 140px 140px, 140px 140px !important;
  background-position: center bottom, center -1px, center -1px !important;
  padding: 48px clamp(16px, 3vw, 40px) 20px;
  color: #fff;
}
html body #brxe-kldkvx { max-width: 1280px; width: 100%; margin: 0 auto; padding-left: 0; padding-right: 0; }
html body #brxe-amnnho {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
html body .fe-footer-logo { display: inline-block; line-height: 0; }
html body .fe-footer-logo img { width: 140px; height: auto; }
html body .fe-footer-logo:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
html body #brx-footer .fe-credit { color: #fff; border-top-color: rgba(255, 255, 255, .22); }
@media (max-width: 767px) {
  html body #brxe-amnnho { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html body #brxe-tsaevk .fe-register-cta__btn, html body #brxe-tsaevk a { transition: none; }
}

/* The long www.bettingandgamingcouncil.com link: a touch smaller on phones so it fits
   on one line instead of breaking as "…council.co / m" (the card's padding is narrower
   than the old page's). */
html body #brxe-tsaevk a[href*="bettingandgamingcouncil.com"] { font-size: min(1em, 4.3vw); }

/* The LinkedIn handle and its full stop stay together (at 320px the "." fell onto a line
   of its own); a touch smaller on the narrowest phones so the pair fits. */
html body #brxe-tsaevk .fe-keep--handle { font-size: min(1em, 4.6vw); }

/* ---------- Home page in sections (Billy, 2026-10-26: "format the text nicer ... maybe some
   sections"). Markup by tools/rebrand-2026.py (home_layout); the copy is the page's own. ---------- */
html body #brxe-tsaevk .fe-home { text-align: left; }
/* The copy's paragraphs carry inline text-align:center from WordPress: overridden here. */
html body #brxe-tsaevk .fe-home h3,
html body #brxe-tsaevk .fe-home p { text-align: left !important; text-wrap: pretty; }
html body #brxe-tsaevk .fe-home .fe-other-enquiries { text-align: center !important; }

/* Intro full width (so the date line keeps to ONE line), then the feature bar under it. */
html body #brxe-tsaevk .fe-home__intro { display: block; }
html body #brxe-tsaevk .fe-home__lead h3 { margin-bottom: .35em; font-size: clamp(4.4rem, 7vw, 7.6rem); }
/* the first paragraph as a lead-in */
html body #brxe-tsaevk .fe-home__lead p:first-of-type { font-size: clamp(1.9rem, 2.1vw, 2.3rem); line-height: 1.5; margin-bottom: 1.6rem; }

/* The feature BAR: the bold anchor - date, venue and Register Now on the brand gradient,
   side by side on wide screens, stacked on phones. */
html body #brxe-tsaevk .fe-home__panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px clamp(20px, 3vw, 40px);
  margin-top: clamp(24px, 3.5vw, 40px);
  padding: clamp(20px, 2.6vw, 30px) clamp(22px, 3vw, 36px);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(150deg, #e30613 0%, #9c1446 42%, #273476 100%);
  box-shadow: 0 24px 50px -28px rgba(39, 52, 118, .65);
}
html body #brxe-tsaevk .fe-home__panel::after { /* the grid, faint, as on their hero */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 70px 70px;
}
html body #brxe-tsaevk .fe-home__facts {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
html body #brxe-tsaevk .fe-home__facts li {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 0;
  font-weight: 500; font-size: clamp(1.7rem, 1.7vw, 1.9rem); line-height: 1.3;
  white-space: nowrap;
}
html body #brxe-tsaevk .fe-home__facts li + li { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .3); }
html body #brxe-tsaevk .fe-home__facts svg { flex: none; }
html body #brxe-tsaevk .fe-home__panel .fe-register-cta { position: relative; z-index: 1; margin: 0 0 0 auto; text-align: left !important; }
html body #brxe-tsaevk .fe-home__panel .fe-register-cta__btn { background: #fff; color: #273476; }
html body #brxe-tsaevk .fe-home__panel .fe-register-cta__btn:hover { background: #0a0a0a; }
html body #brxe-tsaevk .fe-home__panel .fe-register-cta__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Two blocks, two different treatments (Billy likes each section distinct). */
html body #brxe-tsaevk .fe-home__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(32px, 4.5vw, 56px);
}
html body #brxe-tsaevk .fe-home__block p { font-size: 1.7rem; line-height: 1.6; }
html body #brxe-tsaevk .fe-home__block p:last-child { margin-bottom: 0; }
html body #brxe-tsaevk .fe-home__block--reg {
  padding: 4px 0 4px 24px;
  border-left: 4px solid #e30613;
}
html body #brxe-tsaevk .fe-home__block--about {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid #dfe2ee;
  border-radius: 18px;
  background: #f5f6fb;
}
html body #brxe-tsaevk .fe-home .fe-other-enquiries {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid #e3e6ef;
}

@media (max-width: 620px) {
  html body #brxe-tsaevk .fe-home__panel { flex-direction: column; align-items: flex-start; }
  html body #brxe-tsaevk .fe-home__panel .fe-register-cta { margin: 8px 0 0; }
  html body #brxe-tsaevk .fe-home__facts li { white-space: normal; align-items: flex-start; }
  html body #brxe-tsaevk .fe-home__facts { width: 100%; }
}
/* Phones: the about box a little tighter, and the long web address sized to fit its line. */
@media (max-width: 480px) {
  html body #brxe-tsaevk .fe-home__block--about { padding: 18px 16px; }
  html body #brxe-tsaevk .fe-home__block--reg { padding-left: 18px; }
  html body #brxe-tsaevk .fe-home__block--about a[href*="bettingandgamingcouncil.com"] { font-size: min(1em, 3.75vw); }
}
@media (max-width: 900px) {
  html body #brxe-tsaevk .fe-home__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  html body #brxe-tsaevk .fe-home__panel { border: 2px solid CanvasText; }
}
