/* FramesCMS shared public components. Template CSS may override typography/colors. */
:root{--cms-brand:var(--brand-color,#174c77);--cms-ink:#142033;--cms-muted:#657184;--cms-border:#e4e8ed;--cms-soft:#f5f7f9;--cms-dark:#0b1726}.cms-section{padding:86px 0}.cms-section.cms-soft,.cms-soft{background:var(--cms-soft)}.cms-section.cms-dark,.cms-dark{background:var(--cms-dark);color:#fff}.cms-narrow{max-width:860px}.cms-eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:11px;font-weight:800;color:var(--cms-brand);margin-bottom:12px}.cms-section-head{max-width:740px;margin-bottom:34px}.cms-section-head h2{font-size:clamp(30px,4vw,48px);line-height:1.08;letter-spacing:-1.2px;margin:0 0 14px;color:inherit}.cms-section-head p{font-size:17px;color:var(--cms-muted);margin:0;line-height:1.65}.cms-dark .cms-section-head p{color:#b7c3d2}.cms-section-head-row{max-width:none;display:flex;justify-content:space-between;align-items:flex-end;gap:30px}.cms-section-head-row>div{max-width:740px}.cms-text-link{white-space:nowrap;color:var(--cms-brand);text-decoration:none;font-weight:800;font-size:13px}.cms-text-link:hover{text-decoration:underline}.cms-hero,.cms-detail-hero{position:relative;min-height:min(760px,78vh);display:flex;align-items:flex-end;color:#fff;background:linear-gradient(135deg,#0b1726,#183a5a);background-size:cover;background-position:center}.cms-hero::after,.cms-detail-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,16,28,.82),rgba(8,16,28,.30));z-index:1;pointer-events:none}.cms-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:0}.cms-hero-inner,.cms-detail-hero-inner{position:relative;z-index:2}.cms-hero-inner,.cms-detail-hero-inner{padding-top:150px!important;padding-bottom:105px!important;max-width:900px;margin-left:auto;margin-right:auto;width:100%}.cms-hero .cms-eyebrow,.cms-detail-hero .cms-eyebrow{color:#fff;opacity:.82}.cms-hero h1,.cms-detail-hero h1{font-size:clamp(45px,7vw,86px);line-height:.98;letter-spacing:-2.6px;max-width:940px;margin:0 0 24px;color:#fff}.cms-detail-hero h1{font-size:clamp(42px,6vw,72px)}.cms-hero p,.cms-detail-hero p{font-size:clamp(17px,2vw,22px);line-height:1.55;max-width:760px;color:rgba(255,255,255,.88);margin:0 0 30px}.cms-actions{display:flex;gap:12px;flex-wrap:wrap}.cms-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:2px;padding:14px 22px;font-size:13px;font-weight:800;letter-spacing:.35px;transition:transform .16s,opacity .16s,background .16s}.cms-btn:hover{transform:translateY(-1px)}.cms-btn-primary{background:var(--cms-brand);color:#fff}.cms-btn-ghost{border:1px solid rgba(255,255,255,.55);color:#fff;background:rgba(255,255,255,.06)}.cms-btn-light{background:#fff;color:#0b1726}.cms-btn-ghost-light{border:1px solid rgba(255,255,255,.55);color:#fff}.cms-btn-block{width:100%}.cms-richtext{font-size:17px;line-height:1.78;color:#3b4655}.cms-richtext h2,.cms-richtext h3{color:var(--cms-ink);line-height:1.2;margin-top:1.7em}.cms-richtext img{max-width:100%;height:auto;border-radius:4px}.cms-intro .cms-richtext{font-size:20px;line-height:1.7}.cms-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:70px;align-items:center}.cms-split.reverse{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}.cms-split.reverse .cms-split-media{order:2}.cms-split-media img,.cms-split-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:linear-gradient(135deg,#e9edf1,#cfd7df)}.cms-split-copy .cms-section-head{margin-bottom:20px}.cms-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.cms-card-grid-large{grid-template-columns:repeat(3,minmax(0,1fr))}.cms-card{background:#fff;border:1px solid var(--cms-border);overflow:hidden;min-width:0;transition:transform .18s,box-shadow .18s}.cms-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(16,32,51,.09)}.cms-card-media{display:block;aspect-ratio:16/10;overflow:hidden;background:#e8edf2}.cms-card-media img,.cms-media-placeholder{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}.cms-card:hover .cms-card-media img{transform:scale(1.035)}.cms-card-body{padding:22px}.cms-card-meta{font-size:10.5px;text-transform:uppercase;letter-spacing:1.3px;font-weight:800;color:var(--cms-brand);min-height:15px}.cms-card h3{margin:8px 0 10px;font-size:23px;line-height:1.2;color:var(--cms-ink)}.cms-card h3 a{text-decoration:none;color:inherit}.cms-card p{margin:0;color:var(--cms-muted);font-size:14.5px;line-height:1.6}.cms-card-location,.cms-card-facts{margin-top:16px;color:#7a8491;font-size:12px}.cms-card-facts{display:flex;justify-content:space-between;gap:10px}.cms-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.cms-news-card{min-width:0}.cms-news-media{display:block;aspect-ratio:16/9;background:#e8edf2;overflow:hidden;margin-bottom:18px}.cms-news-media img{width:100%;height:100%;object-fit:cover;display:block}.cms-news-date{font-size:10.5px;letter-spacing:1.2px;text-transform:uppercase;color:#8892a0;font-weight:800}.cms-news-card h3{font-size:21px;line-height:1.3;margin:8px 0}.cms-news-card h3 a{text-decoration:none;color:var(--cms-ink)}.cms-news-card p{font-size:14px;color:var(--cms-muted);line-height:1.6}.cms-stats-section{background:#0c1a2b;color:#fff}.cms-stats-section .cms-eyebrow{color:#9fbad2}.cms-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.15);border-bottom:1px solid rgba(255,255,255,.15)}.cms-stat{padding:30px 24px;border-right:1px solid rgba(255,255,255,.15)}.cms-stat:last-child{border-right:0}.cms-stat strong{display:block;font-size:42px;line-height:1;color:#fff;margin-bottom:8px}.cms-stat span{font-size:13px;color:#b8c3d0}.cms-logo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--cms-border);border-left:1px solid var(--cms-border)}.cms-logo-card{min-height:130px;display:flex;align-items:center;justify-content:center;padding:26px;border-right:1px solid var(--cms-border);border-bottom:1px solid var(--cms-border);background:#fff}.cms-logo-card img{max-width:130px;max-height:54px;object-fit:contain;filter:grayscale(1);opacity:.72}.cms-logo-card span{font-weight:800;color:#616d7c;text-align:center}.cms-cta-section{background:var(--cms-brand);color:#fff}.cms-cta{display:flex;justify-content:space-between;align-items:center;gap:50px}.cms-cta .cms-section-head{margin:0;max-width:720px}.cms-cta .cms-section-head h2{color:#fff}.cms-cta .cms-section-head p{color:rgba(255,255,255,.8)}.cms-list-hero{padding:120px 0 65px;background:#0d1b2b;color:#fff}.cms-list-hero h1{font-size:clamp(42px,6vw,72px);line-height:1;margin:0 0 18px;color:#fff}.cms-list-hero p{font-size:18px;color:#c3ceda;max-width:700px;margin:0}.cms-page-shell{padding-top:75px!important;padding-bottom:90px!important}.cms-page-heading{margin-bottom:34px}.cms-page-heading h1{font-size:clamp(38px,5vw,60px);line-height:1.06;margin:0;color:var(--cms-ink)}.cms-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:34px}.cms-filter{border:1px solid #d9dfe6;padding:9px 14px;text-decoration:none;color:#4d5968;font-size:12px;font-weight:750}.cms-filter:hover,.cms-filter.active{background:#10243f;border-color:#10243f;color:#fff}.cms-detail-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(260px,.8fr);gap:70px;align-items:start}.cms-detail-aside{position:sticky;top:110px}.cms-fact-card{border:1px solid var(--cms-border);background:#fff;padding:22px}.cms-fact{padding:13px 0;border-bottom:1px solid var(--cms-border)}.cms-fact:first-child{padding-top:0}.cms-fact:last-of-type{margin-bottom:18px}.cms-fact span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#8a94a2;font-weight:800}.cms-fact strong{display:block;font-size:14px;color:var(--cms-ink);margin-top:4px}.cms-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cms-gallery figure{margin:0}.cms-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.cms-gallery figcaption{font-size:12px;color:#747f8c;margin-top:6px}.cms-contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:start}.cms-contact-copy h1{font-size:clamp(38px,5vw,60px);line-height:1.05;margin:0 0 18px}.cms-contact-card{background:#fff;border:1px solid var(--cms-border);padding:28px;box-shadow:0 18px 50px rgba(18,32,50,.07)}.cms-empty{padding:45px;border:1px dashed #cbd3dd;text-align:center;color:#6f7a89}.cms-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.dyn-form{margin-top:24px}.dyn-form .form-row{margin-bottom:16px}.dyn-form label,.contact-page .form-row label{display:block;font-size:12px;font-weight:800;margin-bottom:6px}.dyn-form .form-control,.contact-page .form-control{width:100%;padding:12px 13px;border:1px solid #cfd6df;background:#fff;font:inherit}.dyn-form .form-control:focus,.contact-page .form-control:focus{outline:0;border-color:var(--cms-brand);box-shadow:0 0 0 3px rgba(28,90,135,.08)}.contact-page .btn,.dyn-form .btn{border:0;background:var(--cms-brand);color:#fff;padding:13px 19px;font-weight:800;cursor:pointer}.alert-success{padding:14px 16px;background:#e9f7ef;color:#176b3b;border:1px solid #cdebd9;margin-bottom:18px}.page-banner img{width:100%;max-height:620px;object-fit:cover;display:block}.page-body{padding-top:70px!important;padding-bottom:90px!important}.news-list-page h1{margin-top:0}
.nav-toggle{display:none;background:transparent;border:1px solid currentColor;padding:8px 11px;color:inherit;font:inherit;font-weight:700}.cms-social-links{display:flex;gap:16px;flex-wrap:wrap}.cms-social-links a{font-size:12px;text-decoration:none}.cms-footer-links{list-style:none;padding:0;margin:0}.cms-footer-links li{margin:7px 0}.cms-footer-links a{text-decoration:none;color:inherit}.cms-footer-links a:hover{text-decoration:underline}
@media(max-width:980px){.cms-card-grid,.cms-card-grid-large{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-stat:nth-child(2){border-right:0}.cms-stat:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.15)}.cms-logo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cms-split,.cms-split.reverse{grid-template-columns:1fr;gap:35px}.cms-split.reverse .cms-split-media{order:0}.cms-detail-grid,.cms-contact-layout{grid-template-columns:1fr;gap:40px}.cms-detail-aside{position:static}.cms-cta{align-items:flex-start;flex-direction:column}.nav-toggle{display:inline-block}.main-nav{position:fixed!important;left:0;right:0;top:var(--nav-top,76px);display:none!important;flex-direction:column!important;gap:0!important;padding:14px 22px 24px!important;background:var(--nav-mobile-bg,#fff)!important;box-shadow:0 18px 40px rgba(0,0,0,.12);max-height:calc(100vh - 76px);overflow:auto}.main-nav.is-open{display:flex!important}.main-nav .menu-item{width:100%}.main-nav .menu-item>a{display:block!important;padding:12px 0!important}.main-nav .submenu{display:block!important;position:static!important;box-shadow:none!important;border:0!important;padding:0 0 5px 16px!important;background:transparent!important}.main-nav .submenu a{display:block!important;padding:7px 0!important}.header-inner{gap:12px}}
@media(max-width:680px){.cms-section{padding:64px 0}.cms-section-head-row{align-items:flex-start;flex-direction:column}.cms-card-grid,.cms-card-grid-large,.cms-news-grid{grid-template-columns:1fr}.cms-stats-grid{grid-template-columns:1fr}.cms-stat{border-right:0;border-bottom:1px solid rgba(255,255,255,.15)}.cms-stat:last-child{border-bottom:0}.cms-logo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cms-hero,.cms-detail-hero{min-height:620px}.cms-hero-inner,.cms-detail-hero-inner{padding-top:125px!important;padding-bottom:70px!important}.cms-gallery{grid-template-columns:1fr}.cms-contact-card{padding:20px}.cms-list-hero{padding:90px 0 50px}}

/* ========================================================================== 
   FramesCMS Universal Template Contract
   --------------------------------------------------------------------------
   These rules are intentionally template-neutral. PageView/SectionManager
   emit one shared cms-* markup contract; every template only skins it.
   ========================================================================== */

:root {
    --cms-surface: #ffffff;
    --cms-card-surface: #ffffff;
    --cms-card-ink: var(--cms-ink);
    --cms-card-muted: var(--cms-muted);
    --cms-on-dark: #ffffff;
    --cms-on-dark-muted: rgba(255,255,255,.74);
    --cms-on-light: #111512;
    --cms-on-light-muted: #5f6962;
    --cms-header-height: 76px;
    --nav-mobile-bg: #ffffff;
}

body.cms-template .skip-link {
    position: fixed;
    left: 16px;
    top: -70px;
    z-index: 9999;
    padding: 10px 14px;
    background: #fff;
    color: #111;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
}

body.cms-template .skip-link:focus { top: 16px; }

body.cms-template .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Shared component surfaces use variables so a template can skin them. */
body.cms-template .cms-card {
    background: var(--cms-card-surface);
    border-color: var(--cms-border);
}

body.cms-template .cms-card h3,
body.cms-template .cms-card h3 a {
    color: var(--cms-card-ink);
}

body.cms-template .cms-card p {
    color: var(--cms-card-muted);
}

body.cms-template .cms-logo-card,
body.cms-template .cms-contact-card,
body.cms-template .cms-fact-card {
    background: var(--cms-card-surface);
    border-color: var(--cms-border);
}

body.cms-template .cms-news-card h3 a {
    color: var(--cms-card-ink);
}

body.cms-template .cms-news-card p {
    color: var(--cms-card-muted);
}

body.cms-template .cms-page-heading h1 {
    color: var(--cms-ink);
}

/* --------------------------------------------------------------------------
   Page-level custom background selected from Admin > Pages
   -------------------------------------------------------------------------- */
body.cms-template .cms-page-theme {
    min-height: calc(100vh - var(--cms-header-height));
}

body.cms-template .cms-page-theme-custom {
    transition: background-color .2s ease, color .2s ease;
}

body.cms-template .cms-page-theme-custom .page-body,
body.cms-template .cms-page-theme-custom .cms-page-shell {
    background-color: transparent;
}

body.cms-template .cms-page-theme-light {
    color: var(--cms-on-light);
}

body.cms-template .cms-page-theme-dark {
    color: var(--cms-on-dark);
}

/* Standard rich-text page only. Do not bleed page contrast into builder
   sections, because each builder section owns its own contrast class. */
body.cms-template .cms-page-theme-dark .page-body.cms-richtext,
body.cms-template .cms-page-theme-dark .page-body.cms-richtext p,
body.cms-template .cms-page-theme-dark .page-body.cms-richtext li {
    color: var(--cms-on-dark-muted);
}

body.cms-template .cms-page-theme-dark .page-body.cms-richtext h1,
body.cms-template .cms-page-theme-dark .page-body.cms-richtext h2,
body.cms-template .cms-page-theme-dark .page-body.cms-richtext h3,
body.cms-template .cms-page-theme-dark .page-body.cms-richtext h4,
body.cms-template .cms-page-theme-dark .cms-page-heading h1,
body.cms-template .cms-page-theme-dark .cms-contact-copy h1 {
    color: var(--cms-on-dark);
}

body.cms-template .cms-page-theme-dark .cms-contact-copy,
body.cms-template .cms-page-theme-dark .cms-contact-copy p {
    color: var(--cms-on-dark-muted);
}

/* Form/card surfaces stay readable even if the page itself is dark. */
body.cms-template .cms-page-theme-dark .cms-contact-card {
    color: var(--cms-card-ink);
}

body.cms-template .cms-page-theme-dark .cms-contact-card label {
    color: var(--cms-card-ink);
}

/* --------------------------------------------------------------------------
   Page Builder section background selected from Admin > Page Builder
   Custom Background overrides White/Soft/Dark in SectionManager.
   -------------------------------------------------------------------------- */
body.cms-template .cms-custom-section-bg {
    position: relative;
}

body.cms-template .cms-custom-section-dark {
    color: var(--cms-on-dark);
}

body.cms-template .cms-custom-section-dark .cms-section-head h2,
body.cms-template .cms-custom-section-dark .cms-split-copy h2,
body.cms-template .cms-custom-section-dark .cms-richtext h1,
body.cms-template .cms-custom-section-dark .cms-richtext h2,
body.cms-template .cms-custom-section-dark .cms-richtext h3,
body.cms-template .cms-custom-section-dark .cms-richtext h4 {
    color: var(--cms-on-dark);
}

body.cms-template .cms-custom-section-dark .cms-section-head p,
body.cms-template .cms-custom-section-dark .cms-split-copy > p,
body.cms-template .cms-custom-section-dark .cms-richtext,
body.cms-template .cms-custom-section-dark .cms-richtext p,
body.cms-template .cms-custom-section-dark .cms-richtext li {
    color: var(--cms-on-dark-muted);
}

body.cms-template .cms-custom-section-dark .cms-text-link {
    color: var(--cms-on-dark);
}

body.cms-template .cms-custom-section-light {
    color: var(--cms-on-light);
}

body.cms-template .cms-custom-section-light .cms-section-head h2,
body.cms-template .cms-custom-section-light .cms-split-copy h2,
body.cms-template .cms-custom-section-light .cms-richtext h1,
body.cms-template .cms-custom-section-light .cms-richtext h2,
body.cms-template .cms-custom-section-light .cms-richtext h3,
body.cms-template .cms-custom-section-light .cms-richtext h4 {
    color: var(--cms-on-light);
}

body.cms-template .cms-custom-section-light .cms-section-head p,
body.cms-template .cms-custom-section-light .cms-split-copy > p,
body.cms-template .cms-custom-section-light .cms-richtext,
body.cms-template .cms-custom-section-light .cms-richtext p,
body.cms-template .cms-custom-section-light .cms-richtext li {
    color: var(--cms-on-light-muted);
}

body.cms-template .cms-custom-section-light .cms-text-link {
    color: var(--cms-brand);
}

/* Dark preset gets the same readable rich-text treatment. */
body.cms-template .cms-dark .cms-richtext,
body.cms-template .cms-dark .cms-richtext p,
body.cms-template .cms-dark .cms-richtext li {
    color: var(--cms-on-dark-muted);
}

body.cms-template .cms-dark .cms-richtext h1,
body.cms-template .cms-dark .cms-richtext h2,
body.cms-template .cms-dark .cms-richtext h3,
body.cms-template .cms-dark .cms-richtext h4 {
    color: var(--cms-on-dark);
}

/* Stats normally use a dark presentation; a custom light color must be able
   to replace that presentation without leaving white-on-light text. */
body.cms-template .cms-stats-section.cms-custom-section-light {
    color: var(--cms-on-light);
}

body.cms-template .cms-stats-section.cms-custom-section-light .cms-section-head h2 {
    color: var(--cms-on-light);
}

body.cms-template .cms-stats-section.cms-custom-section-light .cms-section-head p,
body.cms-template .cms-stats-section.cms-custom-section-light .cms-stat span {
    color: var(--cms-on-light-muted);
}

body.cms-template .cms-stats-section.cms-custom-section-light .cms-stats-grid,
body.cms-template .cms-stats-section.cms-custom-section-light .cms-stat {
    border-color: rgba(17,21,18,.16);
}

body.cms-template .cms-stats-section.cms-custom-section-light .cms-stat strong {
    color: var(--cms-brand);
}

/* CTA normally assumes a dark/brand surface. Custom light backgrounds need
   a complete contrast reset, including the secondary ghost button. */
body.cms-template .cms-cta-section.cms-custom-section-light,
body.cms-template .cms-cta-section.cms-custom-section-light .cms-cta h2 {
    color: var(--cms-on-light);
}

body.cms-template .cms-cta-section.cms-custom-section-light .cms-cta p {
    color: var(--cms-on-light-muted);
}

body.cms-template .cms-cta-section.cms-custom-section-light .cms-btn-light {
    background: var(--cms-on-light);
    color: #fff;
}

body.cms-template .cms-cta-section.cms-custom-section-light .cms-btn-ghost-light {
    color: var(--cms-on-light);
    border-color: rgba(17,21,18,.40);
    background: transparent;
}

body.cms-template .cms-cta-section.cms-custom-section-light .cms-btn-ghost-light:hover {
    border-color: var(--cms-on-light);
    background: rgba(17,21,18,.05);
}

/* Common footer links added to every template use the same safe data fields. */
body.cms-template .site-footer a {
    color: inherit;
}

body.cms-template .footer-socials {
    margin-top: 12px;
}

body.cms-template .footer-copy {
    max-width: 520px;
}

/* Complete page-level contrast reset for templates whose normal shell is dark. */
body.cms-template .cms-page-theme-light .cms-page-heading h1,
body.cms-template .cms-page-theme-light .cms-contact-copy h1,
body.cms-template .cms-page-theme-light .page-body.cms-richtext h1,
body.cms-template .cms-page-theme-light .page-body.cms-richtext h2,
body.cms-template .cms-page-theme-light .page-body.cms-richtext h3,
body.cms-template .cms-page-theme-light .page-body.cms-richtext h4 {
    color: var(--cms-on-light);
}

body.cms-template .cms-page-theme-light .cms-contact-copy,
body.cms-template .cms-page-theme-light .cms-contact-copy p,
body.cms-template .cms-page-theme-light .page-body.cms-richtext,
body.cms-template .cms-page-theme-light .page-body.cms-richtext p,
body.cms-template .cms-page-theme-light .page-body.cms-richtext li {
    color: var(--cms-on-light-muted);
}

/* =============================================================
   Professional News & Insights
   Shared renderer contract for every FramesCMS template.
   ============================================================= */
body.cms-template .cms-news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(135deg, var(--cms-dark), #233247);
    color: rgba(255,255,255,.5);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body.cms-template .cms-news-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

body.cms-template .cms-news-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--cms-brand);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.cms-template .cms-news-card-topline .cms-news-date {
    margin: 0;
    white-space: nowrap;
}

body.cms-template .cms-news-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

body.cms-template .cms-news-card-footer .cms-news-read {
    margin-top: 0;
}

body.cms-template .cms-news-read-time {
    color: #8a94a2;
    font-size: 11px;
    font-weight: 700;
}

body.cms-template .cms-news-index-hero {
    padding: 118px 0 72px;
    background: var(--cms-dark);
    color: #fff;
}

body.cms-template .cms-news-index-hero .cms-eyebrow {
    color: rgba(255,255,255,.68);
}

body.cms-template .cms-news-index-hero h1 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 6.5vw, 78px);
    line-height: 1;
    letter-spacing: -2px;
}

body.cms-template .cms-news-index-intro {
    max-width: 780px;
    margin-top: 22px;
    color: rgba(255,255,255,.76);
    font-size: 18px;
    line-height: 1.7;
}

body.cms-template .cms-news-index-intro p {
    margin: 0;
    color: inherit;
}

body.cms-template .cms-news-index-shell {
    padding-top: 64px !important;
    padding-bottom: 92px !important;
}

body.cms-template .cms-news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    min-height: 430px;
    margin-bottom: 76px;
    border: 1px solid var(--cms-border);
    background: var(--cms-card-surface, #fff);
    overflow: hidden;
}

body.cms-template .cms-news-featured-media {
    min-height: 430px;
    display: block;
    overflow: hidden;
    background: #e8edf2;
}

body.cms-template .cms-news-featured-media img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

body.cms-template .cms-news-featured:hover .cms-news-featured-media img {
    transform: scale(1.025);
}

body.cms-template .cms-news-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 66px);
}

