.cpm{--cpm-accent:#558ED5;--cpm-ink:#17375E;--cpm-muted:#54595F;color:var(--cpm-ink);font-family:inherit;line-height:1.6;text-align:left;box-sizing:border-box}
.cpm *{box-sizing:border-box}.cpm h2,.cpm h3{color:var(--cpm-ink);line-height:1.2;margin:0 0 16px}.cpm h2{font-size:clamp(26px,4vw,38px)}.cpm h3{font-size:23px}.cpm p{margin:0 0 16px}.cpm a{color:var(--cpm-accent)}
.cpm-dashboard{max-width:1200px;margin:32px auto;padding:clamp(16px,3vw,36px);background:#F4F6F9;border-radius:20px}.cpm-header,.cpm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.cpm-logo{max-width:190px;max-height:72px;object-fit:contain;margin-bottom:18px}.cpm .cpm-eyebrow{font-size:12px;letter-spacing:.12em;font-weight:700;text-transform:uppercase;color:var(--cpm-muted);margin-bottom:10px}.cpm-panel{padding:clamp(18px,3vw,32px);background:#fff;border:1px solid #DCE3EC;border-radius:14px}.cpm-notice{padding:14px 20px;background:#EAF1FA;border-radius:10px}
.cpm-grid,.cpm-manage-grid{display:grid;grid-template-columns:repeat(var(--cpm-columns,3),minmax(0,1fr));gap:24px}.cpm-card{overflow:hidden;min-width:0;background:#fff;border:1px solid #DFE5ED;border-radius:14px;box-shadow:0 8px 24px #17375E08}.cpm-card-body{padding:24px}.cpm-card h3 a{text-decoration:none}.cpm-view{font-weight:700}.cpm-badge{display:inline-block;background:#EEF3FA;border-radius:30px;font-size:12px;padding:3px 12px;margin-bottom:14px}
/* A fixed ratio frame plus absolute full-size image prevents intrinsic dimensions,
   theme max-width rules and Elementor image styles from creating letterboxing. */
.cpm .cpm-cover{display:block!important;position:relative!important;overflow:hidden!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important;padding:0!important;margin:0!important;background:#E3EAF3;line-height:0;border:0}
.cpm .cpm-cover img.cpm-cover-image{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important}
.cpm-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;line-height:1.5;text-align:center;color:#54595F}.cpm .cpm-hero{aspect-ratio:16/9!important;border-radius:16px}.cpm-button,.cpm .cpm-button{display:inline-block;background:var(--cpm-accent);color:#fff;border:0;border-radius:8px;padding:12px 20px;font:inherit;font-weight:700;line-height:1.5;text-decoration:none;cursor:pointer}.cpm .cpm-secondary{background:#EAF0F7;color:var(--cpm-ink)}.cpm :is(a,button,input,select,textarea):focus-visible{outline:3px solid #305A8C;outline-offset:3px}.cpm-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px}.cpm-delete{margin:0}.cpm .cpm-link{border:0;background:transparent;padding:0;color:#993b31;text-decoration:underline;font:inherit;cursor:pointer}.cpm-editor>label,.cpm-fields label{display:block;font-weight:600;margin-top:20px;margin-bottom:7px}.cpm-editor input:not([type=checkbox]):not([type=hidden]),.cpm-editor select,.cpm-editor textarea{width:100%;max-width:100%;border:1px solid #BDCADD;background:#fff;color:#17375E;border-radius:7px;padding:11px;font:inherit}.cpm-editor fieldset{border:1px solid #DCE3EC;border-radius:10px;margin:24px 0;padding:20px}.cpm-editor legend{font-weight:700;padding:0 8px}.cpm-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.cpm-check{display:inline-flex!important;align-items:center;gap:8px;margin:8px 18px 8px 0!important;font-weight:400!important}.cpm-check input{width:auto}.cpm-help{font-size:13px;color:var(--cpm-muted);margin-top:18px!important}.cpm-image-field>img{display:block;width:140px;height:100px;object-fit:cover;border-radius:8px}.cpm-sortable{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.cpm-sort-item{width:130px;border:1px solid #DCE3EC;border-radius:8px;background:#F4F6F9;overflow:hidden;cursor:grab}.cpm-sort-item img{width:130px;height:95px;object-fit:cover;display:block}.cpm-sort-item>div{display:flex;justify-content:space-around;padding:6px}.cpm-sort-item button{border:0;border-radius:4px;padding:4px 9px;background:#fff;color:#17375E;cursor:pointer}.cpm-sort-item.cpm-dragging{opacity:.45}.cpm-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:26px}.cpm-filters a,.cpm-pagination a,.cpm-pagination span{padding:8px 15px;background:#EEF3FA;border-radius:24px;text-decoration:none}.cpm-filters a[aria-current],.cpm-pagination .current{background:var(--cpm-accent);color:#fff}.cpm-pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:30px}.cpm-single{max-width:1140px;margin:48px auto;padding:0 24px}.cpm-single h1{font-size:clamp(32px,5vw,60px);line-height:1.1}.cpm-details{display:flex;gap:24px;flex-wrap:wrap;padding:24px 0;margin:0}.cpm-details dt{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--cpm-muted)}.cpm-details dd{margin:4px 0 0;font-weight:600}.cpm-description{margin:24px 0 36px}.cpm-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.cpm-gallery img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:10px}.cpm-comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0}.cpm-comparison figure{margin:0}.cpm-comparison img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.cpm-comparison figcaption{font-weight:700;padding:8px 0}
@media(max-width:960px){.cpm-grid,.cpm-manage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cpm-fields{grid-template-columns:1fr}.cpm-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.cpm-grid,.cpm-manage-grid,.cpm-comparison{grid-template-columns:1fr}.cpm-header,.cpm-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.cpm-card-body{padding:20px}.cpm .cpm-hero{aspect-ratio:4/3!important}.cpm-gallery{gap:8px}.cpm-editor fieldset{padding:12px}.cpm-single{padding:0 16px}}
@media(prefers-reduced-motion:no-preference){.cpm-card{transition:box-shadow .2s}.cpm-card:hover{box-shadow:0 12px 30px #17375E14}}
.cpm .cpm-grid.cpm-one-column{grid-template-columns:minmax(0,1fr)}
/* Premium single-project layout. Kept separate from dashboard and grid styles. */
.cpm.cpm-premium{max-width:1440px;margin:0 auto;padding:0 clamp(18px,4vw,64px);color:#3B3B3B;background:#fff;overflow-wrap:anywhere}
.cpm-premium .cpm-project-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:26px 0;font-size:13px}.cpm-project-nav a{text-decoration:none;font-weight:600}.cpm-project-nav>span{font-size:10px;letter-spacing:.18em;color:#54595F}
.cpm-premium .cpm-project-hero{isolation:isolate;position:relative;display:flex;align-items:flex-end;min-height:clamp(480px,65vw,740px);overflow:hidden;background:#17375E;border-radius:3px;color:#fff}
.cpm-premium .cpm-project-hero-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;z-index:-2}
.cpm-project-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,22,61,.06) 0%,rgba(13,22,61,.55) 45%,rgba(13,22,61,.93) 100%);z-index:-1}.cpm-premium .cpm-no-photo{min-height:420px;background:linear-gradient(125deg,#17375E,#0D163D)}
.cpm-hero-content{padding:clamp(28px,5vw,72px);width:100%;max-width:1100px}.cpm-hero-labels{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:24px}.cpm-premium .cpm-kicker{font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;line-height:1.7;margin:0 0 18px;color:#305A8C}.cpm-hero-labels .cpm-kicker{color:#fff;margin:0}.cpm-project-status{font-size:11px;padding:5px 12px;border:1px solid #ffffff66;border-radius:30px;color:#fff;background:#17375E80}
.cpm-premium .cpm-project-hero h1{font-family:inherit;font-size:clamp(36px,5.8vw,82px);font-weight:500;line-height:1.04;letter-spacing:-.04em;color:#fff;margin:0 0 22px;max-width:18ch;text-wrap:balance}.cpm-premium .cpm-hero-location{font-size:clamp(15px,1.6vw,20px);color:#EEF3FA;margin:0 0 28px}.cpm-premium .cpm-hero-link{display:inline-flex;align-items:center;gap:32px;border-bottom:1px solid #ffffff88;color:#fff;padding-bottom:8px;font-size:13px;text-decoration:none}
.cpm-project-overview{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:clamp(32px,7vw,110px);padding:clamp(48px,7vw,100px) 0}.cpm-premium h2{font-family:inherit;font-size:clamp(30px,3.5vw,46px);font-weight:500;letter-spacing:-.035em;line-height:1.15}.cpm-premium .cpm-description{font-size:17px;line-height:1.9;color:#54595F;margin:28px 0 0;max-width:66ch}.cpm-description img,.cpm-description video,.cpm-description iframe{max-width:100%}.cpm-project-facts{align-self:start;background:#F4F6F9;padding:clamp(24px,3vw,42px);border-top:3px solid var(--cpm-accent)}.cpm-premium .cpm-project-facts h2{font-size:24px;letter-spacing:-.02em}.cpm-project-facts .cpm-details{display:block;padding:4px 0 0}.cpm-project-facts .cpm-details>div{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:16px;padding:15px 0;border-bottom:1px solid #DCE3EC}.cpm-project-facts .cpm-details>div:last-child{border:0;padding-bottom:0}.cpm-project-facts .cpm-details dt{font-size:11px;letter-spacing:.04em;text-transform:none}.cpm-project-facts .cpm-details dd{font-size:13px;font-weight:600;margin:0}
.cpm-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:32px}.cpm-section-heading h2{margin:0}.cpm-section-heading>p{font-size:12px;color:#54595F;margin:0}.cpm-section-heading>p span{padding:0 10px}.cpm-project-gallery-section{padding:16px 0 64px;scroll-margin-top:28px}.cpm-editorial-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px}.cpm-editorial-gallery figure{margin:0;min-width:0}.cpm-editorial-gallery figure:nth-child(3n+1){grid-column:1/-1}.cpm-editorial-gallery a{display:block;position:relative;overflow:hidden;aspect-ratio:4/3;background:#E3EAF3}.cpm-editorial-gallery figure:nth-child(3n+1) a{aspect-ratio:16/9}.cpm-editorial-gallery img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;border-radius:0!important}.cpm-editorial-gallery figcaption{font-size:12px;color:#54595F;padding-top:10px}.cpm-expand{position:absolute;right:16px;bottom:16px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff;color:#17375E;font-size:22px}
.cpm-transformation{padding:24px 0 64px;border-top:1px solid #DCE3EC}.cpm-premium .cpm-comparison{gap:24px}.cpm-premium .cpm-comparison img{border-radius:0}.cpm-premium .cpm-comparison figcaption{text-transform:uppercase;font-size:11px;letter-spacing:.15em;padding-top:16px}.cpm-project-footer{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:44px clamp(24px,4vw,56px);margin:16px 0 64px;background:#F4F6F9}.cpm-project-footer h2{margin:0}.cpm-project-footer .cpm-button{border-radius:2px;font-size:13px;padding:16px 24px}.cpm-project-footer .cpm-button span{margin-left:24px}
dialog.cpm-photo-dialog{position:fixed;inset:0;border:0;border-radius:6px;background:#0D163D;color:#fff;padding:56px 20px 20px;max-width:94vw;max-height:94vh;width:min(1200px,94vw);overflow:auto}dialog.cpm-photo-dialog::backdrop{background:#0D163DEB}dialog.cpm-photo-dialog img{display:block;max-width:100%;width:auto;height:auto;max-height:76vh;object-fit:contain;margin:auto}dialog.cpm-photo-dialog button{position:absolute;right:16px;top:12px;border:1px solid #ffffff88;background:transparent;color:#fff;padding:6px 14px;border-radius:4px;font:inherit;cursor:pointer}dialog.cpm-photo-dialog p{font-size:13px;text-align:center;margin:14px 0 0}dialog.cpm-photo-dialog button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:700px){.cpm-project-nav>span{display:none}.cpm-premium .cpm-project-hero{min-height:530px}.cpm-premium .cpm-no-photo{min-height:360px}.cpm-hero-content{padding:28px 24px}.cpm-project-overview{grid-template-columns:1fr;gap:32px}.cpm-premium .cpm-description{font-size:16px}.cpm-section-heading,.cpm-project-footer{align-items:flex-start;flex-direction:column}.cpm-editorial-gallery{grid-template-columns:1fr;gap:20px}.cpm-editorial-gallery figure:nth-child(3n+1){grid-column:auto}.cpm-editorial-gallery figure:nth-child(3n+1) a{aspect-ratio:4/3}.cpm-project-gallery-section,.cpm-transformation{padding-bottom:40px}.cpm-project-footer{margin-bottom:32px}.cpm-premium .cpm-comparison{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.cpm-editorial-gallery img{transition:transform .35s ease}.cpm-editorial-gallery a:hover img{transform:scale(1.025)}}

/* AG brand: Schibsted Grotesk headings, Roboto body, blue and navy palette. */
.cpm,dialog.cpm-photo-dialog{font-family:"Roboto",Arial,sans-serif}
.cpm h1,.cpm h2,.cpm h3,.cpm h4,.cpm h5,.cpm h6,.cpm-premium h2,.cpm-premium .cpm-project-hero h1{font-family:"Schibsted Grotesk",Arial,sans-serif;font-weight:800}
.cpm .cpm-kicker,.cpm .cpm-eyebrow{font-family:"Schibsted Grotesk",Arial,sans-serif;font-weight:700}
.cpm a:hover,.cpm a:focus-visible{color:#305A8C}
.cpm .cpm-button:hover,.cpm .cpm-button:focus-visible,.cpm .cpm-filters a[aria-current]:hover{background:#305A8C;color:#fff}
.cpm-premium .cpm-hero-link:hover,.cpm-premium .cpm-hero-link:focus-visible{color:#fff;border-color:#558ED5}
.cpm-editor input[type=checkbox]{accent-color:var(--cpm-accent)}
