/*
 * Blueprint To Progress — Debt Management
 * Page-specific stylesheet
 * Intended cascade:
 * Global BTP CSS → common article CSS → this page-specific layer
 *
 * Page: /money/debt-management/
 */

/* ---------- Standard BTP article variables ---------- */
:root {
  --btp-article-max-width: 1180px;
  --btp-article-mobile-gutter: 16px;
  --btp-article-tablet-gutter: 46px;

  --btp-h1-size-desktop: 56px;
  --btp-h1-size-tablet: 36px;
  --btp-h1-size-mobile: 38px;

  --btp-h2-size-desktop: 38px;
  --btp-h2-size-tablet: 32px;
  --btp-h2-size-mobile: 30px;

  --btp-h3-size-desktop: 30px;
  --btp-h3-size-tablet: 27px;
  --btp-h3-size-mobile: 24px;

  --btp-body-size-desktop: 18px;
  --btp-body-size-tablet: 17px;
  --btp-body-size-mobile: 17px;

  --btp-body-line-height: 1.55;
  --btp-mobile-line-height: 1.6;

  --btp-light-blue: #eaf4ff;
  --btp-blue: #2563eb;
  --btp-heading: #111827;
  --btp-text: #334155;
  --btp-border: #d7dce2;
  --btp-white: #ffffff;
}

/* ---------- Article container and typography ---------- */
.btp-article .article-container {
  width: 100%;
  max-width: var(--btp-article-max-width);
  margin-left: auto;
  margin-right: auto;
}

.btp-article {
  /* Keep site-wide background, font family, header and back-to-top styling inherited. */
  box-sizing: border-box;
}

.btp-article .article-container,
.btp-article .article-container * {
  box-sizing: border-box;
}

.btp-article .article-category {
  display: inline-flex;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--btp-light-blue);
  color: var(--btp-blue);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.btp-article h1 {
  margin: 0 0 28px;
  font-size: var(--btp-h1-size-desktop);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.btp-article h2 {
  margin-top: 56px;
  margin-bottom: 12px;
  font-size: var(--btp-h2-size-desktop);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.btp-article h3 {
  margin-top: 32px;
  margin-bottom: 4px;
  font-size: var(--btp-h3-size-desktop);
  line-height: 1.2;
  font-weight: 700;
}

.btp-article p,
.btp-article li {
  font-size: var(--btp-body-size-desktop);
  line-height: var(--btp-body-line-height);
}

.btp-article p {
  margin: 0 0 24px;
}

.btp-article .lead {
  margin-bottom: 30px;
  font-size: 20px;
  line-height: 1.55;
}

.btp-article strong {
  font-weight: 700;
}

.btp-article a {
  text-decoration: none;
}

.btp-article a:hover,
.btp-article a:focus-visible {
  text-decoration: underline;
}

.btp-article ul,
.btp-article ol {
  padding-left: 32px;
  margin-top: 0;
  margin-bottom: 24px;
}

.btp-article li {
  margin-bottom: 4px;
}

/* ---------- Images ---------- */
.btp-article .article-image {
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
}

.btp-article .article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.btp-article .article-image figcaption,
.btp-article figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
  color: inherit;
}

/* ---------- In This Guide ---------- */
.btp-article .article-toc {
  width: 100%;
  margin: 0 0 34px;
  padding: 24px 28px;
  border: 1px solid var(--btp-border);
  border-radius: 14px;
  background: var(--btp-white);
}

.btp-article .article-toc h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.btp-article .article-toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 4px;
  margin: 0;
  padding-left: 28px;
}

.btp-article .article-toc-list li {
  margin-bottom: 0;
  padding-left: 2px;
}

.btp-article .article-toc a {
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Comparison table ---------- */
.btp-article .comparison-table-wrapper {
  width: 100%;
  margin: 24px 0 30px;
  padding: 0;
  overflow: hidden;
  background: var(--btp-white);
  border: 1px solid var(--btp-border);
  border-radius: 14px;
  line-height: 1.5;
}

.btp-article .comparison-table-caption {
  padding: 16px 18px 12px;
  text-align: left;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--btp-heading);
  margin: 0;
  background: var(--btp-white);
}

.btp-article .comparison-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.btp-article .comparison-table {
  display: table;
  width: 100%;
  min-width: 760px;
  height: auto;
  margin: 0 !important;
  padding: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--btp-white);
  vertical-align: top;
}