body.cms-template .cms-news-featured-label {
    margin-bottom: 14px;
    color: #8a94a2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.cms-template .cms-news-featured h2 {
    margin: 12px 0 16px;
    color: var(--cms-card-ink, var(--cms-ink));
    font-size: clamp(31px, 3.6vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.2px;
}

body.cms-template .cms-news-featured h2 a {
    color: inherit;
    text-decoration: none;
}

body.cms-template .cms-news-featured p {
    margin: 0;
    color: var(--cms-card-muted, var(--cms-muted));
    font-size: 16px;
    line-height: 1.72;
}

body.cms-template .cms-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: #7d8793;
    font-size: 11px;
    font-weight: 700;
}

body.cms-template .cms-news-meta-sep {
    opacity: .45;
}

body.cms-template .cms-news-index-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

body.cms-template .cms-news-index-heading h2 {
    margin: 0;
    color: var(--cms-ink);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

body.cms-template .cms-news-empty {
    padding: 56px;
    border: 1px solid var(--cms-border);
    text-align: center;
}

body.cms-template .cms-news-article-head {
    padding: 118px 0 74px;
    background: var(--cms-dark);
    color: #fff;
}

body.cms-template .cms-news-article-head-inner {
    max-width: 1040px;
}

body.cms-template .cms-news-back {
    display: inline-block;
    margin-bottom: 30px;
    color: rgba(255,255,255,.68);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

body.cms-template .cms-news-article-head .cms-news-category {
    margin-bottom: 18px;
    color: #fff;
    opacity: .8;
}

body.cms-template .cms-news-article-head h1 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 6.3vw, 78px);
    line-height: 1.02;
    letter-spacing: -2.2px;
}

