/* Client portal look, Nov 2026 ("Concept H"): Open Sans with light headings,
   white header with a dark rule, breadcrumbs, square white tiles with a
   coloured top rule, and the dark "Your next steps" band with tide waves.
   Only applies to signed-in clients (body.cp); staff pages are untouched.
   Colours: one palette block below (CSS variables). */

/* Palette chosen 23 Nov 2026: the logo's three colours. Deep navy with
   navy/green tide waves (the "adviser card" look), green buttons, and gold
   only as an accent: the active menu line, the "Needs you now" stripes, the
   rule under "Your next steps" and one gold wave on the tide, like the gold
   wave under the logo. Never gold text or gold buttons (too little contrast).
   Every colour on client pages comes from here. */
body.cp{
  --cp-deep:#032D57; --cp-deep2:#0B3F73; --cp-brand:#043668;
  --cp-green:#049D5E; --cp-green-dk:#04774D; --cp-green-dkr:#03623F;
  --cp-on-deep-accent:#49C48B; --cp-on-deep-label:#B8CBD9; --cp-on-deep-sub:#C9D8E4;
  --cp-steel:#4F7195; --cp-soft:#E6EDF6; --cp-bg:#F5F7F9;
  --cp-tide1:#0B4E8C; --cp-tide2:#04774D; --cp-tide3:#049D5E; --cp-crest:#49C48B;
  --cp-gold:#F5A623;
}

