/**
 * Accessibility fixes — preserves visual design while meeting WCAG basics.
 * Load after site styles so overrides apply.
 */

/* ----- Skip link ----- */
.skip-link,
.a11y-skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 2147483647;
  padding: 12px 16px;
  background: #001e38;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid #ffb724;
}
.skip-link:focus,
.skip-link:focus-visible,
.skip-link:active,
.a11y-skip-link:focus,
.a11y-skip-link:focus-visible,
.a11y-skip-link:active {
  position: fixed;
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
}

/* ----- Screen-reader only (replaces display:none SEO text) ----- */
.sr-only,
.visually-hidden {
  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;
}

/* ----- Visible focus (overrides outline:none) ----- */
:focus {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
}
:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
}
/* Beat Bootstrap a:focus { outline: -webkit-focus-ring-color auto; outline-offset: -2px } */
a:focus,
a:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-width: 3px !important;
  outline-style: solid !important;
  outline-color: #2563eb !important;
  outline-offset: 2px !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.mobnavbtn:focus-visible,
.quicklink:focus-visible,
#btnquicklogin:focus-visible,
.backtotop a:focus-visible,
.toolbox span:focus-visible,
#accessIcon:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #ffffff;
}

/* Dark backgrounds: stronger focus ring */
.navbluebg a:focus-visible,
.footer a:focus-visible,
.social a:focus-visible,
.attInves b:focus-visible,
.quicklogin a:focus-visible,
.quicksub:focus-visible {
  outline-color: #2563eb !important;
}

/* ----- Touch / click targets (min 24×24, prefer 44×44) ----- */
a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
select,
.mobnavbtn,
.backtotop a,
#btnquicklogin,
.attInves b,
.social a,
.toolbox span,
#accessIcon,
#accessWrap button,
.close-pop-up,
.modal .close,
.fs-pager-wrapper a,
.fraction-slider .prev,
.fraction-slider .next {
  min-width: 24px;
  min-height: 24px;
}
.mobnavbtn,
#accessIcon,
.toolbox span,
.toolbox button,
.close-pop-up,
.backtotop a,
#btnquicklogin,
.attInves b,
.social a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
button.mobnavbtn {
  border: 0;
  background: transparent;
  padding: 4px;
  appearance: none;
  -webkit-appearance: none;
}
/* Inline text links must use non-inline display for min-height to count */
.bredcrum a,
.bredcrum span > a,
.footer a,
.footer p a,
.wdsupport a,
.callsup a,
.emailsup a,
.reqcallbak a,
.staticwrapper a,
.paddginnerhd a,
.contentdata a,
.faq a,
.leftmenu a,
#leftdiv a,
#cssmenuinner a,
.mre a,
.hmenewsitem a,
a[id^="knwmre"],
.innerlogin a:not(#btnquicklogin) {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  min-width: 24px !important;
  padding: 2px 4px !important;
  box-sizing: border-box !important;
}
.logo > a,
p.logo > a,
h1.logo > a {
  display: inline-block !important;
  line-height: 0 !important;
  min-height: 24px !important;
  min-width: 24px !important;
}
.logo > a img,
p.logo > a img,
h1.logo > a img {
  display: block;
  height: auto;
  min-height: 24px;
}
button.close-pop-up {
  font-weight: 900;
  z-index: 10000;
  background-color: #fff;
  color: #001e38;
  font-size: 24px;
  padding: 8px 14px;
  top: 10px;
  right: 10px;
  position: fixed;
  cursor: pointer;
  border: 2px solid #001e38;
  border-radius: 4px;
}
#accessIcon {
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 4px;
  line-height: 1.1;
}
.navbluebg > ul > li > a {
  min-height: 44px;
  padding: 12px 10px;
  box-sizing: border-box;
}
.smallnav > ul > li > a {
  min-height: 44px;
  padding: 12px 10px;
  line-height: 1.3;
  box-sizing: border-box;
}
.bigdropdiv > ul > li > a {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 12px 8px 12px 4px !important;
  line-height: 1.35;
  box-sizing: border-box;
  position: relative;
}
.bigdropdiv > ul > li > a > em {
  position: static !important;
  left: auto !important;
  top: auto !important;
  display: inline-block !important;
  flex: 0 0 auto;
  align-self: center;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border-left: 5px solid #013c70 !important;
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  border-right: 0 !important;
}
.bigdropdiv > ul > li > a:hover {
  padding-left: 8px !important;
}
.quicklogin > a,
.quicklogin > select {
  min-height: 44px;
  line-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}