body.cms-template .cms-news-article-summary {
    max-width: 820px;
    margin-top: 24px;
    color: rgba(255,255,255,.78);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.62;
}

body.cms-template .cms-news-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    color: rgba(255,255,255,.6);
    font-size: 12px;
    font-weight: 700;
}

body.cms-template .cms-news-meta-inline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

body.cms-template .cms-news-article-shell {
    padding-top: 56px !important;
    padding-bottom: 90px !important;
}

body.cms-template .cms-news-article-image {
    margin-bottom: 56px;
    overflow: hidden;
    background: #e8edf2;
}

body.cms-template .cms-news-article-image img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    display: block;
}

body.cms-template .cms-news-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: clamp(48px, 7vw, 92px);
    align-items: start;
}

body.cms-template .cms-news-article-content {
    max-width: 780px;
    color: var(--cms-ink);
    font-size: 18px;
    line-height: 1.82;
}

body.cms-template .cms-news-article-content > :first-child {
    margin-top: 0;
}

body.cms-template .cms-news-article-content h2 {
    margin-top: 1.7em;
    font-size: clamp(28px, 3vw, 38px);
}

body.cms-template .cms-news-article-content h3 {
    margin-top: 1.6em;
    font-size: 25px;
}

body.cms-template .cms-news-article-content blockquote {
    margin: 34px 0;
    padding: 8px 0 8px 26px;
    border-left: 3px solid var(--cms-brand);
    color: var(--cms-ink);
    font-size: 22px;
    line-height: 1.55;
}

