/* =========================================================
   Accessibility overrides (WCAG 2.1 AA). Loaded after style.css.
   Colours below were chosen to meet 4.5:1 for text and 3:1 for
   UI component boundaries and large text.
========================================================= */

:root {
    --a11y-navy: #010558;
    --a11y-blue: #0b5c99;      /* white text 6.99:1 */
    --a11y-link: #01178b;      /* 14.03:1 on white */
    --a11y-red: #d6143f;       /* white text 5.21:1 */
    --a11y-error: #b00020;
    --a11y-border: #767676;    /* 4.54:1 on white */
    --a11y-focus: #1a1a1a;
}

/* ---------- 2.4.1 Bypass blocks: skip link ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100000;
    padding: .75rem 1.25rem;
    background: var(--a11y-navy);
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
}
.skip-link:focus {
    top: 1rem;
    color: #fff;
}
#main-content:focus {
    outline: none;
}

/* ---------- 2.4.7 Focus visible ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
dialog:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.form-control:focus,
.form-select:focus,
.btn:focus-visible {
    outline: 3px solid var(--a11y-focus) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px #fff !important;
}
footer a:focus-visible,
.copyright a:focus-visible,
.login a:focus-visible,
.partner a:focus-visible,
.back-to-top:focus-visible {
    outline-color: #fff !important;
    box-shadow: 0 0 0 6px var(--a11y-navy) !important;
}
dialog.notice-dialog:focus-visible {
    outline-offset: -6px !important;
    box-shadow: none !important;
}

/* ---------- Colour contrast (1.4.3 / 1.4.11) ---------- */
.footer {
    background-image: linear-gradient(var(--a11y-navy), var(--a11y-blue));
}
.login,
.page-header {
    background-image: linear-gradient(var(--a11y-navy), var(--a11y-blue));
}
.red-bg,
.btn-primary {
    background: var(--a11y-red);
    border-color: var(--a11y-red);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
    background: #00008b;
    border-color: #00008b;
    color: #fff;
}
.btn-primary.sch {
    background-image: linear-gradient(#fdcc96, #fcb197);
    color: #000;
    border-color: #fcb197;
}
.text-red {
    color: var(--a11y-link);
}
.highlight .text-white {
    color: #1a1a1a !important;
}
.facts .border {
    background: rgba(1, 5, 88, .85);
}
.partner-content {
    background: rgba(1, 5, 88, .85);
    padding: 1.5rem 1rem .25rem;
}
.footer-disclosure {
    color: #595959;
    font-size: .875rem;
}
.footer-notice {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--a11y-link);
    background: #f2f5ff;
    color: #01178b;
    font-weight: 600;
}
.footer-notice p:last-child {
    margin-bottom: 0;
}
/* Inputs need a 3:1 boundary against the page */
.form-control,
.form-select {
    border-color: var(--a11y-border);
}
.form-floating > label {
    color: #595959;
}
/* Bootstrap fades the floated label to 65% opacity (about 3.2:1) - keep it at full strength (1.4.3) */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control:-webkit-autofill ~ label,
.form-floating > .form-select ~ label {
    opacity: 1;
}

/* Default theme link colour (#ff5e14) is 3.05:1 on white. :where() keeps specificity at zero so
   component rules (tiles, buttons, footer) still win. */
:where(main, dialog) a {
    color: var(--a11y-link);
}
/* Theme hover colour #cc4b10 is 4.0:1 - keep link states at AA too (1.4.3) */
:where(main, dialog) a:hover,
:where(main, dialog) a:focus {
    color: #00008b;
}

