/* forced-colors.css - Windows High Contrast / forced colors: system colour keywords only, never forced-color-adjust: none; loaded last */

@media (forced-colors: active) {

/* ── 1. focus: Highlight outline everywhere ── */
:focus-visible,
.mnav-direct:focus-visible,
.dbtl-menu-item:focus-visible,
.dbtl-seg:focus-visible,
.mobile-nav-group li a:focus-visible,
.glass-icon-btn:focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 2px !important;
}

/* the skip link target gets no ring (it would be the whole page) - still right here. */
#main-content:focus { outline: none !important; }

/* the skip link has to be visible when it appears. */
.skip-link:focus {
    background: Canvas !important;
    color: CanvasText !important;
    border: 2px solid CanvasText !important;
}


/* ── 2. glass surfaces → solid with a visible border ── */
.team-nav,
.home-nav,
.mobile-nav,
.nav-minibar,
.minibar-sheet,
.nav-dropdown-content,
.a11y-panel,
.a11y-hint,
.content-card,
.glass-overlay,
.glass-name-pill,
.glass-caption,
.dbtl-menu,
.dbtl-panel,
.dots-pill,
.gallery-counter,
.card-badge,
.site-footer {
    background: Canvas !important;
    color: CanvasText !important;
    border: 1px solid CanvasText !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* home navbar background pseudo-elements have nothing to show */
.home-nav::after,
.home-nav::before { display: none !important; }


/* ── 3. cards - the edge used to be a shadow, and there is none now ── */
.team-member-clean,
.em-card,
.project-figure,
.mnav-group,
.content-table,
.project-section {
    border: 1px solid CanvasText !important;
}

/* member photos vanish here; keep the box with a border */
.member-image-bg {
    background: Canvas !important;
    border-bottom: 1px solid CanvasText !important;
}


/* ── 4. buttons and links ── */
.btn-primary,
.btn-secondary,
.a11y-trigger,
.a11y-toggle-btn,
.a11y-help-btn,
.a11y-reset-btn,
.sidebar-toggle,
.minibar-page,
.minibar-caret-btn,
.hamburger,
.pause-btn,
.glass-icon-btn,
.member-open-btn {
    background: ButtonFace !important;
    color: ButtonText !important;
    border: 1px solid ButtonBorder !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* the "Aa" trigger is round and relied on a shadow to stand out over the page. */
.a11y-trigger { border-width: 2px !important; }

/* the hamburger bars are background-color on a <span> - invisible unless set explicitly. */
.hamburger span { background: ButtonText !important; }

a { color: LinkText !important; }

/* button-like links and cards keep their surroundings' colour */
.em-card a,
.logo,
.footer-logo,
.mnav-direct,
.minibar-chip { color: CanvasText !important; }


/* ── 5. colour-only state → Highlight background ── */
[aria-current="page"],
.sidebar-link.active,
.minibar-chip.is-active,
.minibar-sheet-link.is-active,
.dbtl-menu-item[aria-selected="true"] {
    background: Highlight !important;
    color: HighlightText !important;
    forced-color-adjust: none;
}

/* checked panel switches take Highlight */
.a11y-toggle-btn[aria-checked="true"] {
    background: Highlight !important;
    color: HighlightText !important;
    forced-color-adjust: none;
}

/* the ranked bars: the length is the meaning, and there is no track to outline */
.origin-bar {
    background: Highlight !important;
    forced-color-adjust: none;
}
.origin-tag { border: 1px solid CanvasText !important; }



/* disabled buttons in GrayText */
button:disabled,
button[disabled] {
    color: GrayText !important;
    border-color: GrayText !important;
}


/* ── 6. decoration hidden (aria-hidden; the hero scene also takes its description with it) ── */
.leaves-container,
#grain-overlay,
#vignette,
.hero-scene {
    display: none !important;
}

/* hero title as clean text */
.hero h1,
.hero .hero-sub,
.hero .tagline {
    color: CanvasText !important;
    text-shadow: none !important;
}


/* ── 7. SVG icons back to currentColor ── */
svg[fill]:not([fill="none"]),
svg [fill]:not([fill="none"]) { fill: currentColor !important; }
svg [stroke]:not([stroke="none"]) { stroke: currentColor !important; }


/* ── 8. full opacity on text; hierarchy stays in size and weight ── */
p, li, dd, dt, span, figcaption, .member-role, .footer-brand p,
.project-intro-text, .content-block-text, .a11y-toggle-label {
    opacity: 1 !important;
}

/* the ruler's dimming is a shadow, which is dropped here; edge lines mark the strip instead */
.a11y-ruler {
    box-shadow: none !important;
    border-block: 3px solid Highlight !important;
}

}   /* ── end @media (forced-colors: active) ── */
