@charset "UTF-8";
/*
 * Bankamatic | Article editorial components v1.0
 * Loaded only for individual posts, after main.css and refinement.css.
 * Scoped to .article-content, so homepage, cards and corporate pages stay unchanged.
 * All components work without JavaScript or external fonts.
 */

/* Reading rhythm: leave the theme's established width, typography and H1 alone. */
.article-content {
  --bm-ui-border: #dae5ed;
  --bm-ui-text: #1b3549;
  --bm-ui-muted: #526b7d;
  --bm-ui-panel: #f7fafc;
  --bm-ui-accent: #127a83;
  --bm-ui-header: #eaf2f8;
  --bm-ui-row: #f7fafc;
}

/* Contextual notes, used sparingly where they add editorial value. */
.article-content .bm-note-box {
  --bm-note-bg: #eaf4fc;
  --bm-note-border: #b5d7ee;
  --bm-note-accent: #176fa6;
  --bm-note-text: #21435b;
  position: relative;
  margin: 1.45em 0 1.65em;
  padding: 16px 19px;
  border: 1px solid var(--bm-note-border);
  border-left: 4px solid var(--bm-note-accent);
  border-radius: 11px;
  background: var(--bm-note-bg);
  color: var(--bm-note-text);
  font-size: .94em;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.article-content .bm-note-box--warning {
  --bm-note-bg: #fff8e9;
  --bm-note-border: #ecd6a6;
  --bm-note-accent: #a46b13;
  --bm-note-text: #5a461f;
}
.article-content .bm-note-box--success {
  --bm-note-bg: #eaf6f0;
  --bm-note-border: #bbdfcc;
  --bm-note-accent: #18805b;
  --bm-note-text: #24513e;
}
.article-content .bm-note-box__title {
  display: block;
  margin: 0 0 5px;
  color: inherit;
  font-size: .99em;
  font-weight: 760;
  line-height: 1.45;
}
.article-content .bm-note-box p,
.article-content .bm-note-box ul { margin: 0 0 9px; color: inherit; }
.article-content .bm-note-box :last-child { margin-bottom: 0; }
.article-content .bm-note-box a { color: inherit; text-decoration-thickness: 1px; }

/* Compact key facts: use 2-3 genuine facts rather than decorative counters. */
.article-content .bm-key-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 1.4em 0 1.65em;
}
.article-content .bm-key-facts__item {
  min-width: 0;
  padding: 15px 16px 14px;
  border: 1px solid var(--bm-ui-border, #dae5ed);
  border-radius: 12px;
  background: var(--bm-ui-panel, #f7fafc);
}
.article-content .bm-key-facts__label {
  display: block;
  margin: 0 0 7px;
  color: var(--bm-ui-muted, #526b7d);
  font-size: .76em;
  font-weight: 650;
  line-height: 1.4;
}
.article-content .bm-key-facts__value {
  display: block;
  color: var(--bm-ui-text, #1b3549);
  font-size: clamp(1.03em, 1.6vw, 1.23em);
  font-weight: 790;
  line-height: 1.22;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Tables: wrapper scrolls on phones; keep the table as a real table. */
.article-content .bm-data-table {
  max-width: 100%;
  margin: 1.35em 0 1.65em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--bm-ui-border, #dae5ed);
  border-radius: 12px;
  background: var(--bm-ui-panel, #fff);
}
.article-content .bm-data-table table {
  display: table;
  width: 100%;
  max-width: none;
  min-width: 505px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: .88em;
  line-height: 1.5;
}
.article-content .bm-data-table--compact table { min-width: 0; }
.article-content .bm-data-table th,
.article-content .bm-data-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--bm-ui-border, #dae5ed);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}
.article-content .bm-data-table th + th,
.article-content .bm-data-table td + td { border-left: 1px solid var(--bm-ui-border, #dae5ed); }
.article-content .bm-data-table thead th {
  background: var(--bm-ui-header, #eaf2f8);
  color: var(--bm-ui-text, #1b3549);
  font-weight: 770;
}
.article-content .bm-data-table tbody tr:nth-child(even) {
  background: var(--bm-ui-row, #f7fafc);
}
.article-content .bm-data-table tbody tr:last-child > * { border-bottom: 0; }
.article-content .bm-data-table strong { font-variant-numeric: tabular-nums; }

/* Worked financial example (no invented bank tariffs). */
.article-content .bm-calc-example {
  margin: 1.45em 0 1.7em;
  padding: 18px 21px;
  border: 1px solid #bcdbcb;
  border-radius: 13px;
  background: #f0f8f3;
  color: #224838;
  font-variant-numeric: tabular-nums;
}
.article-content .bm-calc-example__title {
  margin: 0 0 11px;
  color: inherit;
  font-size: 1.03em;
  font-weight: 800;
  line-height: 1.4;
}
.article-content .bm-calc-example__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #d0e6d8;
  font-size: .91em;
  line-height: 1.45;
}
.article-content .bm-calc-example__row:last-of-type { border-bottom: 0; }
.article-content .bm-calc-example__row > span { min-width: 0; }
.article-content .bm-calc-example__row > strong { text-align: right; white-space: nowrap; }
.article-content .bm-calc-example__row--result {
  margin-top: 5px;
  padding-top: 12px;
  border-top: 2px solid #a9d6ba;
  border-bottom: 0;
  font-weight: 740;
}
.article-content .bm-calc-example__row--result > strong { font-size: 1.12em; }
.article-content .bm-calc-example__footnote {
  margin: 12px 0 0;
  color: #496b59;
  font-size: .77em;
  line-height: 1.55;
}

/* Numbered instructions: native <ol> remains semantic and accessible. */
.article-content ol.bm-guide-steps {
  margin: 1.25em 0 1.55em;
  padding: 0 0 0 1.55em;
}
.article-content ol.bm-guide-steps > li {
  padding: 0 0 10px 4px;
  margin: 0 0 9px;
  border-bottom: 1px solid var(--bm-ui-border, #dae5ed);
  line-height: 1.65;
}
.article-content ol.bm-guide-steps > li::marker {
  color: var(--bm-ui-accent, #127a83);
  font-weight: 800;
}
.article-content ol.bm-guide-steps > li:last-child { border-bottom: 0; margin-bottom: 0; }

/* Optional readable FAQ without a heavy accordion or JavaScript. */
.article-content .bm-guide-faq { margin: 1.5em 0; }
.article-content .bm-guide-faq h3 {
  padding: 15px 0 0;
  margin: 17px 0 9px;
  border-top: 1px solid var(--bm-ui-border, #dae5ed);
  font-size: 1.11em;
  line-height: 1.38;
}
.article-content .bm-guide-faq h3:first-child { border-top: 0; margin-top: 0; }
.article-content .bm-guide-faq p { margin-bottom: 1em; }

/* Article-only dark mode; follows site's existing html[data-bm-theme] switch. */
html[data-bm-theme="dark"] .article-content {
  --bm-ui-border: #3b5268;
  --bm-ui-text: #edf5fc;
  --bm-ui-muted: #bed0df;
  --bm-ui-panel: #1c3045;
  --bm-ui-accent: #81dacf;
  --bm-ui-header: #294258;
  --bm-ui-row: #20354a;
}
html[data-bm-theme="dark"] .article-content .bm-note-box {
  --bm-note-bg: #18354b;
  --bm-note-border: #3b647b;
  --bm-note-accent: #85c3ed;
  --bm-note-text: #e4f3ff;
}
html[data-bm-theme="dark"] .article-content .bm-note-box--warning {
  --bm-note-bg: #3b3325;
  --bm-note-border: #796642;
  --bm-note-accent: #e2bf72;
  --bm-note-text: #ffefca;
}
html[data-bm-theme="dark"] .article-content .bm-note-box--success {
  --bm-note-bg: #1b3933;
  --bm-note-border: #416a5b;
  --bm-note-accent: #7ad4aa;
  --bm-note-text: #e0f7eb;
}
html[data-bm-theme="dark"] .article-content .bm-key-facts__item,
html[data-bm-theme="dark"] .article-content .bm-data-table {
  background: var(--bm-ui-panel, #1c3045);
}
html[data-bm-theme="dark"] .article-content .bm-data-table th,
html[data-bm-theme="dark"] .article-content .bm-data-table td {
  color: #e3eff8;
}
html[data-bm-theme="dark"] .article-content .bm-calc-example {
  background: #1d3932;
  border-color: #416f5a;
  color: #e2f7e9;
}
html[data-bm-theme="dark"] .article-content .bm-calc-example__row {
  border-bottom-color: #375b4c;
}
html[data-bm-theme="dark"] .article-content .bm-calc-example__row--result {
  border-top-color: #5b9473;
}
html[data-bm-theme="dark"] .article-content .bm-calc-example__footnote {
  color: #bfdcc9;
}

@media (max-width: 640px) {
  .article-content .bm-note-box { padding: 13px 15px; margin: 1.3em 0; }
  .article-content .bm-key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .article-content .bm-key-facts__item { padding: 12px; }
  .article-content .bm-data-table { margin: 1.25em 0 1.35em; }
  .article-content .bm-data-table th,
  .article-content .bm-data-table td { padding: 10px 11px; }
  .article-content .bm-calc-example { padding: 14px 15px; }
}
@media (max-width: 380px) {
  .article-content .bm-key-facts { grid-template-columns: 1fr; }
  .article-content .bm-key-facts__item { padding: 11px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-content .bm-data-table { scroll-behavior: auto; }
}