/* Current page in the menu: underline as well as colour (1.4.1) */
.navbar .navbar-nav .nav-link.active {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

/* Footer arrow icons come from CSS content; give them empty alt text so they are not
   read as part of the link name (1.1.1, 2.5.3) */
.footer .btn.btn-link::before {
    content: "\f105";
    content: "\f105" / "";
}

/* ---------- 1.4.1 Use of colour: links inside text are underlined ---------- */
main p a,
main li a:not(.btn):not(.nav-link),
main td a,
.investor-link-ax92,
.notice-dialog a {
    text-decoration: underline;
}
.notice-dialog-dark a {
    color: #fff;
}

/* Headings re-levelled for a correct outline keep their old look via .hN classes;
   style.css only gives the Josefin font to h1-h4 elements, so mirror it for the classes. */
.h1,
.h2,
.h3,
.h4 {
    font-family: 'Josefin Sans', sans-serif;
}

/* ---------- Quick-access tiles and "Read more" (previously headings / nested button) ---------- */
.login a {
    display: block;
    color: #fff;
    text-decoration: none !important;
}
.login .circle3 {
    display: block;
}
.login .login-title {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}
a.read {
    display: inline-block;
    text-decoration: none;
}
.team-item p.h5 {
    font-size: 1.25rem;
    font-weight: 500;
}
.custom-pay-upi-id {
    overflow-wrap: anywhere;
}

/* ---------- Data tables: scrollable regions are keyboard focusable (2.1.1) ---------- */
.table-responsive:focus-visible {
    outline-offset: 0 !important;
}
.table caption {
    caption-side: top;
}

/* ---------- Investor notice dialogs (native <dialog>) ---------- */
dialog.notice-dialog {
    width: min(900px, calc(100vw - 2rem));
    max-width: none;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 3.5rem 1.25rem 1.25rem;
    border: 3px solid #b03233;
    border-radius: 6px;
    background: #fff;
    color: #000;
}
dialog.notice-dialog-wide {
    width: min(1100px, calc(100vw - 2rem));
}
dialog.notice-dialog-dark {
    background: #01075d;
    color: #fff;
}
/* Page behind an open notice does not scroll */
html:has(dialog.notice-dialog[open]) {
    overflow: hidden;
}
dialog.notice-dialog::backdrop {
    background: rgba(0, 0, 0, .6);
}
.notice-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
    padding: .25rem 1rem;
    border: 2px solid #fff;
    border-radius: 22px;
    background: #b03233;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.notice-close span {
    font-size: 1.5rem;
    line-height: 1;
}
.notice-close:hover {
    background: #7d1f20;
}
.notice-dialog .new-info3 img,
.notice-dialog img {
    max-width: 100%;
    height: auto;
}
.notice-dialog-dark .new-info h2,
.notice-dialog-dark .new-info h4,
.notice-dialog-dark .new-info p,
.notice-dialog-dark .new-info li {
    color: #fff;
}

/* Awareness topic tabs */
.dts-sidebar-item[aria-selected="true"] {
    background: #056995;
    color: #fff;
}
.dts-language-btn {
    border-color: #767676;
    font-size: 13px;
}
.dts-language-btn[aria-pressed="true"] {
    background: #056995;
    border-color: #056995;
    color: #fff;
}
.dts-page-title {
    color: #333;
    font-size: 28px;
}
@media screen and (max-width: 700px) {
    /* Wrap the topic tabs instead of scrolling them sideways (1.4.10) */
    .dts-sidebar {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .dts-sidebar-item {
        flex: 1 1 140px;
        width: auto;
        min-width: 0;
    }
    .dts-sidebar-item.dts-sidebar-active::after {
        display: none;
    }
}

/* ---------- Forms ---------- */
.form-instructions {
    margin-bottom: 1rem;
}
.required-marker {
    color: var(--a11y-error);
    font-weight: 700;
}
.field-error {
    margin: .25rem 0 0;
    color: var(--a11y-error);
    font-weight: 600;
}
.field-error::before {
    content: "\26A0\FE0E  ";
}
.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"] {
    border: 2px solid var(--a11y-error);
}
.form-error-summary {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 3px solid var(--a11y-error);
    background: #fff;
    color: #1a1a1a;
}
.form-error-summary a {
    color: var(--a11y-error);
    font-weight: 600;
}
.form-status:empty {
    /* kept in the accessibility tree (not display:none) so updates are announced */
    margin: 0;
    padding: 0;
    border: 0;
}
.form-status {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border: 2px solid var(--a11y-border);
    color: #1a1a1a;
}
.form-status-success {
    border-color: #1e6b34;
    color: #1e6b34;
    font-weight: 600;
}
.form-status-error {
    border-color: var(--a11y-error);
    color: var(--a11y-error);
    font-weight: 600;
}
.captcha-error {
    margin-top: .5rem;
}

/* ---------- Download / document lists ---------- */
.pdf h3 {
    font-size: 16px;
}
.download-content .dwn-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* ---------- Reflow (1.4.10) and text spacing (1.4.12) ---------- */
img,
video,
iframe {
    max-width: 100%;
}
.navbar.pe-5 {
    padding-right: 0 !important;
}
.useful-links ul,
.Other-links ul {
    margin-bottom: .5rem;
}
.useful-links .list-inline-item {
    margin-right: 0;
}
.useful-links a {
    display: inline-block;
    padding: 0 5px;
    color: #fff;
    border-right: 1px solid #fff;
    font-weight: 500;
    font-size: 14px;
}
.useful-links p {
    margin-bottom: .25rem;
}
td,
th,
p,
li {
    overflow-wrap: break-word;
}
/* reCAPTCHA renders at a fixed 304px; scale it so 320px screens do not scroll sideways */
@media (max-width: 359.98px) {
    .g-recaptcha {
        transform: scale(.88);
        transform-origin: 0 0;
        height: 69px;
    }
}
@media (max-width: 575.98px) {
    .download-content {
        flex-wrap: wrap;
    }
    .partner-content {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}
/* At high zoom a sticky header covers most of the viewport */
@media (max-height: 500px) {
    .sticky-top {
        position: static;
    }
}

/* ---------- Motion: respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .partner,
    .facts {
        background-attachment: scroll;
    }
}
