/* Shared navigation and footer. Page-specific styles remain in each page. */
.site-header{background:#102d3d;color:#fff}
.site-nav{max-width:1150px;margin:0 auto;padding:1rem 1.4rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem}
.site-nav .brand{color:#fff;text-decoration:none;flex-shrink:0;font-size:1.12rem;font-weight:800;line-height:1.2}
.site-nav .brand span{display:block;color:#d4b77f;font-size:.7rem;font-weight:500}
.site-links{display:flex;align-items:center;justify-content:flex-end;gap:clamp(.7rem,1.2vw,1.2rem)}
.site-links a{color:#fff;text-decoration:none;font-size:.88rem;white-space:nowrap}
.site-links a:hover,.site-links a[aria-current="page"]{text-decoration:underline;text-decoration-color:#c9a467;text-decoration-thickness:2px;text-underline-offset:6px}
.site-menu-button{display:none;background:transparent;color:#fff;border:1px solid #8fa8b3;border-radius:6px;padding:.5rem .8rem;font:inherit;font-weight:700;cursor:pointer}
.site-header a:focus-visible,.site-menu-button:focus-visible,.site-footer a:focus-visible{outline:3px solid #d4b77f;outline-offset:3px}
.site-footer{background:#102d3d;color:#e7eff2;padding:2.1rem 1.4rem 1.5rem;font-size:.9rem}
.site-footer .footer-shell{max-width:1150px;margin:0 auto}
.site-footer .footer-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-top:1px solid #8fa8b3;padding-top:1.3rem}
.site-footer .footer-brand{display:inline-flex;flex-direction:column;color:#fff;text-decoration:none;font-size:1.6rem;font-weight:800;line-height:1.1}
.site-footer .footer-brand span{font-size:.7rem;font-weight:500;color:#c6d6dd;margin-top:.35rem}
.site-footer .footer-social{display:flex;gap:.75rem;align-items:center}
.site-footer .footer-social a{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:50%;background:#1876a5;color:#fff;text-decoration:none;font-size:1.17rem;font-weight:800;line-height:1}
.site-footer .footer-social a:nth-child(2){background:#476294}.site-footer .footer-social a:nth-child(3){background:#b62c91}.site-footer .footer-social svg{width:21px;height:21px}
.site-footer .footer-credentials{padding:1.35rem 0}
.site-footer .footer-credentials h2{font-size:.88rem;color:#d8e5e9;margin:0 0 .9rem;font-weight:700}
.site-footer .footer-badges{display:flex;align-items:start;justify-content:flex-start;gap:clamp(1rem,4vw,3rem);flex-wrap:wrap}
.site-footer .footer-badges figure{width:150px;max-width:28vw;margin:0;text-align:center}
.site-footer .footer-badges img{width:90px;height:90px;object-fit:contain;display:block;margin:0 auto}
.site-footer .footer-badges figcaption{font-size:.79rem;line-height:1.35;color:#d9e8ed;margin-top:.4rem}
.site-footer .credential-panel{width:90px;height:90px;border:1px solid #c9a467;border-radius:6px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;text-align:center;color:#fff;font-size:.7rem;line-height:1.2;padding:.3rem}
.site-footer .credential-panel strong{color:#d4b77f;font-size:1rem}
.site-footer .footer-extra{border-top:1px solid #426174;padding:.9rem 0;color:#d9e8ed}
.site-footer .footer-extra a,.site-footer .footer-bottom a{color:#fff}
.site-footer .footer-bottom{border-top:1px solid #426174;padding-top:1rem;display:flex;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap;color:#c6d6dd;font-size:.84rem}
.site-footer .footer-bottom nav{display:flex;gap:.45rem 1rem;flex-wrap:wrap}
@media(max-width:900px){
 .site-nav{position:relative;flex-wrap:wrap;gap:.7rem}
 .site-menu-button{display:inline-flex;align-items:center;min-height:42px}
 .site-links{display:none;flex-basis:100%;flex-direction:column;align-items:stretch;gap:0;padding:.25rem 0 .5rem;border-top:1px solid #426174}
 .site-links.is-open{display:flex}
 .site-links a{display:block;padding:.65rem .3rem;font-size:1rem;white-space:normal}
}
@media(max-width:560px){
 .site-footer .footer-top{align-items:flex-start;flex-direction:column}
 .site-footer .footer-badges{gap:.8rem}
 .site-footer .footer-badges figure{width:calc(33.333% - .55rem);max-width:none}
 .site-footer .footer-badges img,.site-footer .credential-panel{width:72px;height:72px}
 .site-footer .footer-badges figcaption{font-size:.72rem}
}

/* PDF and playbook actions retain their destinations and use a consistent button. */
main a.pdf-button{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:46px;padding:.72rem 1.1rem;border:1px solid #102d3d;border-radius:8px;background:#102d3d;color:#fff;text-decoration:none;font-size:.92rem;font-weight:700;line-height:1.35;text-align:center;white-space:normal;vertical-align:middle;align-self:flex-start;margin-top:.8rem}main a.pdf-button:hover{background:#1c5166;color:#fff}main a.pdf-button:focus-visible{outline:3px solid #d49332;outline-offset:3px}
main .feature-copy a.pdf-button{background:#fff;border-color:#fff;color:#102d3d}main .feature-copy a.pdf-button:hover{background:#e6eff2;color:#102d3d}
@media(max-width:520px){main a.pdf-button{width:100%;justify-content:center}}

/* Intent-based CTA hierarchy shared by every page. */
:is(main,.site-header) :is(a,button).twc-primary,
main a.twc-secondary{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:100%;min-height:48px!important;padding:.7rem 1.15rem!important;border:1px solid #102d3d!important;border-radius:8px!important;font:inherit;font-size:.95rem!important;font-weight:700!important;line-height:1.4!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;box-shadow:none!important;cursor:pointer}
:is(main,.site-header) :is(a,button).twc-primary{background:#102d3d!important;color:#fff!important}
main a.twc-secondary{background:transparent!important;color:#102d3d!important}
:is(main,.site-header) .twc-primary:hover{background:#1c5166!important}
main a.twc-secondary:hover{background:#e6eff2!important}
main a:is(.twc-browse,.twc-reference){display:inline!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#075e79!important;font-size:inherit!important;font-weight:700!important;line-height:inherit!important;text-align:left!important;text-decoration:underline!important;text-underline-offset:3px;white-space:normal!important}
main a.twc-reference{font-weight:inherit!important}
main a:is(.twc-browse,.twc-reference):hover{text-decoration-thickness:2px!important;color:#102d3d!important}
:is(main,.site-header) .twc-cta-small{min-height:44px!important;padding:.55rem .88rem!important;font-size:.875rem!important}
.site-header a.twc-nav-cta{min-height:40px!important;padding:.45rem .8rem!important;background:#1c5166!important;border-color:#8fa8b3!important;font-size:.88rem!important}
.site-header a.twc-nav-cta:hover{background:#286b7e!important}
main :is(.cta,.cross-link,.coach-framework,.mhfa-feature,.feature-copy) .twc-primary,
body[data-cta-dark-hero] main .hero .twc-primary{background:#fff!important;color:#102d3d!important;border-color:#fff!important}
main :is(.cta,.cross-link,.coach-framework,.mhfa-feature,.feature-copy) .twc-secondary,
body[data-cta-dark-hero] main .hero .twc-secondary{background:transparent!important;color:#fff!important;border-color:#aac4cf!important}
main :is(.cta,.cross-link,.coach-framework,.mhfa-feature,.feature-copy) a:is(.twc-browse,.twc-reference){color:#fff!important}
main :is(.cta,.cross-link,.coach-framework,.mhfa-feature,.feature-copy) .twc-primary:hover,
body[data-cta-dark-hero] main .hero .twc-primary:hover{background:#e6eff2!important}
main :is(.cta,.cross-link,.coach-framework,.mhfa-feature,.feature-copy) .twc-secondary:hover,
body[data-cta-dark-hero] main .hero .twc-secondary:hover{background:#21495b!important}
:is(main,.site-header) :is(.twc-primary,.twc-secondary,.twc-browse,.twc-reference):focus-visible{outline:3px solid #d49332!important;outline-offset:4px!important}
main .actions>.twc-primary{order:0}main .actions>.twc-secondary{order:1}main .actions>.twc-browse{order:2}
@media(max-width:600px){
main :is(.actions,.offer-actions,.course-links){display:flex;flex-direction:column;align-items:stretch;gap:.75rem}
main :is(.actions,.offer-actions,.course-links)>:is(.twc-primary,.twc-secondary){width:100%;margin-left:0!important;margin-right:0!important}
main :is(.actions,.offer-actions,.course-links)>:is(.twc-browse,.twc-reference){align-self:flex-start}
.site-header a.twc-nav-cta{align-self:flex-start;margin-top:.35rem}
}

/* Shared spacing and containment for the intent-based link hierarchy. */
:is(main,.site-header) :is(.twc-primary,.twc-secondary){box-sizing:border-box!important;min-width:0!important;max-width:100%!important;flex:0 1 auto!important;overflow-wrap:anywhere}
main :is(.actions,.offer-actions,.course-links){min-width:0;max-width:100%;align-items:center;gap:.75rem 1rem}
main :is(.actions,.offer-actions,.course-links)>a{min-width:0;max-width:100%;margin-bottom:0}
main :is(.offer,.course,.format,.post,.level-card,.coach-copy,.hero-copy){min-width:0}
main :is(.coach-inline-links,.related-links){display:flex;flex-wrap:wrap;align-items:baseline;gap:.65rem 1.15rem;min-width:0;max-width:100%}
main :is(.coach-inline-links,.related-links)>a{min-width:0;max-width:100%;overflow-wrap:anywhere}
main :is(.coach-related,.related-links) a.twc-reference{margin-top:0!important}
main :is(.format-link,.format-dates){margin-top:1rem}
main :is(.cta,.footcta,.tool-cta,.counselling-cta) .wrap>*{min-width:0;max-width:100%}
main :is(.cta,.footcta,.tool-cta,.counselling-cta) .twc-primary{background:#fff!important;color:#102d3d!important;border-color:#fff!important}
main :is(.cta,.footcta,.tool-cta,.counselling-cta) .twc-secondary{background:transparent!important;color:#fff!important;border-color:#aac4cf!important}
main :is(.cta,.footcta,.tool-cta,.counselling-cta) .twc-primary:hover{background:#e6eff2!important}
main :is(.cta,.footcta,.tool-cta,.counselling-cta) .twc-secondary:hover{background:#21495b!important}
@media(max-width:700px){
 main :is(.actions,.offer-actions,.course-links){display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:.75rem!important;width:100%;max-width:100%}
 main :is(.actions,.offer-actions,.course-links)>:is(.twc-primary,.twc-secondary){width:100%!important;align-self:stretch!important;flex:0 1 auto!important;margin:0!important}
 main :is(.actions,.offer-actions,.course-links)>:is(.twc-browse,.twc-reference){width:auto!important;align-self:flex-start!important;flex:0 1 auto!important}
 main :is(.cta,.footcta,.tool-cta,.counselling-cta) .wrap{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:1.25rem!important}
 main :is(.cta,.footcta,.tool-cta,.counselling-cta) .wrap>.actions{margin-top:0!important;flex-shrink:1!important}
 main :is(.cta,.footcta,.tool-cta,.counselling-cta) .wrap>:is(.twc-primary,.twc-secondary){width:100%!important;margin-top:0!important}
 main :is(.coach-inline-links,.related-links){flex-direction:column;align-items:flex-start;gap:.75rem}
 main :is(.offer,.course,.format) :is(.twc-primary,.twc-secondary){max-width:100%!important}
}