.howcansearch > a {
  min-width: 44px;
  min-height: 44px;
  text-indent: 0 !important;
  overflow: hidden;
  position: relative;
}
.howcansearch > a::after {
  content: "Search";
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* First slide uses h1 — match h2 slide typography + Know more button */
.slide > h1,
.slide > h2,
.fs_obj.fs_obj_active {
  font-family: "open_sansbold", Arial, sans-serif !important;
  font-weight: 400 !important;
  margin: 0 !important;
  padding: 10px 0 0 10px !important;
  font-size: 30px !important;
  line-height: 30px !important;
  display: block !important;
  width: 80% !important;
  color: #395362 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}
.slide > h1 > span,
.slide > h2 > span,
.fs_obj.fs_obj_active > span {
  display: block !important;
  font-size: 20px !important;
  line-height: 24px !important;
  font-family: "open_sanssemibold", Arial, sans-serif !important;
  color: #ffffff !important;
  padding: 15px 230px 0 0 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.45);
}
.slide > h1 > a,
.slide > h2 > a,
.fs_obj.fs_obj_active > a {
  display: block !important;
  font-family: "open_sanssemibold", Arial, sans-serif !important;
  width: auto !important;
  min-width: 110px !important;
  max-width: 160px !important;
  margin: 15px 0 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  line-height: 44px !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  color: #395463 !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  text-align: center !important;
  text-decoration: none !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

/* ----- Contrast improvements (design-preserving) ----- */
/* Do NOT force body/footer to near-black — footer sits on light footerbg.png */
body {
  color: #001e38;
}
.bredcrum,
.bredcrum a,
.innerlogin .logintxt {
  color: #001e38 !important;
}
.quicklogin {
  background-color: #4f6c90 !important;
}
.howcansearch,
a.quicklink,
.hmenewsitem > div > h2,
.eqrowborder > div > h2,
.commonbtmcntrl,
.wdsupport,
.eqtgl ul > li.act,
.eqtgl ul > li:hover,
.btn-default1,
.btn-default1:hover,
.btn-default1:focus,
.btn-default1:active,
.btn-default1.active,
.loadMoreMF,
.screenerbtn,
.subbtn,
.curtgl ul > li.act,
.curtgl ul > li:hover,
.ipotgl ul > li.act,
.ipotgl ul > li:hover,
.MFloadmrbtn,
.careerpages,
.manageaccnt,
#addstock input[type="button"],
#addstock input[type="reset"],
a.cmnbtns {
  background-color: #4f6c90 !important;
}
.staticwrapper {
  color: #4f4f4f !important;
}
.staticwrapper h1,
.staticwrapper h2,
.staticwrapper h3,
.staticwrapper h4,
.staticwrapper h5,
.staticwrapper h6,
.staticwrapper [style*="color: #60799e"],
.staticwrapper [style*="color:#60799e"] {
  color: #425f87 !important;
}
.staticwrapper [style*="color: #ffb724"],
.staticwrapper [style*="color:#ffb724"] {
  color: #765000 !important;
  font-weight: 700;
}
button,
select,
textarea,
input:not([type="hidden"]),
[role="button"] {
  border-color: #465b70 !important;
}
.fs-pager-wrapper a,
.fraction-slider .pager a,
.pager a {
  /* size/focus handled in pager block below — keep contrast border light */
  border-color: #ffffff !important;
}
.quicklogin a#btnquicklogin,
a#btnquicklogin {
  color: #261d05 !important;
}
.quicklogin > i > a,
.quicklogin i a {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.howcansearch > input {
  color: #ffffff !important;
}
.howcansearch > input::placeholder {
  color: #e8eef5 !important;
  opacity: 1;
}
/* slide heading colors handled above with h1+h2 parity */
/* Footer: original light strip — dark readable text */
.hmefooterwrper,
.footer,
.footer p,
.footer h2,
.footer h3,
.footer h4 {
  color: #001e38 !important;
}
.footer a {
  color: #001e38 !important;
  text-decoration: underline;
  display: inline-block;
  min-height: 44px;
  line-height: 1.3;
  padding: 12px 6px;
  box-sizing: border-box;
  vertical-align: middle;
}
.footer > .social,
.footer > .social > span > a {
  color: #023560 !important;
}
.quicklogin > i,
.quicklogin > i > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  padding: 8px 0;
}
a.derGobtn {
  color: #2a1a05 !important;
  font-weight: 700;
}
.NoData {
  color: #9b1235 !important;
}
/* Ticker tabs + scrolling text only (do not darken whole footer) */
.attInves .marqspan b,
.attInves .marqspan b a,
.attInves .marqspan span {
  color: #ffffff !important;
}
.attInves > span.marqspan,
.attInves .marqspan {
  background: #375160;
  color: #ffffff;
}
.tickerinactive {
  background: #4a5f6e !important;
  color: #ffffff !important;
}
.tick1data {
  background-color: #001e38 !important;
  color: #ffffff !important;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 0 4px 4px 0;
}
#MarqueeAtntn1,
#MarqueeAtntn1 * {
  color: #ffffff !important;
}
/* Keep footer background from original image — undo previous dark flood */
.foottickbg,
.footertic,
.attInves {
  background-color: transparent;
  color: inherit;
}
.foottickbg .a11y-motion-controls button {
  background: #001e38;
  color: #ffffff;
  border-color: #001e38;
}
.a11y-motion-controls {
  background: transparent;
}
/* Fraction slider pager — bottom-left, compact, not over slide text */
.fs-pager-wrapper {
  top: auto !important;
  bottom: 10px !important;
  left: 10px !important;
  right: auto !important;
  width: auto !important;
  overflow: visible !important;
  z-index: 10050 !important;
  padding: 4px 6px !important;
  margin: 0 !important;
  background: rgba(0, 30, 56, 0.25) !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  white-space: nowrap !important;
  text-align: left !important;
}
.fs-pager-wrapper a,
.fraction-slider .pager a,
.pager a {
  display: inline-block !important;
  min-width: 24px !important;
  min-height: 24px !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 4px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 22px 22px !important;
  position: relative !important;
  z-index: 10051 !important;
  vertical-align: middle !important;
  transition: background-color 0.2s ease, background-image 0.2s ease !important;
  outline: none !important;
}
.fs-pager-wrapper a:last-child {
  margin-right: 0 !important;
}
.fs-pager-wrapper a:focus,
.fs-pager-wrapper a:focus-visible,
.fraction-slider .pager a:focus,
.fraction-slider .pager a:focus-visible,
.pager a:focus,
.pager a:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-width: 3px !important;
  outline-style: solid !important;
  outline-color: #2563eb !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #ffffff !important;
  transition: none !important;
  z-index: 10052 !important;
}
/* Extra visible focus ring via ::after (survives outline quirks) */
.fs-pager-wrapper a:focus::after,
.fs-pager-wrapper a:focus-visible::after {
  content: "" !important;
  position: absolute !important;
  left: -4px !important;
  top: -4px !important;
  right: -4px !important;
  bottom: -4px !important;
  border: 3px solid #2563eb !important;
  border-radius: 6px !important;
  box-shadow: 0 0 0 2px #ffffff !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* ----- Text spacing / zoom resilience ----- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body,
.container,
.container-fluid,
#pushleft,
.hmefooterwrper,
.footer,
.contentdata,
.fancyborder,
.staticwrapper,
.txtbanner,
.indicesbg {
  overflow-x: visible !important;
  max-width: 100%;
}
img,
video,
svg,
iframe {
  max-width: 100%;
  height: auto;
}
p,
li,
a,
span,
label,
td,
th,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
/* WCAG text spacing support — content still readable when user styles applied */
.line-height-active,
body.a11y-text-spacing {
  line-height: 1.5 !important;
  letter-spacing: 0.12em !important;
  word-spacing: 0.16em !important;
}
.line-height-active p,
.line-height-active li,
body.a11y-text-spacing p,
body.a11y-text-spacing li {
  line-height: 2 !important;
  margin-bottom: 2em;
}
/* Banner keeps fixed height so pager dots sit at bottom, not over text */
.txtbanner {
  position: relative !important;
}
.WDbanner {
  height: 300px !important;
  min-height: 300px !important;
  position: relative !important;
  overflow: visible !important;
}
.fraction-slider {
  height: 100% !important;
  min-height: 300px !important;
  position: relative !important;
}
.slide {
  height: auto !important;
  min-height: 200px;
  overflow: visible !important;
}
.slide > h1,
.slide > h2 {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}
.slide > h1 > span,
.slide > h2 > span {
  padding-right: 0 !important;
}

/* Fixed-height clips at larger zoom */
@media (max-width: 991px), (min-resolution: 1.25dppx) {
  .navbluebg {
    min-height: auto;
  }
  .mobnavbtn {
    width: 44px;
    height: 44px;
  }
}

/* Prefer reduced motion */
@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;
  }
  .js-marquee,
  #MarqueeAtntn1,
  .fraction-slider .slide {
    animation: none !important;
  }
}

