/* ==========================================================================
   NTPC Sachetan - GIGW 3.0 / DBIM accessibility & UI support layer
   --------------------------------------------------------------------------
   This file is ADDITIVE. It does not replace or override existing component
   styles (Bootstrap, side_navbar, admin_login, or inline page styles).
   Official brand tokens marked "NEEDS VERIFICATION" must be confirmed against
   the approved NTPC DBIM before final values are locked.
   ========================================================================== */

:root {
    /* NEEDS VERIFICATION: replace with official NTPC DBIM brand colours */
    --ntpc-focus: #ffbf47;          /* high-visibility focus ring */
    --ntpc-link: #005ea8;           /* accessible link colour on white */
    --ntpc-text: #1a1a1a;
    --ntpc-border: #d0d5dd;
    --ntpc-footer-bg: #f4f6f8;
}

/* --- Skip to main content (keyboard users) -------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: #ffffff;
    color: var(--ntpc-link);
    padding: 10px 16px;
    border: 2px solid var(--ntpc-focus);
    border-radius: 0 0 4px 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
    outline: 3px solid var(--ntpc-focus);
    outline-offset: 2px;
}

/* --- Visible keyboard focus (WCAG 2.4.7) ---------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--ntpc-focus);
    outline-offset: 2px;
}

/* --- Keep layout stable when the <main> landmark is introduced ------------ */
.wrapper > main {
    flex: 1 1 auto;
    min-width: 0;
}

/* --- Footer baseline (content must come from official sources) ------------ */
.ntpc-footer {
    background: var(--ntpc-footer-bg);
    color: var(--ntpc-text);
    border-top: 1px solid var(--ntpc-border);
    padding: 16px 0;
    font-size: 0.875rem;
}
.ntpc-footer a {
    color: var(--ntpc-link);
}
.ntpc-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.ntpc-footer ul li {
    display: inline-block;
    margin-right: 16px;
}

/* --- Reduced motion (WCAG 2.3.3) ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Utility: visually hidden but screen-reader accessible ---------------- */
.ntpc-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
