/* Asurgo final build: the T10 tool page (Wave 20 Run 98, 2026-11-02). Shared by /calculators/burial/ and /calculators/mortgage/.
   Locked style (style guide §5): the calculator is a solid navy card with white selections; the result sits in white cards.
   T10 order: the tool first, the live result under it, Contents (rail on desktop, under the result on phones), the article in
   banded sections, FAQ, the close card. Loaded after tokens.css, components.css and guide.css on <body class="f tl">. */

.tl [hidden] { display: none !important; }
.tl .sr-only, .tl .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tl main { color: var(--body-c); font: 400 var(--fs-body)/1.6 var(--body); overflow-wrap: break-word; }
.tl main h1, .tl main h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: var(--track-h2); text-wrap: balance; }
.tl main h3 { font: 700 20px/1.35 var(--head); color: var(--ink); }
.tl main :where(p, li) a:not(.f-btn):not([class*="btn"]) { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; padding: 12px 0; }
.tl .fade-in { opacity: 1; transform: none; }

/* ---------- Hero: eyebrow, H1, intro, byline ---------- */
.tl .tl-hero { padding: 24px 0 24px; }
.tl .tl-hero .f-in { display: grid; gap: 14px; }
.tl .tl-hero .f-in > * { max-width: 860px; }
.tl .calc-eyebrow { font: 600 16px/1.4 var(--body); color: var(--body-c); text-transform: none; letter-spacing: 0; }
.tl .tl-hero h1 { margin: 0; font-size: var(--fs-h1-guide); line-height: 1.05; }
.tl .calc-hero__sub { margin: 0; font-size: 19px; line-height: 1.55; color: var(--body-c); }
.tl .calc-byline { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--body-c); }
.tl .calc-byline > a { flex: none; }
.tl .calc-byline__avatar { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tl .calc-byline a { color: var(--navy); font-weight: 600; }
.tl .calc-byline__meta { display: block; }

/* ---------- Tool + result + rail ---------- */
.tl .tl-tool { padding: 8px 0 56px; }
.tl .tl-grid { display: grid; gap: 20px; }
.tl .tl-main { display: grid; gap: 16px; min-width: 0; }
.tl .tl-card { padding: 24px 20px; border-radius: var(--r-xl); background: var(--navy); color: var(--white); }
.tl .tl-card .container { padding: 0; max-width: none; }
.tl .tl-card :focus-visible { outline: var(--ring-on-dark); outline-offset: 2px; }
.tl .calc-controls__inner { display: grid; gap: 20px; }
.tl .calc-control-group { display: grid; gap: 10px; }
.tl .calc-label, .tl .calc-field__label { font: 700 18px/1.3 var(--head); color: var(--white); }
.tl .calc-select { width: 100%; min-height: 56px; padding: 0 44px 0 16px; border: 0; border-radius: var(--r-s); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23104975' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; font: 600 18px/1.2 var(--body); color: var(--ink); cursor: pointer; }
.tl .calc-toggle, .tl .calc-tier { display: grid; gap: 10px; }
.tl .calc-toggle__btn, .tl .calc-tier__btn { display: grid; align-content: center; gap: 2px; min-height: 56px; padding: 12px 16px; border: 2px solid rgba(255, 255, 255, .55); border-radius: var(--r-m); background: transparent; color: var(--white); font: 700 18px/1.25 var(--body); text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.tl .calc-toggle__btn:hover, .tl .calc-tier__btn:hover { background: rgba(255, 255, 255, .1); }
.tl .calc-toggle__btn--active, .tl .calc-tier__btn--active, .tl .calc-toggle__btn--active:hover, .tl .calc-tier__btn--active:hover { border-color: var(--white); background: var(--white); color: var(--navy); }
.tl .calc-tier__label { font-weight: 700; }
.tl .calc-tier__desc { font: 400 16px/1.35 var(--body); }
.tl .buffer-wrap { margin-top: 20px; }
.tl .buffer-toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; font: 600 18px/1.35 var(--body); color: var(--white); cursor: pointer; }
.tl .buffer-toggle input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--white); cursor: pointer; }
.tl .calc-controls__note, .tl .calc-controls__helper { margin: 12px 0 0 !important; font-size: 16px; line-height: 1.55; color: var(--on-navy-2); }
.tl .calc-fallback { padding: 18px 20px; border-radius: var(--r-m); background: var(--white); color: var(--ink); }
.tl .calc-fallback a { color: var(--navy); font-weight: 700; }