/* ----- Motion pause control ----- */
.a11y-motion-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.a11y-motion-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid #001e38;
  border-radius: 4px;
  background: #ffffff;
  color: #001e38;
  font-weight: 700;
  cursor: pointer;
}
.foottickbg .a11y-motion-controls {
  padding: 4px 12px;
}
.foottickbg .a11y-motion-controls button {
  background: #001e38;
  color: #ffffff;
  border-color: #ffffff;
}

/* ----- Dropdown / menu keyboard open state ----- */
.navbluebg > ul > li.a11y-open > .bigdropdiv,
.navbluebg > ul > li:focus-within > .bigdropdiv {
  display: block !important;
}
.bigdropdiv[hidden] {
  display: none !important;
}

/* ----- Modal / dialog ----- */
.modal[aria-hidden="true"] {
  display: none !important;
}
body.a11y-modal-open {
  overflow: hidden;
}
.a11y-dialog-backdrop {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}
.mfp-wrap:focus,
.mfp-wrap:focus-visible,
.mfp-content:focus,
.mfp-content:focus-visible {
  outline: 3px solid #2563eb !important;
  outline-offset: 2px !important;
}

/* ----- Landmark helpers ----- */
header.a11y-site-header,
footer.a11y-site-footer,
main#main-content {
  display: block;
}

