/* Blog pages: built on v2.css tokens. Solid header, yellow article hero, a calm reading column,
   and the savings calculator as the one interactive moment. */

.top--solid { position: relative; background: var(--ink); }
.top--solid::before { display: none; }
.top--solid .top__nav a { opacity: .9; }

/* ---------- Article hero ---------- */
.ahero { background: var(--sun); padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.ahero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(28px, 5vw, 72px); align-items: end; }
.ahero .eyebrow { color: var(--ink); opacity: .72; }
.ahero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; max-width: 17ch; }
.ahero__dek { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); max-width: 52ch; }
.ahero__by { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.ahero__by img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; box-shadow: 0 0 0 3px var(--white); }
.ahero__by span { opacity: .75; font-weight: 500; }
.ahero__num { background: var(--ink); color: var(--white); border-radius: 26px; padding: 28px 28px 26px; box-shadow: 0 30px 60px -28px rgba(16,36,42,.6); }
.ahero__num b { display: block; font-family: var(--display); font-size: clamp(44px, 4.2vw, 58px); line-height: .95; color: var(--sun); letter-spacing: -0.02em; }
.ahero__num span { display: block; margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.8); }
.ahero__was { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: rgba(255,255,255,.65); }
.ahero__was s { color: rgba(255,255,255,.85); }

/* ---------- Reading column ---------- */
.post { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); background: var(--white); }
.post__col { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); font-size: 19px; line-height: 1.65; }
.post__col > * + * { margin-top: 18px; }
.post h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; margin-top: 56px; }
.post h3 { font-size: 22px; line-height: 1.2; }
.post p { color: #2A3F45; }
.post a { color: var(--ink); text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.post ul { padding-left: 1.1em; }
.post li + li { margin-top: 8px; }
.post strong { color: var(--ink); }

.tldr { background: var(--salt); border-radius: 22px; padding: 26px 28px; border-left: 6px solid var(--sun); }
.tldr h2 { margin: 0 0 12px; font-size: 22px; }
.tldr ul { margin: 0; }

.ttable { width: 100%; border-collapse: collapse; font-size: 17px; margin-top: 24px; }
.ttable th, .ttable td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ttable thead th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.ttable td b { font-family: var(--display); font-size: 22px; }
.ttable td.is-new b { background: linear-gradient(104deg, transparent 2%, var(--sun) 4%, var(--sun) 95%, transparent 97%); padding: 0 6px; }

.who { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.who li { margin: 0; background: var(--salt); border-radius: 20px; padding: 22px; font-size: 17px; line-height: 1.55; }
.who li + li { margin-top: 0; }
.who b { display: block; font-family: var(--display); font-size: 21px; line-height: 1.15; margin-bottom: 8px; }
.who li.is-key { background: var(--ink); color: var(--white); }
.who li.is-key p, .who li.is-key { color: rgba(255,255,255,.85); }
.who li.is-key b { color: var(--sun); }

.tl { list-style: none; padding: 0; margin-top: 24px; position: relative; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--sand); border-radius: 3px; }
.tl li { position: relative; padding-left: 40px; margin: 0 0 18px; font-size: 17px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 5px; width: 21px; height: 21px; border-radius: 50%; background: var(--white); border: 4px solid var(--ink); box-sizing: border-box; }
.tl li.is-hot::before { background: var(--sun); }
.tl time { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); }

.note { background: #FFF6D6; border-radius: 18px; padding: 18px 22px; font-size: 17px; }

/* ---------- Calculator ---------- */
.calc { max-width: 900px; margin: 48px auto; padding: clamp(24px, 4vw, 40px); background: var(--ink); color: var(--white); border-radius: 30px; box-shadow: 0 34px 70px -30px rgba(16,36,42,.55); }
.calc__wrap { padding: 0 var(--gutter); }
.calc h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 0 0 22px; color: var(--white); }
.calc__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px 32px; align-items: end; }
.calc label { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.calc__val { display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--sun); margin-bottom: 4px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; cursor: pointer; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--sun) var(--p, 18%), rgba(255,255,255,.15) var(--p, 18%)); }
.calc input[type=range]::-moz-range-track { height: 10px; border-radius: 99px; background: rgba(255,255,255,.15); }
.calc input[type=range]::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--sun); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%; background: var(--white); border: 5px solid var(--sun); }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 5px solid var(--sun); }
.calc input[type=number] { width: 100%; font: inherit; font-size: 20px; font-weight: 700; color: var(--ink); background: var(--white); border: 0; border-radius: 12px; padding: 12px 14px; }
.calc__hint { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.55); }
.calc__res { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.calc__res > span { font-size: 15px; font-weight: 600; }
.seg { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; color: var(--white); padding: 8px 18px; border-radius: 999px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.calc__out { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc__out li { background: rgba(255,255,255,.06); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.calc__out li.is-best { background: var(--sun); color: var(--ink); }
.calc__when { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.calc__amt { font-family: var(--display); font-size: clamp(28px, 3vw, 36px); line-height: 1.05; margin-top: 4px; }
.calc__lbl { font-size: 13px; opacity: .7; }
.calc__save { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--sun); min-height: 1.4em; }
.calc__out li.is-best .calc__save { color: var(--ink); }
.calc__foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.calc__foot p { font-size: 13px; color: rgba(255,255,255,.6); max-width: 56ch; }

/* ---------- Article CTA and author ---------- */
.acta { margin-top: 48px; background: var(--sun); border-radius: 26px; padding: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 24px; align-items: center; }
.acta > img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; box-shadow: 0 0 0 4px var(--white); }
.acta h3 { font-size: 26px; line-height: 1.1; }
.acta p { margin-top: 8px; font-size: 17px; color: var(--ink); }
.acta__go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.acta .btn--line { border-color: var(--ink); }
.acta__kw { height: 26px; width: auto; margin-top: 10px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--bay); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; font-size: 17px; }

.sources { font-size: 15px; color: var(--mist); }
.sources li { margin-top: 6px; }
.disclaimer { font-size: 14px; color: var(--mist); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Blog index ---------- */
.bhero { background: var(--sun); padding: clamp(44px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.bhero h1 { font-size: clamp(44px, 6vw, 80px); }
.bhero p { margin-top: 14px; font-size: 20px; max-width: 46ch; }
.blist { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 110px); background: var(--white); }
.bcard { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 0; border-radius: 28px; overflow: hidden; background: var(--salt); text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.bcard:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -30px rgba(16,36,42,.45); }
.bcard__art { background: var(--ink); color: var(--white); padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; position: relative; overflow: hidden; }
.bcard__art::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); opacity: .95; }
.bcard__art b { position: relative; font-family: var(--display); font-size: 64px; line-height: .95; color: var(--white); }
.bcard__art span { position: relative; margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.75); }
.bcard__body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.bcard__meta { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bay); }
.bcard h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; }
.bcard p { color: var(--mist); font-size: 17px; }
.bcard__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.bcard__go svg { width: 18px; height: 18px; }

