/* ============================================================
   WDSS 2027 — beta-compat: old editor/CMS content on the NEW stack.
   Renders the editor "welcome-textbox" pages (About WDSS, etc.) with the
   www_new look — Montserrat, burgundy accents, a WIDER column — scoped to
   .beta-content so it never touches the new header/footer.
   Also normalises the off-palette colours baked inline into the CMS text
   (greens/blues/odd reds) to the www_new palette.
   Reference: igds-bootstrap-variante-b/css/beta-compat.css (that demo used
   a green accent + ~1000px column; here it's burgundy + wider).
   ============================================================ */
.beta-content {
  font-family: var(--ff-sans, "Montserrat","Helvetica Neue",Arial,sans-serif);
  font-size: 17px; line-height: 1.6; color: var(--c-text, #000);
}

/* ---- content column width ---- */
.beta-content .container { max-width: 1000px; }
.beta-content .section-inner { padding: 50px 0; }
.beta-content .section-inner-first { padding-top: 40px; }

/* ---- typography ---- */
.beta-content h1, .beta-content h2, .beta-content h3,
.beta-content h4, .beta-content h5, .beta-content h6 {
  font-family: inherit; color: #000; line-height: 1.25; margin: 0 0 .6em; font-weight: 600;
}
.beta-content h1 { font-size: 34px; font-weight: 700; margin-bottom: 24px; color: var(--c-red, #D41623); }
.beta-content h2 { font-size: 28px; font-weight: 700; }
.beta-content h3 { font-size: 22px; }
.beta-content h4 { font-size: 19px; }
.beta-content p  { margin: 0 0 1em; }
.beta-content ul, .beta-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.beta-content img { max-width: 100%; height: auto; border-radius: 8px; }
.beta-content .welcome-textbox { margin-bottom: 10px; }
.beta-content .welcome-textbox > .welcome-textbox { margin: 0; }
.beta-content .leftborder { border-left: 3px solid var(--c-red, #D41623); padding-left: 16px; }
.beta-content h3.leftborder { margin-top: 28px; }

/* ---- colour normalisation (only www_new palette) ---- */
/* links -> burgundy, red on hover; never the baked-in blue */
.beta-content a, .beta-content a span { color: var(--c-red, #D41623) !important; }
.beta-content a { text-decoration: underline; }
.beta-content a:hover, .beta-content a:hover span { color: var(--c-red, #D41623) !important; }
/* inline-coloured heading spans (green/red/blue) -> inherit the heading burgundy */
.beta-content h1 span, .beta-content h2 span, .beta-content h3 span,
.beta-content h4 span, .beta-content h5 span, .beta-content h6 span { color: inherit !important; }

/* ---- programme page (program-table / agenda) ---- */
.beta-content .program-table { margin-top: 30px; }
/* date = red pill, white centred text (like the old content.css .program-date) */
.beta-content .program-date { background: var(--c-burgundy, #7B0F0F); color: #fff; border-radius: 5px; font-weight: 500; font-size: 18px; text-align: center; padding: 11px; }
.beta-content .program-title { font-size: 28px; font-weight: 600; line-height: 1.25; text-align: center; margin: 23px 0 28px; color: #000; }
.beta-content .table { --bs-table-bg: transparent; margin-bottom: 50px; }
.beta-content .table td { padding: 14px 10px; border-color: #e3e3e3; vertical-align: top; }
/* zebra: tint odd rows (BS5-native via --bs-table-bg), faint orange instead of the old cream */
.beta-content .table tr:nth-child(2n+1) td, .beta-content .table tr:nth-child(2n+1) th { --bs-table-bg: rgba(244, 167, 92, .1); }
.beta-content .table td p:last-child, .beta-content .table td h5:last-child { margin-bottom: 0; }
/* session-group headings (CHAPTER 1-5, OFFICIAL DINNER, RETAIL TOUR, etc.) rendered in burgundy */
.beta-content .table td h5 { color: var(--c-burgundy, #7B0F0F); }

/* ---- sponsors page (editor "sponser-logo" grid, ported from content.css) ---- */
/* content.css isn't loaded on the new stack, so re-declare the flex grid here;
   logos render in their original colours (respect corporate identity). */
.beta-content .sponser-logo { display: flex; flex-flow: wrap; justify-content: center; align-items: center; text-align: center; }
.beta-content .sponser-logo a { display: inline-flex; text-decoration: none; }
.beta-content .sponser-logo img { width: 210px; height: 120px; padding: 0 8px; object-fit: scale-down; object-position: center; border-radius: 0; }
/* Cardy | Papa: the uploaded grid file is a tiny wordmark inside a lot of white space, so it reads much
   smaller than its neighbours. Swap in the tightly cropped, sharper file and give it a wider slot. */
.beta-content .sponser-logo img[src*="CARDY_PAPA"] { content: url("/assets/img/sponsors/cardy-papa-grey.png"); }
@media (min-width: 768px) { .beta-content .sponser-logo img[src*="CARDY_PAPA"] { width: 250px; } }
/* group sub-headings (Media Partners / Supporting Organisations) match the red "Our Sponsors & Partners" title */
.beta-content .container:has(.sponser-logo) h2 { color: var(--c-red, #D41623); }
/* each sponsor group framed like the homepage boxes (orange gradient border); headings centred with space above */
.beta-content .sponsor-block { position: relative; padding: 40px 30px 34px; margin: 0 0 34px; border-radius: 15px; }
.beta-content .sponsor-block:last-child { margin-bottom: 0; }
.beta-content .sponsor-block::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--grad-brand, linear-gradient(to top right, #F4A75C, #FAE2B7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none;
}
.beta-content .sponsor-block .welcome-textbox { margin-bottom: 22px; text-align: center; }
.beta-content .sponsor-block h1, .beta-content .sponsor-block h2 { text-align: center; margin: 0; }

/* organisers: vertically centre the section-title text against its logo */
.beta-content h3.leftborder:has(img) { display: flex; align-items: center; }

@media (max-width: 767.98px){
  .beta-content h1 { font-size: 26px; }
  .beta-content .section-inner { padding: 32px 0; }
  .beta-content .container { max-width: 100%; }
  .beta-content .table td[width] { width: 80px; }
  .beta-content .sponser-logo img { width: 50%; max-width: 50%; }
  .beta-content .sponsor-block { padding: 26px 16px 22px; margin-bottom: 26px; }
}
