/* BCC design system, 17 Nov 2026. Loaded last on every page.
   Type: Spectral 400 for all headings, Instrument Sans 400 for all reading text, 500 for labels and buttons.
   Colour: Navy, Buckingham Blue as the one accent, Ice as the one tint. */
:root{--bx-navy:#0B1530;--bx-blue:#1F4FD1;--bx-blue-d:#173DA6;--bx-ice:#EEF3FD;--bx-ice2:#DCE6FA;--bx-ink:#0B1530;--bx-body:#2B3654;--bx-mute:#5B6578;--bx-line:#D6DEEE}

/* ---------- Typography ---------- */
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) h1,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) h2,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) h3,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) h4,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .disp,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .big,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) dl.rows dt,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .th-gl dd{font-family:'Spectral',Georgia,serif!important;font-weight:400!important;letter-spacing:-.005em!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) h1{font-size:clamp(38px,4.2vw,58px)!important;line-height:1.08!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) h2,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .c-ps .c-pnl>.pn h2{font-size:clamp(28px,2.8vw,40px)!important;line-height:1.15!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) h3{font-size:clamp(19px,1.5vw,22px)!important;line-height:1.3!important}

html:not(#a):not(#z) body:not(#b):not(#c):not(#y) p,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) li,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) dd,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) td,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) summary{font-family:'Instrument Sans',system-ui,sans-serif!important;font-weight:400!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) b,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) strong,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) th,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) label,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .btn,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) button{font-weight:500!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .faq summary{font-family:'Spectral',Georgia,serif!important;font-size:19px!important}

/* reading text on light backgrounds: one ink, one body, one muted colour */
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) main :is(h1,h2,h3,h4,.disp,.big,dt),
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(.ess,.intro,.guide,.lp,.fromblog,.th-gl,.c-about) :is(h2,h3,h4,.disp,.big,dt){color:var(--bx-ink)!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(.ess,.intro,.guide,.lp,.fromblog,.c-about) :is(p,li,dd,td){color:var(--bx-body)!important;font-size:17px!important;line-height:1.65!important}

html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(.pmeta,.tr-reg,.toc-h,.fb-head .meta,.kick){color:var(--bx-mute)!important}

/* ---------- Colour and brand ---------- */
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .bg-t,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .essentials>.ess.bg-t,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .c-about.th-nophoto{background:var(--bx-ice)!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(.ess,.lp) :is(.item,dl.rows,.cols2>div,.cols3>div){background:#fff!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .bg-w :is(.item,dl.rows),
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp :is(.item,dl.rows){background:var(--bx-ice)!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(.item,dl.rows,.tr-grid>.item){border-top:3px solid var(--bx-blue)!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) main a:not(.btn):not(.tlink):not(.toc a),
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp a:not(.btn):not(.toc a){color:var(--bx-blue)!important;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(main,.lp,.ess,.c-about,.fromblog) .btn,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .c-form button,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) header .btn,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .c-hero .btn{background:var(--bx-blue)!important;border:1px solid var(--bx-blue)!important;color:#fff!important;border-radius:0!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(main,.lp,.ess) .btn:hover,
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) header .btn:hover{background:var(--bx-blue-d)!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .tr-grid .tr-reg{color:var(--bx-blue)!important}

/* ---------- Licence page layout: side menu, open sections ---------- */
.lp{background:#fff;padding:72px 24px 24px}
.lp-in{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}
.toc{position:sticky;top:104px;padding:28px 24px;background:var(--bx-ice);border-top:3px solid var(--bx-blue)}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .toc .toc-h{font-family:'Spectral',Georgia,serif!important;font-size:20px!important;color:var(--bx-ink)!important;margin:0 0 14px!important}
.toc ul{list-style:none;margin:0 0 22px;padding:0}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .toc li{margin:0!important;padding:0!important;font-size:15px!important;line-height:1.4!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .toc li a{display:block;padding:6px 0;color:var(--bx-body)!important;text-decoration:none!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .toc li a:hover{color:var(--bx-blue)!important}
.toc .btn{display:inline-block;padding:12px 20px}
.lp-main{max-width:860px;min-width:0}
/* neutralise the old full-bleed section chrome inside the layout */
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main>section.ess{background:none!important;padding:0!important;margin:0 0 64px!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main>section.ess>.in{max-width:none!important;padding:0!important;margin:0!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main .c-ps .c-pnl{display:block!important;padding:0!important;max-width:none!important;margin:0!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main .c-ps .c-pnl>.pn{background:none!important;padding:0 0 20px!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main .c-ps .c-pnl>.bd{padding:0!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main .c-pnl .pin{position:static!important;display:block!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main .cols3:not(.tr-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
.lp-main .rmb.open{margin-top:20px}
.lp-main .go{margin-top:24px}
.lp-main>.gs{margin:0 0 64px;scroll-margin-top:110px}
.lp-main>section{scroll-margin-top:110px}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main>.gs>h2{margin:0 0 20px!important}
.lp-main .gsb>*:first-child{margin-top:0}
.lp-main .gsb .tw{overflow-x:auto}
.lp-main .gs-src{margin-bottom:24px}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main .faq details{border-bottom:1px solid var(--bx-line)!important;padding:16px 0!important;background:none!important}
@media (max-width:980px){
  .lp{padding:48px 20px 8px}
  .lp-in{display:block}
  .toc{display:none}
  html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main .cols3:not(.tr-grid){grid-template-columns:1fr!important}
  .lp-main>.gs,html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .lp-main>section.ess{margin-bottom:48px!important}
  html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(.ess,.intro,.guide,.lp,.fromblog,.c-about) :is(p,li,dd,td){font-size:16px!important}
}
/* hero sub-heading: sans, calm */
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .c-hero .hh2,html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .phero .hh2,html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .phero p:not(.crumb){font-family:'Instrument Sans',system-ui,sans-serif!important;font-weight:400!important;font-size:clamp(17px,1.4vw,20px)!important;line-height:1.55!important;color:rgba(255,255,255,.86)!important;max-width:640px!important;letter-spacing:0!important}
/* home sections: heading then lead, stacked */
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .hs .pn{display:block!important;margin-bottom:36px!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .hs .pn .lead{margin:14px 0 0!important;max-width:680px!important;font-size:18px!important;color:var(--bx-body)!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .hs .pn .lk{margin-top:16px!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .hs .bd .it{background:var(--bx-ice)!important;border-top:3px solid var(--bx-blue)!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .hs .bd .it p{color:var(--bx-body)!important}
/* side menu: quiet links, scrolls within the screen */
.lp-in{max-width:1180px!important}
.toc{max-height:calc(100vh - 128px);overflow:auto}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .toc li a{color:var(--bx-body)!important;font-weight:400!important;font-size:14.5px!important;padding:5px 0!important;border:0!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .toc li{border:0!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .toc .btn{color:#fff!important;text-decoration:none!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(.th-bank,.hs) .sh{display:block!important;margin-bottom:36px!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) :is(.th-bank,.hs) .sh p{margin:14px 0 0!important;max-width:680px!important}
html:not(#a):not(#z) body:not(#b):not(#c):not(#y) .ck{border-top-color:var(--bx-blue)!important}
