*{box-sizing:border-box}

:root{
  --ink:#152238;
  --soft:#3f4d61;
  --muted:#748091;
  --paper:#fbfaf7;
  --white:#fff;
  --line:#dce2e6;
  --teal:#168b7b;
  --mint:#56d1bc;
  --navy:#17345b;
  --blue:#377ef7;
}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
}

a{color:inherit}

.wrap{
  width:min(1180px,92%);
  margin:auto;
}

.reading-wrap{
  width:min(760px,90%);
  margin:auto;
}

/* HEADER */

.article-header{
  border-bottom:1px solid var(--line);
  background:rgba(251,250,247,.97);
}

.article-header-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
}

.article-brand{
  display:flex;
  flex-direction:column;
  text-decoration:none;
}

.article-brand img{
  height:42px;
  width:auto;
  object-fit:contain;
  object-position:left;
}

.article-brand span{
  color:var(--muted);
  font-size:.75rem;
  font-weight:700;
}

.article-nav{
  display:flex;
  gap:23px;
  align-items:center;
}

.article-nav a{
  text-decoration:none;
  font-size:.87rem;
  font-weight:800;
}

.article-nav a:last-child{
  color:var(--teal);
}

/* MASTHEAD */

.article-mast{
  padding:54px 0 35px;
}

.back-link{
  display:inline-block;
  margin-bottom:36px;
  color:var(--soft);
  text-decoration:none;
  font-size:.8rem;
  font-weight:800;
}

.article-category{
  display:block;
  margin-bottom:15px;
  color:var(--teal);
  font-size:.73rem;
  font-weight:900;
  letter-spacing:.14em;
}

.article-mast h1{
  max-width:1000px;
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(3.2rem,7vw,6.6rem);
  line-height:.94;
  letter-spacing:-.055em;
}

.article-dek{
  max-width:800px;
  margin:27px 0 25px;
  color:var(--soft);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1.25rem,2.5vw,1.65rem);
  line-height:1.55;
}

.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
}

.article-meta span+span:before{
  content:"•";
  margin-right:16px;
  color:#a5adb6;
}

/* HERO */

.article-hero{
  width:min(1180px,92%);
  min-height:520px;
  margin:0 auto 55px;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg,#dce9ea,#edf1ef 45%,#afc8cd);
}

.article-hero img{
  display:block;
  width:100%;
  height:100%;
  min-height:520px;
  object-fit:cover;
}

.article-hero.placeholder:after{
  content:"Editorial photography coming next";
  position:absolute;
  left:25px;
  bottom:22px;
  padding:9px 12px;
  background:rgba(251,250,247,.92);
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.08em;
}

/* STORY */

.article-body{
  padding-bottom:80px;
}

.article-body p{
  margin:0 0 25px;
  color:#28364a;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.14rem;
  line-height:1.83;
}

.article-body h2{
  margin:54px 0 19px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:2.25rem;
  line-height:1.05;
  letter-spacing:-.03em;
}

.article-body h3{
  margin:35px 0 14px;
  font-size:1.2rem;
}

.article-body strong{color:var(--ink)}

.stat-box{
  margin:45px 0;
  padding:30px 32px;
  border-top:4px solid var(--teal);
  border-bottom:1px solid var(--line);
  background:#f2f7f5;
}

.stat-number{
  display:block;
  margin-bottom:8px;
  color:var(--navy);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(2.5rem,7vw,4.7rem);
  line-height:1;
  letter-spacing:-.05em;
}

.stat-box p{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  font-size:.96rem;
  line-height:1.6;
}

.takeaway{
  margin:50px 0;
  padding:32px;
  background:var(--navy);
  color:white;
}

.takeaway span{
  color:var(--mint);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.13em;
}

.takeaway h2{
  margin:9px 0 13px;
  color:white;
}

.takeaway p{
  margin:0;
  color:#e2eaf0;
  font-family:Arial,Helvetica,sans-serif;
  font-size:1rem;
  line-height:1.7;
}

/* SOURCES */

.sources{
  margin-top:55px;
  padding-top:20px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.76rem;
  line-height:1.7;
}

.sources strong{
  color:var(--soft);
}

.sources a{
  color:var(--muted);
}

/* CALCULATOR */

.mini-calc{
  margin:45px 0;
  padding:32px;
  border:1px solid var(--line);
  background:white;
}

.mini-calc h2{
  margin-top:0;
}

.calc-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.calc-grid label{
  display:flex;
  flex-direction:column;
  gap:7px;
  color:var(--soft);
  font-size:.78rem;
  font-weight:800;
}

.calc-grid input{
  width:100%;
  padding:13px;
  border:1px solid #cbd5df;
  border-radius:4px;
  font-size:1rem;
}

.calc-button{
  margin-top:20px;
  padding:13px 18px;
  border:0;
  border-radius:4px;
  background:var(--navy);
  color:white;
  font-weight:900;
  cursor:pointer;
}

.calc-result{
  display:none;
  margin-top:20px;
  padding:18px;
  background:#eef7f5;
  border-left:4px solid var(--teal);
  font-weight:700;
  line-height:1.6;
}

/* CTA */

.article-cta{
  padding:45px 0;
  background:#eef4f5;
  border-top:1px solid var(--line);
}

.article-cta-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:35px;
}

.article-cta h2{
  margin:0 0 8px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:2rem;
}

.article-cta p{
  margin:0;
  color:var(--soft);
}

.article-button{
  flex:0 0 auto;
  padding:14px 19px;
  border-radius:5px;
  background:var(--navy);
  color:white;
  text-decoration:none;
  font-weight:900;
}

/* RELATED */

.related{
  padding:60px 0;
}

.related-label{
  display:block;
  margin-bottom:22px;
  color:var(--teal);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.13em;
}

.related-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.related a{
  padding-top:18px;
  border-top:2px solid var(--ink);
  text-decoration:none;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.3rem;
  line-height:1.15;
}

/* FOOTER */

.article-footer{
  padding:40px 0;
  background:#102238;
  color:white;
}

.article-footer-inner{
  display:flex;
  justify-content:space-between;
  gap:25px;
}

.article-footer p{
  color:#adbdca;
  font-size:.85rem;
}

.article-footer-links{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.article-footer a{
  color:#dbe4ea;
  text-decoration:none;
  font-size:.82rem;
  font-weight:700;
}

@media(max-width:760px){
  .article-header-inner{
    align-items:flex-start;
    flex-direction:column;
    padding:15px 0;
  }

  .article-nav{
    width:100%;
    overflow-x:auto;
  }

  .article-nav a{
    flex:0 0 auto;
  }

  .article-mast{
    padding-top:35px;
  }

  .article-hero,
  .article-hero img{
    min-height:300px;
  }

  .calc-grid,
  .related-grid{
    grid-template-columns:1fr;
  }

  .article-cta-inner,
  .article-footer-inner{
    align-items:flex-start;
    flex-direction:column;
  }
}
