/* Persistent V8 accessibility layer, loaded after generated styles. */
:root[data-v7-theme="light"]{--quality-text:#101D35;--quality-muted:#334155;--quality-link:#07675E;--quality-panel:#FFFFFF;--quality-tile:#E8EFF9;--quality-focus:#2855A5}
:root[data-v7-theme="dark"]{--quality-text:#F1F6FF;--quality-muted:#CBD5E1;--quality-link:#65E8D5;--quality-panel:#14243D;--quality-tile:#1A2B46;--quality-focus:#F9C76A}
html[data-v7-theme] .hero-art:has(.v8-portal){position:relative;isolation:isolate;display:block!important;min-width:0;overflow:visible}
html[data-v7-theme] .hero-art:has(.v8-portal)::before,html[data-v7-theme] .hero-art:has(.v8-portal)::after{pointer-events:none!important;z-index:-1!important}
html[data-v7-theme] .v8-portal{position:relative;z-index:2;isolation:isolate;pointer-events:auto;background:var(--quality-panel);color:var(--quality-text)}
html[data-v7-theme] .v8-portal::before,html[data-v7-theme] .v8-portal::after,html[data-v7-theme] .v8-tile::before,html[data-v7-theme] .v8-tile::after{pointer-events:none!important}
html[data-v7-theme] :is(.v8-tile,.hub-tile){position:relative;isolation:isolate;pointer-events:auto;min-height:100px;background:var(--quality-tile);color:var(--quality-text);text-decoration:none;cursor:pointer;gap:6px;transition:background-color .15s,border-color .15s}
html[data-v7-theme] :is(.v8-tile,.hub-tile)>*{pointer-events:none}
html[data-v7-theme] :is(.v8-tile,.hub-tile):hover,html[data-v7-theme] :is(.v8-tile,.hub-tile)[aria-current]{border-color:var(--quality-link);color:var(--quality-link);background:var(--quality-panel)}
html[data-v7-theme] :is(.v8-tile,.hub-tile,.v8-search-button,.v8-link):focus-visible{outline:3px solid var(--quality-focus);outline-offset:3px}
html[data-v7-theme] :is(.v8-tile,.hub-tile):active{border-color:var(--quality-link);box-shadow:inset 0 0 0 1px var(--quality-link)}
html[data-v7-theme] .v8-tile-icon{display:grid;place-items:center;width:36px;height:36px;color:var(--quality-link)}
html[data-v7-theme] :is(.v8-tile-icon,.hub-tile) svg{display:block;width:28px;height:28px;flex-shrink:0;color:var(--quality-link)}
html[data-v7-theme] .hub-tile{display:flex;flex-direction:column;align-items:center;justify-content:center}
html[data-v7-theme] .v8-tile strong{font-size:15px}
html[data-v7-theme] :is(.v8-tile small,.v8-portal p,.v8-portal-footer,.v8-discover-cards span){color:var(--quality-muted);opacity:1}
html[data-v7-theme] :is(.v8-portal-kicker,.v8-portal-footer a,.v8-discover-shortcuts a){color:var(--quality-link)}
/* Explicit semantic foregrounds prevent stale dark-mode tokens bleeding into light cards. */
html[data-v7-theme] :is(.news-article,.news-card,.editorial-story,.pre-news-row,.en-news-card){background:var(--quality-panel);color:var(--quality-text)}
html[data-v7-theme] :is(.news-article h2,.news-article h2 a,.news-card h2,.news-card h3,.editorial-headline,.editorial-headline-link,.pre-news-row h3,.pre-news-row h3 a,.en-news-card h3,.en-news-card h3 a){color:var(--quality-text);opacity:1}
html[data-v7-theme] :is(.original-news-title,.translation-disclaimer,.editorial-original-headline,.editorial-translation-label,.pre-news-original,.pre-news-date,.editorial-story-meta,.news-article p,.news-article small,.news-article time,.en-news-card p,.en-news-card time,.en-news-card .en-product-meta,.news-card p,.news-card small){color:var(--quality-muted)!important;opacity:1!important;font-family:var(--font-primary,"IBM Plex Sans Arabic",Arial,sans-serif);font-size:14px!important;line-height:1.8;font-weight:500}
html[data-v7-theme] :is(.original-news-title,.editorial-original-headline,.pre-news-original){font-size:15px!important}
html[data-v7-theme] :is(.news-article,.editorial-story,.pre-news-row,.en-news-card) :is(h2,h3) a:hover{color:var(--quality-link)}
html[data-v7-theme] :is(.hub-desc,.hub-note,.hub-meta,.hub-category,.hub-license,.hub-ranking,.hub-disclaimer,.windows-tool-description,.vendor-tool-grid .directory-card p,.vendor-tool-grid .en-product-card p){color:var(--quality-muted)!important;opacity:1}
html[data-v7-theme] :is(.hub-desc,.windows-tool-description,.vendor-tool-grid .directory-card p,.vendor-tool-grid .en-product-card p){font-size:16px!important;line-height:1.9}
@media(max-width:820px){html[data-v7-theme] #home .hero-art:has(.v8-portal){display:block!important;width:100%;max-width:100%}html[data-v7-theme] .v8-portal{max-width:100%}html[data-v7-theme] :is(.v8-tile,.hub-tile){min-height:92px}}
@media(max-width:420px){html[data-v7-theme] .v8-tile strong{font-size:13px}html[data-v7-theme] .v8-tiles{gap:6px}}
@media(prefers-reduced-motion:reduce){html[data-v7-theme] :is(.v8-tile,.hub-tile){transition:none}}
