/* RDC flag palette: bright colours for identity, deeper tones for readable controls. */
:root { --rdc-sky:#0095ff; --rdc-yellow:#ffdc32; --rdc-red:#df3139; --rdc-navy:#00365d; --rdc-blue:#00538c; --rdc-red-deep:#a71d34; --rdc-surface:#eaf6ff; --rdc-canvas:#f4f9fd; --rdc-stripe:linear-gradient(90deg,var(--rdc-sky) 0 64%,var(--rdc-yellow) 64% 69%,var(--rdc-red) 69% 94%,var(--rdc-yellow) 94%); --civic-blue:var(--rdc-blue); --civic-blue-dark:var(--rdc-navy); --civic-yellow:var(--rdc-yellow); --civic-soft:var(--rdc-canvas); }
.civic-site.reference-portal { --reference-blue:var(--rdc-navy); background:var(--rdc-canvas); }
.reference-portal .civic-rail-head,.cms-body .cms-topbar,.civic-error > header { border-bottom:4px solid var(--rdc-sky); border-image:var(--rdc-stripe) 1; }
.reference-portal .civic-navigation .nav-dropdown__menu { border-left-color:var(--rdc-sky); background:var(--rdc-surface); }
.reference-portal .civic-navigation [aria-current] { color:var(--rdc-blue); }
.reference-portal .civic-navigation :is(.reference-doc-green,.reference-doc-blue) > a,.reference-portal .civic-navigation > :is(.reference-doc-green,.reference-doc-blue) { color:#fff; background:var(--rdc-blue); }
.reference-portal .civic-navigation > .reference-doc-blue,.reference-portal .civic-navigation .reference-doc-blue > a { background:var(--rdc-navy); }
.reference-portal .civic-navigation .reference-doc-green > .nav-dropdown__trigger { color:var(--rdc-blue); }
.reference-portal .reference-search-bar button { color:var(--rdc-red-deep); }
.reference-portal .civic-hero { color:var(--rdc-navy); }
.reference-portal .civic-hero > .container { background:linear-gradient(180deg,transparent 0 calc(100% - 9px),var(--rdc-sky) calc(100% - 9px)),linear-gradient(135deg,var(--rdc-surface) 0 78%,#d1ebff 78% 91%,#b5dfff 91%); border:1px solid #c7e3fa; }
.reference-portal .civic-hero :is(.civic-country,a),.reference-portal .civic-hero-bottom > p { color:var(--rdc-navy); }
.reference-portal .civic-hero .civic-primary-link { background:var(--rdc-yellow); }
.reference-portal .civic-hero .civic-primary-link > span { background:var(--rdc-navy); color:#fff; }
.reference-portal .reference-news h2::after { background:var(--rdc-stripe); width:70px; }
.reference-portal .reference-news-visual { background:linear-gradient(145deg,#bfe4ff 0 57%,var(--rdc-yellow) 57% 60%,var(--rdc-red) 60% 68%,var(--rdc-yellow) 68% 71%,var(--rdc-sky) 71%); }
.civic-site .public-footer { background:var(--rdc-navy); border-top:4px solid var(--rdc-sky); border-image:var(--rdc-stripe) 1; }
.cms-body .gov-dashboard-hero,.auth-page .auth-brand-panel { background:var(--rdc-navy)!important; color:#fff; border-top:4px solid var(--rdc-sky); border-image:var(--rdc-stripe) 1; }
.auth-page .auth-brand-panel .auth-kicker { color:var(--rdc-yellow); }
.auth-page :is(.auth-submit,.btn-primary) { background:var(--rdc-blue)!important; color:#fff; }
.auth-page :is(.auth-submit,.btn-primary):hover { background:var(--rdc-navy)!important; }
.civic-error a { color:var(--rdc-blue); }
.reference-portal :is(a,button,input):focus-visible { outline-color:var(--rdc-red-deep); }
@media (forced-colors:active) { .reference-portal :is(a,button,input):focus-visible { outline-color:Highlight; } }
