/* ============================================================================
   WDSS 2027 — CMS supplements
   Small overrides on top of the reference style.css for content that comes from
   the CMS (rich-text fields) rather than hand-written HTML. Loaded AFTER style.css.
   ========================================================================== */

/* Venue address block: the Venue editor module outputs the admin rich-text
   field inside .venue__info, so style its generic children like the reference's
   venue__name / venue__address / venue__link. */
.venue__text { font-size: 20px; line-height: 1.35; }
.venue__text > :first-child { margin-top: 0; }
.venue__text h1, .venue__text h2, .venue__text h3, .venue__text h4 {
    font-size: 28px; line-height: 1.35; font-weight: 700; margin: 0 0 .35em;
}
.venue__text p { margin: 0 0 .5em; }
.venue__text p:last-child { margin-bottom: 0; }
.venue__text a { color: var(--c-burgundy); text-decoration: none; }
.venue__text a:hover { color: var(--c-red); text-decoration: underline; }
.venue__text .venue__map { margin-top: 24px; }

/* Registration form: turn the existing .form-group / .full-width markup into the
   reference's 2-column .reg-form grid WITHOUT restructuring the payment-critical form. */
.reg-form { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 20px; }
.reg-form > * { flex: 0 0 100%; }
.reg-form > .form-group:not(.full-width) { flex: 0 0 calc(50% - 12px); }
.reg-form .form-group { margin: 0; }
.reg-form .form-label { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.reg-form .form-check { padding-left: 1.9em; }
.reg-form .form-check-input { margin-left: -1.9em; }
.reg-form #priceResult { margin-top: 0 !important; }
.reg-form .reg-terms.is-invalid .form-check-label { color: var(--c-red); }
@media (max-width: 767.98px) { .reg-form > .form-group:not(.full-width) { flex: 0 0 100%; } }

/* ----------------------------------------------------------------------------
   Legacy brand colour cleanup.
   Older CMS editor content has the OLD brand GREEN baked in as inline styles
   (rgb(119,185,27) and the config green rgb(113,191,67)) on headings/links.
   Inline colour would otherwise override the new palette, so re-map it to the
   theme accent. (`!important` here beats a non-important inline style.)
   Long-term: strip these colour spans in the CMS editor content itself.
   ---------------------------------------------------------------------------- */
[style*="rgb(119, 185, 27)"], [style*="rgb(119,185,27)"],
[style*="rgb(113, 191, 67)"], [style*="rgb(113,191,67)"] {
    color: var(--c-red) !important;
}

/* ----------------------------------------------------------------------------
   Theme: separate display / title font (admin-selectable via /admin/theme.cfm).
   --ff-display defaults to the main font, so with no display font chosen the
   titles simply match the body. The Theme page emits --ff-display to override.
   ---------------------------------------------------------------------------- */
:root { --ff-display: var(--ff-sans); }
.hero__title,
.programme-day__theme { font-family: var(--ff-display); }