/* the result: the line items, then the coverage card and the rest, white cards */
.tl .tl-result-a, .tl .tl-result-b { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); }
.tl .tl-result-a .container, .tl .tl-result-b .container { padding: 0; max-width: none; }
.tl .calc-category { border-bottom: 1px solid var(--line); }
.tl .calc-category:last-child { border-bottom: 0; }
.tl .calc-category__header { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; cursor: pointer; }
.tl .calc-category__header::-webkit-details-marker { display: none; }
.tl .calc-category__header::before { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--navy); font: 600 20px/1 var(--body); }
.tl .calc-category[open] > .calc-category__header::before { content: "\2212"; }
.tl .calc-category__header h3 { flex: 1; margin: 0; font-size: 18px; }
.tl .calc-category__subtotal { font: 700 18px/1.2 var(--head); color: var(--ink); font-variant-numeric: tabular-nums; }
.tl .calc-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 0 10px 40px; border-top: 1px solid var(--mist); font-size: 17px; }
.tl .calc-item__label { color: var(--body-c); }
.tl .calc-item__value { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl .calc-item__value--excluded { color: var(--body-c); text-decoration: line-through; font-weight: 400; }
.tl .item-context { flex-basis: 100%; font-size: 16px; color: var(--body-c); }
.tl .calc-category > p { padding: 4px 0 12px 40px !important; font-size: 16px !important; color: var(--body-c); }
.tl .tl-result-b .container { display: grid; gap: 16px; }
.tl .calc-recommendation__card { display: grid; gap: 4px; padding: 20px; border-radius: var(--r-l); background: var(--mist); }
.tl .calc-recommendation__label { font: 700 18px/1.3 var(--head); color: var(--ink); }
.tl .calc-recommendation__amount { font: 500 48px/1.05 var(--serif); color: var(--ink); letter-spacing: var(--track-h1); }
.tl .calc-recommendation__note, .tl .calc-zero-state p { font-size: 16px; color: var(--body-c); }
.tl .calc-callout { padding: 16px 18px; border-radius: var(--r-m); background: var(--sky); font-size: 17px; line-height: 1.55; color: var(--ink); }
.tl .calc-callout--neutral, .tl .calc-callout--equal { background: var(--mist); }
.tl .calc-callout--below { background: var(--green-bg); }
.tl .calc-callout--above { background: var(--amber-bg); color: var(--amber); }
.tl .calc-callout strong { color: inherit; }
.tl .calc-trend { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); }
.tl .calc-trend-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.tl .calc-trend-item .year { font-size: 16px; color: var(--body-c); }
.tl .calc-trend-item .amount { font: 700 20px/1.2 var(--head); color: var(--ink); }
.tl .calc-trend-arrow { color: var(--body-c); }
.tl .calc-trend-note { margin-top: 10px; font-size: 16px; color: var(--body-c); }
.tl .calc-coverage-rec { display: grid; gap: 14px; justify-items: start; padding: 18px; border-radius: var(--r-m); background: var(--cream-2); border: 1px solid var(--line); }
.tl .calc-coverage-rec p { font-size: 17px; line-height: 1.55; color: var(--ink); }
.tl .btn--cta { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 28px; border-radius: var(--r-pill); background: var(--navy); color: var(--white); font: 700 18px/1.25 var(--body); text-decoration: none; }
.tl .btn--cta:hover { background: var(--navy-d); }
.tl .calc-bar-chart, .tl .calc-inflation { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); }
.tl .calc-bar-chart h3, .tl .calc-inflation h3 { margin: 0 0 12px; font-size: 19px; }
.tl .calc-bars { display: grid; gap: 10px; }
.tl .calc-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-size: 16px; }
.tl .calc-bar-label { color: var(--ink); }
.tl .calc-bar-amount { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.tl .calc-bar-track { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--mist); overflow: hidden; }
.tl .calc-bar-fill { height: 100%; border-radius: 5px; background: var(--navy); }
.tl .calc-bar-total { margin-top: 12px; font: 700 18px/1.3 var(--head); color: var(--ink); }
.tl .calc-inflation__intro { font-size: 17px; margin-bottom: 12px; }
.tl .calc-inflation canvas { display: block; width: 100%; max-width: 100%; height: auto; }
.tl .calc-print { display: flex; }
.tl .calc-print__btn { min-height: 56px; cursor: pointer; }

