/* Debt relief advertorial (seniors) - design based on our page articles.comparisons.org/2301660.php */

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: #000;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #069; }

p { margin: 0 0 18px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 10px 10px 48px;
}

/* ---------- Top line ---------- */
.smallText {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin: 0;
}
.blueText { color: #326b9a; }

/* ---------- Headline ---------- */
h1 {
  margin: 0 0 10px;
  padding: 10px 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.05rem;
  text-align: center;
  text-wrap: balance;
}

.subhead {
  margin: 0 0 6px;
  font-size: 20px;
  font-style: italic;
  color: #333;
  text-align: center;
  text-wrap: balance;
}

h2 {
  margin: 36px 0 18px;
  scroll-margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

/* ---------- Author ---------- */
.authorBox {
  display: flex;
  align-items: center;
  margin: 24px 0;
  padding: 8px 0;
  border-top: 1px solid #00a5fa;
  border-bottom: 1px solid #00a5fa;
}
.authorImg {
  width: 35px;
  height: 35px;
  border-radius: 100%;
  margin-right: 16px;
  object-fit: cover;
}
.authorBox p { margin: 0; font-size: 14px; }

/* ---------- Hero image ---------- */
.hero-link { display: block; max-width: 800px; margin: 0 auto; text-decoration: none; }

.hero { width: 100%; height: auto; }

.caption {
  max-width: 800px;
  margin: 8px auto 0;
  font-size: 14px;
  font-style: italic;
  color: #666;
  text-wrap: pretty;
}

.articleBody {
  margin: 0 auto 10px;
  padding: 18px 0 10px;
}

/* ---------- Buttons (greenButton in 2301660) ---------- */
.greenButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 24px;
  padding: 20px 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: #4c67bd;
  border-radius: 3px;
  cursor: pointer;
}
.greenButton:hover,
.greenButton:focus-visible { background: #3d56a6; color: #fff; }

/* ---------- Qualify box (quoteBox in 2301660) ---------- */
.quoteBox {
  margin: 24px 0;
  padding: 24px;
  background: #eee;
  border-left: 4px solid #069;
}
.quoteBox p { margin: 0 0 10px; font-weight: 700; }
.quoteBox ul { margin: 0; padding-left: 22px; }
.quoteBox li { margin: 0 0 8px; }
.quoteBox li:last-child { margin-bottom: 0; }

/* ---------- Interest calculator (credit-box in 2301660), no JS ---------- */
.calc {
  max-width: 600px;
  margin: 30px auto;
  padding: 24px 20px 22px;
  background: linear-gradient(to bottom, #f4f7fb, #e7f0f7);
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
  text-align: center;
  scroll-margin-top: 16px;
}
.calc__eyebrow {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #326b9a;
}
.calc h2 {
  margin: 0 0 18px;
  font-size: 26px;
  color: #123b5d;
}
.calc__q {
  margin: 0 0 12px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  text-wrap: balance;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.amounts label {
  display: block;
  padding: 12px 4px;
  font-size: 18px;
  font-weight: 700;
  color: #0074c9;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 24px;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  cursor: pointer;
}
.amounts label:hover { background: #f5f8ff; }
.amounts input:focus-visible + label { outline: 3px solid #4c67bd; outline-offset: 2px; }
.amounts input:checked + label {
  color: #fff;
  background: #0074c9;
  border-color: #0074c9;
}

.results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}
.results__item {
  padding: 14px 6px;
  background: #fff;
  border-radius: 8px;
}
.results__label {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  color: #555;
}
.results__value {
  display: none;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  color: #123b5d;
}
.results__item--year .results__value { color: #b42318; }

/* show the numbers of the selected amount */
.calc:has(#amt-15:checked) .v15,
.calc:has(#amt-25:checked) .v25,
.calc:has(#amt-35:checked) .v35,
.calc:has(#amt-50:checked) .v50,
.calc:has(#amt-75:checked) .v75,
.calc:has(#amt-100:checked) .v100 { display: block; }

.calc__msg {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 500;
  color: #333;
  text-wrap: balance;
}
.calc .greenButton { margin-bottom: 14px; }
.calc__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  text-wrap: pretty;
}

/* ---------- Trust row ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: #333;
}
.trust li::before {
  content: "\2713";
  margin-right: 6px;
  font-weight: 700;
  color: #3b8546;
}

/* ---------- State map ---------- */
.mapStrip {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #326b9a;
  text-align: center;
}
.usMap {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 30px;
  fill: #fff;
}
.stateImage,
.leave-behind { fill: #3b8546; }
.leave-behind:hover,
.leave-behind:focus-visible { opacity: .8; }

.trust--bottom { margin-top: -6px; }

/* ---------- Footer (2301660) ---------- */
.containerFooter {
  padding: 30px 10px 50px;
  background: #069;
  color: #f4f5e6;
  text-align: center;
}
.footer {
  max-width: 1024px;
  margin: 0 auto;
  font-size: 11.7px;
  line-height: 1.25;
}
.footerLogo {
  width: 150px;
  height: auto;
  margin: 0 auto 30px;
}
.footerNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.footerNav li { padding: 0 5px; }
.footerNav a {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footerNav a:hover { text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  h1 { font-size: 32px; margin-top: 0; }
  .subhead { font-size: 18px; }
  h2 { font-size: 24px; }
  .quoteBox { padding: 20px 18px; }
  .calc { padding: 22px 14px 20px; }
  .calc h2 { font-size: 23px; }
  .results__value { font-size: 26px; }
}

@media (max-width: 359px) {
  h1 { font-size: 28px; }
  .calc { padding-left: 10px; padding-right: 10px; }
  .amounts { gap: 8px; }
  .amounts label { font-size: 16px; }
  .results__label { font-size: 14px; }
  .results__value { font-size: 23px; }
  .greenButton { font-size: 18px; }
}
