/* =====================================================================
   MF Investmart design layer for every page that still uses the old
   Sandbox / Bootstrap 5 markup.

   Loaded twice: once in <head> (so the first paint is already on-brand)
   and again at the very end of footer.jsp, so it sits after the page-level
   <style> blocks in the cascade.

   Every selector skips the redesigned header, homepage and footer with
   :where(:not(.ix, .ix *)), which adds no specificity. Element rules
   therefore stay at element weight, so page-specific class rules still win
   where a page deliberately sizes something.

   Tokens come from investmart.css (--ix-*).
   ===================================================================== */

:root{
  --bs-primary:#A9803C; --bs-primary-rgb:169,128,60;
  --bs-secondary:#0D2137; --bs-secondary-rgb:13,33,55;
  --bs-dark:#0D2137; --bs-dark-rgb:13,33,55;
  --bs-body-color:#47535F; --bs-body-color-rgb:71,83,95;
  --bs-body-bg:#F7F8F9;
  --bs-body-font-family:"Libre Franklin",system-ui,-apple-system,sans-serif;
  --bs-font-sans-serif:"Libre Franklin",system-ui,-apple-system,sans-serif;
  --bs-font-monospace:"IBM Plex Mono",ui-monospace,monospace;
  --bs-border-color:#D5DBE2;
  --bs-border-radius:3px;
}

/* ---------- base ---------- */
body{background:var(--ix-paper);color:var(--ix-body);font-family:var(--ix-sans);font-size:17px;line-height:1.7;word-spacing:normal;-webkit-font-smoothing:antialiased}
a:where(:not(.ix,.ix *)){color:var(--ix-brass-deep);text-underline-offset:3px}
a:where(:not(.ix,.ix *)):hover{color:var(--ix-brass)}
a:where(:not(.ix,.ix *)):focus-visible,button:where(:not(.ix,.ix *)):focus-visible,
input:where(:not(.ix,.ix *)):focus-visible,select:where(:not(.ix,.ix *)):focus-visible,
textarea:where(:not(.ix,.ix *)):focus-visible{outline:2px solid var(--ix-brass);outline-offset:3px}
hr:where(:not(.ix,.ix *)){color:var(--ix-rule);opacity:1}
p:where(:not(.ix,.ix *)),li:where(:not(.ix,.ix *)){font-family:var(--ix-sans)}
i:where(:not(.ix,.ix *)):not([class*="fa"]):not([class*="uil"]),em:where(:not(.ix,.ix *)){font-style:normal}

/* ---------- type scale ---------- */
h1:where(:not(.ix,.ix *)),.h1:where(:not(.ix,.ix *)),
h2:where(:not(.ix,.ix *)),.h2:where(:not(.ix,.ix *)),
.display-1:where(:not(.ix,.ix *)),.display-2:where(:not(.ix,.ix *)),.display-3:where(:not(.ix,.ix *)),
.display-4:where(:not(.ix,.ix *)),.display-5:where(:not(.ix,.ix *)),.display-6:where(:not(.ix,.ix *)){
  font-family:var(--ix-serif);font-weight:400;letter-spacing:-.018em;color:var(--ix-ink);text-wrap:balance}
