/* Capable Body Modernization Wave 1 — root hub only. */
body[data-cb-route="home"],
body.cb-modern-home{
  --cbm-bg:#030a12;
  --cbm-panel:#071827;
  --cbm-panel-2:#0a2033;
  --cbm-line:rgba(104,184,255,.22);
  --cbm-line-soft:rgba(255,255,255,.09);
  --cbm-text:#f7f4ed;
  --cbm-muted:#aebdcb;
  --cbm-blue:#59adff;
  --cbm-cyan:#68e0e7;
  --cbm-orange:#f49a32;
  --cbm-red:#e76b50;
  background:var(--cbm-bg);
}

body[data-cb-route="home"] main,
body.cb-modern-home main{
  width:min(1480px,100%);
  background:linear-gradient(180deg,#020a11 0,#05131f 42%,#030b13 100%);
  border-inline:0;
  box-shadow:none;
  color:var(--cbm-text);
}

body[data-cb-route="home"] .site-header,
body.cb-modern-home .site-header{
  max-width:1480px;
  background:rgba(3,12,20,.96);
  border-bottom:1px solid rgba(89,173,255,.18);
}

body[data-cb-route="home"] .site-header nav a,
body.cb-modern-home .site-header nav a{
  color:#c6d4df;
}
body[data-cb-route="home"] .site-header nav a:hover,
body[data-cb-route="home"] .site-header nav a:focus-visible,
body.cb-modern-home .site-header nav a:hover,
body.cb-modern-home .site-header nav a:focus-visible{
  background:rgba(89,173,255,.09);
  color:#fff;
  outline-color:rgba(89,173,255,.45);
}
body[data-cb-route="home"] .site-header nav .nav-today,
body.cb-modern-home .site-header nav .nav-today{
  background:linear-gradient(180deg,#2588e8,#1168bf);
  box-shadow:0 10px 26px rgba(21,117,210,.28);
}

body[data-cb-route="home"] .hero,
body.cb-modern-home .hero{
  min-height:470px;
  grid-template-columns:minmax(0,1.28fr) minmax(330px,.72fr);
  background:
    radial-gradient(circle at 18% 20%,rgba(89,173,255,.16),transparent 25rem),
    radial-gradient(circle at 76% 100%,rgba(104,224,231,.07),transparent 24rem),
    linear-gradient(135deg,#061522,#08243a 62%,#071927);
  border-bottom:1px solid rgba(89,173,255,.18);
}
body[data-cb-route="home"] .hero::after,
body.cb-modern-home .hero::after{
  height:140px;
  background:linear-gradient(to top,rgba(2,10,17,.84),transparent);
}
body[data-cb-route="home"] .hero-copy,
body.cb-modern-home .hero-copy{
  padding:68px clamp(34px,6vw,88px) 92px;
}
body[data-cb-route="home"] .hero-copy::before,
body.cb-modern-home .hero-copy::before{
  width:88px;
  height:4px;
  background:linear-gradient(90deg,var(--cbm-cyan),var(--cbm-blue));
}
body[data-cb-route="home"] .hero .eyebrow,
body.cb-modern-home .hero .eyebrow{
  color:var(--cbm-cyan);
  font-size:13px;
}
body[data-cb-route="home"] .hero h1,
body.cb-modern-home .hero h1{
  max-width:780px;
  margin-top:20px;
  font-size:clamp(56px,7.2vw,100px);
  line-height:.82;
  letter-spacing:-.035em;
  color:#fff;
}
body[data-cb-route="home"] .hero-copy>p:not(.eyebrow),
body.cb-modern-home .hero-copy>p:not(.eyebrow){
  max-width:720px;
  color:#c9d4de;
  font-size:clamp(18px,2vw,25px);
  line-height:1.45;
}
body[data-cb-route="home"] .hero-image,
body.cb-modern-home .hero-image{
  min-height:470px;
  background-image:
    linear-gradient(90deg,#08243a 0,rgba(8,36,58,.5) 18%,rgba(4,17,28,.08) 55%),
    linear-gradient(0deg,rgba(3,10,18,.55),transparent 48%),
    url('/capable-body-assets/hero.webp');
  background-position:center 30%;
  filter:saturate(.76) contrast(1.08);
}
body[data-cb-route="home"] .hero-actions,
body.cb-modern-home .hero-actions{margin-top:34px;gap:12px}
body[data-cb-route="home"] .hero-actions .primary,
body.cb-modern-home .hero-actions .primary{
  background:linear-gradient(180deg,#5ab2ff,#2c8be4);
  color:#02101b;
  border-color:transparent;
  box-shadow:0 14px 32px rgba(53,147,234,.28);
}
body[data-cb-route="home"] .hero-actions .light,
body.cb-modern-home .hero-actions .light{
  background:rgba(255,255,255,.055);
  color:#eef6fb;
  border:1px solid rgba(255,255,255,.2);
}

body[data-cb-route="home"] .setup-bar,
body.cb-modern-home .setup-bar{
  width:calc(100% - 72px);
  max-width:1320px;
  margin:-31px auto 0;
  border:1px solid rgba(89,173,255,.22);
  border-radius:18px;
  background:#081827;
  box-shadow:0 20px 46px rgba(0,0,0,.34);
}
body[data-cb-route="home"] .setup-bar>div,
body.cb-modern-home .setup-bar>div{
  padding:17px 22px;
  background:linear-gradient(180deg,#0a1d2e,#081725);
  border-right:1px solid rgba(255,255,255,.08);
}
body[data-cb-route="home"] .setup-bar span,
body.cb-modern-home .setup-bar span{color:#68e0e7}
body[data-cb-route="home"] .setup-bar strong,
body.cb-modern-home .setup-bar strong{color:#f6f7f8}
body[data-cb-route="home"] .setup-bar button,
body.cb-modern-home .setup-bar button{
  min-width:150px;
  background:linear-gradient(180deg,#f5a640,#e88622);
  color:#101820;
}

body[data-cb-route="home"] .content-shell,
body.cb-modern-home .content-shell{
  padding:76px clamp(28px,5vw,72px) max(110px,calc(70px + env(safe-area-inset-bottom)));
  background:
    radial-gradient(circle at 90% 10%,rgba(89,173,255,.055),transparent 30rem),
    linear-gradient(180deg,#05131f,#030b13);
}
body[data-cb-route="home"] .content-shell section+section,
body.cb-modern-home .content-shell section+section{margin-top:76px}

.cbm-section-head{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:34px;
  align-items:end;
  margin-bottom:26px;
}
.cbm-overline,.cbm-kicker{
  font-family:"Barlow Condensed",sans-serif;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.cbm-overline{display:block;margin-bottom:8px;color:var(--cbm-cyan);font-size:12px}
.cbm-section-head h2{
  margin:0;
  max-width:880px;
  color:#fff;
  font-family:"Barlow Condensed",sans-serif;
  font-size:clamp(38px,4.7vw,64px);
  line-height:.92;
  letter-spacing:-.02em;
}
.cbm-section-head>p{margin:0;color:var(--cbm-muted);font-size:15px;line-height:1.6}

.cbm-action-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.cbm-action-card{
  min-height:222px;
  display:flex;
  flex-direction:column;
  padding:22px;
  border:1px solid var(--cbm-line-soft);
  border-radius:18px;
  background:linear-gradient(180deg,#0a1d2e,#071624);
  color:var(--cbm-text);
  text-decoration:none;
  box-shadow:0 14px 34px rgba(0,0,0,.16);
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.cbm-action-card:hover,.cbm-action-card:focus-visible{
  transform:translateY(-3px);
  border-color:rgba(89,173,255,.52);
  background:linear-gradient(180deg,#0d263c,#081a2a);
  outline:none;
}
.cbm-action-card.primary{
  border-color:rgba(89,173,255,.6);
  background:linear-gradient(145deg,#103a61,#0a2237);
  box-shadow:inset 0 0 0 1px rgba(89,173,255,.08),0 18px 38px rgba(16,102,178,.15);
}
.cbm-action-card.soft{background:linear-gradient(145deg,#102d37,#081b27)}
.cbm-action-card.warning{border-color:rgba(244,154,50,.34);background:linear-gradient(145deg,#2a2118,#0b1822)}
.cbm-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cbm-kicker{color:var(--cbm-cyan);font-size:11px}
.cbm-badge{
  padding:5px 8px;
  border-radius:999px;
  background:rgba(89,173,255,.14);
  color:#9dceff;
  font-family:"Barlow Condensed",sans-serif;
  font-size:10px;
  font-weight:900;
  letter-spacing:.09em;
}
.cbm-action-card>strong{
  margin-top:24px;
  color:#fff;
  font-family:"Barlow Condensed",sans-serif;
  font-size:31px;
  line-height:.95;
}
.cbm-action-card>p{margin:10px 0 18px;color:#afbfcc;font-size:14px;line-height:1.5}
.cbm-action-card>em{margin-top:auto;color:#76bcff;font-style:normal;font-weight:800;font-size:13px}
.cbm-action-card.warning>em{color:#f4a74c}

.cbm-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.cbm-status-card{
  min-height:205px;
  padding:22px;
  border:1px solid var(--cbm-line-soft);
  border-radius:18px;
  background:#071624;
}
.cbm-status-card h3{margin:20px 0 8px;color:#fff;font-family:"Barlow Condensed",sans-serif;font-size:30px;line-height:.95}
.cbm-status-card p{margin:0 0 20px;color:#aebdca;font-size:14px;line-height:1.55}
.cbm-status-card a{color:#74bbff;font-weight:800;text-decoration:none}
.cbm-recent{display:flex;gap:10px;flex-wrap:wrap;margin-top:13px;color:#9fb0bd;font-size:12px}
.cbm-recent strong{color:#dce8f0}
.cbm-recent span{padding-left:10px;border-left:1px solid rgba(255,255,255,.12)}

.cbm-life-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}

.cbm-tools{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.cbm-tool-link{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:15px 17px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:15px;
  background:rgba(8,24,39,.7);
  color:#fff;
  text-decoration:none;
}
.cbm-tool-link:hover,.cbm-tool-link:focus-visible{border-color:rgba(89,173,255,.45);background:#0a1e31;outline:none}
.cbm-tool-link span{display:grid;gap:3px}
.cbm-tool-link strong{font-size:14px}
.cbm-tool-link small{color:#9eb0bf;font-size:12px;line-height:1.4}
.cbm-tool-link b{white-space:nowrap;color:#72b9ff;font-size:12px}

.cbm-boundary{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  padding:20px 22px;
  border:1px solid rgba(244,154,50,.3);
  border-radius:18px;
  background:linear-gradient(90deg,rgba(244,154,50,.09),rgba(8,24,39,.75));
}
.cbm-boundary strong{display:block;color:#fff;font-family:"Barlow Condensed",sans-serif;font-size:22px;letter-spacing:.02em}
.cbm-boundary p{margin:5px 0 0;color:#aebdca;font-size:13px}
.cbm-boundary a{white-space:nowrap;color:#f4a43b;font-weight:900;text-decoration:none}

body[data-cb-route="home"] footer,
body.cb-modern-home footer{
  max-width:1480px;
  background:#020911;
  border-top:1px solid rgba(89,173,255,.14);
  color:#9badbb;
}
body[data-cb-route="home"] footer a,
body.cb-modern-home footer a{color:#c8d8e3}

@media(max-width:980px){
  body[data-cb-route="home"] .hero,body.cb-modern-home .hero{grid-template-columns:1fr;min-height:auto}
  body[data-cb-route="home"] .hero-image,body.cb-modern-home .hero-image{min-height:300px;background-position:center 26%}
  .cbm-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cbm-status-grid,.cbm-life-grid{grid-template-columns:1fr}
  .cbm-section-head{grid-template-columns:1fr;gap:12px}
}

@media(max-width:720px){
  body[data-cb-route="home"] .hero-copy,body.cb-modern-home .hero-copy{padding:48px 24px 70px}
  body[data-cb-route="home"] .hero h1,body.cb-modern-home .hero h1{font-size:clamp(48px,15vw,72px)}
  body[data-cb-route="home"] .setup-bar,body.cb-modern-home .setup-bar{
    width:calc(100% - 28px);
    grid-template-columns:1fr 1fr;
    margin-top:-20px;
  }
  body[data-cb-route="home"] .setup-bar>div,body.cb-modern-home .setup-bar>div{padding:14px 15px}
  body[data-cb-route="home"] .setup-bar button,body.cb-modern-home .setup-bar button{min-width:0;grid-column:1/-1;min-height:48px}
  body[data-cb-route="home"] .content-shell,body.cb-modern-home .content-shell{padding:58px 16px max(100px,calc(68px + env(safe-area-inset-bottom)))}
  .cbm-action-grid,.cbm-tools{grid-template-columns:1fr}
  .cbm-action-card{min-height:190px}
  .cbm-boundary{align-items:flex-start;flex-direction:column}
  .cbm-tool-link{align-items:flex-start}
}

@media(max-width:420px){
  body[data-cb-route="home"] .setup-bar,body.cb-modern-home .setup-bar{grid-template-columns:1fr}
  body[data-cb-route="home"] .setup-bar button,body.cb-modern-home .setup-bar button{grid-column:auto}
  .cbm-section-head h2{font-size:38px}
}

/* 47.15.2 — single-header root. The legacy photographic hero remains in DOM only for base-script compatibility. */
body.cb-modern-home #cb-hero,
body[data-cb-route="home"].cb-modern-home #cb-hero{
  display:none !important;
}

body.cb-modern-home #cb-main,
body[data-cb-route="home"].cb-modern-home #cb-main{
  background:
    radial-gradient(circle at 82% 0%,rgba(89,173,255,.07),transparent 30rem),
    linear-gradient(180deg,#05131f,#030b13);
}

body.cb-modern-home .setup-bar,
body[data-cb-route="home"].cb-modern-home .setup-bar{
  margin:20px auto 0;
}

body.cb-modern-home .bpf-hub-guide,
body[data-cb-route="home"].cb-modern-home .bpf-hub-guide{
  margin-top:24px;
}

body.cb-modern-home .bpf-hub-guide__step--action,
body[data-cb-route="home"].cb-modern-home .bpf-hub-guide__step--action{
  text-decoration:none;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
body.cb-modern-home .bpf-hub-guide__step--action:hover,
body.cb-modern-home .bpf-hub-guide__step--action:focus-visible,
body[data-cb-route="home"].cb-modern-home .bpf-hub-guide__step--action:hover,
body[data-cb-route="home"].cb-modern-home .bpf-hub-guide__step--action:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(89,173,255,.62);
  background:rgba(89,173,255,.11);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  outline:none;
}
body.cb-modern-home .bpf-hub-guide__step--action:active,
body[data-cb-route="home"].cb-modern-home .bpf-hub-guide__step--action:active{
  transform:translateY(0);
}

body.cb-modern-home .content-shell,
body[data-cb-route="home"].cb-modern-home .content-shell{
  padding-top:42px;
}
body.cb-modern-home .content-shell section+section,
body[data-cb-route="home"].cb-modern-home .content-shell section+section{
  margin-top:64px;
}

@media(max-width:720px){
  body.cb-modern-home .setup-bar,
  body[data-cb-route="home"].cb-modern-home .setup-bar{margin-top:14px}
  body.cb-modern-home .bpf-hub-guide,
  body[data-cb-route="home"].cb-modern-home .bpf-hub-guide{margin-top:16px}
  body.cb-modern-home .content-shell,
  body[data-cb-route="home"].cb-modern-home .content-shell{padding-top:34px}
}
