/* Missed-call calculator. Sits on the tools-page styles. */

@media (prefers-reduced-motion: reduce) {
  body { animation: none; opacity: 1; }
}

.p-hero h1 { max-width: 16ch; }
.byline { margin: 18px 0 0; color: var(--dim); font-size: 15px; }
.byline span { color: var(--text); font-weight: 650; }
.onpage { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.onpage a { color: var(--dim); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.tool-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 22px; align-items: start; margin-top: 28px; }
.tool-form, .tool-result { border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(35, 31, 32, 0.08); }
.tool-form { padding: 22px; }
.tool-result { position: sticky; top: 88px; padding: 22px; background: #faf8f4; }
.tool-form h2, .prose h2, .block h2 { margin: 0; text-align: left; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; max-width: 22ch; }
.lede-in { margin: 10px 0 0; color: #686164; font-size: 16px; line-height: 1.5; }
.fields { display: grid; gap: 16px; margin-top: 18px; }
fieldset.fields { border: 0; padding: 0; }
.fields legend, .field-label { font-size: 14px; font-weight: 700; }
.hint { margin: 4px 0 0; color: #686164; font-size: 13.5px; line-height: 1.45; font-weight: 450; }
.presets { display: grid; gap: 8px; margin-top: 8px; }
.tool-form .presets label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; font-weight: 500; line-height: 1.4; }
.tool-form .presets input { margin-top: 3px; }
header.light { background: #f7f5f2; }
.num { display: flex; align-items: center; height: 46px; margin-top: 6px; padding: 0 14px; border-radius: 10px; background: #f7f5f2; box-shadow: inset 0 0 0 1px rgba(35, 31, 32, 0.12); }
.num:focus-within { box-shadow: inset 0 0 0 2px #9a5b00; background: #fff; }
.num i { font-style: normal; color: #686164; }
.num input, .audit-box textarea { font: 500 16px/1.3 inherit; color: #231f20; }
.num input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: 1fr 88px; gap: 8px; align-items: center; }
.pair input[type="range"] { width: 100%; accent-color: #9a5b00; }
.tool-result .lbl { margin: 0; color: #686164; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tool-result b { display: block; margin-top: 6px; font-size: clamp(36px, 4vw, 52px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tool-result small { display: block; margin-top: 8px; color: #686164; font-size: 14px; }
.note, .bench, .quiet, .call-value, .coverage p { margin: 12px 0 0; color: #3a3537; font-size: 15px; line-height: 1.45; }
.quiet { color: #686164; }
.table-scroll { margin-top: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
caption { caption-side: bottom; padding-top: 8px; color: #686164; font-size: 12.5px; text-align: left; line-height: 1.4; }
th, td { padding: 8px 10px; border-bottom: 1px solid rgba(35, 31, 32, 0.08); text-align: right; vertical-align: top; }
th:first-child, td:first-child, tbody th { text-align: left; }
thead th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #686164; }
th small { display: block; letter-spacing: 0; text-transform: none; font-weight: 500; }

.block { padding-top: 28px; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: #3a3537; font-size: 17px; line-height: 1.55; }
.prose h2 { margin-top: 8px; }
.prose h3 { margin: 28px 0 0; font-size: 20px; letter-spacing: -0.02em; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose a { color: #9a5b00; text-decoration: underline; text-underline-offset: 3px; }
.formula { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(35, 31, 32, 0.08); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.55; overflow-x: auto; }
.sources { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.sources li { padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(35, 31, 32, 0.08); }
.sources a { font-weight: 650; }
.data { margin-top: 16px; }
.data td:first-child, .data th:first-child { text-align: left; }
.audit-box { margin-top: 16px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(35, 31, 32, 0.08); }
.audit-box textarea { display: block; width: 100%; min-height: 140px; margin-top: 8px; padding: 12px; border-radius: 10px; border: 1px solid rgba(35, 31, 32, 0.16); resize: vertical; }
.file { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 650; }
.audit-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.download { display: inline-flex; margin-top: 12px; padding: 10px 14px; border-radius: 999px; background: #231f20; color: #f4f1ec; font-size: 14px; font-weight: 650; }
.colophon { margin: 8px 0 0; color: #686164; font-size: 15px; }
.colophon a { color: #9a5b00; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .tool-layout, .audit-tables { grid-template-columns: 1fr; }
  .tool-result { position: static; }
  .tool-form, .tool-result { padding: 18px; }
}
