/* Article-only additions. Shared homepage styles remain unchanged in style.css. */
.article-layout{max-width:68.75rem;display:grid;grid-template-columns:minmax(0,69fr) minmax(0,23fr);gap:8%;align-items:start;padding-top:3rem;padding-bottom:var(--section-space)}
.article-main,.article-sidebar{min-width:0}
/* Stretch the sidebar so More can stick throughout the article, stopping before the footer. */
.article-sidebar{align-self:stretch}
.article-headline{font-size:3.375rem;font-weight:600;line-height:1.12;letter-spacing:-.035em;margin:0 0 1.75rem;overflow-wrap:break-word}
.article-hero{margin:0 0 1.25rem;aspect-ratio:2300/1294;background:#ebedef}
.article-hero img{width:100%;height:100%;object-fit:cover}
.article-deck{font-size:1.59375rem;line-height:1.57;margin-top:0;font-weight:400}
.article-opening{padding-bottom:2rem;border-bottom:1px solid;margin-bottom:2rem}
.article-body{font-size:1rem;line-height:1.75;overflow-wrap:break-word}
.article-body h2,.article-body h3,.article-body h4,.article-body h5,.article-body h6{font-weight:600;line-height:1.2;letter-spacing:-.02em;margin:1.6rem 0 .75rem}
.article-body>:first-child{margin-top:0}
.article-body .typography-h1 {
  font-size: 2.25rem;
}

.article-body h2 {
  font-size: 2rem;
}
.article-body h3{font-size:1.875rem}
.article-body h4{font-size:1.75rem}
.article-body h5{font-size:1.625rem}
.article-body h6{font-size:1.5rem}
.article-body p{margin:0 0 .75rem}
.article-body a{text-decoration:underline;text-underline-offset:.2em}
.article-body blockquote{width:70%;margin:2.5rem auto;padding:.65rem 1.25rem;border-left:5px solid #e2e2e2;font-size:1.875rem;font-style:italic;font-weight:600;line-height:1.33;text-align:center}
.article-body blockquote p{margin:0}
.sidebar-heading{font-size:1.5rem;line-height:1.25;font-weight:600;letter-spacing:-.02em;margin:0 0 1.8rem}
.author-section .sidebar-heading{font-size:1.375rem}
.article-author{display:flex;gap:1rem;align-items:flex-start}
.author-avatar{width:3.125rem;height:3.125rem;border-radius:50%;flex:none}
.author-name{font-size:1rem;font-weight:600;line-height:1.5}
.author-role{font-size:.9375rem;line-height:1.5;margin-top:.1rem}
.author-date{display:block;font-size:.9375rem;line-height:1.5;font-weight:600;margin-top:.6rem}
.more-section{position:sticky;top:5.25rem;margin-top:3.5rem}
.more-offer{padding-bottom:1.1rem;border-bottom:1px solid var(--rule)}
.more-offer+.more-offer{margin-top:2rem}
.more-image{display:block;overflow:hidden;aspect-ratio:1.76;background:#ebedef}
.more-image img{width:100%;height:100%;object-fit:cover}
.more-offer h3{font-size:1rem;line-height:1.4;font-weight:600;margin:.7rem .35rem 0}
.more-offer h3 a{display:block}
@media(max-width:61.99rem){
 .article-headline{font-size:3.25rem}.article-deck{font-size:1.53125rem;line-height:1.55}
 .article-layout{padding-top:2.75rem}
 .article-author{gap:.8rem}.more-section{margin-top:2.5rem}
}
@media(max-width:47.99rem){
 .article-headline{font-size:2.625rem;line-height:1.14}.article-deck{font-size:1.25rem;line-height:1.7}
 .article-layout{padding-top:2.25rem}.article-author{flex-direction:column;gap:.8rem}
 .sidebar-heading{font-size:1.25rem}.author-section .sidebar-heading{font-size:1.25rem}
 .article-body blockquote{width:85%;font-size:1.5rem}
}
/* Thesis keeps two columns on tablet, then stacks article and sidebar on phones. */
@media(max-width:29.99rem){
 .article-layout{grid-template-columns:minmax(0,1fr);gap:2.5rem;padding-top:2rem}
 .article-headline{font-size:2.125rem;line-height:1.18;margin-bottom:1.4rem}
 .article-hero{margin-bottom:1.1rem}.article-deck{font-size:1.125rem;line-height:1.67;margin-top:0}
 .article-opening{padding-bottom:1.75rem;margin-bottom:1.75rem}
 .article-author{flex-direction:row;gap:1rem}.more-section{position:static;margin-top:2.5rem}
 .sidebar-heading{font-size:1.5rem}.author-section .sidebar-heading{font-size:1.375rem}
 .more-offer h3{font-size:1.0625rem;line-height:1.45}
 .article-body .typography-h1{font-size:1.875rem}.article-body h2{font-size:1.75rem}.article-body h3{font-size:1.625rem}
 .article-body h4{font-size:1.5rem}.article-body h5{font-size:1.375rem}.article-body h6{font-size:1.25rem}
 .article-body blockquote{width:90%;font-size:1.5rem;margin-block:2rem;padding-inline:1rem}
}
sup {
  vertical-align: super;
  line-height: 0;
}

h1 sup {
  font-size: 0.42em; 
}

h2 sup {
  font-size: 0.5em;
}

.article-deck sup {
  font-size: 0.6em;
}

p sup {
  font-size: 0.7em;
}
.step-list {
  margin-left: 40px;
}
.heloc-deck {
  font-size: 19px;

}.step-list {
  margin-left: 40px;
}

@media (min-width: 900px) {
  .sponsored-section {
    margin-top: 70px;
  }
}

@media (min-width: 900px) {
  .sponsored-section {
    position: sticky;
    top: 30px;
    align-self: start;
    margin-top: 70px;
  }
}


.article-body p {
  font-size: 19px;
  line-height: 1.7;
}

p,
li {
  font-size: 19px;
  line-height: 1.7;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #012469;
  z-index: 9999;
  padding: 12px 20px;
}

.sticky-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sticky-cta-text {
  font-size: 19px;
  line-height: 1.4;
}

.sticky-cta-button {
  display: inline-block;
  background: #012469;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 22px;
  white-space: nowrap;
}

.sticky-cta-button:hover {
  opacity: 0.9;
}

.sticky-cta {
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.key-takeaway {
  background: #f5f7fa;
  border-left: 4px solid #012469;
  padding: 22px 24px;
  margin: 32px 0;
}

.key-takeaway p {
  margin: 0;
}

.key-takeaway-title {
  color: #012469;
  font-weight: 700;
  margin-bottom: 8px !important;
}

.key-takeaway.top-border {
  border-left: none;
  border-top: 4px solid #012469;
}

.article-example {
  background: #fafafa;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  padding: 20px 24px;
  margin: 32px 0;
}

.article-example p {
  margin: 0;
}

.article-example-title {
  color: #000000;
  font-weight: 700;
  margin-bottom: 8px !important;
}

.advertiser-disclosure-wrap {
  margin-top: 32px;
  margin-bottom: 14px;
}

.advertiser-disclosure-link {
  background: none;
  border: 0;
  padding: 0;
  color: #666666;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.advertiser-disclosure-link:hover {
  text-decoration: none;
}


/* POPUP */

/* POPUP */

.disclosure-modal[hidden] {
  display: none;
}

.disclosure-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.disclosure-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.disclosure-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: #ffffff;
  padding: 32px 36px;
  border-top: 4px solid #012469;
}

.disclosure-modal-box h2 {
  margin-top: 0;
  margin-bottom: 22px;
  padding-right: 40px;
  font-size: 28px;
  line-height: 1.2;
  color: #000000;
}

.disclosure-modal-box p {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 18px;
}

.disclosure-modal-box p:last-child {
  margin-bottom: 0;
}

.disclosure-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  border: 0;
  background: none;
  padding: 4px;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #333333;
}

.advertiser-disclosure-wrap {
  position: absolute;
  top: -45px;
  left: 0;
  margin: 0;
}


/* MOBILE */

@media (max-width: 600px) {
  .disclosure-modal {
    padding: 16px;
  }

  .disclosure-modal-box {
    max-height: 88vh;
    padding: 26px 22px;
  }

  .disclosure-modal-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .disclosure-modal-box p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .disclosure-close {
    top: 10px;
    right: 12px;
    font-size: 28px;
  }
}

.article-sidebar {
  position: relative;
}

.ad-label {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #666;
  margin: 0;
  padding: 0;
  text-align: left;
}

.ad-label-bottom {
  margin-top: 5px;
  margin-left: 6px;
}

.sticky-cta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-cta-disclaimer {
  font-size: 9px;
  line-height: 1.2;
  color: #666;
  text-transform: uppercase;
  max-width: 165px;
}

.sticky-cta-text {
  font-size: 19px;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}

.citation {
  font-size: 20px;
  vertical-align: super;
  line-height: 0;
  color: #012469;
  font-weight: 400;
}

sup.citation {
  font-size: 12px !important;
}

.heloc-list-box {
  background: #ffffff;
  border: 1px solid #d6d9de;
  border-radius: 0;
  padding: 14px 30px;
  margin: 32px 0;
}

.heloc-list-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.heloc-list-column {
  min-width: 0;
}

.heloc-list-column:first-child {
  padding-right: 34px;
  border-right: 1px solid #e3e5e8;
}

.heloc-list-column:last-child {
  padding-left: 34px;
}

.heloc-list-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid #e3e5e8;
  font-size: inherit;
  line-height: inherit;
  color: #2f3136;
}

.heloc-list-item:last-child {
  border-bottom: none;
}

.heloc-check {
  flex: 0 0 auto;
  font-size: 1.1em;
  font-weight: 700;
  color: #70757d;
}

@media (max-width: 768px) {
  .heloc-list-box {
    padding: 8px 20px;
    margin: 28px 0;
  }

  .heloc-list-columns {
    grid-template-columns: 1fr;
  }

  .heloc-list-column:first-child {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #d6d9de;
  }

  .heloc-list-column:last-child {
    padding-left: 0;
  }

  .heloc-list-item {
    padding: 18px 0;
    gap: 14px;
  }
}

.heloc-phase-box {
  background: #ffffff;
  border: 1px solid #d6d9de;
  border-radius: 0;
  padding: 28px 34px;
  margin: 32px 0;
}

.heloc-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.heloc-phase-column {
  min-width: 0;
}

.heloc-phase-column:first-child {
  padding-right: 38px;
  border-right: 1px solid #dfe3e8;
}

.heloc-phase-column:last-child {
  padding-left: 38px;
}

.heloc-phase-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.heloc-phase-heading h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  text-transform: uppercase;
  color: #1f2937;
}

