:root { --mdg-blue:#0066BF; --mdg-charcoal:#1A1D21; --mdg-orange:#E8622C; --mdg-logo-width:680px; }
body.mdg-branded #header { max-height:none; overflow:visible; background:#fff; }
body.mdg-branded #header .mdg-masthead { padding:12px 12px; text-align:center; }
body.mdg-branded #header .mdg-align-left { text-align:left; }
body.mdg-branded #header .mdg-align-right { text-align:right; }
.mdg-brand-link { display:inline-block; max-width:100%; width:var(--mdg-logo-width); vertical-align:middle; }
body.mdg-branded #header .mdg-brand-image { display:block; width:100%; height:auto; }
.mdg-tagline { margin:8px 0 0; color:var(--mdg-charcoal); font-size:clamp(12px,2vw,17px); letter-spacing:.08em; }
body.mdg-branded .navbar.navbar-inverse { background-color:var(--mdg-blue); }
body.mdg-branded #content a:not(.btn):not(.pt-cv-readmore) { color:var(--mdg-blue); }
body.mdg-branded #content a:hover:not(.btn):not(.pt-cv-readmore) { text-decoration:underline; }
body.mdg-branded .sidebar-wrap h3 { border-color:var(--mdg-blue); }
body.mdg-branded .entry-title { color:var(--mdg-charcoal); }
body.mdg-branded a:focus-visible, body.mdg-branded button:focus-visible { outline:2px solid var(--mdg-orange); outline-offset:3px; }
/* Existing Content Views customization: invalid #00000 corrected to accessible white. */
.pt-cv-readmore { color:#fff !important; background-color:var(--mdg-blue) !important; border:none !important; }
@media(max-width:767px) { body.mdg-branded #header .mdg-masthead { padding:8px 8px; } }

/* Keep the masthead in the normal document flow, independent of legacy header sizing. */
body.mdg-branded { background: #fff !important; }
body.mdg-branded #header { height:auto !important; max-height:none !important; min-height:0; background:#fff !important; overflow:hidden; }
body.mdg-branded #header > img, body.mdg-branded #header_img_link { display:none !important; }
body.mdg-branded .mdg-masthead { box-sizing:border-box; width:100%; max-width:100%; }
body.mdg-branded .mdg-brand-link { width:var(--mdg-logo-width); max-width:100%; }
body.mdg-branded #header .mdg-brand-image { width:100%; max-width:100%; height:auto; position:static; }
body.mdg-branded .navbar .header_title, body.mdg-branded .navbar .header_desc { display:none !important; }
body.mdg-branded .navbar { background:var(--mdg-blue); }
body.mdg-branded .navbar #header-menu-wrap .nav > li > a { color:#fff; }
body.mdg-branded #content a.pt-cv-readmore, body.mdg-branded #content .pt-cv-readmore.btn { background:var(--mdg-blue) !important; color:#fff !important; border-color:var(--mdg-blue) !important; }

/* Compact masthead: artwork viewBox cropped to drawing, no legacy minimum height. */
body.mdg-branded #header .mdg-masthead { margin:0; line-height:0; }
body.mdg-branded #header .mdg-tagline { line-height:1.4; }
