/* Sub pages (blog, contact, articles, legal) - same blue / yellow system as index.php.
   Loads AFTER inner.css, motion.css and pro.css. Everything is scoped to .x-sub. */
.x-sub{background:#fff;color:var(--ink)}
.x-sub main{display:block}
.x-sub .x-header{background:rgba(16,26,64,.94);padding-block:13px}

/* page banner */
.x-sub-hero{position:relative;background:var(--deep);color:#fff;padding:clamp(150px,20vh,220px) 0 clamp(70px,9vw,120px) !important;overflow:hidden}
.x-sub-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.6}
.x-sub-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,26,64,.88) 0%,rgba(16,26,64,.55) 55%,rgba(16,26,64,.3) 100%),linear-gradient(180deg,rgba(16,26,64,.25),rgba(16,26,64,.7))}
.x-sub-hero .x-wrap{position:relative;z-index:1}
.x-sub .x-sub-hero h1{font-size:clamp(38px,6vw,48px)!important;line-height:1.02!important;max-width:1000px;color:#fff;margin:0 0 20px}
.x-sub .x-sub-hero .x-lead{max-width:640px;color:#e8edfb;margin:0}
.x-sub .mjp-crumbs{font-size:12px;letter-spacing:.24em;text-transform:uppercase;margin:0 0 26px;color:rgba(255,255,255,.7)}
.x-sub .mjp-crumbs li+li:before{color:var(--yel)}
.x-sub .mjp-crumbs a{color:var(--yel)}
.x-sub .mjp-meta{color:#e8edfb;letter-spacing:.06em}
.x-sub .mjp-meta i{color:var(--yel)}

/* generic section + headings */
.x-sub-sec{padding:clamp(70px,9vw,130px) 0;background:#fff;color:var(--ink)}
.x-sub-sec.sky{background:var(--sky)}
.x-sub .x-sub-sec h2,.x-sub .x-sub-sec h3,.x-sub .x-sub-sec h4{color:var(--blue)}
.x-sub .x-sub-sec p{font-family:Jost,sans-serif;font-weight:300;font-size:18px;line-height:1.75;color:var(--mut)}
.x-sub .x-sub-head{margin-bottom:44px}
.x-sub .x-sub-head h2{font-size:clamp(32px,4.4vw,70px)!important}

/* blog article */
.x-sub .mjp-post{width:min(1280px,100% - 56px);margin-inline:auto;grid-template-columns:minmax(0,1fr) 360px;gap:clamp(36px,5vw,80px)}
.x-sub .mjp-article{font-size:18px}
.x-sub .mjp-article>p:first-of-type{font-size:21px;color:var(--blue)}
.x-sub .mjp-article h2{font-size:clamp(28px,3vw,44px)!important;margin:46px 0 14px;color:var(--blue)}
.x-sub .mjp-article h3{font-size:26px!important;color:var(--blue)}
.x-sub .mjp-article p,.x-sub .mjp-article li{color:var(--mut);font-weight:300;line-height:1.75}
.x-sub .mjp-article li b{color:var(--blue);font-weight:600}
.x-sub .mjp-article li:before{background:var(--yel)}
.x-sub .mjp-article figure img{border-radius:0;box-shadow:-14px 14px 0 var(--sky)}
.x-sub .mjp-note,.x-sub .mjp-visit{background:var(--sky);border-radius:0;border-left:4px solid var(--yel)}
.x-sub .mjp-side{top:110px}
.x-sub .mjp-enq{background:var(--blue);border-radius:0;border-top:6px solid var(--yel);box-shadow:none;color:#fff}
.x-sub .mjp-enq h3{color:#fff;font-size:30px!important}
.x-sub .mjp-enq p{color:#e8edfb;font-size:16px}
.x-sub .mjp-enq .x-btn{display:flex;justify-content:center;width:100%;margin-top:12px;color:#fff}
.x-sub .mjp-enq .x-btn.y{color:var(--deep)}
.x-sub .mjp-facts{border:1px solid var(--line);border-radius:0;background:#fff}
.x-sub .mjp-facts h4{color:var(--blue);font-size:22px!important}
.x-sub .mjp-facts li{border-bottom:1px solid var(--line);color:var(--mut)}
.x-sub .mjp-facts li b{color:var(--blue)}
.x-sub .mjp-share{border-top:1px solid var(--line);color:var(--mut)}
.x-sub .mjp-share a{background:var(--sky);color:var(--blue);border-radius:0}
.x-sub .mjp-share a:hover{background:var(--yel);color:var(--deep)}
.x-sub .mjp-pn a{border:1px solid var(--line);border-radius:0;color:var(--blue)}
.x-sub .mjp-pn a:hover{border-color:var(--yel);box-shadow:none;background:var(--sky)}
.x-sub .mjp-pn small{color:var(--blue)}
.x-sub .mjp-pn b{font-family:Jost,sans-serif;font-weight:500}

/* blog cards */
.x-sub .mjp-grid{width:min(1280px,100% - 56px);margin:34px auto 0}
.x-sub .mjp-card{border:1px solid var(--line);border-radius:0;background:#fff}
.x-sub .mjp-card:hover{transform:none;box-shadow:none;border-color:var(--blue)}
.x-sub .mjp-card-body h3{font-size:25px!important;color:var(--blue)}
.x-sub .mjp-card-body p{color:var(--mut);font-size:16px}
.x-sub .mjp-cat{color:var(--blue);font-weight:600}
.x-sub .mjp-info i{color:var(--blue)}
.x-sub .mjp-more{color:var(--blue)}

/* legal / text pages */
/* .x-sub .mjp-legal{width:min(900px,100% - 56px)} */
.x-sub .mjp-legal .mjp-legal h4{color:var(--blue);font-size:clamp(24px,2.4vw,34px)!important}
.x-sub .mjp-legal p,.x-sub .mjp-legal li{color:var(--mut);font-weight:300;font-size:17px;line-height:1.75}
.mjp-legal .mjp-back a {
  background: aqua;
}

/* map strip on contact / blog */
.x-sub-map{height:clamp(320px,42vw,520px);background:var(--sky)}
.x-sub-map iframe{display:block;width:100%;height:100%;border:0}

/* dark CTA block reused from home */
.x-sub .x-cta{padding:clamp(70px,9vw,140px) 0}
.x-sub .x-cta h2{font-size:clamp(36px,6vw,96px)!important}

/* footer link colours on dark */
.x-sub .x-footer a{color:#fff}

@media(max-width:1024px){.x-sub .mjp-post{grid-template-columns:1fr}.x-sub .mjp-side{position:static}}
@media(max-width:600px){.x-sub .mjp-grid,.x-sub .mjp-pn{grid-template-columns:1fr}.x-sub .mjp-post{width:calc(100% - 40px)}.x-sub .mjp-grid{width:calc(100% - 40px)}}
.x-sub .mjp-back .x-btn{color:var(--blue)}
.x-sub .mjp-back .x-btn:hover{color:var(--deep)!important}
.x-sub{margin:0}
.x-sub .mjp-legal{margin-left:0;margin-right:auto}
.x-sub .mjp-legal li b,.x-sub .mjp-legal b{color:var(--blue);font-weight:600}
.x-sub .mjp-article p{margin:0 0 20px}
.x-sub .mjp-article ul{margin:0 0 26px}
.x-sub .mjp-facts h4{font-family:Jost,sans-serif!important;text-transform:uppercase;letter-spacing:.08em;font-weight:500!important}