.heloc-phase-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf3ff;
  color: #2867a8;
  font-size: 22px;
  border-radius: 50%;
}

.heloc-phase-icon-green {
  background: #edf8ed;
  color: #3d8745;
}

.heloc-phase-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 16px;
  font-size: inherit;
  line-height: inherit;
  color: #2f3136;
}

.heloc-phase-item:last-child {
  margin-bottom: 0;
}

.heloc-phase-check {
  flex: 0 0 auto;
  font-weight: 700;
  color: #60666d;
}

@media (max-width: 768px) {
  .heloc-phase-box {
    padding: 24px 20px;
    margin: 28px 0;
  }

  .heloc-phase-grid {
    grid-template-columns: 1fr;
  }

  .heloc-phase-column:first-child {
    padding-right: 0;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-right: none;
    border-bottom: 1px solid #dfe3e8;
  }

  .heloc-phase-column:last-child {
    padding-left: 0;
  }

  .heloc-phase-heading h3 {
    font-size: 20px;
  }
}

li {
  margin-bottom: 10px;
}

.footer-disclosure p {
  font-size: 14px;
  line-height: 1.6;
  color: #6b6f76;
  margin: 0;
}


@media (max-width: 600px) {
  .sticky-cta-disclaimer {
    white-space: normal !important;
  }
}

