/*
 * BrandPublic: framework-free public shell (design handoff "Client Portal").
 * Brand colours come from the --brand-* variables (BrandTheme Theme::cssVariables()); neutrals are the
 * shared tokens (Theme::NEUTRALS). Breakpoints: 640 / 1024 / 1280. Content max-width 1120px.
 */

@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/instrument-sans-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/instrument-sans-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/instrument-sans-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Instrument Sans";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/instrument-sans-latin-700-normal.woff2) format("woff2")}

:root{
    --bp-font:"Instrument Sans",system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
    --bp-ink:var(--brand-ink,#16181d);
    --bp-text2:#3f4652;
    --bp-muted:#6b7280;
    --bp-hint:#8a909b;
    --bp-border-input:#d4d8de;
    --bp-border-card:#e6e9ee;
    --bp-divider:#eceef1;
    --bp-surface-alt:#f7f8f9;
    --bp-gutter:24px;
    --bp-max:1120px;
    --bp-ring:0 0 0 2px #fff,0 0 0 4px var(--brand-focus,var(--brand-primary,#1d5fa8));
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0}
.bp-body{
    min-height:100vh;display:flex;flex-direction:column;background:#fff;color:var(--bp-ink);
    font-family:var(--bp-font);font-size:16px;line-height:1.65;overflow-wrap:break-word;
    -webkit-font-smoothing:antialiased;
}
.bp-body img,.bp-body svg,.bp-body video{max-width:100%;height:auto}
.bp-body button,.bp-body input,.bp-body select,.bp-body textarea{font-family:inherit;font-size:inherit}
.bp-body a{color:var(--brand-primary)}
.bp-body a:hover{text-decoration:underline}

/* Focus: 2px white + 2px brand focus ring, keyboard focus only. */
.bp-body :focus{outline:none}
.bp-body :focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:var(--bp-ring)}
.bp-header--brand :focus-visible{box-shadow:0 0 0 2px var(--brand-header-bg,#1d5fa8),0 0 0 4px #fff}
.bp-footer :focus-visible{box-shadow:0 0 0 2px var(--brand-dark,#16191d),0 0 0 4px #fff}
.bp-main:focus{outline:none;box-shadow:none}

/* Skip link */
.bp-skip{position:absolute;left:12px;top:-100px;z-index:1000;padding:10px 16px;border-radius:8px;background:#fff;color:var(--bp-ink)!important;font-weight:600;text-decoration:none}
.bp-skip:focus,.bp-skip:focus-visible{top:12px}

.bp-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Grid */
.bp-wrap{width:100%;max-width:var(--bp-max);margin:0 auto;padding-left:var(--bp-gutter);padding-right:var(--bp-gutter)}
.bp-main{flex:1 0 auto;width:100%}
.bp-page{width:100%;max-width:var(--bp-max);margin:0 auto;padding:48px var(--bp-gutter) 64px}
.bp-page--narrow{max-width:860px}

/* Type scale */
.bp-hero-title{margin:0;font-size:clamp(30px,5vw,40px);line-height:1.1;font-weight:600;letter-spacing:-.02em}
.bp-title{margin:0;font-size:26px;line-height:1.2;font-weight:600;letter-spacing:-.01em}
.bp-h2{margin:0;font-size:19px;line-height:1.3;font-weight:600}
.bp-lead{margin:0;font-size:17px;color:var(--bp-text2)}
.bp-meta{font-size:13px;font-weight:500;color:var(--bp-muted)}
.bp-muted{color:var(--bp-muted);font-size:14px}
.bp-eyebrow{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--bp-muted)}
.bp-accent-rule{width:44px;height:4px;border-radius:2px;background:var(--brand-accent,var(--brand-primary))}

/* Buttons (min 44px touch target) */
.bp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid transparent;border-radius:10px;font-weight:600;font-size:15px;line-height:1.2;text-decoration:none!important;cursor:pointer;white-space:nowrap;transition:background-color .15s,border-color .15s}
.bp-btn--primary{background:var(--brand-primary);color:#fff!important}
.bp-btn--primary:hover{background:var(--brand-dark,var(--brand-primary))}
.bp-btn--secondary{background:#fff;color:var(--bp-ink)!important;border-color:var(--bp-border-input)}
.bp-btn--secondary:hover{background:var(--bp-surface-alt);border-color:#b9c0c8}
.bp-btn--link{background:transparent;color:var(--brand-primary)!important;padding-left:6px;padding-right:6px}

/* Header: "brand" = brand-colour bar with reversed logo; "light" = white with colour logo and border. */
.bp-header{background:var(--brand-header-bg,var(--brand-primary));color:var(--brand-header-ink,#fff)}
.bp-header--light{background:#fff;color:var(--bp-ink);border-bottom:1px solid var(--bp-divider)}
.bp-header__inner{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;padding-top:14px;padding-bottom:14px;min-height:72px}
.bp-brand{display:flex;align-items:center;gap:12px;min-width:0;color:inherit!important;text-decoration:none!important}
.bp-body .bp-brand__logo{display:block;height:44px;width:auto;max-width:160px;object-fit:contain}
.bp-brand__name{font-size:17px;font-weight:600;line-height:1.25;letter-spacing:-.01em}
.bp-brand__divider{width:1px;height:26px;background:currentColor;opacity:.25;flex:none}
.bp-brand__label{font-weight:600;font-size:15px;white-space:nowrap}
.bp-header__search{flex:1 1 280px;max-width:420px;min-width:0}
.bp-header__actions{margin-left:auto;display:flex;align-items:center;gap:6px}
.bp-nav{display:flex;align-items:center;gap:2px}
.bp-nav__link{color:inherit!important;font-size:14px;line-height:1.3;padding:8px 12px;border-radius:8px;opacity:.9;text-decoration:none!important;white-space:nowrap}
.bp-nav__link:hover,.bp-nav__link[aria-current="page"]{opacity:1;background:rgba(255,255,255,.12)}
.bp-header--light .bp-nav__link:hover,.bp-header--light .bp-nav__link[aria-current="page"]{background:var(--bp-surface-alt)}
.bp-header__cta{font-size:14px;padding:10px 16px;border-radius:9px;background:#fff;color:var(--brand-primary)!important}
.bp-header__cta:hover{background:rgba(255,255,255,.9)}
.bp-header--light .bp-header__cta{background:var(--brand-primary);color:#fff!important}
.bp-header--light .bp-header__cta:hover{background:var(--brand-dark,var(--brand-primary))}

/* Footer: reversed logo on --brand-dark. */
.bp-footer{margin-top:auto;background:var(--brand-dark,#16191d);color:rgba(255,255,255,.86)}
.bp-footer__inner{display:flex;flex-direction:column;gap:24px;padding-top:36px;padding-bottom:28px}
.bp-footer__top{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:28px}
.bp-footer__about{display:flex;flex-direction:column;gap:12px;max-width:340px}
.bp-footer__about p{margin:0;font-size:13.5px;line-height:1.6}
.bp-body .bp-footer__logo{display:block;height:56px;width:auto;max-width:160px;object-fit:contain;object-position:left center}
.bp-footer__name{color:#fff;font-weight:600;font-size:17px}
.bp-footer a{color:inherit;text-decoration:none}
.bp-footer a:hover{color:#fff;text-decoration:underline}
.bp-footer__links{display:grid;grid-template-columns:repeat(2,minmax(130px,auto));gap:8px 36px;font-size:14px;line-height:1.5}
.bp-footer__contacts{display:flex;flex-direction:column;gap:8px;font-style:normal;font-size:14px;line-height:1.5;max-width:280px;overflow-wrap:anywhere}
.bp-footer__html{font-size:13px}
.bp-footer__bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:16px;border-top:1px solid rgba(255,255,255,.14);font-size:12.5px;color:rgba(255,255,255,.7)}
.bp-footer .bp-footer__signin{text-decoration:underline}

/* Simple pages (404, holding) */
.bp-notice{display:flex;flex-direction:column;align-items:flex-start;gap:16px;max-width:640px;padding:24px 0 16px}
.bp-notice p{margin:0;color:var(--bp-text2)}
.bp-notice__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.bp-notice__search{display:flex;gap:8px;width:100%;max-width:520px;margin-top:4px}
.bp-notice__search input{flex:1;min-width:0;min-height:44px;padding:10px 14px;border:1px solid var(--bp-border-input);border-radius:10px;font-size:16px;color:var(--bp-ink);background:#fff}
.bp-notice__search input:focus-visible{border-color:var(--brand-primary);box-shadow:0 0 0 3px var(--brand-tint,#e7f0fb);outline:2px solid transparent}
.bp-card{border:1px solid var(--bp-border-card);border-radius:12px;padding:20px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.05)}

/* < 1024: header search on its own row, nav links hidden (logo goes home). */
@media (max-width:1023.98px){
    .bp-header__search{order:3;flex-basis:100%;max-width:none}
    .bp-nav{display:none}
}
/* < 640: single column, tighter gutters. */
@media (max-width:639.98px){
    :root{--bp-gutter:16px}
    .bp-header__inner{min-height:64px;padding-top:12px;padding-bottom:12px;gap:10px 12px}
    .bp-brand{gap:10px}
    .bp-body .bp-brand__logo{height:36px;max-width:112px}
    .bp-brand__label{font-size:14px}
    .bp-header__cta{min-height:40px;padding:8px 12px;font-size:13.5px}
    .bp-page{padding-top:32px;padding-bottom:48px}
    .bp-title{font-size:23px}
    .bp-footer__top{flex-direction:column}
    .bp-footer__links{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 20px}
}
/* Very narrow (320px / 200% zoom): keep the label for screen readers only. */
@media (max-width:399.98px){
    .bp-brand__divider{display:none}
    .bp-brand__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
    .bp-footer__links{grid-template-columns:minmax(0,1fr)}
}

@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
