/* Section background colour (theme inc/section-colours.php): the "Background colour" setting on every DAP block.
   Only the section's own background changes; section-tone.js keeps what sits on it readable.
   The :not(#dap-sbg) pairs lift these over page rules that set a section's background by #id with !important. */
.dap-sbg:not(#dap-sbg-a):not(#dap-sbg-b) { background-image: none !important; }
.dap-sbg--page:not(#dap-sbg-a):not(#dap-sbg-b) { background-color: #F2F4F7 !important; }
.dap-sbg--white:not(#dap-sbg-a):not(#dap-sbg-b) { background-color: #FFFFFF !important; }
.dap-sbg--grey:not(#dap-sbg-a):not(#dap-sbg-b) { background-color: #E8EBF1 !important; }
.dap-sbg--navy:not(#dap-sbg-a):not(#dap-sbg-b) { background-color: #041C2C !important; }
.dap-sbg--orange:not(#dap-sbg-a):not(#dap-sbg-b) { background-color: #F56538 !important; }
/* photo, gradient or glow layers drawn behind the section give way to the flat colour (marked by section-tone.js) */
.dap-sbg.dap-sbg--nodeco::before, .dap-sbg.dap-sbg--nodeco::after { display: none !important; }
.dap-sbg [data-dap-deco] { display: none !important; }
.dap-sbg .dap-sbg-nobefore::before, .dap-sbg .dap-sbg-noafter::after { display: none !important; }
/* numbering and markers drawn by ::before / ::after that no longer read */
.dap-sbg .dap-sbg-before-light::before { color: rgba(255,255,255,.85) !important; }
.dap-sbg .dap-sbg-after-light::after { color: rgba(255,255,255,.85) !important; }
.dap-sbg .dap-sbg-before-dark::before { color: #263238 !important; }
.dap-sbg .dap-sbg-after-dark::after { color: #263238 !important; }
/* dots and rules drawn by ::before / ::after that matched their backdrop */
.dap-sbg .dap-sbg-before-fill-light::before { background-color: rgba(255,255,255,.85) !important; }
.dap-sbg .dap-sbg-after-fill-light::after { background-color: rgba(255,255,255,.85) !important; }
.dap-sbg .dap-sbg-before-fill-dark::before { background-color: #041C2C !important; }
.dap-sbg .dap-sbg-after-fill-dark::after { background-color: #041C2C !important; }
.dap-sbg li.dap-sbg-marker-light::marker { color: rgba(255,255,255,.85); }
.dap-sbg li.dap-sbg-marker-dark::marker { color: #041C2C; }
/* FAQ toggles on the light grey colour: the closed circle is drawn in the section's own grey, so on a grey section only a faint +
   showed (and section-tone.js filled it navy). It is the brand orange with a white +, like the open one's orange x (Nick, 2 Dec 2026). */
.dap-sbg--grey[data-screen-label="faq"] .faq-q:not(.active)::after,
.dap-sbg--grey [data-screen-label="faq"] .faq-q:not(.active)::after { background-color: var(--accent-main) !important; background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff) !important; }
