/* Shared theme controls and a light palette over the legacy dark export. */
/* Remove Astra's empty strip above the first content surface site-wide. */
html[data-ms-theme] body #content,html[data-ms-theme] body #content>.ast-container{padding-top:0!important;margin-top:0!important}
html[data-ms-theme] body #content #primary{margin-top:0!important;padding-top:0!important}
html[data-ms-theme] body #content #main,html[data-ms-theme] body #content .entry-content{margin-top:0!important}
html body #content .ms-cat-hero-banner{margin-top:0!important}
html body #content .ms-escenarios-hub{padding-top:0!important}
html body #content .ms-escenarios-hub>div:first-child{margin-top:0!important}
html body #content .ms-escenarios-hub>div:first-child>img{display:block;width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:contain!important;opacity:1!important;background:#081327}
@media(max-width:767px){
 html body #content .ms-escenarios-hub>div:first-child>div:nth-of-type(1){display:none!important}
 html body #content .ms-escenarios-hub>div:first-child>div:nth-of-type(2){position:relative!important;inset:auto!important;padding:24px 20px!important;background:#081327!important}
}
/* Category artwork keeps its complete composition instead of a shallow crop. */
html body #content .ms-cat-hero-banner{border:0!important;border-radius:12px!important;box-shadow:none!important}
html body #content .ms-cat-hero-img{display:block;width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:contain!important;object-position:center;filter:none!important;background:#081327}
html body #content .ms-cat-hero-overlay{background:linear-gradient(180deg,transparent 35%,rgba(4,6,14,.8) 75%,#04060e 100%)!important}
@media(max-width:767px){
  html body #content .ms-cat-hero-overlay{position:relative!important;inset:auto!important;padding:24px 20px!important;background:#081327!important}
  html body #content .ms-cat-hero-title{font-size:clamp(1.7rem,7vw,2.2rem)!important;line-height:1.2!important}
  html body #content .ms-cat-hero-desc{font-size:16px!important;line-height:1.65!important;margin-bottom:0!important}
  html body #content .ms-cat-hero-tag{font-size:12px!important;line-height:1.6!important}
}
.ms-theme-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:88px;padding:8px 12px!important;margin-left:14px;border:1px solid #60758e!important;border-radius:10px!important;background:#142238!important;color:#f8fafc!important;font:600 .88rem/1.2 system-ui,sans-serif!important;white-space:nowrap;cursor:pointer}
.ms-theme-toggle:focus-visible{outline:3px solid #38bdf8;outline-offset:3px}
#masthead .site-header-primary-section-right{gap:8px}
/* Dropdown surfaces follow the selected theme, including homepage overrides. */
html[data-ms-theme="light"] body #masthead :is(#ast-hf-menu-1,#ast-hf-mobile-menu) .sub-menu{background:#fff!important;border:1px solid #cfdae6!important;box-shadow:0 8px 24px rgba(19,36,59,.12)!important}
html[data-ms-theme="light"] body #masthead :is(#ast-hf-menu-1,#ast-hf-mobile-menu) .sub-menu .menu-link{background:transparent!important;color:#075e6b!important;-webkit-text-fill-color:#075e6b!important;text-shadow:none!important}
html[data-ms-theme="light"] body #masthead :is(#ast-hf-menu-1,#ast-hf-mobile-menu) .sub-menu .menu-link:is(:hover,:focus-visible){background:#e6f2f3!important;color:#13243b!important;-webkit-text-fill-color:#13243b!important}
html[data-ms-theme="dark"] body #masthead :is(#ast-hf-menu-1,#ast-hf-mobile-menu) .sub-menu{background:#101929!important;border:1px solid #45556c!important;box-shadow:0 8px 24px rgba(0,0,0,.2)!important}
html[data-ms-theme="dark"] body #masthead :is(#ast-hf-menu-1,#ast-hf-mobile-menu) .sub-menu .menu-link{color:#bce9e7!important;-webkit-text-fill-color:#bce9e7!important;text-shadow:none!important}
html[data-ms-theme] body #masthead .sub-menu .menu-link:focus-visible{outline:2px solid #0284c7!important;outline-offset:-2px}
html[data-ms-theme] body #masthead :is(.main-header-bar,.ast-primary-header-bar){box-shadow:none!important}
.ms-about-contact{padding:24px 0;margin-top:40px;border-top:1px solid var(--ms-border,#45556c)}
.ms-about-contact h2{margin-bottom:14px}.ms-about-contact p{margin:12px 0}.ms-about-contact .ms-contact-button{display:inline-flex;align-items:center;min-height:48px;padding:12px 20px;border-radius:8px;background:#075e6b!important;color:#fff!important;font-weight:650;text-decoration:none!important}
html[data-ms-theme="light"] body #content .ms-about-contact .ms-contact-button{background:#075e6b!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-ms-theme="dark"] body #content .ms-about-contact .ms-contact-button{background:#bce9e7!important;color:#13243b!important;-webkit-text-fill-color:#13243b!important}
html[data-ms-theme="dark"] body #content .ms-about-contact a:not(.ms-contact-button){color:#bce9e7!important}
html[data-ms-theme="light"]{--ast-global-color-0:#075e6b!important;--ast-global-color-1:#0369a1!important;--ast-global-color-2:#13243b!important;--ast-global-color-3:#42546a!important;--ast-global-color-4:#fff!important;--ast-global-color-5:#fff!important;--ast-global-color-6:#f3f6fa!important;--ast-global-color-7:#e9eff6!important;--ast-global-color-8:#f8fafc!important;--ms-bg-deep:#f3f6fa;--ms-bg-card:#fff;--ms-bg-card-hover:#f5f9fc;--ms-cyan-neon:#075e6b;--ms-cyan-glow:rgba(7,94,107,.12);--ms-purple-neon:#6d28d9;--ms-text-main:#13243b;--ms-text-muted:#42546a;--ms-text-subtle:#526780;--ms-border:#cfdae6;--ms-border-glow:#adc9d4;color-scheme:light}
html[data-ms-theme="light"] body{background:#f3f6fa!important;color:#13243b!important}
html[data-ms-theme="light"] :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,b,.entry-content,.ast-excerpt-container){color:#13243b!important;text-shadow:none!important}
html[data-ms-theme="light"] :is(a,.main-header-menu .menu-link,.ast-mobile-header-content .menu-link){color:#075e6b!important;text-shadow:none!important}
html[data-ms-theme="light"] :is(.site-header,.main-header-bar,.ast-primary-header-bar,.ast-mobile-header-wrap,.ast-mobile-header-content,.main-header-menu .sub-menu){background:#fff!important;box-shadow:0 1px 8px rgba(19,36,59,.08)!important;border-color:#cfdae6!important}
html[data-ms-theme="light"] .custom-logo-link{display:inline-flex;background:#081327;padding:6px 9px;border-radius:10px}
html[data-ms-theme="light"] :is(.ms-blog-filters,.ms-editorial-card,.ms-editorial-sidebar section,.ms-editorial-sidebar nav,.ms-practical-bridge,#ez-toc-container,.ms-cat-hero-banner){background:#fff!important;border-color:#cfdae6!important;box-shadow:0 4px 16px rgba(19,36,59,.04)!important}
html[data-ms-theme="light"] :is(.ast-article-inner,.widget){background:#fff!important;border-color:#cfdae6!important;box-shadow:0 4px 16px rgba(19,36,59,.04)!important}
html[data-ms-theme="light"] .entry-content :is(table,th,td){background:#fff!important;color:#13243b!important;border-color:#cfdae6!important}
html[data-ms-theme="light"] :is(.ms-blog-filters input,.ms-blog-filters select,.ms-editorial-sidebar input,input:not([type=checkbox]):not([type=radio]),textarea,select){background:#fff!important;color:#13243b!important;border-color:#8a9db3!important}
html[data-ms-theme="light"] :is(.ms-blog-filters label,.ms-editorial-sidebar label,.ms-card-copy p,.ms-blog-intro p,.entry-meta,.entry-meta *,.ms-editorial-sidebar small,.ms-card-copy time,#ms-blog-results,figcaption,.ms-editorial-review-note){color:#42546a!important}
html[data-ms-theme="light"] :is(.ms-blog-filters button,#ms-blog-more,.ms-editorial-sidebar button,.ms-theme-toggle){background:#075e6b!important;color:#fff!important}
html[data-ms-theme="light"] :is(.ms-native-footer,.site-footer,footer){background:#e9eff6!important;border-color:#cfdae6!important}
html[data-ms-theme="light"] .ms-cat-hero-overlay :is(h1,h2,p,span){color:#fff!important}
html[data-ms-theme="light"] :is(.ms-card-placeholder){background:linear-gradient(135deg,#e0eef4,#d8edea)!important;color:#075e6b!important}
html[data-ms-theme="light"] .single-post #primary{background:#fff!important;background-color:#fff!important;border-color:#cfdae6!important;box-shadow:0 4px 16px rgba(19,36,59,.04)!important}
html[data-ms-theme="light"] #masthead{box-shadow:0 1px 8px rgba(19,36,59,.08)!important}
html[data-ms-theme="light"] #masthead :is(.menu-link,.ast-header-navigation-arrow,.dropdown-menu-toggle){color:#075e6b!important;text-shadow:none!important}
html[data-ms-theme="light"] #masthead #ast-hf-menu-1 .menu-item>.menu-link,html[data-ms-theme="light"] #masthead #ast-hf-mobile-menu .menu-item>.menu-link{color:#075e6b!important;text-shadow:none!important}
html[data-ms-theme="light"] #masthead .custom-logo-link{background:#081327!important;padding:6px 9px!important;border-radius:10px}
html[data-ms-theme="light"] .ms-universe{background:#f3f6fa!important;color:#13243b!important}
html[data-ms-theme="light"] .ms-universe .ms-section{background:#f3f6fa!important}
html[data-ms-theme="light"] :is(.ms-dim-card,.ms-scenario-card,.ms-dossier-box,.ms-method-card,.ms-author-strip,.ms-newsletter-card,.ms-news-input-wrap){background:#fff!important;border-color:#cfdae6!important;box-shadow:0 4px 16px rgba(19,36,59,.06)!important}
html[data-ms-theme="light"] .ms-universe .ms-hero-section :is(h1,p,span,strong,a,.ms-hud-stat){color:#f8fafc!important}
html[data-ms-theme="light"] .ms-universe .ms-hero-section :is(.ms-btn-glow,.ms-btn-hologram){background:#075e6b!important;color:#fff!important;border-color:#a9dce5!important;box-shadow:none!important}
/* Calm reading layout: titles stay on their own surface, without image overlays. */
.single-post .ast-article-single{transform:none!important;margin-top:0!important;padding:24px 0 0!important}
.single-post .ast-article-single:hover{transform:none!important;box-shadow:none!important}
.single-post .ast-article-single:hover .post-thumb img{transform:none!important}
.single-post .entry-header{position:relative!important;margin-top:0!important;background:transparent!important;backdrop-filter:none!important;padding:24px 0!important;box-shadow:none!important}
.single-post .entry-title{font-size:clamp(1.8rem,3.2vw,2.6rem)!important;line-height:1.2!important}
.single-post .post-thumb img{max-height:none;object-fit:contain;width:100%}
.single-post .entry-content{max-width:70ch;margin-inline:auto;font-size:1.05rem;line-height:1.85!important}
.single-post .entry-content p{line-height:1.85!important}
.ms-blog-primary{margin-top:28px!important}.ms-blog-intro{padding:12px 0 24px}.ms-blog-intro h1{font-size:clamp(2rem,4vw,2.9rem)!important}.ms-blog-intro p{margin-bottom:0}
.ms-ecosystem-hub .ms-container>p{margin:12px 0 24px}.ms-ecosystem-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.ms-ecosystem-cards article{padding:28px;background:var(--ms-bg-card,#101929);border:1px solid var(--ms-border,#45556c);border-radius:14px}.ms-ecosystem-cards h3{margin-bottom:12px}.ms-ecosystem-cards p{margin:14px 0}.ms-ecosystem-cards a{text-decoration:underline!important;font-weight:600}
@media(max-width:620px){.ms-ecosystem-cards{grid-template-columns:1fr}}
.ms-filter-details>summary{display:none}
@media(max-width:620px){.ms-filter-details>summary{display:list-item;min-height:44px;padding:12px 16px;border:1px solid var(--ms-border,#45556c);border-radius:10px;background:var(--ms-bg-card,#101929);font-weight:600;cursor:pointer}.ms-filter-details .ms-blog-filters{margin-top:12px}.ms-filter-details>summary:focus-visible{outline:3px solid #38bdf8;outline-offset:3px}}
@media(max-width:620px){.ms-theme-toggle{min-width:76px;margin-left:6px;padding:8px!important;font-size:.8rem!important}.single-post .entry-header{padding:20px 0!important}}
@media(max-width:620px){#ast-mobile-header .custom-logo-link img{max-height:34px!important;max-width:110px!important}#ast-mobile-header .ast-builder-grid-row{grid-template-columns:minmax(0,1fr) auto!important;column-gap:6px!important;width:100%!important}#ast-mobile-header .site-header-primary-section-right{gap:4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}}
/* Stable typography on every device; no remote font dependency. */
html body,html body button,html body input,html body select,html body textarea,
html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
html[data-ms-client="true"] #ms-blog-grid:not([data-ready])>.ms-editorial-card:nth-child(n+13){display:none}
@media(max-width:620px){html[data-ms-client="true"] .ms-filter-details:not([data-ready])>form{display:none}}
/* One reading surface, with an uncropped featured image and crisp text. */
/* Landing pages use the page itself as their surface, without Astra frames. */
html[data-ms-theme] body.page #primary,
html[data-ms-theme] body.page #primary > #main > .ast-article-single,
html[data-ms-theme] body.page .ast-article-inner{background:transparent!important;background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important}
html[data-ms-theme] body.page #primary > #main > .ast-article-single{padding:0!important;margin:0!important}
html[data-ms-theme] body.page #content .ast-article-single{background:transparent!important;background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
html[data-ms-theme] body.home #content > .ast-container{max-width:none!important;padding:0!important}
html[data-ms-theme] body.home #primary{margin:0!important;padding:0!important;width:100%!important}
html[data-ms-theme] body.home .ms-universe{border:0!important;box-shadow:none!important;border-radius:0!important}
html[data-ms-theme] .ms-native-footer{box-shadow:none!important}
html[data-ms-theme] body.home .ms-newsletter-card{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:40px 0!important}
html[data-ms-theme="light"] body.page #content :is(div,article,a):is([style*="background: rgba"],[style*="background:rgba"]){background:#fff!important;border-color:#cfdae6!important;box-shadow:none!important}
html[data-ms-theme="light"] .ms-escenarios-hub .ms-scenario-item{background:#fff!important;border-color:#cfdae6!important;box-shadow:none!important}
html[data-ms-theme] .ms-escenarios-hub>div:first-child{background:#081327!important;box-shadow:none!important;border-radius:12px!important}
html[data-ms-theme] #content :is(.ms-hero-section,.ms-cat-hero-overlay,.ms-escenarios-hub>div:first-child) :is(h1,h2,h3,p,span,strong,a){color:#f8fafc!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;filter:none!important}
html[data-ms-theme] #content :is(.ms-hero-section,.ms-cat-hero-overlay,.ms-escenarios-hub>div:first-child) span[style*="background-clip"]{background:none!important}
html[data-ms-theme] #content :is(.ms-btn-glow,.ms-btn-hologram){background:#075e6b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important;border:1px solid #075e6b!important}
html[data-ms-theme="dark"] #content :is(.ms-btn-glow,.ms-btn-hologram){background:#bce9e7!important;color:#13243b!important;-webkit-text-fill-color:#13243b!important;border-color:#bce9e7!important}
html[data-ms-theme] body.page .entry-content :is(p,li,h1,h2,h3,h4,span,a){text-shadow:none!important}
html[data-ms-theme="light"] :is(.ms-pill-cat,.cat-links a){background:#e6f2f3!important;color:#075e6b!important;border-color:#b5d5da!important}
html[data-ms-theme="light"] .ms-escenarios-hub .ms-filter-btn{background:#fff!important;color:#075e6b!important;border-color:#8a9db3!important}
html[data-ms-theme="light"] .ms-escenarios-hub .ms-filter-btn.active{background:#075e6b!important;color:#fff!important}
html[data-ms-theme] body.page:not(.home) #primary{padding:0!important}
html[data-ms-theme] body.page:not(.home) .entry-content{padding:0!important}
@media(max-width:620px){html[data-ms-theme] body.page #content>.ast-container{padding-inline:16px!important}html[data-ms-theme] body.home #content>.ast-container{padding-inline:0!important}.ms-escenarios-hub{padding-inline:0!important}.ms-escenarios-hub>div:first-child{border-radius:12px!important}.ms-escenarios-hub>div:first-child h1{font-size:clamp(1.8rem,8vw,2.8rem)!important;line-height:1.2!important}.ms-escenarios-hub>div:first-child p{font-size:16px!important;line-height:1.65!important}}
html body.single-post .ast-single-post-featured-section{aspect-ratio:16/9;width:100%;margin:0!important;overflow:hidden;border-radius:14px;background:var(--ms-bg-card,#0d1424)}
html body.single-post .post-thumb img{display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center;transform:none!important;border-radius:0!important}
html body.single-post .ast-article-single,
html body.single-post .ast-article-inner,
html body.single-post .entry-header{background:transparent!important;background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;transform:none!important}
html body.single-post .ast-article-single{padding:0!important;margin:0!important}
html[data-ms-theme] body.single-post :is(.ast-article-single,.ast-article-inner,.entry-header){background:transparent!important;background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important}
html[data-ms-theme="dark"] body.single-post .entry-meta,html[data-ms-theme="dark"] body.single-post .entry-meta *{color:#abbdd2!important}
html[data-ms-theme="dark"] body.archive .entry-meta,html[data-ms-theme="dark"] body.archive .entry-meta *{color:#abbdd2!important}
html[data-ms-theme="light"] input::placeholder,html[data-ms-theme="light"] textarea::placeholder{color:#596b80!important;opacity:1}
html body.single-post .entry-header{padding:28px 0!important}
html body.single-post .entry-content{padding:0!important;width:100%;max-width:70ch;font-size:17px!important;line-height:1.8!important}
html body.single-post :is(.entry-content,.entry-header,.ms-editorial-sidebar) :is(p,li,a,span,strong,b,h1,h2,h3,h4,small){text-shadow:none!important;filter:none!important;opacity:1;overflow-wrap:anywhere}
html body.single-post .entry-content :is(h2,h3,h4){line-height:1.35!important;scroll-margin-top:100px}
html body.single-post #ez-toc-container{width:100%;max-width:100%;margin:28px 0;padding:20px;box-sizing:border-box}
html body #ez-toc-container :is(a,a:visited,a span,li){color:#bce9e7!important;font-weight:500!important;font-size:16px!important;line-height:1.65!important;text-shadow:none!important;filter:none!important;opacity:1!important}
html[data-ms-theme="light"] body.single-post .entry-content :is(p,li,span,strong,b,h2,h3,h4){color:#13243b!important}
html[data-ms-theme="light"] body #ez-toc-container :is(a,a:visited,a span,li){color:#075e6b!important}
html[data-ms-theme="light"] body #ez-toc-container .ez-toc-title{color:#13243b!important;font-weight:700!important}
html[data-ms-theme="light"] :is(button,.ast-button,.ms-btn-glow,.ms-btn-hologram) :is(span,strong,b){color:#fff!important}
html body.single-post .entry-content a:focus-visible{outline:3px solid #0284c7;outline-offset:3px}
html body.single-post .entry-content :is(pre,table){max-width:100%;overflow-x:auto}
html body.single-post .entry-content pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:620px){html body.single-post #primary{padding:18px!important;border-radius:16px!important}html body.single-post .entry-header{padding:22px 0!important}html body.single-post .entry-content,html body.single-post .entry-content :is(p,li){font-size:16px!important}html body.single-post #ez-toc-container{padding:16px}}
