/* Scoped Justin Halsey mortgage site styles. Does not restyle the existing blog. */
body.jhg-custom-site{--jhg-navy:#132c43;--jhg-accent:#007e83;--jhg-ink:#1b3246;--jhg-muted:#607185;--jhg-line:#dce5e9;--jhg-mist:#f0f6f7;--jhg-cream:#f7f6f2;margin:0;background:#fff;color:var(--jhg-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55;overflow-x:hidden}
.jhg-custom-site *, .jhg-custom-site *::before,.jhg-custom-site *::after{box-sizing:border-box}
.jhg-custom-site a{color:inherit;text-decoration:none}.jhg-custom-site a:hover{color:var(--jhg-accent)}
.jhg-custom-site h1,.jhg-custom-site h2,.jhg-custom-site h3,.jhg-custom-site p{margin:0}.jhg-custom-site h1,.jhg-custom-site h2,.jhg-custom-site h3{line-height:1.17;letter-spacing:-.035em}
.jhg-custom-site h1{font-size:clamp(2.45rem,5vw,4.3rem)}.jhg-custom-site h2{font-size:clamp(1.9rem,3.2vw,2.75rem)}.jhg-custom-site h3{font-size:1.26rem}.jhg-custom-site p{line-height:1.72}.jhg-custom-site button{font:inherit;cursor:pointer}.jhg-custom-site button:focus-visible,.jhg-custom-site a:focus-visible,.jhg-custom-site summary:focus-visible{outline:3px solid #e8a451;outline-offset:3px}
.jhg-container{width:min(1140px,calc(100% - 44px));margin:0 auto}.jhg-section{padding:86px 0}.jhg-section-alt{background:#f4f8f9}.jhg-eyebrow{font-size:.8rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--jhg-accent);margin-bottom:17px!important}.jhg-section-heading{max-width:800px;margin-bottom:32px}.jhg-section-heading p:last-child{color:var(--jhg-muted);font-size:1.03rem;margin-top:13px}
.jhg-skip-link{position:absolute;left:8px;top:-70px;background:white;padding:10px;z-index:9999}.jhg-skip-link:focus{top:8px}
.jhg-site-header{position:sticky;top:0;background:rgba(255,255,255,.97);border-bottom:1px solid var(--jhg-line);z-index:100;box-shadow:0 1px 13px #16354a0a;backdrop-filter:blur(15px)}
.jhg-header-inner{min-height:90px;display:flex;align-items:center;gap:20px}.jhg-brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.jhg-brand-text{display:flex;flex-direction:column;line-height:1.3}.jhg-brand-text strong{font-size:1.05rem;letter-spacing:-.02em;color:var(--jhg-navy)}.jhg-brand-text small{font-size:.72rem;color:var(--jhg-muted)}.jhg-logo{width:52px;height:52px;object-fit:contain}.jhg-logo-placeholder{display:grid;place-items:center;width:52px;height:52px;border-radius:13px;background:var(--jhg-navy);color:white;font-weight:800;font-size:1.2rem}.jhg-desktop-nav{display:flex;margin-left:auto;gap:22px;font-size:.86rem;font-weight:700}.jhg-header-actions{margin-left:7px}.jhg-header-actions .jhg-button{padding:11px 14px;font-size:.78rem}.jhg-mobile-nav{display:none}
.jhg-actions{display:flex;flex-wrap:wrap;gap:11px;align-items:center}.jhg-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:9px;padding:13px 21px;font-weight:800!important;font-size:.87rem;white-space:nowrap;text-align:center;min-height:46px;transition:transform .14s ease,box-shadow .14s ease}.jhg-button:hover{transform:translateY(-1px)}.jhg-button-primary{background:var(--jhg-accent);color:#fff!important;box-shadow:0 5px 18px #007e831f}.jhg-button-primary:hover{background:#006d72;color:#fff!important}.jhg-button-outline{border:1px solid var(--jhg-navy);color:var(--jhg-navy)!important;background:#fff}.jhg-button-muted{background:#eef0f1;color:#455!important;border:1px dashed #abbcc3}
.jhg-hero{background:linear-gradient(125deg,#f6fafb 0%,#ebf4f5 60%,#edf2ef 100%);padding:82px 0 86px;overflow:hidden}.jhg-hero-grid{display:grid;grid-template-columns:1.5fr .8fr;align-items:center;gap:7%}.jhg-hero-copy h1{color:var(--jhg-navy);margin-bottom:26px}.jhg-mission{max-width:670px;font-size:1.06rem;color:#344b5d}.jhg-mission p + p{margin-top:12px}.jhg-hero-buttons{margin-top:30px}.jhg-service-line{color:var(--jhg-muted);font-size:.83rem;margin-top:24px!important}.jhg-hero-side{max-width:390px;margin-left:auto;width:100%}.jhg-portrait-frame{background:#d9e6e7;border-radius:24px 24px 7px 7px;overflow:hidden;aspect-ratio:4/4.4;box-shadow:17px 17px 0 #cadfe2;display:flex;align-items:center}.jhg-portrait-frame img{width:100%;height:100%;object-fit:cover}.jhg-portrait-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#647885}.jhg-portrait-placeholder span{font-size:6rem;color:#95aeb2;font-weight:800}.jhg-portrait-placeholder small{max-width:210px;text-align:center}.jhg-hero-side-caption{display:flex;flex-direction:column;align-items:center;padding-top:18px}.jhg-hero-side-caption span{color:var(--jhg-muted);font-size:.8rem}
.jhg-welcome-grid{display:grid;grid-template-columns:1fr 1.08fr;align-items:center;gap:8%}.jhg-welcome-grid h2{max-width:470px;margin-bottom:18px}.jhg-welcome-grid p:not(.jhg-eyebrow){color:var(--jhg-muted)}.jhg-video-heading{font-weight:800;color:var(--jhg-navy);margin-bottom:12px}.jhg-video{aspect-ratio:16/9;background:var(--jhg-navy);border-radius:13px;overflow:hidden;display:block;position:relative;box-shadow:0 16px 32px #0c2a3a18}.jhg-video iframe{border:0;width:100%;height:100%}.jhg-video-play{width:100%;height:100%;border:0;background:transparent;padding:0;display:block;position:relative}.jhg-video-play img{width:100%;height:100%;object-fit:cover;filter:brightness(.72)}.jhg-video-play:hover img{filter:brightness(.9)}.jhg-play-circle{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:69px;height:69px;border-radius:50%;background:#fff;color:var(--jhg-accent);font-size:1.45rem;padding-left:4px;box-shadow:0 7px 22px #0006}.jhg-video-empty{display:flex;align-items:center;justify-content:center;color:#fff;text-align:center;box-shadow:none;border:2px dashed #8da6b1}.jhg-video-empty small{font-size:.8rem;color:#d5e4e8}
.jhg-featured{background:var(--jhg-cream)}.jhg-featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.jhg-featured-item h3{font-size:1rem;margin-top:13px}.jhg-featured-item:has(.jhg-video:empty){display:none}.jhg-featured-cta{margin-top:45px;border-radius:15px;background:#fff;padding:26px 29px;border:1px solid #e4e8e6;display:flex;gap:25px;justify-content:space-between;align-items:center}.jhg-featured-cta h3{margin-bottom:8px}.jhg-featured-cta p{color:var(--jhg-muted);font-size:.95rem}
.jhg-reviews{background:#fff}.jhg-review-widget{max-width:840px;margin:0 auto;background:#f5f8f9;border:1px solid var(--jhg-line);border-radius:18px;padding:37px 38px}.jhg-review-slide[hidden]{display:none!important}.jhg-stars{font-size:1.25rem;letter-spacing:3px;color:#d38d36;margin-bottom:18px}.jhg-review-slide blockquote{font-size:clamp(1.1rem,2.15vw,1.42rem);line-height:1.66;margin:0 0 19px;font-weight:500}.jhg-review-meta{display:flex;gap:15px;align-items:center;color:var(--jhg-muted);font-size:.86rem}.jhg-review-meta strong{color:var(--jhg-navy)}.jhg-review-controls{border-top:1px solid var(--jhg-line);padding-top:21px;margin-top:29px;display:flex;gap:15px;align-items:center}.jhg-review-controls button{width:36px;height:36px;border:1px solid var(--jhg-line);background:#fff;border-radius:8px}.jhg-review-controls button:hover{background:var(--jhg-mist)}.jhg-review-controls a{margin-left:auto;text-decoration:underline;font-size:.86rem;font-weight:700}.jhg-review-controls span{font-size:.85rem;color:var(--jhg-muted)}
.jhg-explore-band{background:#eef7f6}.jhg-explore-layout{display:grid;grid-template-columns:1.18fr .82fr;gap:7%;align-items:center}.jhg-explore-layout h2{margin-bottom:18px}.jhg-explore-layout p:not(.jhg-eyebrow){max-width:580px;color:var(--jhg-muted);margin-bottom:24px}.jhg-question-preview{background:#fff;border:1px solid var(--jhg-line);border-radius:15px;padding:28px 30px;box-shadow:0 10px 35px #0d3a480f}.jhg-mini-progress{display:flex;justify-content:space-between;font-size:.81rem;margin-bottom:11px}.jhg-mini-progress span{color:var(--jhg-muted)}.jhg-preview-meter{height:7px;background:#dce9e9;border-radius:9px;margin-bottom:27px}.jhg-preview-meter span{display:block;height:100%;width:20%;background:var(--jhg-accent);border-radius:9px}.jhg-question-preview h3{font-size:1.15rem;margin-bottom:15px}.jhg-question-preview>div:not(.jhg-mini-progress):not(.jhg-preview-meter){padding:11px 13px;border:1px solid #e1e8e8;border-radius:8px;margin-top:9px;color:#3e5967;font-size:.91rem}
.jhg-quick-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.jhg-quick-categories a{display:flex;align-items:center;justify-content:space-between;background:#f4f8f9;border:1px solid var(--jhg-line);border-radius:10px;padding:24px 22px;font-weight:800}.jhg-quick-categories a:hover,.jhg-program-card:hover{border-color:#8dbfc1;box-shadow:0 7px 22px #113a5415}.jhg-quick-categories a span{color:var(--jhg-accent)}
.jhg-page-hero{background:linear-gradient(125deg,#f4faf9,#f0f4f7);padding:72px 0}.jhg-page-hero .jhg-container{max-width:1140px}.jhg-page-hero h1{max-width:790px;margin-bottom:14px}.jhg-page-hero p:last-child{max-width:710px;font-size:1.07rem;color:var(--jhg-muted)}.jhg-back-link{display:block;margin-bottom:22px;font-weight:700;font-size:.89rem;color:var(--jhg-accent)!important}.jhg-program-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.jhg-program-card{display:flex;flex-direction:column;min-height:230px;position:relative;padding:29px 26px;border:1px solid var(--jhg-line);border-radius:13px;transition:box-shadow .18s,border-color .18s}.jhg-program-card h3{padding-right:20px;margin-bottom:13px}.jhg-program-card p{font-size:.92rem;color:var(--jhg-muted)}.jhg-card-read{font-size:.82rem;font-weight:800;color:var(--jhg-accent);margin-top:auto;padding-top:18px}.jhg-program-card-arrow{position:absolute;top:20px;right:21px;color:var(--jhg-accent)}.jhg-resource-strip{display:flex;justify-content:space-between;align-items:center;gap:25px;border:1px solid var(--jhg-line);background:var(--jhg-mist);border-radius:14px;padding:30px}.jhg-resource-strip h2{font-size:1.8rem}.jhg-resource-strip p:last-child{color:var(--jhg-muted);margin-top:11px}
.jhg-program-detail{display:grid;grid-template-columns:minmax(0,1fr) 315px;gap:9%}.jhg-program-main h2{font-size:1.72rem;margin:32px 0 12px}.jhg-program-main h2:first-child{margin-top:0}.jhg-program-main p{color:var(--jhg-muted)}.jhg-program-main ul{padding-left:24px}.jhg-program-main li{margin:10px 0}.jhg-program-aside{background:#f3f8f8;border:1px solid var(--jhg-line);border-radius:13px;padding:25px;height:max-content;position:sticky;top:112px}.jhg-program-aside h3{font-size:1.2rem;margin:0 0 17px}.jhg-program-aside>a{display:flex;justify-content:space-between;border-top:1px solid var(--jhg-line);padding:13px 0;font-size:.91rem;font-weight:700}.jhg-program-aside>a span{color:var(--jhg-accent)}.jhg-aside-help{padding-top:22px;margin-top:11px;border-top:1px solid var(--jhg-line)}.jhg-aside-help p{font-size:.9rem;margin:7px 0 14px}.jhg-aside-help .jhg-actions{display:grid}.jhg-aside-help .jhg-button{width:100%}
.jhg-walkthrough{border-radius:18px;border:1px solid var(--jhg-line);box-shadow:0 15px 45px #123c4b12;max-width:850px;margin:0 auto;padding:34px 38px}.jhg-walk-progress>div:first-child{display:flex;justify-content:space-between;color:var(--jhg-muted);font-size:.87rem;font-weight:700}.jhg-meter{background:#e2ecec;height:9px;border-radius:9px;margin:15px 0 35px;overflow:hidden}.jhg-meter span{height:100%;display:block;background:var(--jhg-accent);border-radius:9px;transition:width .2s}.jhg-walk-screen h2{font-size:1.65rem;margin-bottom:20px}.jhg-walk-choices{display:grid;gap:11px}.jhg-option{padding:17px 20px;text-align:left;width:100%;border:1px solid #dce7e9;border-radius:10px;background:white;color:var(--jhg-navy);font-weight:700}.jhg-option:hover{background:#eef9f7;border-color:var(--jhg-accent)}.jhg-walk-nav{display:flex;justify-content:space-between;margin-top:18px}.jhg-text-button{border:0;background:transparent;color:var(--jhg-accent);font-size:.91rem;font-weight:750;padding:8px 0}.jhg-walk-note{max-width:850px;margin:21px auto 0;color:var(--jhg-muted);font-size:.91rem;text-align:center}.jhg-walk-note a{color:var(--jhg-accent);text-decoration:underline}.jhg-result-lead{margin-bottom:20px;color:var(--jhg-muted)}.jhg-result-group{margin:22px 0}.jhg-result-group h3{font-size:1.26rem;margin-bottom:13px}.jhg-result-card{padding:19px 21px;border:1px solid var(--jhg-line);border-radius:11px;margin:12px 0}.jhg-result-card h4{margin:0 0 7px;color:var(--jhg-navy);font-size:1.05rem}.jhg-result-card p{font-size:.9rem;color:var(--jhg-muted);margin-bottom:9px}.jhg-result-card a{color:var(--jhg-accent);font-size:.9rem;font-weight:800;text-decoration:underline}.jhg-result-card details{font-size:.87rem;margin:10px 0}.jhg-result-card summary{font-weight:700;cursor:pointer}.jhg-result-card ul{padding-left:22px}.jhg-result-card li{margin:5px 0}.jhg-result-cta{border-radius:13px;background:#edf6f6;padding:24px;margin-top:25px}.jhg-result-cta h3{margin-bottom:8px}.jhg-result-cta p{margin-bottom:14px;color:var(--jhg-muted)}.jhg-result-disclaimer{font-size:.8rem;color:var(--jhg-muted);margin:21px 0}
.jhg-contact-banner{background:var(--jhg-navy);color:#fff;padding:60px 0}.jhg-contact-grid{display:flex;align-items:center;justify-content:space-between;gap:35px}.jhg-contact-banner .jhg-eyebrow{color:#69d0cd}.jhg-contact-banner h2{font-size:2.25rem}.jhg-contact-banner p:not(.jhg-eyebrow){color:#dae5ee;margin-top:11px}.jhg-contact-banner .jhg-button-outline{background:transparent;color:#fff!important;border-color:#9eb5c4}.jhg-contact-banner .jhg-button-primary{background:#0d9397}
.jhg-footer{background:#0f2437;color:#c6d1db;padding:44px 0 20px}.jhg-footer-top{display:flex;justify-content:space-between;gap:25px;margin-bottom:30px}.jhg-footer-top strong{font-size:1.12rem;color:#fff}.jhg-footer-top p{color:#b2c5d0;font-size:.87rem;margin-top:8px}.jhg-footer-links{display:flex;gap:23px;align-items:start;flex-wrap:wrap;font-size:.86rem}.jhg-footer-links a:hover{color:#fff}.jhg-legal{border-top:1px solid #40576a;padding-top:17px}.jhg-legal p{font-size:.8rem;line-height:1.8}.jhg-legal-extra{font-size:.81rem;margin-top:11px}.jhg-copyright{font-size:.75rem;margin-top:23px;color:#94a9b8}.jhg-admin-note{color:#ba722c!important;font-size:.9rem;padding:14px;border:1px dashed #d79c5d;background:#fff9ed;border-radius:8px}
@media(max-width:1030px){.jhg-desktop-nav{gap:12px}.jhg-header-inner{gap:12px}.jhg-header-actions .jhg-button{padding:9px 10px}.jhg-brand-text small{max-width:175px}}
@media(max-width:860px){.jhg-header-inner{min-height:76px}.jhg-desktop-nav{display:none}.jhg-header-actions{margin-left:auto}.jhg-mobile-nav{display:block;position:relative}.jhg-mobile-nav summary{list-style:none;cursor:pointer;display:grid;place-items:center;font-size:1.5rem;width:37px;height:42px}.jhg-mobile-nav summary::-webkit-details-marker{display:none}.jhg-mobile-nav nav{position:absolute;right:0;top:48px;background:#fff;box-shadow:0 12px 30px #001a2a32;border:1px solid var(--jhg-line);min-width:245px;border-radius:9px;display:grid;z-index:50;padding:8px}.jhg-mobile-nav nav a{padding:11px 13px;border-bottom:1px solid #eef1f1}.jhg-hero-grid{grid-template-columns:1.2fr .75fr;gap:5%}.jhg-program-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jhg-program-detail{grid-template-columns:1fr}.jhg-program-aside{position:static}.jhg-welcome-grid{gap:5%}}
@media(max-width:640px){.jhg-container{width:min(100% - 32px,540px)}.jhg-section{padding:55px 0}.jhg-site-header{position:relative}.jhg-brand-text strong{font-size:.86rem}.jhg-brand-text small{font-size:.65rem}.jhg-logo,.jhg-logo-placeholder{width:39px;height:39px}.jhg-header-inner{gap:7px}.jhg-header-actions .jhg-button{min-height:36px;font-size:.68rem;padding:8px 10px}.jhg-header-actions .jhg-button-outline{display:none}.jhg-hero{padding:54px 0}.jhg-hero-grid,.jhg-welcome-grid,.jhg-explore-layout{grid-template-columns:1fr;gap:37px}.jhg-hero-side{max-width:260px;margin:0 auto}.jhg-hero-copy h1{font-size:clamp(2.4rem,9vw,3.4rem)}.jhg-featured-grid,.jhg-program-grid,.jhg-quick-categories{grid-template-columns:1fr}.jhg-featured-cta,.jhg-contact-grid,.jhg-resource-strip{flex-direction:column;align-items:stretch}.jhg-review-widget{padding:24px 21px}.jhg-review-controls{gap:10px;flex-wrap:wrap}.jhg-review-controls a{margin-left:0;width:100%}.jhg-page-hero{padding:55px 0}.jhg-question-preview{padding:22px}.jhg-walkthrough{padding:23px 17px}.jhg-contact-banner{padding:47px 0}.jhg-footer-top{flex-direction:column}.jhg-footer-links{gap:14px}.jhg-actions .jhg-button{flex:1}.jhg-featured-cta .jhg-actions{width:100%}}

.jhg-housing-logo{max-width:120px;max-height:60px;width:auto;height:auto;object-fit:contain;margin-top:17px}

/* v2: visible direct mobile contact, editable video summaries, added pages */
.jhg-mobile-call,.jhg-mobile-text{display:none!important}
.jhg-button-apply{background:var(--jhg-navy);color:#fff!important;border:1px solid var(--jhg-navy)}
.jhg-button-apply:hover{color:#fff!important;filter:brightness(1.1)}
.jhg-header-actions{display:flex;align-items:center;gap:8px}
.jhg-header-actions .jhg-actions{flex-wrap:nowrap;gap:7px}
.jhg-video-description{font-size:.85rem!important;margin-top:8px!important;color:var(--jhg-muted);line-height:1.5}
.jhg-footer-top .jhg-footer-identity strong{font-size:1.65rem}
.jhg-footer-identity a{color:white;text-decoration:underline;text-underline-offset:3px}
.jhg-footer-menu{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.jhg-footer-links{max-width:510px;gap:18px}
.jhg-legal-page{max-width:940px}
.jhg-legal-page h2{font-size:1.5rem;margin:25px 0 12px}
.jhg-legal-page p{margin:8px 0;line-height:1.65}
.jhg-contact-page{max-width:760px;display:grid;gap:22px}
.jhg-contact-page h2{font-size:clamp(2rem,4vw,3rem)}
.jhg-events-list{max-width:940px}.jhg-events-empty{background:var(--jhg-mist);padding:55px 32px;border:1px solid var(--jhg-line);border-radius:16px;text-align:center}.jhg-events-empty h2{font-size:1.6rem}.jhg-events-empty p{margin-top:14px;color:var(--jhg-muted)}
.jhg-event-card{border:1px solid var(--jhg-line);border-radius:14px;padding:32px;margin-bottom:20px}.jhg-event-card h2{margin-bottom:15px}.jhg-event-card p{margin:12px 0}.jhg-event-card .jhg-button{margin-top:13px}
@media(max-width:1280px){.jhg-desktop-nav{display:none}.jhg-mobile-nav{display:block;position:relative;margin-left:5px}.jhg-mobile-nav summary{list-style:none;cursor:pointer;display:grid;place-items:center;font-size:1.5rem;width:37px;height:42px}.jhg-mobile-nav summary::-webkit-details-marker{display:none}.jhg-mobile-nav nav{position:absolute;right:0;top:48px;background:#fff;box-shadow:0 12px 30px #001a2a32;border:1px solid var(--jhg-line);min-width:245px;border-radius:9px;display:grid;z-index:50;padding:8px}.jhg-mobile-nav nav a{padding:11px 13px;border-bottom:1px solid #eef1f1}.jhg-header-actions{margin-left:auto}}
@media(max-width:860px){.jhg-desktop-contact{display:none!important}.jhg-mobile-call,.jhg-mobile-text{display:inline-flex!important}}
@media(max-width:640px){.jhg-header-inner{flex-wrap:wrap;padding-top:8px;padding-bottom:8px;row-gap:4px}.jhg-brand{order:1}.jhg-mobile-nav{order:2;margin-left:auto}.jhg-header-actions{order:3;margin:0;width:100%;justify-content:center}.jhg-header-actions .jhg-actions{display:flex;justify-content:center;flex:1}.jhg-header-actions .jhg-button{flex:1;min-height:35px;padding:7px 8px!important}.jhg-header-actions .jhg-button-outline{display:inline-flex}.jhg-header-actions .jhg-actions>.jhg-button:not(.jhg-mobile-call):not(.jhg-mobile-text){display:none}.jhg-header-actions>.jhg-button-apply{flex:1}.jhg-footer-menu{width:100%}.jhg-footer-links{gap:15px}.jhg-contact-page .jhg-actions{flex-wrap:wrap}}

/* v2.0.1: keep navigation menu reachable at medium/small screen widths.
   The action buttons move below the branding rather than squeezing out the menu. */
@media (max-width: 1024px) {
  .jhg-header-inner { flex-wrap: wrap; row-gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .jhg-brand { order: 1; }
  .jhg-mobile-nav { order: 2; flex: 0 0 auto; margin-left: auto; }
  .jhg-header-actions { order: 3; flex: 0 0 100%; width: 100%; margin: 0; justify-content: center; flex-wrap: wrap; }
  .jhg-header-actions .jhg-actions { justify-content: center; flex-wrap: wrap; }
  .jhg-header-actions .jhg-button { white-space: nowrap; }
}

/* Version 2.1: keep navigation menu visible and action buttons in their own row. */
@media (max-width: 1450px) {
  .jhg-desktop-nav { display: none !important; }
  .jhg-header-inner { display:flex; flex-wrap:wrap; row-gap:8px; padding-top:10px; padding-bottom:10px; min-width:0; }
  .jhg-brand { order:1; min-width:0; max-width:calc(100% - 60px); }
  .jhg-mobile-nav { order:2; display:block !important; position:relative; flex:0 0 40px; margin-left:auto; z-index:100; }
  .jhg-mobile-nav summary { display:grid; width:40px; height:42px; place-items:center; cursor:pointer; list-style:none; font-size:1.5rem; }
  .jhg-mobile-nav summary::-webkit-details-marker { display:none; }
  .jhg-mobile-nav nav { display:grid; position:absolute; right:0; top:44px; z-index:101; min-width:min(270px,85vw); padding:8px; background:#fff; color:var(--jhg-navy); border:1px solid var(--jhg-line); border-radius:9px; box-shadow:0 12px 30px #001a2a32; }
  .jhg-mobile-nav nav a { padding:11px 13px; border-bottom:1px solid #eef1f1; }
  .jhg-header-actions { order:3; flex:0 0 100%; width:100%; margin:0; display:flex; justify-content:center; flex-wrap:wrap; gap:8px; min-width:0; }
  .jhg-header-actions .jhg-actions { display:flex; justify-content:center; flex-wrap:wrap; min-width:0; }
  .jhg-header-actions .jhg-button { white-space:normal; text-align:center; }
}
@media (max-width: 640px) {
  .jhg-header-actions { flex-wrap:wrap; }
  .jhg-header-actions .jhg-actions { flex:1 1 auto; }
}
@media (max-width: 390px) {
  .jhg-brand { gap:6px; }
  .jhg-brand-text strong { font-size:.77rem; }
  .jhg-brand-text small { font-size:.57rem; }
  .jhg-logo,.jhg-logo-placeholder { width:33px; height:33px; }
  .jhg-header-actions .jhg-button { font-size:.64rem; padding:7px 6px !important; }
}
/* Homepage walkthrough choices must be real links, not decorative boxes. */
.jhg-question-preview>a.jhg-preview-choice { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; border:1px solid #e1e8e8; border-radius:8px; margin-top:9px; color:var(--jhg-navy); font-size:.91rem; text-decoration:none; transition:background-color .15s,border-color .15s; }
.jhg-question-preview>a.jhg-preview-choice:hover,.jhg-question-preview>a.jhg-preview-choice:focus-visible { background:#edf7f7; border-color:var(--jhg-accent); outline-offset:2px; }
.jhg-preview-choice span { color:var(--jhg-accent); font-weight:800; }
/* Contain Jetpack VideoPress player in the existing 16:9 welcome-video frame. */
.jhg-video.jhg-videopress { aspect-ratio:16/9; }
.jhg-videopress > *, .jhg-videopress .wp-video, .jhg-videopress .video-player, .jhg-videopress .jetpack-video-wrapper { max-width:100%; width:100% !important; }
.jhg-videopress iframe { display:block; width:100% !important; height:100% !important; border:0; }

/* Temporary, reversible placeholder for videos awaiting compliance review. */
.jhg-video-coming-soon{display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;background:linear-gradient(145deg,#132c43,#244c5c);box-shadow:none;border:1px solid #345c6a;padding:20px}
.jhg-video-coming-soon span{display:flex;flex-direction:column;gap:8px}
.jhg-video-coming-soon strong{font-size:1.1rem;line-height:1.3}
.jhg-video-coming-soon small{color:#d5e4e8;font-size:.84rem}
