/* Retained AHT calculator. This page-owned sheet keeps the calculator out of the shared CSS budget. */
.aht-calculator > .aht-calculator-grid { display: grid; gap: var(--s-5); align-items: start; }
.aht-calculator-intro { display: grid; gap: var(--s-3); }
.aht-calculator-intro h1 { max-width: 18ch; font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--track-tight); }
.aht-calculator-intro p { margin: 0; color: var(--muted); font-size: var(--fs-lead-sm); line-height: var(--lh-sub); }
.aht-calculator-intro strong { color: var(--ink); font-weight: var(--fw-display); }

.aht-form, .aht-instructions, .aht-results { padding: var(--s-5); }
.aht-form:hover, .aht-instructions:hover, .aht-results:hover { transform: none; box-shadow: none; border-color: var(--border); }
.aht-fields { display: grid; gap: var(--s-4); }
.aht-form .field > span { color: var(--ink); font-weight: var(--fw-display); }
.aht-form input[type="number"] { min-height: 52px; }
.aht-form > .btn { width: 100%; justify-content: center; margin-top: var(--s-5); }
.aht-status { min-height: 1.4em; margin: var(--s-2) 0 0; color: #b42318; }

.aht-instructions { align-self: stretch; background: var(--tile-wash), var(--bg-2); }
.aht-instructions h2, .aht-results h2 { font-size: var(--fs-subhead); line-height: var(--lh-tight); }
.aht-instructions ol { margin: var(--s-4) 0 0; padding-inline-start: 1.25rem; display: grid; gap: var(--s-3); color: var(--body); }
.aht-instructions li::marker { color: var(--purple); font-weight: var(--fw-display); }

.aht-results { grid-column: 1 / -1; gap: var(--s-5); background: var(--tile-wash), var(--bg-2); }
.aht-results[hidden] { display: none; }
.aht-results dl { margin: 0; display: grid; gap: var(--s-4); }
.aht-results dl > div { padding-top: var(--s-4); border-top: 1px solid var(--border); }
.aht-results dt { color: var(--muted); font-size: var(--fs-small); }
.aht-results dd { margin: var(--s-2) 0 0; color: var(--ink); font-size: var(--fs-h2); line-height: var(--lh-tight); font-variant-numeric: tabular-nums; }
.aht-results .btn { width: fit-content; }
.aht-noscript { grid-column: 1 / -1; margin: 0; color: #b42318; }

@media (min-width: 760px) {
  .aht-calculator > .aht-calculator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
  .aht-calculator-intro { grid-column: 1 / -1; }
  .aht-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aht-fields .field:last-child { grid-column: 1 / -1; }
  .aht-results dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1040px) {
  .aht-calculator > .aht-calculator-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
  .aht-calculator-intro { grid-column: 1; }
  .aht-form { grid-column: 1; }
  .aht-instructions { grid-column: 2; grid-row: 1 / span 2; margin-top: var(--s-7); }
}
