/* p1 (Oct 28, Brad P1/P2/Toolbox): new navigation, home first screen, learning paths, cert prep, toolbox index. Loaded after style.css and v4.css. */
header.site .brand img{width:60px;height:auto}
@media(max-width:640px){header.site .brand img{width:48px}}
/* nav: seven items plus the Online training button; items wrap instead of overflowing */
@media(min-width:1101px){nav#primary-nav ul{flex-wrap:wrap;justify-content:flex-start;gap:2px 6px}nav a{padding:9px 14px}}
@media(min-width:1101px) and (max-width:1239px){nav a{font-size:18px;padding:9px 9px}}
@media(max-width:1100px){nav#primary-nav ul{flex-direction:column;align-items:stretch}nav#primary-nav a{white-space:normal}}

/* home first screen */
.hero.p1 .wrap{padding-top:64px;padding-bottom:150px}
.hero.p1 .copy{max-width:820px}
.hero.p1 .brandline{display:block;font-size:22px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#9ED0FF;margin:0 0 14px}
.hero.p1 h1{font-size:60px;margin-bottom:20px}
.hero.p1 p.sub{font-size:27px;line-height:1.45;color:#fff;font-weight:600}
.hero.p1 .btns{margin-top:30px}
.hero.p1 .btn{font-size:21px;padding:15px 26px}
@media(max-width:900px){.hero.p1 h1{font-size:44px}.hero.p1 p.sub{font-size:22px}.hero.p1 .wrap{padding-top:40px;padding-bottom:130px}}
@media(max-width:640px){.hero.p1 h1{font-size:34px;margin-bottom:12px}.hero.p1 .brandline{font-size:17px;margin-bottom:8px}.hero.p1 p.sub{font-size:20px}.hero.p1 .wrap{padding-top:28px;padding-bottom:110px}.hero.p1 .btns{margin-top:20px;gap:10px}.hero.p1 .btn{padding:12px 18px;font-size:19px}}

/* path cards (home and learning paths) */
.pathgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:28px}
.pathcard{display:flex;flex-direction:column;background:#fff;border-radius:16px;border-top:8px solid var(--blue);box-shadow:var(--shadow);padding:22px 24px;text-decoration:none;color:var(--ink)}
.pathcard:nth-child(3n+2){border-top-color:var(--green)}
.pathcard:nth-child(3n){border-top-color:var(--navy)}
a.pathcard:hover{box-shadow:var(--shadow2);color:var(--ink)}
.pathcard h3{font-size:23px;margin:0 0 8px}
.pathcard p{font-size:18px;line-height:1.5;margin:0 0 12px}
.pathcard .count{margin-top:auto;font-weight:800;color:var(--green2);font-size:17px}
.pathcard .count.later{color:#5C6F8F}
@media(max-width:1000px){.pathgrid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.pathgrid{grid-template-columns:1fr}}

/* instructor credibility block */
.cred{font-size:26px;line-height:1.4;font-weight:800;color:var(--navy);border-left:8px solid var(--green);padding:4px 0 4px 18px;margin:0 0 20px}
.voice{font-size:21px;font-style:italic;color:#33415C}
@media(max-width:640px){.cred{font-size:21px}}

/* catalog by learning path */
.jump{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 6px;padding:0;list-style:none}
.jump a{display:inline-block;border:2px solid var(--navy);border-radius:999px;padding:6px 16px;font-size:17px;font-weight:700;text-decoration:none;color:var(--navy);background:#fff}
.jump a:hover{background:var(--navy);color:#fff}
.pathsec{margin-top:44px;padding:6px 0 0}
.pathsec>h2{font-size:34px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.pathsec>h2 .n{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;border-radius:50%;background:var(--green2);color:#fff;font-size:22px}
.pathsec .also{font-size:19px}
.coming{background:var(--soft);border:2px dashed var(--line);border-radius:14px;padding:14px 18px;margin:14px 0 0}
.coming h3{font-size:19px;margin:0 0 6px;color:#33415C;text-transform:uppercase;letter-spacing:.05em}
.coming ul{margin:0}
.coming p{margin:0;font-size:18px}
.comingpaths{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:20px}
.comingpaths .coming{margin:0}
.comingpaths .coming h2{font-size:26px;margin:0 0 8px}
@media(max-width:900px){.comingpaths{grid-template-columns:1fr}}
.pill{display:inline-block;font-size:15px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;border-radius:999px;padding:3px 12px;vertical-align:middle}
.pill.live{background:var(--green2);color:#fff}
.pill.soon{background:#E3E8F0;color:#33415C}

/* certification prep */
.states{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin:22px 0 0;padding:0;list-style:none}
.states li{background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:16px 18px;border-top:6px solid #B8C4D6}
.states li.live{border-top-color:var(--green2)}
.states li h3{font-size:23px;margin:0 0 6px}
.states li p{font-size:17px;line-height:1.45;margin:6px 0 0}
@media(max-width:1000px){.states{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.states{grid-template-columns:1fr 1fr}}
.prep{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:24px 26px;margin-top:22px;border-left:8px solid var(--green2)}

/* toolbox index */
.tbx-cat{margin-top:38px}
.tbx-cat h2{font-size:32px}
.tgrid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.tool-link{display:block;background:#fff;border:1px solid var(--line);border-left:6px solid var(--blue);border-radius:12px;padding:14px 16px;text-decoration:none;color:var(--ink);box-shadow:0 4px 14px rgba(11,42,91,.08)}
.tool-link:hover{border-color:var(--blue);color:var(--ink);box-shadow:0 8px 20px rgba(11,42,91,.16)}
.tool-link b{display:block;color:var(--navy);font-size:20px;line-height:1.3;margin-bottom:4px}
.tool-link span{display:block;font-size:16px;line-height:1.45;color:#33415C}
.tbx-cat:nth-of-type(even) .tool-link{border-left-color:var(--green)}
@media(max-width:1000px){.tgrid3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.tgrid3{grid-template-columns:1fr}.tbx-cat h2{font-size:26px}}
.filterbox{max-width:620px;margin:18px 0 0}
.filterbox label{display:block;font-weight:700;font-size:18px}
.filterbox input{width:100%;font:inherit;font-size:19px;padding:10px 14px;border:2px solid var(--line);border-radius:10px}
.hidden{display:none!important}
.srcnote{font-size:17px;color:#33415C}
.crumbs{font-size:17px;color:#CFE0F5;margin:0 0 10px}
.crumbs a{color:#fff}
/* breadcrumbs on toolbox pages: plain inline links, not nav buttons */
.pagehead nav.crumbs a{display:inline;padding:0;font-size:17px;font-weight:600;color:#fff;text-decoration:underline;border-radius:0;background:none;white-space:normal}
.pagehead nav.crumbs a:hover{background:none;color:#CFE0F5}

/* home stats: three equal boxes */
.stats.three .grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:1000px){.stats.three .grid{grid-template-columns:repeat(3,1fr)}.stats.three .stat{border-right:1px solid var(--line);border-bottom:0}.stats.three .stat:last-child{border-right:0}}
@media(max-width:640px){.stats.three .grid{grid-template-columns:1fr}.stats.three .stat{border-right:0;border-bottom:1px solid var(--line)}.stats.three .stat:last-child{border-bottom:0}}

/* home: drinking water tagline under the hero heading */
.hero.p1 h1{margin-bottom:10px}
.hero.p1 .dwline{margin:0 0 18px;font-size:19px;line-height:1.4;font-weight:600}
.hero.p1 .dwline a{color:#CFE8FF;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-shadow:0 1px 3px rgba(0,0,0,.55)}
.hero.p1 .dwline a:hover,.hero.p1 .dwline a:focus{color:#fff}
@media(max-width:640px){.hero.p1 h1{margin-bottom:8px}.hero.p1 .dwline{font-size:17px;margin-bottom:14px}}
/* classes: Wastewater / Drinking Water switch */
.viewswitch{display:inline-flex;margin:18px 0 6px;border:2px solid var(--navy);border-radius:999px;overflow:hidden;background:#fff}
.viewswitch[hidden]{display:none}
.viewswitch button{font:inherit;font-size:20px;font-weight:700;padding:12px 26px;border:0;background:#fff;color:var(--navy);cursor:pointer;min-height:48px}
.viewswitch button+button{border-left:2px solid var(--navy)}
.viewswitch button[aria-pressed="true"]{background:var(--navy);color:#fff}
.viewswitch button:focus-visible{outline:3px solid var(--green);outline-offset:-5px}
.viewgroup[hidden]{display:none}
.viewhead{margin-top:26px}
.js-views .viewhead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dwboth{margin-top:22px}
.dwboth h3{margin-bottom:6px}
@media(max-width:640px){.viewswitch{display:flex;width:100%}.viewswitch[hidden]{display:none}.viewswitch button{flex:1;font-size:18px;padding:12px 10px}}

/* home: Online training, the main call to action, in the sky area of the hero */
.hero.p1 .wrap{position:relative}
.herocta{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--green2);color:#fff;border:3px solid #fff;border-radius:22px;padding:20px 38px;margin:6px 0 22px;text-decoration:none;box-shadow:0 14px 34px rgba(4,18,43,.55),0 0 0 6px rgba(46,125,50,.28);transition:transform .15s,background .15s}
.herocta .big{font-size:36px;font-weight:800;line-height:1.1;letter-spacing:.01em;text-shadow:0 2px 4px rgba(0,0,0,.3)}
.herocta .small{font-size:18px;font-weight:600;line-height:1.35;margin-top:6px;color:#E6F3E8}
.herocta:hover,.herocta:focus{background:#256B29;color:#fff;text-decoration:none;transform:translateY(-2px)}
.herocta:focus-visible{outline:4px solid #9ED0FF;outline-offset:4px}
@media(min-width:1200px){
 .herocta{position:absolute;top:22px;right:32px;margin:0;padding:22px 38px;white-space:nowrap}
 .herocta .big{font-size:42px}
}
@media(max-width:640px){
 .herocta{display:flex;width:100%;box-sizing:border-box;padding:16px 16px;margin:4px 0 18px;border-radius:18px}
 .herocta .big{font-size:30px}
 .herocta .small{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.herocta{transition:none}.herocta:hover{transform:none}}