h1:where(:not(.ix,.ix *)),.h1:where(:not(.ix,.ix *)),
.display-1:where(:not(.ix,.ix *)),.display-2:where(:not(.ix,.ix *)),.display-3:where(:not(.ix,.ix *)){font-size:clamp(32.8px,6.6vw,49.6px);line-height:1.1}
h2:where(:not(.ix,.ix *)),.h2:where(:not(.ix,.ix *)),
.display-4:where(:not(.ix,.ix *)),.display-5:where(:not(.ix,.ix *)),.display-6:where(:not(.ix,.ix *)){font-size:clamp(29.6px,4.6vw,43.2px);line-height:1.12}
h3:where(:not(.ix,.ix *)),.h3:where(:not(.ix,.ix *)),
h4:where(:not(.ix,.ix *)),.h4:where(:not(.ix,.ix *)),
h5:where(:not(.ix,.ix *)),.h5:where(:not(.ix,.ix *)),
h6:where(:not(.ix,.ix *)),.h6:where(:not(.ix,.ix *)){font-family:var(--ix-sans);font-weight:600;letter-spacing:-.005em;line-height:1.4;color:var(--ix-ink)}
h3:where(:not(.ix,.ix *)),.h3:where(:not(.ix,.ix *)){font-size:18px}
h4:where(:not(.ix,.ix *)),.h4:where(:not(.ix,.ix *)),
h5:where(:not(.ix,.ix *)),.h5:where(:not(.ix,.ix *)){font-size:17px}
h6:where(:not(.ix,.ix *)),.h6:where(:not(.ix,.ix *)){font-size:16px}
.lead:where(:not(.ix,.ix *)){font-size:19px;line-height:1.72;color:var(--ix-body);font-weight:400}
/* headings that sit on a dark panel keep their light colour */
:is(.text-white,.text-light):where(:not(.ix,.ix *)){color:#fff!important}
.text-primary:where(:not(.ix,.ix *)),.text-warning:where(:not(.ix,.ix *)){color:var(--ix-brass-deep)!important}
.text-dark:where(:not(.ix,.ix *)),.text-black:where(:not(.ix,.ix *)){color:var(--ix-ink)!important}
.text-muted:where(:not(.ix,.ix *)){color:var(--ix-muted)!important}
.text-success:where(:not(.ix,.ix *)){color:var(--ix-up)!important}
.text-danger:where(:not(.ix,.ix *)){color:var(--ix-down)!important}
code,kbd,pre,samp{font-family:var(--ix-mono)}

/* ---------- surfaces ---------- */
.bg-primary:where(:not(.ix,.ix *)),.bg-dark:where(:not(.ix,.ix *)),.bg-navy:where(:not(.ix,.ix *)){background-color:var(--ix-navy)!important}
.bg-light:where(:not(.ix,.ix *)),[class*="bg-soft-"]:where(:not(.ix,.ix *)),[class*="bg-pale-"]:where(:not(.ix,.ix *)),.bg-gray:where(:not(.ix,.ix *)){background-color:var(--ix-stone)!important}
.bg-white:where(:not(.ix,.ix *)){background-color:var(--ix-white)!important}
.bg-warning:where(:not(.ix,.ix *)){background-color:var(--ix-brass-tint)!important}
/* the design allows one gradient, the homepage hero. Everything else is flat. */
[class*="bg-gradient"]:where(:not(.ix,.ix *)),[class*="gradient-"]:where(:not(.ix,.ix *)){background-image:none!important}
.shadow:where(:not(.ix,.ix *)),.shadow-sm:where(:not(.ix,.ix *)),.shadow-lg:where(:not(.ix,.ix *)),.shadow-xl:where(:not(.ix,.ix *)){box-shadow:none!important}
.rounded:where(:not(.ix,.ix *)),.rounded-1:where(:not(.ix,.ix *)),.rounded-2:where(:not(.ix,.ix *)),.rounded-3:where(:not(.ix,.ix *)),
.rounded-4:where(:not(.ix,.ix *)),.rounded-5:where(:not(.ix,.ix *)),.rounded-xl:where(:not(.ix,.ix *)),.rounded-pill:where(:not(.ix,.ix *)){border-radius:3px!important}
.rounded-top:where(:not(.ix,.ix *)){border-top-left-radius:3px!important;border-top-right-radius:3px!important}
.rounded-bottom:where(:not(.ix,.ix *)){border-bottom-left-radius:3px!important;border-bottom-right-radius:3px!important}

/* ---------- cards and panels ---------- */
.card:where(:not(.ix,.ix *)){background-color:var(--ix-white);border:1px solid var(--ix-rule);border-radius:3px;box-shadow:none!important}
.card-header:where(:not(.ix,.ix *)){border-radius:0!important;border-bottom:1px solid var(--ix-rule)}
.card-header:where(:not(.ix,.ix *)):first-child{border-radius:2px 2px 0 0!important}
.card-footer:where(:not(.ix,.ix *)){background-color:var(--ix-white);border-top:1px solid var(--ix-rule-soft)}
.card-title:where(:not(.ix,.ix *)){font-family:var(--ix-sans);font-weight:600;color:var(--ix-ink)}
.box:where(:not(.ix,.ix *)){border-radius:3px;box-shadow:none}

/* ---------- breadcrumb band (section.bg-blue-top on ~150 pages) ---------- */
:root section.bg-blue-top:where(:not(.ix,.ix *)){background:var(--ix-stone)!important;border-bottom:1px solid var(--ix-rule)}
:root section.bg-blue-top:where(:not(.ix,.ix *)) > .container{padding-top:14px!important;padding-bottom:14px!important}
:root .bg-blue-top .post-header{margin:0}
:root .bg-blue-top .post-meta{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}
:root .bg-blue-top .post-meta li{display:flex;align-items:center;margin:0;padding:0;font-family:var(--ix-mono);font-size:12px;line-height:1.5;letter-spacing:.13em;text-transform:uppercase;color:var(--ix-muted)}
:root .bg-blue-top .post-meta li::before,:root .bg-blue-top .post-meta li::after{display:none!important}
:root .bg-blue-top .post-meta li + li::before{content:"/"!important;display:inline!important;position:static!important;margin:0 12px;color:var(--ix-muted);background:none!important;width:auto!important;height:auto!important;opacity:1!important}
:root .bg-blue-top .post-meta li a{color:var(--ix-brass-deep)!important;text-decoration:none;display:inline-flex;align-items:center;min-height:32px}
:root .bg-blue-top .post-meta li a:hover{text-decoration:underline}
:root .bg-blue-top .post-meta li:last-child a{color:var(--ix-ink)!important;pointer-events:none}
:root .bg-blue-top .post-meta li i{display:none}

/* ---------- buttons ---------- */
.btn:where(:not(.ix,.ix *)){font-family:var(--ix-sans);font-weight:700;letter-spacing:-.005em;text-transform:none;box-shadow:none!important;transform:none!important}
.btn:where(:not(.ix,.ix *)):not(.btn-circle):not(.rounded-circle){border-radius:3px!important}
/* buttons at every width: a long label (e.g. "Build My Child's Wedding Goal") wraps onto a second
   line instead of spilling out, and a button is never wider than its container. Text stays 19.2px
   bold (large text, so white on brass keeps its contrast); small phones get less side padding. */
.btn:where(:not(.ix,.ix *)){white-space:normal;overflow-wrap:break-word;max-width:100%;height:auto}
@media (max-width:479.98px){
  .btn:where(:not(.ix,.ix *)):not(.btn-circle):not(.rounded-circle){padding-left:16px!important;padding-right:16px!important}
}
/* primary: brass with white text, which needs a 19.2px bold label to pass contrast */
:is(.btn-primary,.btn-success,.btn-warning,.btn-gradient,.btn-yellow,.btn-orange,.btn-theme):where(:not(.ix,.ix *)){
  background-color:var(--ix-brass)!important;border-color:var(--ix-brass)!important;color:#fff!important;background-image:none!important;font-size:19.2px}
:is(.btn-primary,.btn-success,.btn-warning,.btn-gradient,.btn-yellow,.btn-orange,.btn-theme):where(:not(.ix,.ix *)):hover,
:is(.btn-primary,.btn-success,.btn-warning,.btn-gradient,.btn-yellow,.btn-orange,.btn-theme):where(:not(.ix,.ix *)):focus{
  background-color:var(--ix-brass-deep)!important;border-color:var(--ix-brass-deep)!important;color:#fff!important}
/* small primary buttons cannot carry white on brass, so they become navy */
:is(.btn-primary,.btn-success,.btn-warning,.btn-gradient,.btn-yellow,.btn-orange,.btn-theme):is(.btn-sm,.btn-xs):where(:not(.ix,.ix *)){
  background-color:var(--ix-navy)!important;border-color:var(--ix-navy)!important;font-size:15px}
:is(.btn-primary,.btn-success,.btn-warning,.btn-gradient,.btn-yellow,.btn-orange,.btn-theme):is(.btn-sm,.btn-xs):where(:not(.ix,.ix *)):hover{
  background-color:var(--ix-navy-mid)!important;border-color:var(--ix-navy-mid)!important}
/* secondary: navy */
:is(.btn-secondary,.btn-dark,.btn-info,.btn-navy,.btn-default,.btn-blue,.default-btn,.btn-login):where(:not(.ix,.ix *)){
  background-color:var(--ix-navy)!important;border-color:var(--ix-navy)!important;color:#fff!important;background-image:none!important}
:is(.btn-secondary,.btn-dark,.btn-info,.btn-navy,.btn-default,.btn-blue,.default-btn,.btn-login):where(:not(.ix,.ix *)):hover{
  background-color:var(--ix-navy-mid)!important;border-color:var(--ix-navy-mid)!important;color:#fff!important}
/* quiet: navy outline */
[class*="btn-outline-"]:where(:not(.ix,.ix *)){background-color:transparent!important;border:1.5px solid var(--ix-navy)!important;color:var(--ix-navy)!important;background-image:none!important}
[class*="btn-outline-"]:where(:not(.ix,.ix *)):hover,[class*="btn-outline-"]:where(:not(.ix,.ix *)).active{background-color:var(--ix-navy)!important;color:#fff!important}
.btn-white:where(:not(.ix,.ix *)),.btn-light:where(:not(.ix,.ix *)){background-color:var(--ix-white)!important;border-color:var(--ix-rule)!important;color:var(--ix-navy)!important}
.btn-lg:where(:not(.ix,.ix *)){min-height:52px;padding-inline:26px}
.btn-danger:where(:not(.ix,.ix *)){background-color:var(--ix-down)!important;border-color:var(--ix-down)!important;color:#fff!important}

/* ---------- forms ---------- */
:is(.form-control,.form-select):where(:not(.ix,.ix *)){font-family:var(--ix-sans);color:var(--ix-ink);background-color:var(--ix-white);border:1px solid var(--ix-rule);border-radius:3px;box-shadow:none}
:is(.form-control,.form-select):where(:not(.ix,.ix *)):not(.form-control-sm):not(.form-select-sm){font-size:16px}
:is(.form-control,.form-select):where(:not(.ix,.ix *)):focus{border-color:var(--ix-navy);box-shadow:none;outline:2px solid var(--ix-brass);outline-offset:2px}
:is(.form-control,.form-select):where(:not(.ix,.ix *))::placeholder{color:var(--ix-muted);opacity:1}
.form-control:where(:not(.ix,.ix *)):disabled,.form-control:where(:not(.ix,.ix *))[readonly]{background-color:var(--ix-stone)}
:is(.form-label,.control-label,.form-check-label):where(:not(.ix,.ix *)){color:var(--ix-body);font-family:var(--ix-sans)}
.form-check-input:where(:not(.ix,.ix *)){border-color:var(--ix-rule)}
.form-check-input:where(:not(.ix,.ix *)):checked{background-color:var(--ix-navy);border-color:var(--ix-navy)}
.input-group-text:where(:not(.ix,.ix *)){background-color:var(--ix-stone);border-color:var(--ix-rule);color:var(--ix-body);font-family:var(--ix-mono)}

/* native sliders: 4px stone track, 26px brass handle with a white ring */
input[type=range]:where(:not(.ix,.ix *)){accent-color:var(--ix-brass)}
input[type=range]:where(:not(.ix,.ix *))::-webkit-slider-runnable-track{background:var(--ix-stone)!important}
input[type=range]:where(:not(.ix,.ix *))::-webkit-slider-thumb{background:var(--ix-brass)!important;border:4px solid #fff!important;box-shadow:0 0 0 1px var(--ix-rule)!important}
input[type=range]:where(:not(.ix,.ix *))::-moz-range-track{background:var(--ix-stone)!important}
input[type=range]:where(:not(.ix,.ix *))::-moz-range-thumb{background:var(--ix-brass)!important;border:4px solid #fff!important}
/* ion.rangeSlider and bootstrap-slider used on the calculators */
:root .irs-bar,:root .slider-selection{background:var(--ix-brass)!important;border-color:var(--ix-brass)!important}
:root .irs-line,:root .slider-track{background:var(--ix-stone)!important;border-color:var(--ix-stone)!important}
:root .irs-single,:root .irs-from,:root .irs-to{background:var(--ix-navy)!important;font-family:var(--ix-mono);border-radius:3px}
:root .irs-single::before,:root .irs-from::before,:root .irs-to::before{border-top-color:var(--ix-navy)!important}
:root .irs-bar-edge{background:var(--ix-brass)!important;border-color:var(--ix-brass)!important}
:root .irs-slider,:root .irs-handle,:root .slider-handle{background:var(--ix-brass)!important;border:4px solid #fff!important;border-radius:50%!important;box-shadow:0 0 0 1px var(--ix-rule)!important}

/* ---------- filter tabs (Sandbox .filter, e.g. the FAQ categories) behave like chips ---------- */
:root .filter:not(.basic-filter) ul{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0;padding:0}
:root .filter:not(.basic-filter) ul li{margin:0;padding:0}
:root .filter:not(.basic-filter) ul li + li::before{display:none!important}
:root .filter:not(.basic-filter) ul li a{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border:1px solid var(--ix-rule);background:var(--ix-white);color:var(--ix-ink)!important;border-radius:3px;font-family:var(--ix-sans);font-size:16px;font-weight:500;letter-spacing:0;text-transform:none}
:root .filter:not(.basic-filter) ul li a:hover{border-color:var(--ix-navy)}
:root .filter:not(.basic-filter) ul li a.active{background:var(--ix-navy);border-color:var(--ix-navy);color:#fff!important;font-weight:600}

/* ---------- tables ---------- */
table:where(:not(.ix,.ix *)){color:var(--ix-ink);font-variant-numeric:tabular-nums}
.table:where(:not(.ix,.ix *)){--bs-table-striped-bg:rgba(236,239,243,.55);--bs-table-hover-bg:var(--ix-stone);border-color:var(--ix-rule-soft)}
.table:where(:not(.ix,.ix *)) > :not(caption) > * > *{border-color:var(--ix-rule-soft)}
:root table:where(:not(.ix,.ix *)) > thead,
:root table:where(:not(.ix,.ix *)) > thead > tr,
:root table:where(:not(.ix,.ix *)) > thead > tr > th,
:root table:where(:not(.ix,.ix *)) > thead > tr > td,
:root .theadBody:where(:not(.ix,.ix *)),
:root .theadBody:where(:not(.ix,.ix *)) > tr > *{
  background:#0c2035!important;color:#fff!important;
  font-family:var(--ix-sans)!important;font-size:11px!important;letter-spacing:.13em;font-weight:600!important;line-height:1.4}
:root table:where(:not(.ix,.ix *)) > thead > tr > th{border-bottom:1px solid var(--ix-rule)!important;vertical-align:bottom}
:root table:where(:not(.ix,.ix *)) > thead a{color:var(--ix-muted)!important}
table:where(:not(.ix,.ix *)) td{font-family:var(--ix-sans)}
.table-bordered:where(:not(.ix,.ix *)) > :not(caption) > *{border-color:var(--ix-rule)}
.table-responsive:where(:not(.ix,.ix *)){border:1px solid var(--ix-rule);background:var(--ix-white)}
.table-responsive:where(:not(.ix,.ix *)) > .table{margin-bottom:0}
/* DataTables */
:root .dataTables_wrapper .dataTables_paginate .paginate_button.current{background:var(--ix-navy)!important;border-color:var(--ix-navy)!important;color:#fff!important;border-radius:3px}
:root .dataTables_wrapper .dataTables_paginate .paginate_button:hover{background:var(--ix-stone)!important;border-color:var(--ix-rule)!important;color:var(--ix-ink)!important}
:root .dataTables_wrapper input,:root .dataTables_wrapper select{border:1px solid var(--ix-rule);border-radius:3px}

/* ---------- tabs, pills, pagination ---------- */
.nav-link:where(:not(.ix,.ix *)){color:var(--ix-body);font-family:var(--ix-sans)}
.nav-link:where(:not(.ix,.ix *)):hover{color:var(--ix-ink)}
:root .nav-tabs:where(:not(.ix,.ix *)) .nav-link{border-radius:3px 3px 0 0}
:root :is(.nav-tabs,.nav-pills):where(:not(.ix,.ix *)) .nav-link.active,
:root :is(.nav-tabs,.nav-pills):where(:not(.ix,.ix *)) .show > .nav-link{background-color:var(--ix-navy)!important;border-color:var(--ix-navy)!important;color:#fff!important;font-weight:600}
:root .nav-pills:where(:not(.ix,.ix *)) .nav-link{border-radius:3px!important}
.page-link:where(:not(.ix,.ix *)){color:var(--ix-navy);border-color:var(--ix-rule)}
.page-item.active .page-link:where(:not(.ix,.ix *)){background-color:var(--ix-navy);border-color:var(--ix-navy);color:#fff}
.page-item:first-child .page-link,.page-item:last-child .page-link{border-radius:3px}

/* ---------- accordions (FAQ pages) ---------- */
.accordion-item:where(:not(.ix,.ix *)){background:var(--ix-white);border:1px solid var(--ix-rule)!important;border-radius:3px!important;box-shadow:none!important}
.accordion-button:where(:not(.ix,.ix *)),.accordion-wrapper .card-header button:where(:not(.ix,.ix *)){
  font-family:var(--ix-sans);font-weight:600;font-size:17px;color:var(--ix-ink)!important;background:var(--ix-white)!important;box-shadow:none!important}
.accordion-button:where(:not(.ix,.ix *)):not(.collapsed){color:var(--ix-navy)!important}
.accordion-wrapper .card-header button:where(:not(.ix,.ix *))::before{color:var(--ix-brass)!important}
.accordion-body:where(:not(.ix,.ix *)){color:var(--ix-body)}

/* ---------- dropdowns, modals, badges, alerts ---------- */
.dropdown-menu:where(:not(.ix,.ix *)){border:1px solid var(--ix-rule);border-top:2px solid var(--ix-brass);border-radius:0 0 3px 3px;box-shadow:0 14px 30px rgba(6,20,33,.12)}
.dropdown-item:where(:not(.ix,.ix *)){font-family:var(--ix-sans);color:var(--ix-ink)}
.dropdown-item:where(:not(.ix,.ix *)):hover,.dropdown-item:where(:not(.ix,.ix *)):focus{background:var(--ix-stone);color:var(--ix-navy)}
.modal-content:where(:not(.ix,.ix *)){border:0;border-top:2px solid var(--ix-brass);border-radius:3px;box-shadow:none;font-family:var(--ix-sans)}
.modal-header:where(:not(.ix,.ix *)){border-bottom:1px solid var(--ix-rule-soft)}
.modal-title:where(:not(.ix,.ix *)){font-family:var(--ix-serif);font-weight:400;letter-spacing:-.014em}
.modal-backdrop.show{opacity:.6;background:var(--ix-navy-deep)}
.badge:where(:not(.ix,.ix *)){border-radius:3px;font-family:var(--ix-mono);font-weight:600;letter-spacing:.06em}
.alert:where(:not(.ix,.ix *)){border-radius:3px}
.alert-warning:where(:not(.ix,.ix *)),.alert-info:where(:not(.ix,.ix *)){background:var(--ix-brass-tint);border-color:var(--ix-brass-light);color:var(--ix-ink)}
.progress-bar:where(:not(.ix,.ix *)){background-color:var(--ix-brass)}
.tooltip-inner{background:var(--ix-navy);border-radius:3px;font-family:var(--ix-sans)}

/* sweetalert v1 confirmation dialogs */
:root .sweet-alert{border-radius:3px;border-top:2px solid var(--ix-brass);font-family:var(--ix-sans)}
:root .sweet-alert h2{font-family:var(--ix-serif);font-weight:400;color:var(--ix-ink);letter-spacing:-.014em}
:root .sweet-alert p{color:var(--ix-body)}
:root .sweet-alert button{background-color:var(--ix-navy)!important;color:#fff!important;border-radius:3px!important;box-shadow:none!important;font-family:var(--ix-sans);font-weight:700;font-size:17px}
:root .sweet-alert button.cancel{background-color:transparent!important;color:var(--ix-navy)!important;border:1.5px solid var(--ix-navy)!important}

/* datepicker */
:root .datepicker table tr td.active,:root .datepicker table tr td.active:hover,:root .datepicker table tr td span.active{background:var(--ix-navy)!important;background-image:none!important;color:#fff!important;border-radius:3px}

/* ---------- carousels and small furniture ---------- */
:root .owl-carousel .owl-nav button.owl-next,:root .owl-carousel .owl-nav button.owl-prev{background:var(--ix-navy)!important;color:#fff!important;border-radius:3px!important;box-shadow:none!important}
:root .owl-dots .owl-dot.active span,:root .owl-dots .owl-dot:hover span{background:var(--ix-brass)!important}
.progress-wrap{box-shadow:inset 0 0 0 2px var(--ix-rule)!important}
.progress-wrap::after{color:var(--ix-navy)!important}
.progress-wrap svg.progress-circle path{stroke:var(--ix-brass)!important}

/* ---------- side sheets (login, sign-up, callback) ---------- */
:root .sidebar-modal .modal-header{background:var(--ix-navy)!important;border-bottom:2px solid var(--ix-brass)}
:root .sidebar-modal .modal-header h5{font-family:var(--ix-serif);font-weight:400;color:#fff!important}

/* a heading inside a navy (active) tab inherits the light label colour, not the ink heading colour */
:root :is(.nav-tabs,.nav-pills) .nav-link.active :is(h1,h2,h3,h4,h5,h6,span,p,b,strong){color:#fff!important}

/* =====================================================================
   Calculators, MF research, goal planners and other services.
   The layouts put .ix-tool on <body> for these pages, so somebody moving
   in from the homepage stays on the same column, type and colours.
   ===================================================================== */

/* the homepage column: 1200px with a 22px gutter, so content lines up with the logo and footer */
@media (min-width:1200px){
  body.ix-tool .content-wrapper .container{max-width:1200px;padding-inline:22px}
}

/* page intro band, built by /js/investmart-tool.js from the page breadcrumb.
   Same band as the services, about and contact pages. */
body.ix-tool .ix-thero{background:var(--ix-navy-deep);position:relative;overflow:hidden;border-bottom:1px solid var(--ix-navy-mid)}
body.ix-tool .ix-thero::before{content:"";position:absolute;inset:0;background:
  radial-gradient(52% 70% at 80% 10%,#1E4A76 0%,rgba(30,74,118,0) 62%),
  linear-gradient(150deg,#061421 0%,#0D2137 56%,#081B2C 100%)}
body.ix-tool .ix-thero-w{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:40px 22px 46px}
@media (max-width:640px){body.ix-tool .ix-thero-w{padding:30px 22px 34px}}
body.ix-tool .ix-thero-crumb{margin:0 0 18px;font-family:var(--ix-mono);font-size:10.4px;letter-spacing:.14em;text-transform:uppercase;color:#7E93A8;line-height:1.6}
body.ix-tool .ix-thero-crumb a{color:#7E93A8;text-decoration:none}
body.ix-tool .ix-thero-crumb a:hover{color:var(--ix-brass-light)}
body.ix-tool .ix-thero-crumb .sep{margin:0 8px}
body.ix-tool .ix-thero-eyebrow{display:block;font-family:var(--ix-mono);font-size:11.2px;letter-spacing:.19em;text-transform:uppercase;font-weight:600;color:var(--ix-brass-light)}
body.ix-tool .ix-thero h1{margin:12px 0 0;font-family:var(--ix-serif);font-weight:400;font-size:clamp(30px,5.4vw,46px);line-height:1.1;letter-spacing:-.018em;color:#fff;text-wrap:balance}
/* long tool names get a smaller size so they stay on one line and every hero keeps the same height */
body.ix-tool .ix-thero h1.ix-h1-long{font-size:clamp(26px,3.6vw,36px);line-height:calc(clamp(30px,5.4vw,46px) * 1.1)}

/* the page's own copy of the title, once the intro band carries it */
body.ix-tool .ix-dup{display:none!important}

/* panels: white, hairline border, brass top rule, as on the homepage goal panel */
body.ix-tool .content-wrapper .card{border:1px solid var(--ix-rule)!important;border-top:2px solid var(--ix-brass)!important;border-radius:0!important}
body.ix-tool .content-wrapper .card .card{border-top:1px solid var(--ix-rule)!important}

/* panel titles: the navy bars on the research pages become the homepage's serif panel heading */
body.ix-tool .content-wrapper .card-header{background:var(--ix-white)!important;color:var(--ix-ink)!important;
  font-family:var(--ix-serif)!important;font-weight:400!important;font-size:22px!important;letter-spacing:-.016em;line-height:1.3;
  padding:20px 24px 16px!important;border-bottom:1px solid var(--ix-rule-soft)!important}

/* section headings in the page body use the homepage serif; small labels stay in the sans */
body.ix-tool .content-wrapper :is(h2,h3):not(.card-header):not(.ix-dup){font-family:var(--ix-serif);font-weight:400;letter-spacing:-.016em;color:var(--ix-ink)}
body.ix-tool .content-wrapper h3:not(.card-header){font-size:22px;line-height:1.3}
body.ix-tool .content-wrapper .nav-link :is(h2,h3,h4,h5){font-family:var(--ix-sans);font-weight:600;letter-spacing:0}

/* "See all calculators / research tools" */
body.ix-tool .sidebar-link{color:var(--ix-brass-deep)!important;font-size:15px!important;font-weight:600;text-underline-offset:3px}
body.ix-tool .sidebar-link:hover{color:var(--ix-brass)!important}

/* body copy and labels in the homepage body colour */
body.ix-tool .content-wrapper :is(label,.form-label){color:var(--ix-body)}

/* the older research pages draw their input box with a blue ridge border; give it the panel treatment */
body.ix-tool .content-wrapper .tabContainer{border:1px solid var(--ix-rule)!important;border-top:2px solid var(--ix-brass)!important;background:var(--ix-white);margin-inline:0;padding:8px 6px 18px}

/* an empty full-width "clients" band left over from the old theme */
body.ix-tool .content-wrapper section.clients:not(:has(img,a,p,li,table)){display:none}

/* data tables: slightly tighter cells so the wider research tables fit the homepage column */
body.ix-tool .content-wrapper .table > :not(caption) > * > *{padding:12px 10px}
body.ix-tool .content-wrapper .table > thead > tr > th{letter-spacing:.08em!important}

/* MF research tables: one font family, colour, size and weight for every body and footer cell, whatever the page sets */
body.ix-tool[data-ix-group="MF Research"] .content-wrapper table:where(:not(.datepicker *)) > :not(thead) > tr:not(.theadBody) > :is(td,th),
body.ix-tool[data-ix-group="MF Research"] .content-wrapper table:where(:not(.datepicker *)) > :not(thead) > tr:not(.theadBody) > :is(td,th) :not(i,svg,svg *){
  font-family:var(--ix-sans)!important;font-size:13px!important;color:var(--ix-ink)!important;font-weight:400!important}
/* header rows written inside the table body (.theadBody, e.g. the SIP cash flow) look like the other table headers */
:root body.ix-tool[data-ix-group="MF Research"] .content-wrapper table tr.theadBody > :is(td,th),
:root body.ix-tool[data-ix-group="MF Research"] .content-wrapper table tr.theadBody > :is(td,th) :not(i,svg,svg *){
  background:var(--ix-stone)!important;color:var(--ix-muted)!important;
  font-family:var(--ix-mono)!important;font-size:11px!important;letter-spacing:.13em;text-transform:uppercase;font-weight:600!important;line-height:1.4}
/* MF research tables: the same cell padding everywhere */
body.ix-tool[data-ix-group="MF Research"] .content-wrapper table:where(:not(.datepicker *)) tr > :is(td,th){padding:12px 10px!important}
/* MF research tables: the same space around every table. The outermost wrapper (or a bare table) carries 24px below it; nothing else adds margin or padding */
body.ix-tool[data-ix-group="MF Research"] .content-wrapper table:where(:not(.datepicker *)){margin:0!important}
body.ix-tool[data-ix-group="MF Research"] .content-wrapper :is(.table-responsive,.tableresponsive,.dataTables_wrapper){margin:0!important;padding-block:0!important}
body.ix-tool[data-ix-group="MF Research"] .content-wrapper :is(.table-responsive,.tableresponsive,.dataTables_wrapper):not([class*="col-"]){padding-inline:0!important}
body.ix-tool[data-ix-group="MF Research"] .content-wrapper :is(.table-responsive,.tableresponsive,.dataTables_wrapper)[class*="col-"]{padding-inline:calc(var(--bs-gutter-x,1.5rem)*.5)!important}
body.ix-tool[data-ix-group="MF Research"] .content-wrapper :is(.table-responsive,.tableresponsive,.dataTables_wrapper):not(:is(.table-responsive,.tableresponsive,.dataTables_wrapper) *){margin-bottom:24px!important}
body.ix-tool[data-ix-group="MF Research"] .content-wrapper table:where(:not(.datepicker *)):not(:is(.table-responsive,.tableresponsive,.dataTables_wrapper,table) *){margin-bottom:24px!important}
/* the older .tableresponsive wrapper gets the same frame as .table-responsive */
body.ix-tool[data-ix-group="MF Research"] .content-wrapper .tableresponsive{border:1px solid var(--ix-rule);background:var(--ix-white)}