/* ----- Accessibility widget (clean, no nested document) ----- */
#accessIcon {
  position: fixed;
  top: 200px;
  right: 0;
  z-index: 9999;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 5px 0 0 5px;
  background: #001e38;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
#accessIcon:focus-visible {
  outline-offset: -2px !important;
}
#accessWrap {
  position: fixed;
  top: 100px;
  right: -360px;
  width: min(320px, 92vw);
  max-height: min(70vh, 480px);
  overflow: auto;
  background: #ffffff;
  color: #001e38;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  padding: 15px;
  transition: right 0.3s ease;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}
#accessWrap.active {
  right: 56px;
  visibility: visible;
  pointer-events: auto;
}
#accessWrap h2 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  color: #001e38;
}
#accessWrap h3 {
  margin: 12px 0 6px;
  font-size: 0.95rem;
  color: #001e38;
}
#accessWrap button,
#accessWrap select {
  width: 46%;
  margin: 1%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #375160;
  border-radius: 8px;
  background: #f1f1f1;
  color: #001e38;
  cursor: pointer;
}
#accessWrap .reset-btn {
  width: 98% !important;
  background: #c44d00 !important;
  color: #ffffff !important;
  border-color: #8a3600;
}
.toolbox {
  position: fixed;
  top: 260px;
  right: 0;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #001e38;
  padding: 6px;
  border-radius: 8px 0 0 8px;
}
.toolbox button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.1rem;
}
body.dark-mode {
  background: #000 !important;
  color: #fff !important;
}
body.dark-mode a {
  color: #9ecbff !important;
}
body.dark-mode #accessWrap {
  background: #1a1a1a;
  color: #fff;
}
body.dark-mode #accessWrap h2,
body.dark-mode #accessWrap h3 {
  color: #fff;
}
body.dark-mode #accessWrap button,
body.dark-mode #accessWrap select {
  color: #001e38;
}
body.theme-blue { background: #e3f2fd !important; }
body.theme-yellow { background: #fff9c4 !important; }
body.theme-green { background: #e8f5e9 !important; }
.gray { filter: grayscale(100%); }
.hide-img img:not(.a11y-keep-img) { display: none !important; }

/* Hide decorative duplicate document break leftovers */
.a11y-broken-nested-doc {
  display: none !important;
}

/* ----- Orientation and narrow viewport support (WCAG 1.3.4) ----- */
html,
body {
  max-width: 100%;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

iframe {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

/* Charts must resize with their content column after rotation. */
[id*="chart" i],
[id*="graph" i],
[class*="chart" i],
[class*="graph" i] {
  max-width: 100%;
}

@media only screen and (max-width: 767px) {
  /* Let breadcrumb items wrap instead of clipping the current page name. */
  .bredcrum {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
  }

  .bredcrum > span {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Quick login controls remain visible in either orientation. */
  .innerlogin {
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0 !important;
  }

  .innerlogin > .logintxt {
    padding-right: 4px !important;
  }

  .innerlogin > select {
    width: min(230px, 100%) !important;
    margin: 0 !important;
    flex: 1 1 180px;
  }

  .innerlogin > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* First banner H1 was not covered by the legacy H2-only responsive rule. */
  .txtbanner,
  .WDbanner {
    height: 340px !important;
    min-height: 340px;
  }

  .slide > h1,
  .slide > h2 {
    box-sizing: border-box;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 10px 0 !important;
    font-size: clamp(1.5rem, 8vw, 2rem) !important;
    line-height: 1.15 !important;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .slide > h1 > span,
  .slide > h2 > span {
    display: block;
    padding: 10px 0 0 !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
  }

  .slide > h1 > a,
  .slide > h2 > a {
    margin: 12px 0 !important;
  }

  /* Fixed-width legacy popups fit the rotated viewport. */
  .hmenewspopup,
  .hmenewspop,
  .innrnewspop,
  .mypagepopup,
  .homepopup,
  .discpopup,
  .popuptable,
  .popupform,
  .RegPopupWhole {
    box-sizing: border-box;
    width: min(94vw, 100%) !important;
    max-width: 94vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: 3vw !important;
    right: 3vw !important;
    overflow: auto;
  }

  /* Wide financial tables stay available through local scrolling. */
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .risingtbl,
  .risingvdprce {
    max-width: 100% !important;
    overflow-x: auto !important;
  }

  .graphcontent {
    width: 100% !important;
    min-height: 240px;
    height: auto !important;
  }

  /* Fixed accessibility controls stay reachable without covering text columns. */
  #accessIcon {
    top: auto !important;
    right: 8px;
    bottom: 8px;
  }

  .toolbox {
    top: auto !important;
    right: 64px;
    bottom: 8px;
    max-width: calc(100vw - 136px);
    overflow-x: auto;
    flex-direction: row;
  }

  #accessWrap {
    top: 8px;
    bottom: 64px;
    max-height: calc(100vh - 72px);
  }

  #accessWrap.active {
    right: 8px;
  }
}

/* Short landscape screens: controls stay reachable without covering the centre. */
@media only screen and (orientation: landscape) and (max-height: 500px) {
  #accessIcon {
    top: auto !important;
    right: 8px;
    bottom: 8px;
  }

  #accessWrap {
    top: 8px;
    bottom: 8px;
    max-height: calc(100vh - 16px);
  }

  #accessWrap.active {
    right: 64px;
  }

  .toolbox {
    top: auto !important;
    right: 64px;
    bottom: 8px;
    max-width: calc(100vw - 136px);
    overflow-x: auto;
    flex-direction: row;
  }
}

/* ----- Contrast follow-ups (retest Issue 7) ----- */
.outpsup,
.outpsup > span,
.outpsup > em,
.callsup > div > span,
.emailsup > div > span,
.callsup a,
.emailsup a {
  color: #ffffff !important;
}
.reqcallbak > a,
.reqcallbak a {
  color: #fff3c4 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
.bulletlst1 > div > span > a,
a[id^="knwmre"],
.mre > a {
  color: #fff3c4 !important;
  font-weight: 700 !important;
}
.statichead > h4 > a,
.statichead a,
.chargelstmenu > ul > li > a,
.chargelstmenu > ul > li {
  color: #0b4f8a !important;
}
.commonbtmcntrl li > a,
.commontpcntrl li > a,
#btmcntrl a,
.footer #btmcntrl a {
  color: #0b4f8a !important;
}
/* Amber text on white / light backgrounds */
.headaddrsec > span,
.headinndiv > span,
.contctaddr span,
.respodiv1 > span > a,
.faq a,
.faq a u,
.staticwrapper a[href^="mailto"]:not(.wdsupport a):not(.emailsup a):not(.callsup a),
a[href^="mailto:info@wealthdiscovery.in"]:not(.wdsupport a):not(.emailsup a):not(.callsup a),
.paddginnerhd a,
.contentblk a u,
p a > u {
  color: #6b4700 !important;
}
/* Support widget links sit on dark blue — keep high-contrast white */
.wdsupport a,
.staticwrapper .wdsupport a,
.callsup a,
.emailsup a,
.staticwrapper .emailsup a,
.staticwrapper .callsup a,
.emailsup > div > a,
.callsup > div > a,
.staticwrapper .emailsup > div > a,
.staticwrapper .callsup > div > a {
  color: #ffffff !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}
.contctaddr2,
.contctaddr2 span,
.contctaddr3,
#contctOurbrnchs,
#contctOurbrnchs span {
  color: #4a4a4a !important;
}

/* ----- Reflow: clip marquee only — never hide active slider captions ----- */
.attInves,
.js-marquee-wrapper,
#MarqueeAtntn1,
.hmefooterwrper .js-marquee {
  max-width: 100% !important;
  overflow: hidden !important;
}
.active-slide h1,
.active-slide h2,
.slide.active-slide h1,
.slide.active-slide h2,
.fs_obj.fs_obj_active,
.fraction-slider .fs_obj_active {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 80% !important;
  height: auto !important;
  max-width: 100% !important;
  clip: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  white-space: normal !important;
  margin: 0 !important;
}
.active-slide h1 *,
.active-slide h2 *,
.fs_obj.fs_obj_active * {
  display: block !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
}
.active-slide h1 > a,
.active-slide h2 > a,
.fs_obj.fs_obj_active > a {
  display: block !important;
}
@media (max-width: 900px) {
  .fraction-slider,
  .slider-wrapper,
  #container {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .fs_obj:not(.sr-only) {
    max-width: calc(100vw - 24px) !important;
  }
  /* Bootstrap offsets can force horizontal scroll on short/narrow viewports */
  [class*="col-lg-offset-"],
  [class*="col-md-offset-"],
  [class*="col-sm-offset-"],
  [class*="col-xs-offset-"] {
    margin-left: 0 !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  [class*="col-lg-offset-"],
  [class*="col-md-offset-"],
  [class*="col-sm-offset-"] {
    margin-left: 0 !important;
  }
}
