/* Resolution Trap editorial tone, shared by the exported article interiors. */
html:root body.single.aivanguard-theme:has([data-editorial-tone]) .content-grid {display:block!important;}
html:root body.single.aivanguard-theme:has([data-editorial-tone]) .sidebar-stack {display:none!important;}
html:root body.single.aivanguard-theme:has([data-editorial-tone]) .single-header {max-width:1060px;margin-inline:auto!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] {
 --ed-bg:#0c151a;--ed-panel:#142128;--ed-text:#f0f5f3;--ed-copy:#c8d5d6;--ed-muted:#a9babc;--ed-line:#34464d;--ed-accent:#c7ff8c;--ed-cyan:#9ce4e9;
 background:var(--ed-bg)!important;color:var(--ed-copy)!important;max-width:none!important;border-radius:20px!important;font-size:18px!important;line-height:1.75!important;
}
html:root[data-theme="light"] body.single.aivanguard-theme .entry-content[data-editorial-tone] {--ed-bg:#fafaf4;--ed-panel:#fffef8;--ed-text:#142729;--ed-copy:#344a4d;--ed-muted:#4e6668;--ed-line:#b7c7c4;--ed-accent:#255c35;--ed-cyan:#175f70;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] * {min-width:0;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] a {overflow-wrap:anywhere;}
/* Legacy boxes also contain direct text (div, em, code, labels), not only p/span.
   Reset their authored fills together with their text, then reapply semantic
   panel/hero/table palettes below. Media and SVG artwork retain their fills. */
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :where(article,section,div,aside,header,footer,nav,figure,figcaption,caption,blockquote,details,summary,p,ul,ol,li,dl,dt,dd,h1,h2,h3,h4,h5,h6,span,b,strong,small,em,i,cite,q,mark,label,code,pre,a,button,sup,sub,abbr,time,address,output,kbd,samp,var,del,ins,s,u,legend,option,font) {
 color:var(--ed-copy)!important;background-color:transparent!important;background-image:none!important;text-shadow:none!important;
}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :is(input,select,textarea,button) {background:var(--ed-panel)!important;color:var(--ed-text)!important;border-color:var(--ed-line)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] > article {
 background:var(--ed-bg)!important;color:var(--ed-copy)!important;font-family:inherit!important;line-height:1.75!important;border:1px solid var(--ed-line)!important;border-radius:20px!important;overflow:hidden;
 --exec-bg:var(--ed-bg);--exec-surface:var(--ed-panel);--exec-surface-2:var(--surface-soft);--exec-ink:var(--ed-text);--exec-muted:var(--ed-copy);--exec-line:var(--ed-line);--exec-green:var(--ed-accent);--exec-cyan:var(--ed-cyan);--exec-shadow:none;
 --obs-bg:var(--ed-bg);--obs-panel:var(--ed-panel);--obs-panel-2:var(--surface-soft);--obs-text:var(--ed-text);--obs-copy:var(--ed-copy);--obs-muted:var(--ed-muted);--obs-line:var(--ed-line);--obs-yellow:var(--ed-accent);--obs-cyan:var(--ed-cyan);
}
/* The ID specificity retires legacy inline-page !important overrides. */
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :is(p,li,td,dd,figcaption) {color:var(--ed-copy)!important;font-family:inherit!important;line-height:1.75!important;font-size:1rem!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :is(span,b,small) {color:var(--ed-copy)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :is(h2,h3,h4,h5,strong,summary) {color:var(--ed-text)!important;text-shadow:none!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) h2 {font-size:clamp(28px,3vw,40px)!important;line-height:1.15!important;letter-spacing:-.03em!important;text-wrap:balance;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) h3 {font-size:clamp(21px,2vw,25px)!important;line-height:1.3!important;letter-spacing:-.02em!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) a {color:var(--ed-cyan)!important;text-underline-offset:4px;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(section,nav,header,table,td,th) {border-color:var(--ed-line)!important;background-image:none!important;box-shadow:none!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(section,header) {background-color:var(--ed-bg)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is([data-editorial-panel],.obs-meta div,.roi-meta div,.uc-meta div,.geo-meta div,.exec-meta span) {background:var(--ed-panel)!important;color:var(--ed-copy)!important;border-color:var(--ed-line)!important;border-radius:14px!important;box-shadow:none!important;clip-path:none!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(.geo-cell,.geo-score,.roi-line) {background:var(--ed-panel)!important;border-color:var(--ed-line)!important;border-radius:14px!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :is(.roi-num,.uc-num,.geo-num) {background:var(--ed-accent)!important;color:var(--ed-bg)!important;border-radius:30px!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) .obs-download {background:var(--ed-panel)!important;color:var(--ed-cyan)!important;border:1px solid var(--ed-line)!important;border-radius:12px!important;min-height:44px;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] .exec-brief {width:100%!important;max-width:100%!important;margin-inline:0!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] .exec-summary-grid {grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] .aiv-infographic {width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(.exec-video,.exec-table-wrap) {width:100%!important;max-width:100%!important;min-width:0!important;margin-inline:0!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :is(.aiv-stack-layer__num,.roi-num,.uc-num,.geo-num) {background:var(--ed-accent)!important;color:var(--ed-bg)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) .aiv-stack-lab__eyebrow {background:var(--ed-panel)!important;color:var(--ed-accent)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) a[style*="background"] {background:var(--ed-panel)!important;color:var(--ed-cyan)!important;border-color:var(--ed-line)!important;border-radius:12px!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] .exec-loop-track {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(.exec-wrap,.obs-wrap,.roi-wrap,.uc-wrap,.geo-wrap,.gcc-wrap) {width:min(1060px,calc(100% - 48px))!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(.exec-section,.obs-section,.roi-section,.uc-section,.geo-section,.gcc-section) {padding-block:clamp(32px,5vw,58px)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(.exec-prose,.obs-section > p,.roi-section > p,.uc-section > p,.geo-section > p) {max-width:760px!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] > :is(p,h2,h3,ul,ol) {max-width:760px;margin-inline:auto;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(.exec-kicker,.exec-section-label,.obs-kicker,.roi-kicker,.uc-kicker,.geo-kicker,.gcc-kicker,.aiv-label) {color:var(--ed-accent)!important;font-size:12px!important;letter-spacing:.1em!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(nav a,.exec-jump a,.obs-nav a,.roi-jump a,.uc-jump a,.geo-jump a) {display:inline-flex;align-items:center;min-height:44px!important;padding:10px 14px!important;border:1px solid var(--ed-line)!important;border-radius:30px!important;background:var(--ed-panel)!important;color:var(--ed-text)!important;line-height:1.3!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(th,thead) {background:var(--surface-soft)!important;color:var(--ed-text)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(td,tbody,tr) {background:var(--ed-bg)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(code,pre) {background:var(--surface-soft)!important;color:var(--ed-text)!important;border-color:var(--ed-line)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] blockquote {border-left:4px solid var(--ed-accent)!important;padding:24px!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] summary {min-height:44px;padding:14px;cursor:pointer;}
/* Keep the illustrated hero dark in either theme, as in the reference story. */
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] [data-editorial-hero] {--ed-text:#f0f5f3;--ed-copy:#c8d5d6;--ed-muted:#a9babc;--ed-panel:#172b34;--ed-line:#42616b;--ed-accent:#c7ff8c;--ed-cyan:#9ce4e9;background:#101e25!important;color:#c8d5d6!important;border-radius:20px!important;padding-block:clamp(28px,5vw,64px)!important;box-shadow:none!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] [data-editorial-hero]::before,
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] [data-editorial-hero]::after {display:none!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) [data-editorial-hero] :is(h2,h3,h4,strong,span,b) {color:var(--ed-text)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] [data-editorial-hero] h2 {font-size:clamp(32px,4.5vw,56px)!important;line-height:1.05!important;letter-spacing:-.04em!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] [data-editorial-hero] :is(p,li) {color:var(--ed-copy)!important;}
/* Paired background overrides need the same legacy-ID specificity as the reset. */
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :is([data-editorial-panel],.obs-meta div,.roi-meta div,.uc-meta div,.geo-meta div,.exec-meta span) {background:var(--ed-panel)!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) [data-editorial-hero] {background:#101e25!important;}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:not(#cs-feature) :is(th,thead,code,pre) {background:var(--surface-soft)!important;}
/* Homepage: the illustrated latest story is the first editorial block. */
html:root body.home.aivanguard-theme .news-hero:has([data-latest-story]) {margin:32px 0 40px!important;}
html:root body.home.aivanguard-theme .news-hero:has([data-latest-story]) .hero-grid {grid-template-columns:minmax(0,3fr) minmax(250px,1fr)!important;gap:24px!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-latest-story] {padding:32px!important;background:#101e25!important;border-color:#34464d!important;transform:none!important;}
html:root body.home.aivanguard-theme .spotlight-layout {display:flex;flex-direction:column;gap:24px;}
html:root body.home.aivanguard-theme .spotlight-card[data-latest-story] h2 {font-size:clamp(32px,3.5vw,48px)!important;line-height:1.08!important;letter-spacing:-.04em!important;margin:20px 0!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-latest-story] h2 a {color:#f0f5f3!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-latest-story] .spotlight-excerpt {color:#c8d5d6!important;font-size:18px!important;line-height:1.65!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-latest-story] .spotlight-meta {color:#a9babc!important;display:flex;flex-wrap:wrap;gap:12px;margin:18px 0!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-latest-story] .eyebrow {color:#c7ff8c!important;background:#213629!important;border-color:#587078!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-latest-story] .spotlight-read {background:#c7ff8c!important;color:#112021!important;border-color:#c7ff8c!important;min-height:46px!important;border-radius:12px!important;white-space:normal;}
html:root body.home.aivanguard-theme .spotlight-art {display:block;border-radius:14px;overflow:hidden;}
html:root body.home.aivanguard-theme .spotlight-art img {display:block;width:100%;height:auto;border-radius:14px;}
@media(min-width:1180px) {
 html:root body.home.aivanguard-theme .spotlight-layout {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);align-items:center;}
 html:root body.home.aivanguard-theme .spotlight-art img {aspect-ratio:1200/630;object-fit:contain;}
}
@media(max-width:760px) {
 html:root body.home.aivanguard-theme .news-hero:has([data-latest-story]) .hero-grid {grid-template-columns:minmax(0,1fr)!important;}
 html:root body.home.aivanguard-theme .spotlight-card[data-latest-story] {padding:24px!important;}
 html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] {font-size:17px!important;}
 html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] :is(.exec-wrap,.obs-wrap,.roi-wrap,.uc-wrap,.geo-wrap,.gcc-wrap) {width:calc(100% - 40px)!important;}
 html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] table {display:block;max-width:100%;overflow-x:auto;}
 html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] .exec-summary-grid {grid-template-columns:minmax(0,1fr)!important;}
 html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] .exec-loop-track {grid-template-columns:minmax(0,1fr)!important;}
}