body.cp{font-family:'Open Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;font-size:13.5px;background:var(--cp-bg);color:#2A3744;}
body.cp h1{font-size:32px;font-weight:300;letter-spacing:-.015em;color:var(--cp-brand);line-height:1.15;}
body.cp .page-head h1{font-size:30px;font-weight:300;margin:0 0 6px;}
body.cp .card{border-radius:2px;box-shadow:none;border:1px solid #E1E6EB;}
body.cp .card h2{font-weight:400;font-size:18px;}
body.cp .btn{border-radius:999px;font-weight:600;}
body.cp .btn-primary{background:var(--cp-green-dk);color:#fff;}
body.cp .btn-primary:hover{background:var(--cp-green-dkr);}
body.cp main{max-width:1240px;padding:0 32px 56px;}

/* Header: logo | Client Portal, menu, account. */
.cp-top{background:#fff;border-bottom:2px solid var(--cp-brand);}
.cp-top-in{max-width:1240px;margin:0 auto;padding:0 32px;min-height:72px;display:flex;align-items:center;gap:28px;flex-wrap:wrap;}
.cp-brand{display:flex;align-items:center;gap:12px;color:#2A3744;}
.cp-brand .m{height:30px;width:auto;display:block;}
.cp-brand .w{height:18px;width:auto;display:block;}
.cp-divider{width:1px;height:32px;background:#9AA8AB;}
.cp-prod{font-size:15px;line-height:1.2;white-space:nowrap;}
.cp-prod .lt{font-weight:300;}
.cp-prod b{font-weight:600;}
body.cp .navlinks.cp-nav{display:flex;gap:22px;margin-left:auto;align-items:center;font-size:12px;color:#2A3744;}
.cp-nav > a{font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:25px 2px 23px;border-bottom:2px solid transparent;display:inline-flex;gap:7px;align-items:center;}
.cp-nav > a:hover{color:var(--cp-brand);}
.cp-nav > a[aria-current="page"]{border-bottom-color:var(--cp-green);color:var(--cp-brand);}
.cp-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--cp-brand);color:#fff;font-size:10.5px;font-weight:600;letter-spacing:0;}
.cp-count.due{background:#B3261E;}
.cp-nav .nav-spacer{display:none;}
.cp-help{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#2A3744;}
.cp-help:hover{color:var(--cp-brand);}

/* Breadcrumbs. */
body.cp .trail{margin:14px 0 20px;font-size:12.5px;color:#617180;}
body.cp .trail-back{color:var(--cp-brand);text-decoration:underline;text-underline-offset:3px;font-weight:400;}
body.cp .trail-here{color:#2A3744;}

/* Page head with the client ID. */
.cp-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:26px 0 22px;}
.trail + .cp-head{margin-top:6px;}
/* Status pills in brand colours only (no amber/gold). */
body.cp .status-pill.status-in_progress,body.cp .status-pill.status-not_started,body.cp .status-pill.status-under_review{background:var(--cp-soft);color:var(--cp-brand);}
.cp-head h1{margin:0;}
.cp-head p{margin:4px 0 0;color:#617180;}
.cp-id{margin:0;color:#617180;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.cp-id b{color:#2A3744;letter-spacing:.03em;}

/* The navy band: what the client needs to do, over the tide. */
.cp-band{position:relative;overflow:hidden;background:var(--cp-deep);color:#fff;padding:22px 26px 52px;margin-bottom:24px;}
.cp-tide{position:absolute;left:0;bottom:0;width:100%;height:190px;pointer-events:none;}
.cp-band > *{position:relative;}
.cp-band > .cp-tide{position:absolute;}
.cp-band h2{margin:0 0 4px;font-size:22px;font-weight:300;color:#fff;}
.cp-band-sub{margin:0 0 16px;color:var(--cp-on-deep-sub);max-width:760px;}
.cp-feat{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;}
.cp-fcard{background:var(--cp-deep2);border-left:4px solid var(--cp-on-deep-accent);padding:16px 18px;display:flex;flex-direction:column;gap:8px;}
.cp-fcard.info{border-left-color:var(--cp-on-deep-label);}
.cp-flabel{margin:0;font-size:10.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--cp-on-deep-label);}
.cp-ftitle{margin:0;font-size:18px;font-weight:300;line-height:1.35;color:#fff;}
.cp-fsub{margin:0;font-size:12.5px;color:var(--cp-on-deep-sub);}
.cp-fbtn{margin-top:auto;display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;background:var(--cp-green-dk);color:#fff;font-weight:600;border:0;font:inherit;font-weight:600;cursor:pointer;width:100%;}
.cp-fbtn:hover{background:var(--cp-green-dkr);color:#fff;}
.cp-fcard.calm{border-left-color:var(--cp-on-deep-accent);}

/* White tiles with a coloured rule. */
.cp-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:24px;}
.cp-tile{background:#fff;padding:20px 26px 24px;border-top:4px solid var(--cp-brand);min-width:0;color:var(--cp-brand);}
.cp-tile.t-green{border-top-color:var(--cp-green);color:var(--cp-green-dk);}
.cp-tile.t-dkgreen{border-top-color:var(--cp-green-dk);color:var(--cp-green-dk);}
.cp-tile.t-steel{border-top-color:var(--cp-steel);color:var(--cp-steel);}
.cp-thead{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.cp-thead h2{flex:1;margin:0;font-size:22px;font-weight:300;color:inherit;}
.cp-arrow{display:flex;width:34px;height:34px;align-items:center;justify-content:center;color:inherit;}
.cp-tile .cp-body{color:#2A3744;}
.cp-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0;}
.cp-kv dt{font-weight:600;margin:0;}
.cp-kv dd{margin:0 0 14px;}
.cp-tile a.u,.cp-kv a{color:var(--cp-brand);text-decoration:underline;text-underline-offset:3px;}
.cp-tile a.u:hover,.cp-kv a:hover{color:var(--cp-green-dk);}
.cp-kv .red{color:#B3261E;}
.cp-prog{display:flex;gap:22px;align-items:center;flex-wrap:wrap;}
.cp-prog-now{margin:0;font-size:24px;font-weight:300;color:var(--cp-brand);line-height:1.2;}
.cp-prog-sub{margin:4px 0 14px;color:#617180;}
.cp-seg{display:flex;gap:3px;}
.cp-seg span{flex:1;height:10px;background:#E3E8EC;}
.cp-seg .d{background:var(--cp-green);}
.cp-seg .n{background:var(--cp-brand);}
.cp-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:16px;}
.cp-big{margin:0;font-size:40px;font-weight:300;line-height:1;color:var(--cp-green-dk);}
.cp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #EEF1F4;color:#2A3744;}
.cp-row:first-child{border-top:0;}
.cp-row:hover b{color:var(--cp-brand);text-decoration:underline;}
.cp-row b{font-weight:600;}

/* Slim footer. */
.cp-foot{background:#fff;border-top:1px solid #E1E6EB;margin-top:48px;}
.cp-foot-in{max-width:1240px;margin:0 auto;padding:16px 32px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#617180;}
.cp-foot a{color:#617180;text-decoration:underline;text-underline-offset:3px;}

@media (max-width: 900px){
  .cp-top-in{padding:10px 16px;gap:12px;min-height:60px;}
  .cp-divider,.cp-prod{display:none;}
  body.cp .navlinks.cp-nav{display:none;margin-left:0;}
  body.cp .navlinks.cp-nav.open{display:flex;}
  .cp-nav > a{padding:12px 20px;border-bottom:0;border-left:3px solid transparent;}
  .cp-nav > a[aria-current="page"]{border-left-color:var(--cp-green);}
  body.cp .hamburger{display:flex;margin-left:auto;}
  body.cp main{padding:0 16px 40px;}
  .cp-tiles{grid-template-columns:1fr;}
  .cp-band{padding:18px 16px 46px;}
  .cp-foot-in{padding:14px 16px;}
}
@media (max-width: 760px){
  body.cp .navlinks.cp-nav{width:100%;flex-direction:column;align-items:stretch;gap:0;}
}

/* Tide and ring parts take the palette. */
.cp-tide .t1{fill:var(--cp-tide1);} .cp-tide .t2{fill:var(--cp-tide2);} .cp-tide .t3{fill:var(--cp-tide3);}
.cp-tide .c1,.cp-tide .c2{stroke:var(--cp-crest);}
.cp-ring .on{stroke:var(--cp-green);} .cp-ring .pc{fill:var(--cp-brand);}
/* Finished-return pill follows the palette too. */
body.cp .status-pill.status-filed,body.cp .status-pill.status-completed{background:var(--cp-deep);color:#fff;}

/* Gold accents and the bolder tide (chosen 23 Nov 2026). */
.cp-tide{height:250px;}
.cp-band{padding-bottom:78px;}
.cp-tide .c2{display:none;}
.cp-tide .c1{stroke:var(--cp-gold);stroke-opacity:.75;stroke-width:1.8;transform:translateY(34px);}
.cp-nav > a[aria-current="page"]{border-bottom-color:var(--cp-gold);}
.cp-fcard{border-left-color:var(--cp-gold);}
.cp-fcard.info{border-left-color:var(--cp-on-deep-label);}
.cp-fcard.calm{border-left-color:var(--cp-on-deep-accent);}
.cp-band h2{margin-bottom:10px;}
.cp-band h2::after{content:"";display:block;width:44px;height:3px;background:var(--cp-gold);margin-top:8px;}
@media (max-width: 900px){
  .cp-band{padding-bottom:70px;}
  .cp-nav > a[aria-current="page"]{border-left-color:var(--cp-gold);}
}

/* ---- Return page and the pieces every client page shares (23 Nov 2026) ---- */
.cp-band-more{margin:14px 0 0;}
.cp-band-more a{color:#fff;text-decoration:underline;text-underline-offset:3px;}
.cp-tile-wide{margin-bottom:24px;}
.cp-h2{font-size:22px;font-weight:300;color:var(--cp-brand);margin:0 0 14px;}

/* Ten steps as dots on a line. */
.cp-steps{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(var(--n,10),minmax(70px,1fr));overflow-x:auto;}
.cp-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;}
.cp-steps li + li::before{content:"";position:absolute;top:14px;right:50%;width:100%;height:2px;background:#E1E6EB;z-index:0;}
.cp-steps li.d + li::before{background:var(--cp-green);}
.cp-steps .dot{position:relative;z-index:1;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:600;background:#fff;border:2px solid #CBD3DA;color:#617180;}
.cp-steps li.d .dot{background:var(--cp-green);border-color:var(--cp-green);color:#fff;}
.cp-steps li.n .dot{border-color:var(--cp-brand);color:var(--cp-brand);box-shadow:0 0 0 4px var(--cp-soft);}
.cp-steps .lbl{font-size:11.5px;line-height:1.3;color:#617180;padding:0 4px;}
.cp-steps li.n .lbl{color:var(--cp-brand);font-weight:600;}

/* Main column + side column. */
.cp-split{display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-top:4px;}
.cp-split-main{flex:999 1 520px;min-width:0;}
.cp-split-side{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:16px;}
.cp-info{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;}
.cp-itile{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #E1E6EB;border-left:3px solid #CBD3DA;padding:14px 16px;color:#2A3744;}
.cp-itile:hover{border-color:var(--cp-brand);}
.cp-itile.done{border-left-color:var(--cp-green);}
.cp-icheck{width:24px;height:24px;border-radius:50%;border:1.5px solid #B9C4C6;display:flex;align-items:center;justify-content:center;flex:none;font-size:12px;font-weight:600;}
.cp-itile.done .cp-icheck{background:var(--cp-green);border-color:var(--cp-green);color:#fff;}
.cp-itext{flex:1;min-width:0;}
.cp-itext b{display:block;font-weight:600;}
.cp-itext span{display:block;font-size:12.5px;color:#617180;}
.cp-istate{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#617180;}
.cp-itile.done .cp-istate{color:var(--cp-green-dk);}
.cp-calc{margin:16px 0 0;color:#617180;}
.cp-mini{padding:16px 20px 18px;}
.cp-mini-h{margin:0 0 8px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#617180;}
.cp-mini-big{margin:0 0 8px;font-size:18px;font-weight:300;color:var(--cp-brand);}
.cp-notes{font-size:13px;color:#2A3744;}
.cp-notes .muted{color:#617180;}

/* Return tabs: small capitals, gold line on the open tab. */
body.cp .tab-nav{gap:4px;border-bottom:1px solid #D9DFE5;margin:0 0 24px;}
body.cp .tab-nav a{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#4A5863;padding:12px 12px;}
body.cp .tab-nav a:hover{color:var(--cp-brand);}
body.cp .tab-nav a.active{color:var(--cp-brand);border-bottom-color:var(--cp-gold);}
body.cp .section-check.done{background:var(--cp-green);}
body.cp .tab-badge{background:var(--cp-brand);}

/* Shared pieces on the other client pages. */
body.cp .page-head{margin:22px 0 22px;}
body.cp .trail + .page-head{margin-top:4px;}
body.cp .page-head p{color:#617180;font-size:13.5px;}
body.cp .card{background:#fff;}
body.cp .card h2{color:var(--cp-brand);font-weight:300;font-size:20px;}
body.cp .card h3{color:var(--cp-brand);font-weight:600;}
body.cp .alert{border-radius:2px;border-width:0 0 0 4px;font-weight:400;}
body.cp .alert-success{background:#EAF6EF;color:#03623F;border-color:var(--cp-green);}
body.cp .alert-info{background:var(--cp-soft);color:var(--cp-brand);border-color:var(--cp-brand);}
body.cp .alert-error{border-color:#B3261E;}
body.cp .alert-warn,body.cp .alert-warning{background:#FFF8EC;color:#6B4600;border-color:var(--cp-gold);}
body.cp .verify-banner{border-radius:2px;border-width:0 0 0 4px;border-color:var(--cp-gold);}
body.cp .btn-ghost,body.cp .btn-outline-light{border-color:#B9C4C6;color:var(--cp-brand);background:#fff;}
body.cp .btn-ghost:hover,body.cp .btn-outline-light:hover{border-color:var(--cp-brand);background:var(--cp-soft);}
body.cp .btn-navy{background:var(--cp-brand);}
body.cp table{font-size:13px;}
body.cp th{font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#617180;}
body.cp input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]),
body.cp select,body.cp textarea{border-radius:2px;border:1px solid #CBD3DA;border-bottom:1.5px solid #6F7F83;background:#FAFBFC;font-family:inherit;}
body.cp input:focus,body.cp select:focus,body.cp textarea:focus{outline:2px solid var(--cp-green);outline-offset:1px;border-bottom-color:var(--cp-green);}
body.cp label{font-weight:600;}
body.cp .muted{color:#617180;}
@media (max-width: 900px){
  .cp-steps{grid-template-columns:repeat(var(--n,10),minmax(78px,1fr));padding-bottom:6px;}
}
body.cp .trail-back{border:0;background:none;padding:0;border-radius:0;box-shadow:none;}
body.cp a.u{color:var(--cp-brand);text-decoration:underline;text-underline-offset:3px;}
body.cp a.u:hover{color:var(--cp-green-dk);}

/* ---- Signed-out pages: split screen (log in, sign up, password reset) ---- */
body.cp-auth-page{background:#fff;}
body.cp-auth-page main{max-width:none;padding:0;margin:0;}
.cp-auth{display:flex;flex-wrap:wrap;min-height:100vh;}
.cp-auth-art{flex:1 1 440px;min-height:300px;position:relative;overflow:hidden;background:var(--cp-deep);display:flex;align-items:flex-start;}
.cp-auth-art .cp-tide{height:52%;}
.cp-auth-art .cp-tide .c1{transform:translateY(60px);}
.cp-auth-tag{position:relative;margin:0;padding:140px 56px 0;color:#fff;font-size:44px;font-weight:300;line-height:1.15;letter-spacing:-.015em;}
.cp-auth-main{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:56px 72px 28px;box-sizing:border-box;}
.cp-auth-in{max-width:440px;width:100%;margin-top:70px;}
.cp-auth-brand{margin-bottom:36px;}
.cp-auth-in h1{font-size:36px;margin:0 0 8px;}
.cp-auth-intro{margin:0 0 24px;color:#617180;}
.cp-auth-form .field{margin-bottom:18px;}
.cp-auth-form label{display:block;font-size:13px;margin-bottom:6px;}
body.cp .cp-auth-form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]){height:50px;font-size:15px;padding:0 14px;width:100%;background:#F3F5F7;border:0;border-bottom:1.5px solid #4D5D61;border-radius:0;}
.cp-auth-submit{min-height:46px;padding:0 30px;margin-top:6px;}
.cp-auth-links{display:flex;gap:20px;flex-wrap:wrap;margin:26px 0 0;}
.cp-auth-new{margin:22px 0 0;color:#2A3744;}
.cp-auth-legal{margin:40px 0 0;font-size:11.5px;color:#617180;max-width:560px;}
.cp-auth-legal a{color:#617180;text-decoration:underline;}
@media (max-width: 900px){
  .cp-auth-art{flex-basis:100%;min-height:220px;}
  .cp-auth-tag{padding:48px 24px 0;font-size:32px;}
  .cp-auth-main{padding:28px 20px 24px;}
  .cp-auth-in{margin-top:0;}
  .cp-auth-in h1{font-size:28px;}
  .cp-auth-brand .cp-divider,.cp-auth-brand .cp-prod{display:inline-block;}
}