body.cms-template .cms-news-article-aside {
    position: sticky;
    top: calc(var(--cms-header-height, 88px) + 28px);
}

body.cms-template .cms-news-article-aside-card {
    padding: 28px;
    border: 1px solid var(--cms-border);
    background: var(--cms-card-surface, #fff);
}

body.cms-template .cms-news-article-aside-card h2 {
    margin: 0 0 12px;
    color: var(--cms-card-ink, var(--cms-ink));
    font-size: 24px;
}

body.cms-template .cms-news-article-aside-card p {
    margin: 0 0 22px;
    color: var(--cms-card-muted, var(--cms-muted));
    font-size: 14px;
    line-height: 1.65;
}

body.cms-template .cms-news-related {
    background: var(--cms-soft);
}

@media (max-width: 900px) {
    body.cms-template .cms-news-featured {
        grid-template-columns: 1fr;
    }

    body.cms-template .cms-news-featured-media,
    body.cms-template .cms-news-featured-media img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    body.cms-template .cms-news-article-layout {
        grid-template-columns: 1fr;
    }

    body.cms-template .cms-news-article-aside {
        position: static;
    }
}

@media (max-width: 620px) {
    body.cms-template .cms-news-index-hero,
    body.cms-template .cms-news-article-head {
        padding-top: 92px;
        padding-bottom: 54px;
    }

    body.cms-template .cms-news-featured {
        margin-bottom: 54px;
    }

    body.cms-template .cms-news-featured-body {
        padding: 28px 22px;
    }

    body.cms-template .cms-news-card-topline,
    body.cms-template .cms-news-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    body.cms-template .cms-news-article-content {
        font-size: 17px;
    }
}

/* =============================================================
   Home page Latest News image framing only
   Keeps the standalone News page and News article image unchanged.
   ============================================================= */
body.cms-template .cms-news-section .cms-news-media {
    aspect-ratio: 16 / 9;
    background: #f4f7fa;
}

body.cms-template .cms-news-section .cms-news-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: none;
}