.btp-article .comparison-table th,
.btp-article .comparison-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--btp-border);
  text-align: left;
  vertical-align: top;
  font-size: 17px;
  line-height: 1.5;
}

.btp-article .comparison-table thead th {
  border-top: 0;
  background: var(--btp-blue);
  color: var(--btp-white);
  font-weight: 700;
}

.btp-article .comparison-table tbody th {
  font-weight: 700;
  color: var(--btp-heading);
  background: #f8fafc;
}

/* ---------- Resources ---------- */
.btp-article #resources .resource-item {
  margin-bottom: 14px;
}

/* ---------- CTA ---------- */
.btp-article .article-cta {
  width: 100%;
  margin: 56px 0 24px;
  padding: 34px 36px 36px;
  border: 1px solid #b9d9ff;
  border-radius: 14px;
  background: #eef7ff;
  text-align: center;
}

.btp-article .article-cta > * {
  text-align: center;
}

.btp-article .article-cta p {
  margin-left: auto;
  margin-right: auto;
}

.btp-article .article-cta .cta-button {
  margin-left: auto;
  margin-right: auto;
}

.btp-article .article-cta h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 30px;
  letter-spacing: -0.4px;
}

.btp-article .article-cta p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.btp-article .cta-button {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 11px 20px;
  border-radius: 7px;
  background: var(--btp-blue);
  color: #ffffff !important;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none !important;
}

.btp-article .cta-button:hover,
.btp-article .cta-button:focus-visible {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ---------- Tablet: 768–1023px ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .btp-article .article-container {
    width: calc(100% - 92px);
    max-width: 1180px;
  }

  .btp-article h1 {
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: -0.8px;
  }

  .btp-article h2 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-top: 48px;
    margin-bottom: 10px;
  }

  .btp-article h3 {
    font-size: 27px;
    line-height: 1.2;
    margin-top: 28px;
  }

  .btp-article p,
  .btp-article li {
    font-size: 17px;
    line-height: 1.6;
  }

  .btp-article .lead {
    font-size: 20px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
}

/* ---------- Mobile: 0–767px ---------- */
@media (max-width: 767px) {
  .btp-article .article-container {
    width: calc(100% - 32px);
    max-width: none;
  }

  .btp-article .article-category {
    margin-top: 40px;
    margin-bottom: 14px;
    padding: 6px 11px;
    font-size: 11px;
  }

  .btp-article h1 {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -0.7px;
    margin-bottom: 24px;
  }

  .btp-article h2 {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.4px;
    margin-top: 44px;
    margin-bottom: 10px;
  }

  .btp-article h3 {
    font-size: 24px;
    line-height: 1.2;
    margin-top: 28px;
    margin-bottom: 4px;
  }

  .btp-article p,
  .btp-article li {
    font-size: 17px;
    line-height: 1.6;
  }

  .btp-article .lead {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 26px;
  }

  .btp-article ul,
  .btp-article ol {
    padding-left: 28px;
  }

  .btp-article .article-image {
    margin-bottom: 26px;
  }

  .btp-article .article-image figcaption,
  .btp-article figcaption {
    font-size: 15px;
    line-height: 1.45;
  }

  .btp-article .article-toc {
    padding: 24px 22px;
    margin-bottom: 30px;
  }

  .btp-article .article-toc-list {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 4px;
    padding-left: 24px;
  }

  .btp-article .article-toc a {
    font-size: 16px;
  }

  .btp-article .comparison-table-wrapper {
    margin-top: 22px;
    margin-bottom: 28px;
  }

  .btp-article .comparison-table-caption {
    padding: 15px 16px 11px;
    font-size: 19px;
    line-height: 1.35;
  }

  .btp-article .comparison-table {
    min-width: 720px;
  }

  .btp-article .comparison-table th,
  .btp-article .comparison-table td {
    font-size: 16px;
    padding: 13px 14px;
  }

  .btp-article .article-cta {
    width: 100%;
    margin-top: 44px;
    padding: 28px 20px 30px;
    text-align: center;
  }

  .btp-article .article-cta h2 {
    font-size: 30px;
  }

  .btp-article .cta-button {
    width: auto;
    max-width: 100%;
    padding: 11px 18px;
  }
}