/* sticky total (the page script shows it while the line items are on screen) */
.tl .sticky-total { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; transform: translateY(100%); transition: transform .2s; background: var(--navy); color: var(--white); box-shadow: 0 -4px 16px rgba(14, 34, 51, .18); }
.tl .sticky-total.is-visible { transform: none; }
.tl .sticky-total .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--wrap); min-height: 56px; margin: 0 auto; padding: 0 var(--gutter); font: 700 18px/1.2 var(--body); }
.tl .sticky-total__amount { font-variant-numeric: tabular-nums; }

/* Contents: the compact box (rail on desktop) */
.tl .tl-toc { min-width: 0; }
.tl .tl-toc-d > summary { font: 700 18px/1.3 var(--head); color: var(--ink); }
.tl .tl-toc-d ol { display: grid; margin: 0; padding: 0 20px 14px 40px; }
.tl .tl-toc-d a { display: flex; align-items: center; min-height: var(--tap); color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- The article ---------- */
.tl .tl-sec { padding: 56px 0; }
.tl .tl-prose > * { max-width: 820px; }
.tl .tl-prose > * + * { margin-top: 16px; }
.tl .tl-sec h2 { margin: 0 0 22px; font-size: var(--fs-h2-l); line-height: 1.13; }
.tl .tl-sec h2 + * { margin-top: 0; }
.tl .tl-prose > h3 { margin-top: 28px; }
.tl .tl-sec h2 a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.tl .exam-disclosure { padding: 16px 18px; border-radius: var(--r-m); background: var(--amber-bg); color: var(--amber); font-size: 17px; }
.tl .calc-faq { display: grid; }
.tl .calc-faq > h2 { margin-bottom: 18px; }
.tl .calc-faq > * { max-width: 820px; }
.tl .f-faq > summary { font: 600 18px/1.4 var(--body); color: var(--ink); }
.tl .f-faq > summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); color: var(--navy); font: 600 22px/1 var(--body); }
.tl .f-faq[open] > summary::after { content: "\2212"; background: var(--white); }

/* ---------- Close card ---------- */
.tl .tl-close-w { padding: 0 0 64px; }
.tl .calc-cta { display: grid; gap: 14px; justify-items: start; padding: 32px 24px; border-radius: var(--r-2xl); background: var(--mist); }
.tl .calc-cta.f-in { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.tl .calc-cta__bar { display: none; }
.tl .calc-cta__headline { font: 500 var(--fs-h2)/1.15 var(--serif); color: var(--ink); }
.tl .calc-cta__headline em { font-style: italic; }
.tl .calc-cta__phone { font-size: 18px; }
.tl .calc-cta__phone a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: .18em; padding: 12px 0; }

