/* Scoped editorial layer; the shared article palette owns both themes. */
#mp-feature{max-width:1060px;margin-inline:auto;min-width:0;overflow-wrap:break-word}
#mp-feature>p{max-width:74ch;margin:1.2em auto}
#mp-feature>h2{margin:2.4em 0 1em;scroll-margin-top:100px}
#mp-feature h3{margin:1.7em 0 .7em}
#mp-feature h4{font-size:1.1rem;line-height:1.35;margin:.8em 0}
#mp-feature .mp-hero{padding:clamp(24px,4vw,46px);border-radius:22px;margin:0 0 30px}
#mp-feature .mp-hero h2{font-size:clamp(30px,4vw,48px)!important;margin:.55em 0!important;max-width:22ch}
#mp-feature .mp-cover{margin:28px auto;max-width:760px}
#mp-feature .mp-cover img{display:block;width:100%;height:auto;border-radius:12px}
html:root body.single.aivanguard-theme:has(#mp-feature) .single-header{padding:clamp(24px,3vw,38px)!important;margin-bottom:34px!important}
html:root body.single.aivanguard-theme:has(#mp-feature) .single-header h1{font-size:clamp(34px,4.1vw,54px)!important;line-height:1.1!important}
#mp-feature .mp-kicker{text-transform:uppercase;font-family:monospace;font-size:.8rem;letter-spacing:.1em}
#mp-feature .mp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:26px}
#mp-feature .mp-stats>div{border-top:1px solid var(--ed-line);padding-top:12px}
#mp-feature .mp-stats strong{display:block;font-size:clamp(23px,3vw,34px);line-height:1.15}
#mp-feature .mp-stats span{display:block;font-size:.85rem;margin-top:6px}
#mp-feature .mp-jump{display:flex;flex-wrap:wrap;gap:8px;padding:18px 0;margin:20px 0 40px}
#mp-feature .mp-jump a{display:inline-flex;align-items:center;min-height:44px;padding:9px 13px;border:1px solid var(--ed-line);border-radius:24px;line-height:1.35;text-decoration:none;font-size:.9rem}
#mp-feature .mp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0 34px}
html:root body.single.aivanguard-theme .entry-content[data-editorial-tone] #mp-feature .mp-card{padding:24px;border:1px solid var(--ed-line)!important;border-radius:16px;background:var(--ed-panel)!important;min-width:0;margin:0}
#mp-feature .mp-card p{font-size:.95rem!important;line-height:1.65!important;margin:.8em 0}
#mp-feature .mp-number{font-family:monospace;text-transform:uppercase;font-size:.8rem;letter-spacing:.08em}
#mp-feature .mp-table-wrap{max-width:100%;overflow-x:auto;margin:26px 0;border:1px solid var(--ed-line);border-radius:14px;overscroll-behavior-x:contain}
#mp-feature table{border-collapse:collapse;width:100%;margin:0!important;min-width:650px}
#mp-feature th,#mp-feature td{padding:15px!important;vertical-align:top;border-bottom:1px solid var(--ed-line);text-align:left;font-size:.95rem!important;line-height:1.55!important}
#mp-feature caption{padding:14px;text-align:left;font-weight:700;color:var(--ed-text);background:var(--ed-panel);white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box}
#mp-feature .mp-steps{padding-left:1.8em}
#mp-feature .mp-steps li{padding:0 0 20px 8px}
#mp-feature .mp-callout{padding:24px;border:1px solid var(--ed-line);border-left:4px solid var(--ed-accent);border-radius:16px;margin-top:40px}
#mp-feature details{padding:18px 20px;border:1px solid var(--ed-line);border-radius:12px;margin:12px 0}
#mp-feature summary{cursor:pointer;font-weight:700;min-height:44px;line-height:1.5}
#mp-feature details[open] summary{margin-bottom:16px}
#mp-feature .mp-calculator{padding:clamp(18px,3vw,32px);border:1px solid var(--ed-line);border-radius:20px;min-width:0;margin:26px 0}
#mp-feature fieldset{border:0;padding:0;margin:24px 0;min-width:0}
#mp-feature legend{font-size:1.15rem;font-weight:700;padding:0;margin:0 0 20px;color:var(--ed-text)}
#mp-feature .mp-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#mp-feature label{display:flex;flex-direction:column;gap:8px;font-size:.95rem;color:var(--ed-text);line-height:1.5;min-width:0}
#mp-feature input{box-sizing:border-box;display:block;width:100%;min-width:0;min-height:48px;font:inherit;padding:10px 12px;border:1px solid var(--ed-line);border-radius:8px}
#mp-feature .mp-scenarios{display:flex;flex-wrap:wrap;gap:10px}
#mp-feature button{font:inherit;min-height:46px;padding:10px 16px;border:1px solid var(--ed-line);border-radius:10px;cursor:pointer;white-space:normal;line-height:1.4}
#mp-feature :is(button,input,a,summary):focus-visible{outline:3px solid var(--ed-accent);outline-offset:4px}
#mp-feature .mp-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}
#mp-feature .mp-results-grid>div{border-top:1px solid var(--ed-line);padding:14px 0;min-width:0}
#mp-feature .mp-results-grid span{font-size:.9rem;display:block}
#mp-feature .mp-results-grid strong{font-size:clamp(25px,3vw,36px);display:block;line-height:1.2;margin-top:9px;overflow-wrap:anywhere}
#mp-feature #mp-calc-verdict{font-weight:600;border-left:3px solid var(--ed-accent);padding-left:16px}
#mp-feature #mp-calc-error:empty{display:none}
#mp-feature #mp-sources li{margin-bottom:18px;overflow-wrap:anywhere}
#mp-feature :is(.mp-brief,.mp-packet){padding:clamp(20px,3vw,34px);margin:28px 0 40px;border:1px solid var(--ed-line)}
#mp-feature :is(.mp-brief,.mp-packet) :is(h2,h3){margin-top:.5em}
#mp-feature .mp-route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;gap:24px;margin:28px 0}
#mp-feature .mp-route-grid>li{border-top:3px solid var(--ed-accent);padding-top:16px}
#mp-feature .mp-route-grid a{display:inline-flex;align-items:center;min-height:44px;line-height:1.5}
#mp-feature .mp-takeaway{border-top:1px solid var(--ed-line);padding-top:20px}
#mp-feature .mp-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:26px 0}
#mp-feature .mp-evidence-grid>div{border-top:1px solid var(--ed-line);padding-top:14px}
#mp-feature .mp-evidence-grid dt{font-weight:700;color:var(--ed-text)!important}
#mp-feature .mp-evidence-grid dd{margin:8px 0 0}
#mp-feature .mp-decision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:28px 0}
#mp-feature .mp-decision{border-left:4px solid var(--ed-accent);padding-left:18px}
#mp-feature .mp-replay{padding-left:1.3em}
#mp-feature .mp-replay li{margin-bottom:14px}
@media(max-width:650px){
 html:root body.single.aivanguard-theme .entry-content[data-editorial-tone]:has(#mp-feature){padding:12px!important}
 #mp-feature :is(.mp-hero,.mp-brief,.mp-packet){padding:18px!important}
 #mp-feature :is(.mp-route-grid,.mp-evidence-grid,.mp-decision-grid){grid-template-columns:1fr}
 #mp-feature .mp-card{padding:16px!important}
 #mp-feature .mp-table-wrap{border:0;overflow:visible}
 #mp-feature table{display:block;min-width:0}
 #mp-feature caption{display:block}
 #mp-feature thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #mp-feature tbody{display:block}
 #mp-feature tbody tr{display:block;border:1px solid var(--ed-line);border-radius:12px;margin:14px 0;padding:10px 14px}
 #mp-feature td{display:block;padding:10px 0!important;border:0}
 #mp-feature td::before{content:attr(data-label);display:block;font-weight:700;font-size:.78rem;letter-spacing:.03em;margin-bottom:5px;color:var(--ed-text)}
 #mp-feature .mp-grid,#mp-feature .mp-input-grid,#mp-feature .mp-results-grid{grid-template-columns:1fr}
 #mp-feature .mp-stats{gap:10px}
 #mp-feature .mp-stats span{font-size:.75rem}
 #mp-feature .mp-scenarios{display:grid;grid-template-columns:1fr}
 #mp-feature .mp-jump a{font-size:.85rem}
}
/* The new homepage lead reuses the established feature layout. */
@media(min-width:1000px){html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) .hero-aside{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:801px) and (max-width:999px){html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) .hero-aside{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* First-screen model guide. Interaction works without the animation library. */
/* Swap foreground and page background together when changing themes. */
html:root body.home.aivanguard-theme {transition:none!important;}
html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) {margin:26px 0!important;transform:none!important;}
html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) .hero-grid {display:flex!important;flex-direction:column;gap:26px!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] {padding:30px!important;min-height:0!important;isolation:isolate;transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:36px;align-items:center;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] h2 {font-size:clamp(30px,3.6vw,48px)!important;margin:16px 0!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-excerpt {font-size:17px!important;line-height:1.65!important;margin-bottom:16px!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-proof {display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;}
html:root body.home.aivanguard-theme .spotlight-proof span {font-size:12px;color:#e0ece8!important;background:#1b3034;border:1px solid #506569;border-radius:99px;padding:7px 11px;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-meta {font-size:12px!important;gap:8px 14px!important;margin:16px 0!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-art {position:relative;border-radius:16px;overflow:hidden;border:1px solid #5b7373;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-art img {width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;display:block;border-radius:0;transition:transform .5s cubic-bezier(.2,.7,.2,1);}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-read {display:inline-flex;align-items:center;gap:18px;font-size:15px!important;padding:13px 22px!important;transition:background .2s ease,transform .2s ease!important;}
html:root body.home.aivanguard-theme .spotlight-read span {display:inline-block;transition:transform .2s ease;}
html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) .hero-aside {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;}
html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) .hero-aside > .meta-muted {grid-column:1/-1;margin-bottom:0!important;font-size:12px!important;}
html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) .hero-aside-card {margin:0!important;padding:20px!important;}
html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) .hero-aside-card h3 {font-size:18px!important;line-height:1.3!important;}
html:root body.home.aivanguard-theme .market-bar {margin:20px 0 34px;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai]:focus-within {transform:translateY(-4px)!important;border-color:#a0d575!important;box-shadow:0 15px 40px rgba(13,32,35,.20)!important;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] a:focus-visible {outline:3px solid #c7ff8c!important;outline-offset:5px;border-radius:6px;}
html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-read:focus-visible {outline-color:#f0f5f3!important;}
html:root body.home.aivanguard-theme .spotlight-read:focus-visible span {transform:translateX(5px);}
@media(hover:hover) and (pointer:fine) {
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai]:hover {transform:translateY(-4px)!important;background:#101e25!important;border-color:#a0d575!important;box-shadow:0 15px 40px rgba(13,32,35,.20)!important;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai]:hover .spotlight-art img {transform:scale(1.035);}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-read:hover {background:#e1ffbd!important;transform:translateY(-1px);}
 html:root body.home.aivanguard-theme .spotlight-read:hover span {transform:translateX(5px);}
 html:root body.home.aivanguard-theme :is(.hero-aside-card,.post-card):hover {transform:translateY(-4px)!important;border-color:var(--accent)!important;}
 html:root body.home.aivanguard-theme .post-card:hover .post-card-media img {transform:scale(1.03);}
}
@media(max-width:800px) {
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] {padding:22px!important;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-layout {grid-template-columns:1fr;gap:18px;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-art {grid-row:1;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-copy {display:flex;flex-direction:column;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-proof {order:1;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-meta {order:2;margin-bottom:0!important;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] h2 {font-size:clamp(29px,6vw,40px)!important;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-excerpt {font-size:16px!important;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] .spotlight-read {width:100%;justify-content:center;}
 html:root body.home.aivanguard-theme .news-hero:has([data-marketplace-ai]) .hero-aside {grid-template-columns:1fr;gap:12px!important;}
}
@media(prefers-reduced-motion:reduce) {
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai]:is(:hover,:focus-within),
 html:root body.home.aivanguard-theme :is(.hero-aside-card,.post-card):hover {transform:none!important;}
 html:root body.home.aivanguard-theme .spotlight-card[data-marketplace-ai] :is(img,.spotlight-read,.spotlight-read span) {transform:none!important;transition:none!important;}
}