.footer-partner-info {
  margin-top: 18px;
}

.partner-service-line {
  margin: 0 0 12px;
}

.footer-partner-info address {
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}

.footer-partner-info address {
  margin: 0;
  font-style: normal;
  line-height: 1.5;
  font-size: 15px;
}

.footer-partner-info address strong {
  font-size: inherit;
  font-weight: 600;
}

.modal-partner-info {
  margin-top: 22px;
}

.modal-partner-service {
  margin: 0 0 12px;
}

.modal-partner-info address {
  margin: 0;
  font-style: normal;
  font-size: 15px;
  line-height: 1.5;
}

.modal-partner-info address strong {
  font-size: inherit;
  font-weight: 600;
}

.footer-column:nth-child(2) p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.sponsored-disclaimer {
  font-size: 13px;
  line-height: 1.45;
  color: #666666;
  margin: 6px 0 0;
}
/* Match the homepage's plain-text email and align all three article footer columns. */
.footer-column nav a{align-items:flex-start;line-height:1.6}
.footer-column .footer-email{font-size:.875rem;line-height:1.6;margin:0;overflow-wrap:anywhere}

/* Match the original article template copyright size. */
.footer-legal p{font-size:14px;line-height:1.6}

/* Consistent spacing for the updated article footer disclaimer. */
.footer-disclosure-updated p+p{margin-top:1rem}