body.cms-template .cms-news-section .cms-news-card:hover .cms-news-media img {
    transform: scale(1.01);
}

/* =============================================================
   Project detail image framing only
   Applies only to /projects/{slug}; cards, News and other content stay unchanged.
   ============================================================= */
body.cms-template .cms-project-detail-hero {
    min-height: min(620px, 64vh);
}

body.cms-template .cms-project-detail-hero .cms-hero-bg {
    object-position: center center;
}

body.cms-template .cms-project-gallery-section .cms-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center center;
    box-sizing: border-box;
    padding: 6px;
    background: #ffffff;
}

@media (max-width: 680px) {
    body.cms-template .cms-project-detail-hero {
        min-height: 620px;
    }
}

/* ========================================================================== 
   Project detail gallery lightbox
   Scoped to ContentView project galleries only.
   ========================================================================== */
body.cms-template .cms-project-gallery-section .cms-project-lightbox-trigger {
    cursor: zoom-in;
    transition: transform .18s ease, opacity .18s ease;
}

body.cms-template .cms-project-gallery-section .cms-project-lightbox-trigger:hover {
    transform: scale(1.012);
}

body.cms-template .cms-project-gallery-section .cms-project-lightbox-trigger:focus {
    outline: 3px solid var(--cms-brand);
    outline-offset: 3px;
}

