/* =========================================================================
   Kivah Advisors – Accessibility Fixes (WCAG 2.1 AA)
   Front-end remediation for the EnableUser / BrowserStack site-scanner audit
   (Build #1, 07 Jul 2026).  Only colour, ARIA and label helpers are added —
   no page copy is rewritten and layout/spacing is left intact.  Every colour
   below is the closest accessible tone to the original so the look is kept.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1.4.3 Contrast (Minimum) — body & general content text
   Original #7a7a7a on #ffffff = 4.29:1 (FAIL).  -> #6a6a6a ≈ 5.5:1 (PASS)
   ---------------------------------------------------------------------- */
.gdlr-core-text-box-item-content,
.gdlr-core-text-box-item-content p,
.gdlr-core-text-box-item-content li,
.gdlr-core-text-box-item-content span:not([style*="color"]),
.gdlr-core-text-box-item-content strong,
.gdlr-core-column-service-content,
.gdlr-core-column-service-content p,
.gdlr-core-blog-content,
.gdlr-core-blog-content p,
.gdlr-core-blog-info-wrapper,
.financity-blog-content,
.financity-blog-content p,
.financity-content-area p,
.financity-single-article p {
	color: #6a6a6a !important;
}

/* -------------------------------------------------------------------------
   1.4.3 Contrast — data tables (SEBI disclosures)
   Body cells: #949494/#636363 on #f3f3f3 was failing -> #4d4d4d ≈ 7:1 (PASS)
   ---------------------------------------------------------------------- */
.gdlr-core-text-box-item-content table td,
.gdlr-core-text-box-item-content table td p,
.gdlr-core-text-box-item-content table td span,
.financity-content-area table td,
.financity-content-area table td p {
	color: #4d4d4d !important;
}

/* -------------------------------------------------------------------------
   1.4.3 Contrast — table HEADER cells sit on the brand-blue #3740b0 fill.
   Dark text on that blue was only 1.38:1.  White text -> ≈ 8.6:1 (PASS)
   and keeps the exact same blue header design.
   ---------------------------------------------------------------------- */
.gdlr-core-text-box-item-content table th,
.gdlr-core-text-box-item-content table th p,
.gdlr-core-text-box-item-content table th span,
.gdlr-core-text-box-item-content table th strong,
.gdlr-core-text-box-item-content table th a,
.financity-content-area table th,
.financity-content-area table th p,
.financity-content-area table th span {
	color: #ffffff !important;
}

/* -------------------------------------------------------------------------
   1.4.3 Contrast — title / image captions
   Original #747474 on #f3f3f3 = 4.21:1 (FAIL) -> #5f5f5f (PASS)
   ---------------------------------------------------------------------- */
.gdlr-core-title-item-caption,
.gdlr-core-title-item-caption.gdlr-core-info-font {
	color: #5f5f5f !important;
}

/* -------------------------------------------------------------------------
   1.4.3 Contrast — comment form label ("Save my name, email…")
   Original #7a7a7a on #f3f3f3 = 3.86:1 (FAIL) -> #595959 ≈ 5:1 (PASS)
   ---------------------------------------------------------------------- */
#commentform label,
.comment-form-cookies-consent label,
.financity-comment-wrapper label,
.financity-content-area .comment-form label {
	color: #595959 !important;
}

/* -------------------------------------------------------------------------
   1.4.3 Contrast — comment fields whose background axe could not resolve
   (partially obscured).  Give them an explicit solid background + dark text.
   ---------------------------------------------------------------------- */
#comment,
#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
	background-color: #ffffff !important;
	color: #333333 !important;
}

/* -------------------------------------------------------------------------
   1.4.3 Contrast — footer copyright on the dark (#282828) bar
   Original #838383 = 3.88:1 (FAIL) -> #aaaaaa ≈ 6.2:1 (PASS)
   ---------------------------------------------------------------------- */
.financity-copyright-wrapper,
.financity-copyright-wrapper p,
.financity-copyright-left,
.financity-copyright-left a,
.financity-copyright-right,
.financity-copyright-right a,
.financity-footer-wrapper .gdlr-core-text-box-item-content {
	color: #aaaaaa !important;
}

/* -------------------------------------------------------------------------
   1.4.3 Contrast — orange hover-box titles (large bold text → 3:1 needed)
   Original #f17d44 on #ffffff = 2.7:1 (FAIL) -> #d35400 ≈ 4.1:1 (PASS)
   ---------------------------------------------------------------------- */
.gdlr-core-hover-box-title,
.gdlr-core-hover-box-title.gdlr-core-skin-title {
	color: #d35400 !important;
}

/* -------------------------------------------------------------------------
   1.4.3 Contrast — top navigation menu.
   The header is transparent and, on inner pages, sits over the page-title
   photo.  axe cannot read an image so it falls back to the white page body,
   scoring the light-blue menu text ~2.2:1.  We add a solid dark-navy scrim
   (matching the existing dark-blue banner) BEHIND the menu bar so the light
   menu text scores ≈ 6:1.  The home page keeps its transparent header
   (its white menu already passes), so nothing changes there.
   ---------------------------------------------------------------------- */
body:not(.home) .financity-header-wrap,
body:not(.home) .financity-navigation-bar-wrapper {
	background-color: #232c52 !important;
}

/* -------------------------------------------------------------------------
   2.4.4 Link Purpose / 1.4.1 Use of Colour — in-content links
   Links inside body text are underlined so they are distinguishable by more
   than colour alone.  Buttons / CTAs are excluded.
   ---------------------------------------------------------------------- */
.gdlr-core-text-box-item-content a:not(.gdlr-core-button):not([class*="gdlr-core-button"]):not([class*="-button"]):not(.rev-btn),
.gdlr-core-column-service-content a:not(.gdlr-core-button),
.financity-content-area .gdlr-core-text-box-item-content a:not(.gdlr-core-button),
.financity-single-article a:not(.gdlr-core-button) {
	text-decoration: underline !important;
}
.gdlr-core-text-box-item-content a.gdlr-core-button,
.gdlr-core-text-box-item-content a[class*="gdlr-core-button"],
.gdlr-core-text-box-item-content a[class*="-button"] {
	text-decoration: none !important;
}

/* -------------------------------------------------------------------------
   2.4.1 Bypass Blocks — "Skip to main content" link.
   Hidden until it receives keyboard focus, then it appears top-left.
   ---------------------------------------------------------------------- */
.kivah-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200000;
	display: inline-block;
	padding: 12px 20px;
	background: #232c52;
	color: #ffffff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border-radius: 0 0 6px 0;
}
.kivah-skip-link:focus {
	left: 0;
	outline: 3px solid #d35400;
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   3.3.2 Labels — visible labels injected for the Contact (CF7) and comment
   forms.  Kept small and tidy so they sit cleanly above each field.
   ---------------------------------------------------------------------- */
.kivah-a11y-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 5px;
	color: #333333;
}
.kivah-a11y-label .kivah-req {
	color: #d35400;
}

/* Utility: content that is exposed to assistive tech but visually hidden. */
.kivah-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* -------------------------------------------------------------------------
   2.4.7 Focus Visible (defensive hardening) — clear keyboard focus ring.
   ---------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
rs-bullet:focus-visible {
	outline: 3px solid #d35400 !important;
	outline-offset: 2px !important;
}