@media (min-width: 768px) {
  .tl .calc-toggle, .tl .calc-tier { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl .tl-card { padding: 32px; }
  .tl .tl-result-a, .tl .tl-result-b { padding: 24px 28px; }
  .tl .calc-cta { padding: 48px; }
}
@media (min-width: 1024px) {
  .tl .tl-grid { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 48px; align-items: start; }
  .tl .tl-main { max-width: 760px; }
  .tl .tl-tool { padding-bottom: 80px; }
  .tl .tl-sec { padding: 96px 0; }
  .tl .tl-hero { padding: 32px 0 32px; }
}
@media (prefers-reduced-motion: reduce) { .tl .sticky-total, .tl .calc-toggle__btn, .tl .calc-tier__btn { transition: none; } }
.tl .tl-toc .f-toc-m.tl-toc-d { display: block; }
.tl .calc-category__header h2 { flex: 1; margin: 0; font: 700 18px/1.35 var(--head); color: var(--ink); letter-spacing: 0; }
.tl .calc-byline > a { display: inline-flex; padding: 2px; border-radius: 50%; }
.tl .calc-label { display: flex; align-items: center; min-height: 48px; }

/* ---------- The mortgage calculator (Run 99): sliders, the two result cards, the comparison bars, the timeline ---------- */
.tl { --color-blue: #104975; --color-orange: #5294BA; }   /* the script paints its bars with these two */
.tl .calc-inputs__inner { display: grid; gap: 22px; }
.tl .calc-field { display: grid; gap: 4px; }
.tl .calc-field__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tl .calc-field__value { font: 700 22px/1.2 var(--head); color: var(--white); font-variant-numeric: tabular-nums; }
.tl .calc-age-controls { display: flex; align-items: center; gap: 10px; }
.tl .calc-stepper__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; background: transparent; color: var(--white); font: 600 24px/1 var(--body); cursor: pointer; }
.tl .calc-stepper__btn:hover { background: rgba(255, 255, 255, .12); }
.tl .calc-slider { width: 100%; height: 48px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.tl .calc-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.tl .calc-slider::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.tl .calc-slider::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--white); }
.tl .calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border: 3px solid var(--navy); border-radius: 50%; background: var(--white); box-shadow: 0 0 0 2px var(--white); }
.tl .calc-slider::-moz-range-thumb { width: 24px; height: 24px; border: 3px solid var(--navy); border-radius: 50%; background: var(--white); }
.tl .calc-field__range { display: flex; justify-content: space-between; font-size: 16px; color: var(--on-navy-2); }
.tl .calc-results__header { display: grid; gap: 10px; }
.tl .calc-results__headline { margin: 0; font-size: var(--fs-h2); line-height: 1.15; }
.tl .calc-results__subhead { font-size: 17px; color: var(--body-c); }
.tl .calc-results__cards { display: grid; gap: 14px; }
.tl .calc-result-card { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-l); background: var(--mist); }
.tl .calc-result-card__header { display: grid; gap: 2px; }
.tl .calc-result-card__h { margin: 0; font: 700 20px/1.3 var(--head); color: var(--ink); letter-spacing: 0; }
.tl .calc-result-card__type { font-size: 16px; color: var(--body-c); }
.tl .calc-result-card__label { font: 700 17px/1.3 var(--head); color: var(--ink); }
.tl .calc-result-card__amount { font: 500 44px/1.05 var(--serif); color: var(--ink); letter-spacing: var(--track-h1); }
.tl .calc-result-card__term { font: 700 18px/1.3 var(--head); color: var(--navy); }
.tl .calc-result-card__note, .tl .calc-result-card__gap-note { font-size: 17px; line-height: 1.55; color: var(--body-c); }
.tl .calc-result-card__gap-note { padding: 12px 14px; border-radius: var(--r-s); background: var(--amber-bg); color: var(--amber); }
.tl .calc-runway-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.tl .calc-runway-amount { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl .calc-comparison, .tl .calc-timeline { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); }
.tl .calc-comparison h3, .tl .calc-timeline h3 { margin: 0 0 12px; font-size: 19px; }
.tl .calc-timeline__intro { font-size: 17px; margin-bottom: 12px; }
.tl .calc-timeline canvas { display: block; width: 100%; aspect-ratio: 2 / 1; max-height: 400px; }
@media (min-width: 768px) { .tl .calc-results__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl .calc-results--equity-only { grid-template-columns: 1fr; } }
.tl .tl-main > *, .tl .calc-inputs__inner, .tl .calc-field, .tl .calc-slider { min-width: 0; }
.tl .calc-field__label { display: inline-flex; align-items: center; min-height: 48px; }
.tl .tl-result-b .container > *, .tl .calc-results__cards > * { min-width: 0; } .tl canvas { max-width: 100% !important; }
.tl .calc-result-card { align-content: start; } .tl .calc-result-card__body { display: grid; gap: 6px; align-content: start; }

/* Wave 26: the closing button label wraps on small phones instead of widening the box (/calculators/burial/) */
@media (max-width: 479px) { .tl .calc-cta__btn { white-space: normal; text-align: center; } }
