/* GPS FINANCE — PAGE FAMILIES V3
   Deliberately one visual language across 142 routed PHP pages, with distinct
   product / landing / calculator / guide / cluster / about / contact / legal
   layouts. No new logo, no purple, no hero stock photography.
   Existing HTML, metadata, URLs, form engines and linked blog content remain. */
:root{
  --g3-navy:#09233a;--g3-navy-dark:#071a2d;--g3-ink:#102e43;
  --g3-cyan:#079db6;--g3-teal:#1bd0c1;--g3-sky:#eaf5f9;
  --g3-bg:#f6fafc;--g3-border:#d5e5ec;--g3-copy:#445f73;
  --g3-radius:16px;--g3-serif:inherit;
}
body[class*="gps-template-"]{background:#fff;color:var(--g3-copy)}
body[class*="gps-template-"] h1,body[class*="gps-template-"] h2,
body[class*="gps-template-"] h3,body[class*="gps-template-"] h4{
 font-family:var(--font-sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);
 letter-spacing:-.034em;font-weight:620;
}
/* Preserve all existing human-readable labels and SEO context; no blanket hiding.
   Subtle label styling is preferable to removing source text visually. */
body[class*="gps-template-"] .eyebrow,
body[class*="gps-template-"] .gps-eyebrow,
body[class*="gps-template-"] .gpsv2-visual-kicker,
body[class*="gps-template-"] .seo-card-kicker{
  font-size:12px;letter-spacing:.06em;font-weight:650;
}
body[class*="gps-template-"] .divider-line{display:none!important}
body[class*="gps-template-"] a:focus-visible,
body[class*="gps-template-"] button:focus-visible,
body[class*="gps-template-"] select:focus-visible,
body[class*="gps-template-"] input:focus-visible{outline:3px solid var(--g3-cyan);outline-offset:3px}
body[class*="gps-template-"] .cta-primary,
body[class*="gps-template-"] .btn-primary,
body[class*="gps-template-"] .primary-btn{
 background:var(--g3-teal);color:#062b3d;border-radius:11px;
 font-weight:650;text-decoration:none
}
body[class*="gps-template-"] .cta-primary:hover,
body[class*="gps-template-"] .btn-primary:hover{background:#41e8d4}
body[class*="gps-template-"] .btn-outline-white,
body[class*="gps-template-"] .cta-secondary{border-radius:11px}
body[class*="gps-template-"] .seo-hero h1,
body[class*="gps-template-"] .gpsv2-page-hero h1,
body[class*="gps-template-"] .prime-ref-hero h1{
 font-size:clamp(34px,4.15vw,59px);line-height:1.095;font-weight:630;letter-spacing:-.044em
}
body[class*="gps-template-"] .section-header h2,
body[class*="gps-template-"] .gpsv2-section-heading h2{
 font-size:clamp(28px,3.2vw,43px);font-weight:620;line-height:1.18
}
body[class*="gps-template-"] .card-teal-top,
body[class*="gps-template-"] .seo-aside-card,
body[class*="gps-template-"] .card-accented,
body[class*="gps-template-"] .gps-trust-story-card{
 border-top:0!important;box-shadow:none;border-radius:var(--g3-radius)
}
body[class*="gps-template-"] .seo-answer-card{border-top:0!important}
body[class*="gps-template-"] .card-teal-top::before,
body[class*="gps-template-"] .gpsv2-page-visual::before{display:none!important}
body[class*="gps-template-"] .trust-bar-items li{font-size:13px}
body[class*="gps-template-"] .gpsv2-page-hero{
 background:linear-gradient(145deg,#edf7fa,#f4fafc 67%,#e5f6f8);
 padding:45px 0 53px
}
body[class*="gps-template-"] .gpsv2-page-hero-grid{gap:clamp(26px,5vw,65px)}
body[class*="gps-template-"] .gpsv2-page-hero-copy .seo-hero-lead{font-size:17px;line-height:1.62}
body[class*="gps-template-"] .gpsv2-directory-row{border-bottom-color:var(--g3-border)}
body[class*="gps-template-"] .gpsv2-directory-row:hover{background:#edf8fa}
body[class*="gps-template-"] .gpsv2-directory-row a.text-link{color:#007f98}
body[class*="gps-template-"] .seo-content-section{background:#fff}
body[class*="gps-template-"] .seo-content-section:nth-of-type(2n){background:var(--g3-bg)}
body[class*="gps-template-"] .seo-content-section .seo-prose{font-size:16px;line-height:1.76;color:var(--g3-copy)}
body[class*="gps-template-"] .seo-content-section .seo-aside-card{background:#f1f8fa;border:1px solid var(--g3-border);border-left:2px solid var(--g3-teal)}
body[class*="gps-template-"] .seo-final-cta{background:linear-gradient(120deg,#09233a,#143d56);color:#fff}

/* FAMILY WRAPPER: navigation is deliberately AFTER the page's main content.
   It must never displace a lead form, calculator, blog title or SEO answer. */
.gps-family{--family-max:1260px;isolation:isolate}
.gps-family-content{min-width:0;max-width:100%}
.gps-family .container{max-width:var(--family-max)}
.gps-family-links{background:#f0f7fa;border-top:1px solid var(--g3-border);
 padding:37px 22px 45px}
.gps-family-links-inner{max-width:1210px;margin:auto}
.gps-family-links h2{font-size:clamp(22px,2.1vw,28px);margin:0 0 19px;color:var(--g3-ink);font-weight:620}
.gps-family-links ul{list-style:none;margin:0;padding:0;display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.gps-family-links li{min-width:0;margin:0;padding:0}
.gps-family-links a{display:flex;align-items:center;justify-content:space-between;
 gap:10px;padding:14px 16px;border:1px solid var(--g3-border);
 border-radius:11px;background:#fff;color:#163e55;font-weight:570;font-size:14px;
 line-height:1.42;text-decoration:none;min-height:60px}
.gps-family-links a span{color:#028dab;font-size:19px}
.gps-family-links a:hover{border-color:#31bec7;background:#faffff}
@media(max-width:900px){
 .gps-family-links ul{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .gps-family-links{padding:26px 17px 31px}
 .gps-family-links ul{grid-template-columns:1fr;gap:8px}
 .gps-family-links a{min-height:48px;padding:11px 14px}
}

/* PRODUCT HOME: decision-first hero, industry-specific content as editorial rows.
   The flagship homepage keeps its purpose-built structure unmodified. */
.gps-family--product-home:not([data-page-key="home"]){--family-max:1260px}
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-page-hero{
 padding-top:32px;padding-bottom:45px
}
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-page-hero-grid{
 grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr)
}
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-page-visual{
 min-height:240px;border-radius:20px
}
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-directory{
 background:#fff;padding:60px 0
}
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-directory-list{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px
}
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-directory-row{
 grid-template-columns:29px minmax(0,1fr);gap:8px 12px;align-items:start
}
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-directory-row::before{font-size:15px}
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-directory-row p,
.gps-family--product-home:not([data-page-key="home"]) .gpsv2-directory-row a.text-link{grid-column:2}
.gps-family--product-home:not([data-page-key="home"]) .seo-content-grid{gap:50px}

/* STANDALONE LANDINGS: preserve full-width, form-first conversion journeys and
   campaign parameters. No cross-product menu is injected into their content. */
.gps-family--standalone-landing{--family-max:1240px}
.gps-family--standalone-landing .hero,
.gps-family--standalone-landing .seo-hero{border-top:0!important}
.gps-family--standalone-landing .hero h1,
.gps-family--standalone-landing .seo-hero h1{
 font-size:clamp(35px,4.4vw,61px);line-height:1.09;font-weight:620;letter-spacing:-.043em
}
.gps-family--standalone-landing form{
 accent-color:var(--g3-cyan)
}
.gps-family--standalone-landing form .form-card,
.gps-family--standalone-landing .gps-commercial-form,
.gps-family--standalone-landing .pl-form-wrap,
.gps-family--standalone-landing .gps-bf-form{
 border-radius:18px;border-top:0!important;
 box-shadow:0 14px 34px rgba(10,48,68,.11)
}
.gps-family--standalone-landing .cards,
.gps-family--standalone-landing .features,
.gps-family--standalone-landing .card-grid{gap:15px}
.gps-family--standalone-landing .card,
.gps-family--standalone-landing .feature-card{border-radius:14px;border-top:0!important}

/* CALCULATORS: interactive calculator forms and results remain intact. The
   containing shell and reference prose get one consistent blue-grey rhythm. */
.gps-family--calculator{--family-max:1200px}
.gps-family--calculator .prime-ref-hero{
 background:linear-gradient(138deg,#0b2941,#103c55)!important;
 padding:39px 0 45px!important
}
.gps-family--calculator .prime-ref-hero h1{color:#fff!important}
.gps-family--calculator .prime-ref-hero .prime-lead{color:#d9ecf4!important}
/* Original calculator context labels remain visible and readable. */
.gps-family--calculator .prime-calc-page .prime-kicker,
.gps-family--calculator .mkh-tag{font-size:12px;font-weight:650;letter-spacing:.06em}
.gps-family--calculator .prime-calc-grid{gap:23px;max-width:1200px;margin:auto}
.gps-family--calculator .prime-calc-panel,
.gps-family--calculator .prime-result-panel,
.gps-family--calculator .prime-ref-panel,
.gps-family--calculator .calc-card{
 border:1px solid var(--g3-border)!important;border-top:1px solid var(--g3-border)!important;
 background:#fff;border-radius:15px!important;box-shadow:0 8px 26px rgba(9,53,76,.065)
}
.gps-family--calculator .prime-calc-page>section.section{background:#f6fafc}
.gps-family--calculator .prime-calc-panel input,
.gps-family--calculator .prime-calc-panel select{border-radius:9px;min-height:40px}
.gps-family--calculator .prime-calc-panel h2,
.gps-family--calculator .prime-result-panel h2{font-size:23px}
.gps-family--calculator .prime-calc-panel label{font-size:14px}
.gps-family--calculator .gps-advanced summary{cursor:pointer}

/* GUIDES: article-first long form with explanatory paragraphs at an
   intentionally comfortable line length, not another product landing hero. */
.gps-family--guide{--family-max:1130px}
.gps-family--guide .gpsv2-page-hero{padding:34px 0 42px}
.gps-family--guide .gpsv2-page-hero-grid{grid-template-columns:minmax(0,1.65fr) minmax(240px,.55fr);gap:35px}
.gps-family--guide .gpsv2-page-hero-copy h1{font-size:clamp(33px,3.8vw,54px);font-weight:630}
.gps-family--guide .gpsv2-page-hero .seo-hero-lead{max-width:730px}
.gps-family--guide .gpsv3-guide-contents{background:#fff;border:1px solid var(--g3-border);border-radius:14px;padding:20px}
.gps-family--guide .gpsv3-guide-contents h2{font-size:18px;margin:0 0 12px}
.gps-family--guide .gpsv3-guide-contents li{font-size:14px;line-height:1.6;padding:4px 0}
.gps-family--guide .gpsv2-answer-band{background:#fff;padding:36px 0}
.gps-family--guide .gpsv2-answer-wrap{max-width:1100px;grid-template-columns:minmax(180px,.32fr) minmax(0,.68fr)}
.gps-family--guide .gpsv2-directory{padding:45px 0;background:#f6fafc}
.gps-family--guide .seo-content-section .seo-content-grid{
 grid-template-columns:minmax(0,1fr) minmax(190px,.34fr);max-width:1080px;margin:auto
}
.gps-family--guide .seo-content-section .seo-prose{max-width:760px}
.gps-family--guide .seo-content-main p{max-width:760px}
.gps-family--guide .seo-content-main h2{font-size:clamp(27px,2.6vw,36px)}

/* ABOUT: dedicated company story, with clear route to partners and contact. */
.gps-family--about{--family-max:1150px}
.gps-family--about .gpsv2-page-hero{padding:43px 0 49px}
.gps-family--about .gpsv2-page-hero-grid{grid-template-columns:minmax(0,1.3fr) minmax(270px,.7fr);gap:37px}
.gps-family--about .gpsv3-about-proof{
 background:var(--g3-navy);border-radius:19px;padding:24px 27px;color:#f3fbfe
}
.gps-family--about .gpsv3-about-proof h2{font-size:23px;color:#fff;margin:0 0 13px}
.gps-family--about .gpsv3-about-proof li{margin:0;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.15);font-size:14px;line-height:1.48;color:#e5f5f7}
.gps-family--about .gpsv3-about-proof li:last-child{border:0}
.gps-family--about .gpsv2-directory{background:#fff}
.gps-family--about .gpsv2-directory-list{grid-template-columns:1fr;max-width:930px}

/* CONTACT: retain calls, email, booking links and the real enquiry form. */
.gps-family--contact{--family-max:1170px}
.gps-family--contact .seo-hero{padding:43px 0;background:linear-gradient(145deg,#e9f7fa,#f7fbfd)}
.gps-family--contact .seo-hero-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr)}
.gps-family--contact .seo-hero h1{color:var(--g3-ink);font-size:clamp(35px,4vw,54px)}
.gps-family--contact .seo-hero .seo-hero-lead{color:#3f5a70!important;font-size:17px}
.gps-family--contact .seo-hero .seo-answer-card{border:1px solid var(--g3-border);
 background:#fff;border-radius:16px;box-shadow:none}
.gps-family--contact .seo-contact-links a{border-radius:12px}
.gps-family--contact .section .two-col{gap:clamp(25px,5vw,65px)}

/* TOPIC HUB: editorial index and useful internal navigation, not a sales
   card stack. Linked resources and Markdown articles remain indexable. */
.gps-family--blog-cluster{--family-max:1220px}
.gps-family--blog-cluster .gpsv2-page-hero{padding:33px 0 43px}
.gps-family--blog-cluster .gpsv2-page-hero-grid{grid-template-columns:minmax(0,1.5fr) minmax(250px,.5fr)}
.gps-family--blog-cluster .gpsv3-cluster-options{display:grid;gap:10px;padding:24px;background:#0b2c44;border-radius:16px}
.gps-family--blog-cluster .gpsv3-cluster-options a{color:#e8faff;background:rgba(255,255,255,.08);border-radius:9px;padding:10px 12px;font-size:14px}
.gps-family--blog-cluster .gpsv2-directory{background:#fff}
.gps-family--blog-cluster .gpsv2-directory-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.gps-family--blog-cluster .seo-content-section{background:#f6fafc}

/* COMPLIANCE: accessible single-column document. Keep complete source wording
   and original legal headings without injecting a conversion CTA. */
.gps-family--compliance{--family-max:1020px}
.gps-family--compliance .gps-family-document-content{font-size:16px;line-height:1.75;color:#354f62}
.gps-family--compliance .gps-family-document-content>main,
.gps-family--compliance .gps-family-document-content>.container{max-width:1020px;margin:0 auto}
.gps-family--compliance .seo-hero{background:linear-gradient(145deg,#edf7fa,#f9fcfe);padding:36px 0}
.gps-family--compliance h1{font-size:clamp(32px,3.6vw,49px)!important;line-height:1.17!important}
.gps-family--compliance h2{font-size:clamp(24px,2.4vw,32px);margin:28px 0 12px}
.gps-family--compliance p,.gps-family--compliance li{max-width:890px}
.gps-family--compliance .section{padding:35px 0}
.gps-family--compliance table{display:block;overflow-x:auto;max-width:100%}

@media(max-width:900px){
 .gps-family--product-home:not([data-page-key="home"]) .gpsv2-page-hero-grid,
 .gps-family--guide .gpsv2-page-hero-grid,
 .gps-family--about .gpsv2-page-hero-grid,
 .gps-family--blog-cluster .gpsv2-page-hero-grid{grid-template-columns:minmax(0,1fr)}
 .gps-family--product-home:not([data-page-key="home"]) .gpsv2-directory-list,
 .gps-family--blog-cluster .gpsv2-directory-list{grid-template-columns:1fr}
 .gps-family--guide .seo-content-section .seo-content-grid{grid-template-columns:1fr}
 .gps-family--guide .gpsv2-answer-wrap{grid-template-columns:1fr}
}
@media(max-width:600px){
 .gps-family--product-home:not([data-page-key="home"]) .gpsv2-page-hero,
 .gps-family--guide .gpsv2-page-hero,
 .gps-family--blog-cluster .gpsv2-page-hero,
 .gps-family--about .gpsv2-page-hero{padding:26px 0 35px}
 .gps-family--standalone-landing .hero h1{font-size:clamp(31px,8.1vw,43px)}
 .gps-family--calculator .prime-ref-hero{padding:29px 0 33px!important}
 .gps-family--calculator .prime-ref-hero h1{font-size:clamp(30px,7.8vw,42px)!important}
 .gps-family--contact .seo-hero-grid{grid-template-columns:1fr}
 .gps-family--contact .seo-hero{padding:29px 0}
 .gps-family--guide .gpsv3-guide-contents{padding:15px}
}
@media(prefers-reduced-motion:reduce){
 body[class*="gps-template-"] *{scroll-behavior:auto}
}


/* V3 FINAL NORMALISATION: old standalone PHP files insert page-local CSS after
   the shared <head>; these family-scoped, !important rules intentionally win.
   The goal is homepage's pale cyan/white hero, navy text and teal actions,
   while retaining each page's unique calculator/form task architecture. */

/* The bespoke mortgage hub otherwise keeps its unrelated black hero and
   hard-edged three-card grid. Convert it into a family-consistent directory. */
.gps-family--product-home .mkh .mkh-hero{
 background:linear-gradient(146deg,#eaf6f9,#f6fbfd 70%,#e2f4f8)!important;
 color:#102e43!important;padding:42px 0 49px!important
}
.gps-family--product-home .mkh .mkh-hero h1{
 color:#102e43!important;font:620 clamp(35px,4.2vw,58px)/1.1 var(--font-sans,Arial,sans-serif)!important;
 letter-spacing:-.043em!important;margin:0 0 15px!important
}
.gps-family--product-home .mkh .mkh-hero p{
 color:#456176!important;font-size:17px!important;line-height:1.63!important
}
.gps-family--product-home .mkh .mkh-nav{background:#fff!important;padding:49px 0 58px!important}
.gps-family--product-home .mkh .mkh-grid{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:0 35px!important;border-top:1px solid #d7e7ee
}
.gps-family--product-home .mkh .mkh-card{
 background:transparent!important;border:0!important;border-bottom:1px solid #d7e7ee!important;
 border-radius:0!important;padding:21px 8px 24px 0!important;
 box-shadow:none!important
}
.gps-family--product-home .mkh .mkh-card h3{font:620 22px/1.3 var(--font-sans,Arial,sans-serif)!important;color:#102e43}
.gps-family--product-home .mkh .mkh-card p{font-size:14px!important;color:#4f697a}
.gps-family--product-home .mkh .mkh-card a{color:#087e9b!important;font-weight:650!important}
.gps-family--product-home .mkh .mkh-nav h2,
.gps-family--product-home .mkh .mkh-content h2{font-family:var(--font-sans,Arial,sans-serif)!important;font-weight:620!important;letter-spacing:-.035em!important}
.gps-family--product-home .mkh .mkh-step{font-size:13px;color:#466176}
.gps-family--product-home .mkh .mkh-banner{border-radius:16px;background:#102f46!important}

/* Products using the previous special business-finance component now share the
   same typography/spacing proportions and visible form priority as the home. */
.gps-family--product-home #gps-business-finance .hero{
 background:linear-gradient(145deg,#eaf6f9,#f6fbfd 71%,#e1f5f8)!important;
 padding-top:40px!important;padding-bottom:46px!important
}
.gps-family--product-home #gps-business-finance .hero h1{
 color:#102e43!important;font-size:clamp(39px,4.7vw,64px)!important;
 font-weight:630!important;line-height:1.075!important;letter-spacing:-.052em!important
}
.gps-family--product-home #gps-business-finance .hero h1 span{color:#067f9b!important}
.gps-family--product-home #gps-business-finance .hero p,
.gps-family--product-home #gps-business-finance .hero .pitch{
 color:#405b6f!important;text-shadow:none!important
}
.gps-family--product-home #gps-business-finance .hero .form{
 background:#fff!important;border-radius:18px!important;
 box-shadow:0 14px 37px rgba(15,56,75,.11)!important
}
.gps-family--product-home #gps-business-finance .logos{background:#fff!important}

/* Standalone LPs: task-first layout stays, but their inherited dark/marketing
   hero gradients no longer fragment the site's brand impression. */
.gps-family--standalone-landing .bvb-hero,
.gps-family--standalone-landing .pl-hero,
.gps-family--standalone-landing .cl-hero,
.gps-family--standalone-landing .qj-hero,
.gps-family--standalone-landing .rf-hero,
.gps-family--product-home .bvb-hero{
 background:linear-gradient(145deg,#eaf6f9,#f6fbfd 69%,#e2f4f8)!important;
 color:#103248!important
}
.gps-family--standalone-landing .bvb-hero h1,
.gps-family--standalone-landing .pl-hero h1,
.gps-family--standalone-landing .cl-hero h1,
.gps-family--standalone-landing .qj-hero h1,
.gps-family--standalone-landing .rf-hero h1,
.gps-family--product-home .bvb-hero h1{
 color:#112d43!important;font-family:var(--font-sans,Arial,sans-serif)!important;
 font-size:clamp(36px,4.7vw,63px)!important;font-weight:630!important;
 line-height:1.085!important;letter-spacing:-.05em!important
}
.gps-family--standalone-landing .bvb-hero p,
.gps-family--standalone-landing .bvb-hero .bvb-lead,
.gps-family--standalone-landing .pl-hero p,
.gps-family--standalone-landing .cl-hero p,
.gps-family--standalone-landing .qj-hero p,
.gps-family--standalone-landing .rf-hero p,
.gps-family--product-home .bvb-hero p{
 color:#466176!important;text-shadow:none!important
}
.gps-family--standalone-landing .bvb-hero .bvb-form,
.gps-family--standalone-landing .pl-hero .pl-form,
.gps-family--standalone-landing .cl-hero form,
.gps-family--standalone-landing .qj-hero form,
.gps-family--product-home .bvb-hero .bvb-form{
 background:#fff!important;border-radius:18px!important;
 box-shadow:0 18px 35px rgba(8,50,73,.11)!important
}
.gps-family--standalone-landing .bvb .bvb-section,
.gps-family--standalone-landing .cl-simple .cl-why,
.gps-family--standalone-landing .pl-simple .pl-conversion-section{
 border-top:0!important
}
.gps-family--standalone-landing .bvb .bvb-story,
.gps-family--product-home .bvb .bvb-story{
 background:#edf7fa!important;border-radius:17px!important
}

/* Guide reference pages: match the V3 guide hero, not a calculator's dark
   technical header. Content and navigation remain server-rendered. */
.gps-family--guide .prime-ref-hero{
 background:linear-gradient(145deg,#edf7fa,#f7fbfd 70%,#e5f5f8)!important;
 padding:38px 0 43px!important
}
.gps-family--guide .prime-ref-hero h1{
 color:#102e43!important;font:630 clamp(34px,4vw,55px)/1.11 var(--font-sans,Arial,sans-serif)!important;
 letter-spacing:-.043em!important
}
.gps-family--guide .prime-ref-hero .prime-lead{color:#456176!important;font-size:17px!important}
.gps-family--guide .prime-ref-page .prime-narrow{max-width:870px!important}
.gps-family--guide .prime-ref-card{border:1px solid var(--g3-border)!important;border-radius:14px!important;background:#f5fafb!important}

/* Mortgage and other prime calculators: same light entry frame as homepage.
   Do not touch amortisation values, field IDs, scripts or result rendering. */
.gps-family--calculator .prime-ref-hero,
.gps-family--calculator .prime-calc-page .prime-ref-hero{
 background:linear-gradient(145deg,#edf7fa,#f7fbfd 71%,#e4f4f8)!important;
 padding:37px 0 41px!important
}
.gps-family--calculator .prime-ref-hero h1{color:#102e43!important;font-weight:630!important}
.gps-family--calculator .prime-ref-hero .prime-lead{color:#456176!important}
.gps-family--calculator .prime-calc-page>section.section{padding:36px 0 54px!important}

/* Contact is currently affected by the original dark .seo-hero rule, which
   made dark grey text almost invisible. Fix at the family boundary. */
.gps-family--contact .seo-hero,
.gps-family--contact .seo-hero.section{
 background:linear-gradient(145deg,#edf7fa,#f7fbfd 72%,#e1f4f7)!important;
 color:#102e43!important;padding:39px 0 48px!important
}
.gps-family--contact .seo-hero h1{color:#102e43!important;font-weight:630!important}
.gps-family--contact .seo-hero p,
.gps-family--contact .seo-hero .seo-hero-lead,
.gps-family--contact .seo-hero .hero-assurance{
 color:#456176!important;text-shadow:none!important
}
.gps-family--contact .seo-hero .seo-answer-card{background:#fff!important}
.gps-family--contact .seo-hero .btn-outline-white{
 border-color:#77b4c4!important;color:#16516c!important;background:#fff!important
}
@media(max-width:690px){
 .gps-family--product-home .mkh .mkh-hero{padding:29px 0 36px!important}
 .gps-family--product-home .mkh .mkh-hero h1{font-size:clamp(32px,7.9vw,43px)!important}
 .gps-family--product-home .mkh .mkh-grid{grid-template-columns:1fr!important}
 .gps-family--product-home #gps-business-finance .hero h1{font-size:clamp(33px,8.6vw,43px)!important}
 .gps-family--standalone-landing .bvb-hero h1,
 .gps-family--standalone-landing .pl-hero h1,
 .gps-family--standalone-landing .cl-hero h1,
 .gps-family--standalone-landing .qj-hero h1,
 .gps-family--product-home .bvb-hero h1{font-size:clamp(31px,8.1vw,42px)!important}
 .gps-family--contact .seo-hero{padding:29px 0 38px!important}
}


/* Stronger than page-local legacy !important rules loaded after <head>.
   Prevent white calculator and reference lead copy on the new pale hero. */
.gps-family--calculator .prime-calc-page .prime-ref-hero .prime-lead,
.gps-family--calculator .prime-ref-hero .container .prime-lead,
.gps-family--guide .prime-ref-page .prime-ref-hero .prime-lead{
 color:#405f74!important;text-shadow:none!important;opacity:1!important
}
.gps-family--calculator .prime-calc-page .prime-ref-hero h1,
.gps-family--guide .prime-ref-page .prime-ref-hero h1{
 color:#102e43!important;text-shadow:none!important
}

/* PAGE-FAMILY VISUAL PASS — progressive enhancement only, retain original text and routes.
   Contrast and structure use existing GPS navy / cyan / white palette. */
.gps-family{--family-readable:#183c53;--family-muted:#415d70;--family-border:#d5e5ec}
.gps-family a:not(.cta-primary):not(.btn-primary):focus-visible,
.gps-family button:focus-visible,
.gps-family input:focus-visible,
.gps-family select:focus-visible{outline:3px solid #087f9b;outline-offset:3px}
/* Pale hero backgrounds must never inherit a white text treatment. Scope to
   content columns; independent dark cards retain their own light foregrounds. */
.gps-family--calculator .prime-ref-hero h1,
.gps-family--calculator .prime-ref-hero h2,
.gps-family--calculator .prime-ref-hero h3,
.gps-family--calculator .prime-ref-hero .prime-lead,
.gps-family--calculator .prime-ref-hero .prime-kicker,
.gps-family--guide .prime-ref-hero h1,
.gps-family--guide .prime-ref-hero .prime-lead,
.gps-family--product-home .mkh-hero h1,
.gps-family--product-home .mkh-hero p,
.gps-family--contact .seo-hero > .container h1,
.gps-family--contact .seo-hero > .container p{
  color:var(--family-readable)!important;text-shadow:none!important;
}
.gps-family--calculator .prime-ref-hero .prime-lead,
.gps-family--guide .prime-ref-hero .prime-lead{color:var(--family-muted)!important}
/* Calculator family: immediate working inputs and results, not decorative
   widgets. Improves spacing, grouping and keyboard focus without changing IDs,
   field values, JS calculator logic, heading text or links. */
.gps-family--calculator .gps-family-calculator-content{--family-max:1200px}
.gps-family--calculator .prime-calc-grid{
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(16px,2.5vw,30px);align-items:start;
}
.gps-family--calculator .prime-calc-panel,
.gps-family--calculator .prime-result-panel,
.gps-family--calculator .prime-ref-panel,
.gps-family--calculator .calc-card{
  border-radius:17px!important;
  box-shadow:0 10px 28px rgba(9,53,76,.07)!important;
  min-width:0;
}
.gps-family--calculator .prime-calc-panel label,
.gps-family--calculator .calc-card label{color:#203f53;font-weight:600}
.gps-family--calculator input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.gps-family--calculator select{min-height:44px;border-color:#a9c5d0}
.gps-family--calculator input:focus,
.gps-family--calculator select:focus{border-color:#078fa5;box-shadow:0 0 0 3px rgba(7,143,165,.1)}
.gps-family--calculator .prime-result-panel{border-top:4px solid #079db6!important}
.gps-family--calculator .prime-result-panel h2{color:#173b52}
.gps-family--calculator .prime-result-panel output,
.gps-family--calculator .prime-result-panel strong,
.gps-family--calculator .prime-result-panel .result-value{font-variant-numeric:tabular-nums}
.gps-family--calculator .prime-calc-page>section.section{scroll-margin-top:98px}
.gps-family--calculator .gps-family-links{background:#f6fafc}
/* Guides and hubs: make original content readable and reduce visual noise from
   added cross-category navigation, without removing any links or copy. */
.gps-family--guide .seo-prose,
.gps-family--guide .gps-family-guide-content p{line-height:1.75}
.gps-family--guide .gps-family-guide-content :is(h2,h3){scroll-margin-top:100px}
.gps-family--blog-cluster .gpsv2-directory-row a:focus-visible{outline-offset:5px}
.gps-family--product-home:not([data-page-key="home"]) .gps-family-links,
.gps-family--guide .gps-family-links,
.gps-family--blog-cluster .gps-family-links{padding:25px 22px 31px}
.gps-family--product-home:not([data-page-key="home"]) .gps-family-links a,
.gps-family--guide .gps-family-links a,
.gps-family--blog-cluster .gps-family-links a{min-height:48px;padding:10px 13px}
/* About, contact, and legal remain focused on their existing content / actions. */
.gps-family--about .gps-family-about-content,
.gps-family--contact .gps-family-contact-content{min-width:0}
.gps-family--compliance .gps-family-document-content :is(p,li){line-height:1.76}
@media(max-width:900px){
  .gps-family--calculator .prime-calc-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
  .gps-family--calculator .prime-calc-panel,
  .gps-family--calculator .prime-result-panel{max-width:100%}
  .gps-family--calculator .prime-calc-grid{gap:14px}
}

/* Calculator family, legacy tool engines: one consistent visible interaction
   hierarchy, with zero changes to native calculation or lead-capture code. */
.gps-family--calculator .hero:not(.nl-hero){
  scroll-margin-top:85px;
}
.gps-family--calculator .hero:not(.nl-hero) h1,
.gps-family--calculator .hero:not(.nl-hero) .hero-desc{
  max-width:830px;
}
.gps-family--calculator .calc-field label{font-size:14px;font-weight:650;color:#183d53}
.gps-family--calculator .calc-field :is(input,select){
  min-height:46px;max-width:100%;border-color:#a9c5d0!important;
}
.gps-family--calculator .calc-field :is(input,select):focus{
  border-color:#078fa5!important;outline:3px solid rgba(7,157,182,.18);outline-offset:1px;
}
.gps-family--calculator .card-accented:has(.calc-field){
  background:#fff;border:1px solid #d5e5ec!important;
  border-radius:18px!important;box-shadow:0 12px 30px rgba(9,53,76,.075)!important;
}
.gps-family--calculator #calc-btn{min-height:50px;border-radius:10px!important}
.gps-family--calculator #calc-results{
  scroll-margin-top:105px;
}
.gps-family--calculator #calc-results>div:first-child{
  border-radius:18px!important;box-shadow:0 12px 28px rgba(9,53,76,.09);
}
.gps-family--calculator .ato-calculator-layout{
  gap:clamp(16px,2.4vw,30px);align-items:start;
}
.gps-family--calculator .ato-inputs-panel,
.gps-family--calculator .ato-results-panel{
  min-width:0;border-radius:17px!important;
  box-shadow:0 10px 25px rgba(9,53,76,.065)!important;
}
.gps-family--calculator .ato-results-panel{
  border-top:4px solid #079db6!important;
}
.gps-family--calculator .ato-inputs-panel :is(input,select){
  min-height:44px;
}
.gps-family--calculator .ato-inputs-panel :is(input,select):focus{
  outline:3px solid rgba(7,157,182,.18);outline-offset:1px;
}
.gps-family--calculator .nl .nl-calc{border-radius:18px}
.gps-family--calculator .nl .nl-field :is(input,select){
  min-height:45px;
}
.gps-family--calculator .nl .nl-field :is(input,select):focus-visible{
  outline:3px solid #079db6;outline-offset:2px;
}
@media(max-width:760px){
  .gps-family--calculator .ato-calculator-layout{grid-template-columns:minmax(0,1fr)}
  .gps-family--calculator .card-accented:has(.calc-field){padding:clamp(16px,4vw,26px)!important}
}

/* Purpose-matched calculator continuation, after native results and source
   material. No generic finance-menu dump and no interference with math logic. */
.gps-calc-next{background:#09233a;color:#fff;padding:34px 22px}
.gps-calc-next-inner{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:26px}
.gps-calc-next h2{color:#fff!important;font-size:clamp(22px,2.7vw,31px)!important;margin:0 0 7px;letter-spacing:-.035em}
.gps-calc-next p{color:#c7dce8!important;margin:0;font-size:15px;line-height:1.6}
.gps-calc-next a{display:inline-flex;align-items:center;justify-content:center;gap:15px;
  min-height:48px;flex:0 0 auto;border-radius:10px;background:#23d4c8;color:#07283a!important;
  padding:12px 20px;text-decoration:none;font-weight:700;font-size:15px}
.gps-calc-next a:hover{background:#55eee0}
.gps-calc-next a:focus-visible{outline:3px solid #fff;outline-offset:3px}
.gps-family--calculator .gps-family-links{background:#f5fafb;padding:28px 22px 37px}
.gps-family--calculator .gps-family-links h2{font-size:20px;margin-bottom:14px}
.gps-family--calculator .gps-family-links ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gps-family--calculator .gps-family-links li a{background:#fff;border:1px solid #cbdfe8;
  border-radius:11px;padding:14px 16px;min-height:54px;color:#16384b}
.gps-family--calculator .gps-family-links li a:hover{background:#ecf8fa;border-color:#169bae}
@media(max-width:800px){
  .gps-calc-next-inner{align-items:stretch;flex-direction:column;gap:16px}
  .gps-calc-next a{align-self:stretch;text-align:center}
  .gps-family--calculator .gps-family-links ul{grid-template-columns:1fr}
}
/* Other independent mortgage tools: consistent navy/cyan reading and action
   focus without re-colouring dark hero text or overriding source typography. */
.gps-family--calculator :is(.rm01,.gsd,.gbp,.gbc,.grf) :is(input,select,button){
  max-width:100%;font-family:inherit}
.gps-family--calculator :is(.rm01,.gsd,.gbp,.gbc,.grf) :is(input,select):focus-visible{
  outline:3px solid #087f9b;outline-offset:2px}
.gps-family--calculator :is(.gsd-panel,.gbp-panel,.grf-panel,.gbc-inputs,.gbc-result,.gsd-results,.gbp-result,.grf-results){
  min-width:0}
.gps-family--calculator :is(.gsd,.gbp,.gbc,.grf) :is(label,legend){font-weight:600}
.gps-family--calculator :is(.gsd,.gbp,.gbc,.grf) button[type="submit"]{min-height:48px}

/* LANDING FAMILY — keep native progressive capture and recovery scripts.
   Prioritise one visible form, readable fields, and a clear submit/next action. */
.gps-family--standalone-landing{--landing-focus:#078ba6}
.gps-family--standalone-landing :is(.qj-form-frame,.mge-card,.pl-form,.cl-form,.bvb-form){
  min-width:0;max-width:100%;box-sizing:border-box
}
.gps-family--standalone-landing :is(.qj-form-frame,.mge-card,.pl-form,.bvb-form){
  border-radius:17px;box-shadow:0 14px 36px rgba(12,49,73,.105)
}
.gps-family--standalone-landing :is(.qj,.mge,.pl-simple,.cl-simple,.bvb) :is(input:not([type="hidden"]),select,textarea){
  max-width:100%;box-sizing:border-box
}
.gps-family--standalone-landing :is(.qj,.mge,.pl-simple,.cl-simple,.bvb) :is(input:not([type="hidden"]),select,textarea):focus-visible{
  outline:3px solid rgba(7,139,166,.35)!important;outline-offset:2px
}
.gps-family--standalone-landing :is(.qj,.mge,.pl-simple,.cl-simple,.bvb) :is(button[type="submit"],.qj-next,.pl-next,.cl-next){
  min-height:48px;cursor:pointer
}
.gps-family--standalone-landing .mge-hero h1,
.gps-family--standalone-landing .mge-hero p{
  max-width:840px
}
.gps-family--standalone-landing .mge-main,
.gps-family--standalone-landing .mge-grid,
.gps-family--standalone-landing .qj-form-wrap{
  min-width:0
}
.gps-family--standalone-landing .mge-fields :is(label,legend){color:#173b50}
.gps-family--standalone-landing .qj-card :is(label,.qj-label){color:#173b50}
@media(max-width:690px){
  .gps-family--standalone-landing :is(.mge-card,.qj-form-frame,.qj-card){
    width:100%;max-width:100%
  }
  .gps-family--standalone-landing :is(.mge-main,.mge-grid){grid-template-columns:minmax(0,1fr)}
}

/* SCREENSHOT-LED CALCULATOR REFINEMENT: the mortgage tool's first viewport
   showed an oversized headline pushing the working inputs below the fold. */
.gps-family--calculator .prime-calc-page .prime-ref-hero{
  padding-top:24px!important;padding-bottom:27px!important;
}
.gps-family--calculator .prime-calc-page .prime-ref-hero h1{
  max-width:1040px;font-size:clamp(36px,3.35vw,49px)!important;
  line-height:1.105!important;letter-spacing:-.043em!important;
  margin-bottom:14px!important;
}
.gps-family--calculator .prime-calc-page .prime-ref-hero .prime-lead{
  max-width:940px;font-size:16px!important;line-height:1.52!important;
}
.gps-family--calculator .prime-calc-page>section.section{
  padding-top:27px!important;
}
@media(max-width:690px){
  .gps-family--calculator .prime-calc-page .prime-ref-hero{
    padding-top:20px!important;padding-bottom:23px!important;
  }
  .gps-family--calculator .prime-calc-page .prime-ref-hero h1{
    font-size:clamp(28px,7.3vw,35px)!important;line-height:1.11!important;
    margin-bottom:12px!important;
  }
  .gps-family--calculator .prime-calc-page .prime-ref-hero .prime-lead{
    font-size:15px!important;line-height:1.48!important;
  }
  .gps-family--calculator .prime-calc-page>section.section{padding-top:18px!important}
}

/* Screenshot QA 2026-11-15: genuine pale-background contrast failures.
   Keep the existing GPS gradient; fix only copy/price whose legacy dark-card
   styles inherited pale text, without touching calculator or application JS. */
.gps-family--product-home[data-page-key="asset-equipment-finance"]
.gpsv2-page-hero-copy .gps-equip-rate{
  color:#08718a!important;text-shadow:none!important;
}
.gps-family--product-home[data-page-key="asset-equipment-finance"]
.gpsv2-page-hero-copy .gps-equip-rate-terms{
  color:#405b6d!important;text-shadow:none!important;
}
/* /quote has a pale preview hero but its original stylesheet still forces the
   un-emphasised first heading line to white. Match the dark navy first line. */
.gps-family--standalone-landing .qj .qj-hero h1{
  color:#102e43!important;text-shadow:none!important;
}
.gps-family--standalone-landing .qj .qj-hero h1 em{
  color:#087f95!important;
}
