/* ================================================================
   CALCULATOR ARTICLE — the readable half of every /q/ page
   Scoped under .calc-article so it never touches the dark calculator
   UI above it (engine.css). Palette and fonts follow css/theme.css.
   Generated markup: scripts/calc-articles/build.mjs
   ================================================================ */
.calc-article {
  background: #F8FAFC;
  color: #0f172a;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  border-top: 1px solid #e2e8f0;
}
.calc-article .wrap { max-width: 960px; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }
.calc-article h2, .calc-article h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400; color: #0D2B6B; line-height: 1.2; letter-spacing: -.01em;
}
.calc-article h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 .9rem; }
.calc-article h3 { font-size: 1.3rem; margin: 2.75rem 0 .75rem; }
.calc-article p { margin: 0 0 1rem; color: #334155; }
.calc-article p.lead { font-size: 1.12rem; color: #0f172a; }
.calc-article a { color: #2563eb; }
.calc-article .kicker {
  display: inline-block; margin-bottom: .75rem; padding: .3rem .8rem; border-radius: 999px;
  background: #e0f2fe; color: #0369a1; font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

/* Two worked examples, side by side on wide screens */
.calc-article .cases { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 1rem 0 0; }
@media (min-width: 760px) { .calc-article .cases { grid-template-columns: 1fr 1fr; } }
.calc-article .case {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.4rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.calc-article .case-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.calc-article .case h4 {
  font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
  font-size: 1.2rem; color: #0D2B6B; margin: .3rem 0 .6rem; line-height: 1.3;
}
.calc-article .case p { font-size: .95rem; margin-bottom: .8rem; }
.calc-article table {
  width: 100%; border-collapse: collapse; font-size: .86rem; margin: .5rem 0 .9rem;
  font-variant-numeric: tabular-nums;
}
.calc-article th, .calc-article td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.calc-article th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; font-weight: 700; }
.calc-article td:first-child { font-weight: 600; color: #0f172a; white-space: nowrap; }
.calc-article .verdict { font-weight: 600; color: #0f172a; }
.calc-article .case .run {
  display: inline-block; margin-top: .25rem; padding: .5rem 1rem; border-radius: 999px;
  background: #0D2B6B; color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none;
}
.calc-article .case .run:hover { background: #163a8a; }

/* Link to the guide behind the lever */
.calc-article .guide-link { margin: 1rem 0 0; font-size: .95rem; }
.calc-article .guide-link a { font-weight: 600; }

/* The one sentence that flips the answer */
.calc-article .lever {
  margin: 1.5rem 0 0; padding: 1.25rem 1.5rem; border-left: 4px solid #16a34a;
  background: #f0fdf4; border-radius: 0 12px 12px 0;
}
.calc-article .lever p { margin: 0; color: #14532d; }
.calc-article .lever strong { color: #14532d; }

.calc-article ul { margin: 0 0 1rem 1.25rem; padding: 0; color: #334155; }
.calc-article li { margin-bottom: .4rem; }

/* FAQ */
.calc-article details {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: .9rem 1.25rem; margin-bottom: .6rem;
}
.calc-article summary {
  cursor: pointer; font-weight: 600; color: #0f172a; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.calc-article summary::-webkit-details-marker { display: none; }
.calc-article summary::after { content: '+'; color: #64748b; font-weight: 400; flex-shrink: 0; }
.calc-article details[open] summary::after { content: '\2013'; }
.calc-article details p { margin: .75rem 0 0; font-size: .95rem; }

/* App call to action with the App Clip QR code */
.calc-article .cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem;
  margin-top: 2.75rem; padding: 1.75rem; border-radius: 16px;
  background: #0D2B6B; color: #fff;
}
.calc-article .cta h3 { color: #fff; margin: 0 0 .5rem; }
.calc-article .cta p { color: rgba(255,255,255,.82); margin-bottom: 1rem; }
.calc-article .cta .cta-text { flex: 1 1 320px; }
.calc-article .cta .btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px;
  background: #fff; color: #0D2B6B; font-weight: 700; text-decoration: none; font-size: .95rem;
}
.calc-article .cta .btn:hover { background: #e0f2fe; }
.calc-article .qr { flex: 0 0 auto; text-align: center; font-size: .78rem; color: rgba(255,255,255,.8); max-width: 180px; }
.calc-article .qr svg { display: block; width: 148px; height: 148px; background: #fff; padding: 8px; border-radius: 10px; margin: 0 auto .5rem; }

/* The other calculators */
.calc-article .related { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-top: 1rem; }
@media (min-width: 640px) { .calc-article .related { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .calc-article .related { grid-template-columns: 1fr 1fr 1fr; } }
.calc-article .related a {
  display: block; padding: .85rem 1rem; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0;
  color: #0D2B6B; text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.35;
}
.calc-article .related a:hover { border-color: #2563eb; }

.calc-article .fine { margin-top: 2.5rem; font-size: .82rem; color: #64748b; }
.calc-article .fine a { color: #64748b; }

/* Offer under the app call to action: the embeddable version (/embed/). */
.calc-article .embed-offer { font-size: .95rem; color: var(--text-muted, #94a3b8); margin: 1rem 0 2rem; }
