/* CORVASEC Security Tools v2 — FIX18 readability, 2026-09-23.
   Scoped to the FIX17 directory and its detail/collection/submission pages.
   Explicit tokens prevent host theme --text / --surface collisions. */
html[data-theme="dark"] .cv-tools-v2,
html:not([data-theme="light"]) .cv-tools-v2 {
  --cv-accent:#41bbff;
  --cv-line:#31536a;
  --cv-panel:#102330;
  --cv-panel2:#142e40;
  --cv-text:#f2f8fe;
  --cv-muted:#bacdda;
  --cv-field:#0c202e;
  --cv-pill:#243e50;
  --cv-pill-line:#45657a;
  --cv-outline:#75ccff;
  color:var(--cv-text);
  background:#091923;
}
html[data-theme="light"] .cv-tools-v2 {
  --cv-accent:#006eb9;
  --cv-line:#c5d9e6;
  --cv-panel:#fff;
  --cv-panel2:#eaf5fc;
  --cv-text:#142a3b;
  --cv-muted:#475e70;
  --cv-field:#fff;
  --cv-pill:#edf3f7;
  --cv-pill-line:#ccdae4;
  --cv-outline:#006eb9;
  color:var(--cv-text);
  background:#f5faff;
}
/* Reset theme-level typography that incorrectly applies dark ink to the dark directory. */
.cv-tools-v2 :is(h1,h2,h3,h4),
.cv-tools-v2 :is(.cv-featured-v2-card,.cv-directory-v2-card,.cv-collection-card,.cv-detail-panel,.cv-detail-aside-card,.cv-simple-hero,.cv-profile-hero,.cv-empty) :is(h1,h2,h3,h4),
.cv-tools-v2 :is(.cv-profile-identity,.cv-directory-v2-card__body) strong {
  color:var(--cv-text)!important;
  opacity:1!important;
}
.cv-tools-v2 .cv-tools-hero h1 em {color:var(--cv-accent)!important}
.cv-tools-v2 :is(.cv-tools-section__head>div>span,.cv-eyebrow,.cv-detail-kicker,.cv-tool-card__badge) {color:var(--cv-accent)!important;opacity:1!important}
.cv-tools-v2 :is(.cv-tools-hero p,.cv-simple-hero p,.cv-tools-section__head p,.cv-featured-v2-card p,.cv-directory-v2-card p,.cv-collection-card p,.cv-profile-identity p,.cv-detail-panel p,.cv-detail-panel li,.cv-detail-aside-card,.cv-detail-disclaimer,.cv-resources-footnote,.cv-tools-results-row,.cv-tools-hero__meta,.cv-tool-suggest-form label,.cv-resources-crumbs) {color:var(--cv-muted)!important;opacity:1!important}
.cv-tools-v2 :is(.cv-tools-hero,.cv-simple-hero,.cv-featured-v2-card,.cv-directory-v2-card,.cv-collection-card,.cv-tools-controls,.cv-profile-hero,.cv-detail-panel,.cv-detail-aside-card,.cv-tool-suggest-form) {
  border-color:var(--cv-line);
  color:var(--cv-text);
  opacity:1;
}
.cv-tools-v2 :is(.cv-featured-v2-card,.cv-directory-v2-card,.cv-collection-card,.cv-tools-controls,.cv-simple-hero,.cv-profile-hero,.cv-detail-panel,.cv-detail-aside-card,.cv-tool-suggest-form){background:var(--cv-panel)}
.cv-tools-v2 .cv-tools-hero {background:linear-gradient(125deg,var(--cv-panel2),var(--cv-panel));}
/* Links and actions: clear in both themes and recognizable independent of hover. */
.cv-tools-v2 :is(.cv-resources-crumbs a,.cv-tools-hero__meta a,.cv-tools-section__head>a,.cv-featured-v2-card strong,.cv-directory-v2-card__cta,.cv-collection-card strong,.cv-directory-v2-card__arrow) {color:var(--cv-accent)!important;opacity:1!important}
.cv-tools-v2 :is(.cv-featured-v2-card>a,.cv-directory-v2-card>a,.cv-collection-card,.cv-detail-related,.cv-detail-button--secondary) {color:var(--cv-text)!important}
.cv-tools-v2 .cv-detail-button--primary,.cv-tools-v2 .cv-tool-suggest-form button{background:var(--cv-accent);color:#051724!important;border-color:var(--cv-accent)}
/* Improved search, chips, filters and pagination: a selected item remains legible. */
.cv-tools-v2 .cv-tools-search {background:var(--cv-field);border-color:var(--cv-outline)}
.cv-tools-v2 .cv-tools-search input,.cv-tools-v2 .cv-tool-suggest-form :is(input,textarea){color:var(--cv-text)!important;background:var(--cv-field)!important}
.cv-tools-v2 :is(input,textarea)::placeholder {color:var(--cv-muted)!important;opacity:1}
.cv-tools-v2 .cv-tools-search kbd {color:var(--cv-text);background:var(--cv-pill)}
.cv-tools-v2 :is(.cv-tool-filter,.cv-view-toggle button,.cv-clear-filters,.cv-tools-pagination button) {color:var(--cv-text)!important;border-color:var(--cv-line);background:var(--cv-panel2)}
.cv-tools-v2 :is(.cv-tool-filter,.cv-view-toggle button,.cv-tools-pagination button).is-active {color:var(--cv-text)!important;background:var(--cv-pill);border-color:var(--cv-accent);box-shadow:inset 0 -2px 0 var(--cv-accent)}
.cv-tools-v2 .cv-tools-filterbar label {color:var(--cv-muted)!important}
.cv-tools-v2 .cv-tools-filterbar select {background:var(--cv-field)!important;color:var(--cv-text)!important;border-color:var(--cv-line)}
.cv-tools-v2 .cv-tools-filterbar select option {background:var(--cv-panel);color:var(--cv-text)}
.cv-tools-v2 .cv-tool-meta-pills span {color:var(--cv-text)!important;background:var(--cv-pill)!important;border-color:var(--cv-pill-line)!important;opacity:1}
.cv-tools-v2 :is(.cv-results-counter,#cvResultsCounter,.cv-resources-crumbs strong,.cv-detail-aside-card dd,.cv-detail-related strong){color:var(--cv-text)!important}
.cv-tools-v2 :is(.cv-detail-related small,.cv-detail-aside-card dt){color:var(--cv-muted)!important}
/* Keyboard navigation remains usable and visible on both themes. */
.cv-tools-v2 :is(a,button,input,select,textarea):focus-visible {outline:2px solid var(--cv-outline)!important;outline-offset:3px!important}
.cv-tools-v2 :is(.cv-featured-v2-card,.cv-directory-v2-card,.cv-collection-card):focus-within {border-color:var(--cv-accent);box-shadow:0 0 0 1px var(--cv-accent)}
@media (prefers-reduced-motion:reduce){.cv-tools-v2 :is(.cv-featured-v2-card,.cv-directory-v2-card,.cv-collection-card){transition:none;transform:none}}
