/* Brookwood tokens: every colour, face, size and space the site uses lives here; the other files only name them.
   Brand colour, accent and background come from Settings > Brookwood site (they arrive as --bw-brand, --bw-accent and --bw-bg). */
:root{
  --space-3xs:2px;--space-2xs:4px;--space-xs:8px;--space-sm:12px;--space-md:16px;--space-lg:24px;--space-xl:40px;--space-2xl:64px;--space-3xl:96px;--space-4xl:144px;
  --text-xs:.8125rem;--text-sm:.875rem;--text-md:1rem;--text-lg:1.25rem;--text-xl:1.5625rem;
  --text-display-s:clamp(2.25rem,4vw + .5rem,3.75rem);--text-display:clamp(2.75rem,5vw + 1rem,5.25rem);
  --text-section:clamp(2rem,1.2vw + 1.6rem,2.75rem);--text-title:clamp(1.25rem,.75vw + .875rem,1.625rem);--text-lead:clamp(1.125rem,.35vw + 1rem,1.375rem);--text-intro:clamp(1.3125rem,.8vw + 1.0625rem,1.75rem);
  --ease-out:cubic-bezier(.16,1,.3,1);--dur-micro:120ms;--dur-short:220ms;--dur-long:420ms;
  --container:1440px;--gutter:64px;--gap-columns:32px;--section-gap-s:120px;--section-gap:144px;--section-gap-l:176px;
  --radius-card:6px;--radius-pill:999px;--rule-hair:1px;
  --font-display:Figtree,"Segoe UI",Arial,sans-serif;--font-body:Figtree,"Segoe UI",Arial,sans-serif;
  --mask-fade-down:linear-gradient(180deg,#000 0,rgba(0,0,0,.96) 10%,rgba(0,0,0,.86) 26%,rgba(0,0,0,.64) 46%,rgba(0,0,0,.38) 64%,rgba(0,0,0,.16) 82%,transparent 100%);
  --mask-fade-up:linear-gradient(0deg,#000 0,rgba(0,0,0,.94) 12%,rgba(0,0,0,.8) 28%,rgba(0,0,0,.56) 46%,rgba(0,0,0,.3) 64%,rgba(0,0,0,.12) 82%,transparent 100%);
  --mask-edges:linear-gradient(90deg,transparent 0,#000 3%,#000 97%,transparent 100%);
  --z-base:1;--z-raised:10;--z-dropdown:100;--z-sticky:200;--z-sticky-nav:300;--z-modal:400;
}
@media (max-width:1080px){:root{--gutter:32px;--section-gap-s:96px;--section-gap:112px;--section-gap-l:128px}}
@media (max-width:640px){:root{--gutter:24px;--gap-columns:16px;--section-gap-s:72px;--section-gap:88px;--section-gap-l:104px}}

/* White background (Settings > Background > White): tinted paper, navy menu bar and footer */
.bw{
  --bw-brand:#002656;--bw-navy:#002656;--bw-accent:#D32220;
  --color-paper:#F6F8FB;--color-paper-2:#ECF0F6;--color-paper-3:#DFE5EE;
  --color-ink:#0F1B2E;--color-ink-2:#3E4858;--color-muted:#586376;--color-rule:#D1D8E3;
  --color-surface:#FDFEFF;--color-surface-ink:#0F1B2E;--color-surface-muted:#5C6676;
  --color-on-dark:#F4F8FE;--color-on-dark-2:#C9D3E2;--color-on-dark-rule:#2D4A74;
  --color-accent:var(--bw-accent);--color-accent-ink:#FBFCFE;--color-focus:var(--bw-accent);
  --color-red-text:#C21F1D;
  --color-deep:#00183A;--color-deep-2:#0B3A78;
  /* The offer sheet: the light page every Formwork form sits on, the same on the navy, framed and white backgrounds */
  --color-sheet:#F3F6FB;--color-sheet-ink:#0F1B2E;--color-sheet-muted:#4B566A;--color-sheet-rule:#CBD3DF;--color-sheet-edge:#66728A;
  --color-field:#FDFEFF;--color-field-hover:#EAF0F8;
  --color-sheet-action:var(--color-deep);--color-sheet-action-hover:var(--color-deep-2);--color-sheet-focus:var(--color-deep-2);
  --color-sheet-error:#B42318;--color-sheet-error-bg:#FDECEA;
  --color-scrim:#000E22;--color-mask:#0A0F1A;--color-photo-well:#0A1628;--color-print-rule:#C4C9D1;--color-print-muted:#555B66;--color-print-ink:#0B0F18;
  --shadow-pop:0 12px 32px color-mix(in srgb,var(--color-scrim) 18%,transparent);
  --shadow-chip:0 2px 10px color-mix(in srgb,var(--color-scrim) 22%,transparent);
  --bw-glow:0 38 86;
  /* names the listing, team and form styles already use */
  --bw-ink:var(--color-ink);--bw-text:var(--color-ink-2);--bw-muted:var(--color-muted);--bw-soft:var(--color-paper-2);--bw-line:var(--color-rule);--bw-radius:var(--radius-card);
  --bw-panel:var(--color-surface);--bw-head:76px;
  font-family:var(--font-body);font-size:17px;line-height:1.65;color:var(--bw-text);background:var(--color-paper)
}

@media screen{

/* Navy frame: the title band and sliding listings are navy; the pages stay light */
body.bw-frame .bw{--bw-deep:color-mix(in srgb,var(--bw-bg,#002656) 70%,#000)}
body.bw-frame .bw-pagehead,body.bw-frame .bw-strip{
  --bw-ink:var(--color-on-dark);--bw-text:var(--color-on-dark-2);--bw-muted:#9AA9C0;--bw-brand:#A9C9F5;--color-rule:var(--color-on-dark-rule);
  --color-focus:var(--color-on-dark);background:var(--bw-bg,var(--bw-navy));color:var(--bw-text)
}

/* Navy background (Settings > Background > Navy, the default): the whole site on one deep navy */
body.bw-dark .bw{
  --bw-page:color-mix(in srgb,var(--bw-bg,#002656) 70%,#000);
  --bw-navy:var(--bw-page);
  --color-paper:var(--bw-page);
  --color-paper-2:color-mix(in srgb,var(--bw-page) 90%,#A9C9F5);
  --color-paper-3:color-mix(in srgb,var(--bw-page) 82%,#A9C9F5);
  --color-rule:color-mix(in srgb,var(--bw-page) 78%,#A9C9F5);
  --color-ink:var(--color-on-dark);--color-ink-2:#DAE3F0;--color-muted:#B9C7DD;
  --color-surface:#F7FAFF;--color-surface-ink:#0F1B2E;
  --color-focus:var(--color-on-dark);--color-red-text:#F0504D;
  --bw-brand:#CFE2FC;--color-hover-fill:#CFE2FC;--bw-panel:var(--color-paper-3);--bw-glow:169 201 245;
  --shadow-pop:0 12px 32px color-mix(in srgb,var(--color-scrim) 55%,transparent);
  --shadow-chip:0 2px 10px color-mix(in srgb,var(--color-scrim) 35%,transparent)
}
/* Blocks added in the editor with a white or pale grey background keep dark text */
body.bw-dark .bw .has-white-background-color,body.bw-dark .bw .has-bw-soft-background-color{
  --bw-ink:#0F1B2E;--bw-text:#434C5B;--bw-muted:#687182;--bw-brand:#002656;color:var(--bw-text)
}

}