/* ---------- Home page teaser ---------- */
.teaser { padding: 0 0 var(--sec); }
.teaser__card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 36px; align-items: center; padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.teaser__card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(16,36,42,.4); }
.teaser__num { font-family: var(--display); font-size: clamp(40px, 5vw, 60px); line-height: .9; background: var(--sun); padding: 16px 18px; border-radius: 18px; }
.teaser__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bay); }
.teaser h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; margin-top: 6px; }
.teaser p { margin-top: 6px; color: var(--mist); }

@media (max-width: 860px) {
  .ahero__grid { grid-template-columns: 1fr; }
  .post__col { font-size: 17px; }
  .who { grid-template-columns: 1fr; }
  .calc { border-radius: 0; margin: 40px calc(var(--gutter) * -1); }
  .calc__wrap { padding: 0; }
  .calc__in { grid-template-columns: 1fr; }
  .calc__out { grid-template-columns: 1fr; }
  .calc__out li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .calc__when { width: 100%; }
  .calc__save { width: 100%; margin-top: 0; }
  .ttable { font-size: 15px; }
  .ttable td b { font-size: 18px; }
  .acta { grid-template-columns: 1fr; }
  .bcard { grid-template-columns: 1fr; }
  .bcard__art { min-height: 200px; }
  .teaser__card { grid-template-columns: 1fr; }
  .teaser__card .btn { width: 100%; }
  body.has-dock { padding-bottom: 80px; }
}
/* the article's list padding must not reach the calculator cards */
.post .calc__out { padding-left: 0; }
.post .calc__out li + li { margin-top: 0; }
.calc__hint { color: rgba(255,255,255,.7); }
/* buttons inside the article keep their own colours (the article link colour must not win) */
.post a.btn { text-decoration: none; }
.post a.btn--ink, .post a.btn--ink:hover { color: var(--white); }
.post a.btn--line:hover { color: var(--white); }
.acta .acta__kw { display: block; width: auto; height: 26px; margin-top: 12px; border-radius: 0; box-shadow: none; }