body.cms-project-lightbox-open {
    overflow: hidden;
}

.cms-project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 15, 27, .92);
}

.cms-project-lightbox.is-open {
    display: flex;
}

.cms-project-lightbox-dialog {
    width: min(1320px, 96vw);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr) minmax(92px, auto);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "top top top"
        "previous stage next";
    gap: 16px;
    align-items: center;
}

.cms-project-lightbox-topbar {
    grid-area: top;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #ffffff;
}

.cms-project-lightbox-counter {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.cms-project-lightbox-close,
.cms-project-lightbox-nav {
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
    min-height: 44px;
    padding: 10px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.cms-project-lightbox-close:hover,
.cms-project-lightbox-nav:hover,
.cms-project-lightbox-close:focus,
.cms-project-lightbox-nav:focus {
    background: #ffffff;
    color: #10243f;
    outline: none;
}

.cms-project-lightbox-previous {
    grid-area: previous;
}

.cms-project-lightbox-next {
    grid-area: next;
}

.cms-project-lightbox-stage {
    grid-area: stage;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cms-project-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 155px);
    width: auto;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

.cms-project-lightbox-caption {
    max-width: 900px;
    margin-top: 12px;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 760px) {
    .cms-project-lightbox {
        padding: 14px;
    }

    .cms-project-lightbox-dialog {
        width: 100%;
        max-height: calc(100vh - 28px);
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "top top"
            "stage stage"
            "previous next";
        gap: 12px;
    }

    .cms-project-lightbox-nav {
        width: 100%;
    }

    .cms-project-lightbox-image {
        max-height: calc(100vh - 215px);
    }
}
