/* ─────────────────────────────────────────────────────────────
   SJDEFI Document Design System — Finance page
   Scoping class: .finance-page
   Component classes (.hero, .doc, .article, .h2, .h3, .section,
   .contact-card, .progress, .to-top, etc.) are shared from
   registrar.css which is loaded globally via header.php.
   This file only provides the page-scoped conflict overrides.
   ───────────────────────────────────────────────────────────── */

/* Neutralise styles.css `section { margin: 8rem auto; padding: 0 8rem; }` */
.finance-page .hero,
.finance-page .section {
  margin: 0;
  padding: 0;
}

/* Base font + antialiasing */
.finance-page {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 100%;
}

.finance-page a { color: var(--accent); text-decoration: none; }
.finance-page a:hover { text-decoration: underline; }

/* seniorhigh.css bleeds Playfair Display onto all p/h2/h3/h4 sitewide */
.finance-page p,
.finance-page li,
.finance-page dt,
.finance-page dd,
.finance-page td,
.finance-page th,
.finance-page label,
.finance-page select,
.finance-page strong,
.finance-page em,
.finance-page h4,
.finance-page h5,
.finance-page h6,
.finance-page button {
  font-family: Arial, Helvetica, sans-serif;
}

/* Override bootnavbar.css `nav { background:#00245a; }` for TOC */
.finance-page .toc,
.finance-page .toc * {
  background: transparent !important;
  border-radius: 0 !important;
}
.finance-page .toc {
  position: sticky; top: 32px;
  align-self: start;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.5;
  color: var(--ink-2) !important;
}
.finance-page .toc h6 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 11px !important;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--muted) !important;
  background: transparent !important;
}
.finance-page .toc ol {
  list-style: none; margin: 0; padding: 0;
  counter-reset: toc;
  border-left: 1px solid var(--line);
  background: transparent !important;
}
.finance-page .toc li {
  counter-increment: toc;
  position: relative;
  background: transparent !important;
}
.finance-page .toc a,
.finance-page .toc a:link,
.finance-page .toc a:visited {
  display: block;
  padding: 8px 14px 8px 18px;
  color: var(--ink-2) !important;
  background: transparent !important;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500;
  text-decoration: none !important;
  box-shadow: none !important;
}
.finance-page .toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted-2) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 11px !important;
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
  font-weight: 600;
  background: transparent !important;
}
.finance-page .toc a:hover,
.finance-page .toc a:focus {
  color: var(--accent) !important;
  text-decoration: none !important;
  background: var(--accent-soft) !important;
  box-shadow: none !important;
}
.finance-page .toc a:hover::before,
.finance-page .toc a:focus::before { color: var(--accent) !important; background: transparent !important; }
.finance-page .toc a.active,
.finance-page .toc a.active:visited {
  color: var(--accent) !important;
  border-left-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}
.finance-page .toc a.active::before { color: var(--accent) !important; background: transparent !important; }

/* Section spacing */
.finance-page .section + .section {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 820px) {
  .finance-page .section + .section {
    margin-top: 48px;
    padding-top: 36px;
  }
}

/* Fee total row highlight */
.finance-page .data-table tbody tr.total-row td {
  font-weight: 700;
  color: var(--ink);
  background: var(--accent-soft);
  border-top: 2px solid var(--line);
}

/* Hide sticky TOC / show mobile select on narrow screens */
@media (max-width: 820px) {
  .finance-page .toc { display: none; }
}
