/* Helper — calculators. Big, plain and high-contrast, so anyone (also a 60+ user on a phone) can read and fill it. */
.calc .nt-card { padding: clamp(18px, 4vw, 26px); }
.cf-form { display: flex; flex-direction: column; gap: 22px; margin-bottom: 18px; }
.cf[hidden] { display: none !important; }
.cf-lbl { display: block; font-size: 17px; font-weight: 700; color: #1d1d1f; margin-bottom: 8px; line-height: 1.35; }
.cf-box { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 0 16px; border-radius: 14px; background: #f2f2f7; border: 2px solid transparent; transition: border-color .15s, background .15s; }
.cf-box:focus-within { border-color: #0071e3; background: #fff; }
.cf-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 22px; font-weight: 700; color: #1d1d1f; padding: 12px 0; font-variant-numeric: tabular-nums; outline: none; }
.cf-box input[type=date] { font-size: 19px; }
.cf-pre { font-size: 22px; font-weight: 700; color: #6e6e73; }
.cf-suf { font-size: 16px; font-weight: 600; color: #6e6e73; white-space: nowrap; }
.cf.bad .cf-box { border-color: #d70015; background: #fff5f5; }
.cf-range { width: 100%; margin: 12px 0 0; height: 34px; accent-color: #0071e3; cursor: pointer; }
.cf-scale { display: flex; justify-content: space-between; font-size: 13px; color: #86868b; margin-top: -2px; }
.cf-words { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #0a58b8; min-height: 0; }
.cf-words:empty { display: none; }
.cf.bad .cf-words { color: #d70015; }
.cf-help { margin: 6px 0 0; font-size: 14px; color: #6e6e73; line-height: 1.45; }
.cf-seg button { min-height: 48px; font-size: 16px; padding: 8px 10px; }

/* result */
.calc-res { display: flex; flex-direction: column; gap: 14px; }
.cr-main { border-radius: 18px; padding: 18px 18px 16px; background: linear-gradient(135deg, #0071e3, #0a84ff); color: #fff; }
.cr-main .l { display: block; font-size: 16px; font-weight: 600; opacity: .92; }
.cr-main .v { display: block; font-size: clamp(30px, 7vw, 40px); font-weight: 800; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; word-break: break-word; }
.cr-main .s { display: block; font-size: 15px; font-weight: 600; opacity: .92; }
.cr-main.green { background: linear-gradient(135deg, #1f8f3a, #34c759); }
.cr-main.orange { background: linear-gradient(135deg, #c25a00, #ff9500); }
.cr-main.red { background: linear-gradient(135deg, #b3261e, #ff3b30); }
.cr-rows { margin: 0; display: flex; flex-direction: column; border-radius: 14px; background: #f5f5f7; padding: 4px 16px; }
.cr-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(60,60,67,.12); }
.cr-rows > div:last-child { border-bottom: 0; }
.cr-rows dt { font-size: 16px; color: #3a3a3c; }
.cr-rows dd { margin: 0; font-size: 18px; font-weight: 700; color: #1d1d1f; text-align: right; font-variant-numeric: tabular-nums; }
.cr-rows dd small { display: block; font-size: 13px; font-weight: 600; color: #6e6e73; }
.cr-rows .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.cr-pie { display: flex; align-items: center; gap: 18px; }
.cr-pie .pie { flex: none; width: 116px; height: 116px; border-radius: 50%; position: relative; }
.cr-pie .pie::after { content: ''; position: absolute; inset: 26px; border-radius: 50%; background: #fff; }
.cr-pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cr-pie li b { font-variant-numeric: tabular-nums; }
.cr-bar { height: 16px; border-radius: 99px; background: #e5e5ea; overflow: hidden; display: flex; }
.cr-bar i { display: block; height: 100%; }
.cr-note { margin: 0; font-size: 14.5px; line-height: 1.5; color: #3a3a3c; background: #fff8e6; border-radius: 12px; padding: 12px 14px; }
.cr-err { margin: 0; font-size: 16px; font-weight: 600; color: #b3261e; background: #fff1f0; border-radius: 12px; padding: 14px 16px; }
.cr-table { border-radius: 14px; background: #f5f5f7; }
.cr-table summary { cursor: pointer; padding: 14px 16px; font-size: 16px; font-weight: 700; color: #0a58b8; list-style-position: inside; }
.cr-table .wrap { overflow-x: auto; padding: 0 10px 10px; }
.cr-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cr-table th, .cr-table td { padding: 9px 8px; text-align: right; border-bottom: 1px solid rgba(60,60,67,.12); white-space: nowrap; }
.cr-table th:first-child, .cr-table td:first-child { text-align: left; }
.cr-table th { font-size: 13px; color: #6e6e73; font-weight: 700; position: sticky; top: 0; background: #f5f5f7; }

/* other calculators */
.calc-more { margin-top: 28px; }
.calc-more h2 { font-size: 22px; margin: 0 0 12px; }
.calc-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.calc-more a { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 .5px rgba(60,60,67,.18); color: #1d1d1f; text-decoration: none; font-size: 16px; font-weight: 600; }
.calc-more a:hover { box-shadow: 0 0 0 2px #0071e3; }
.calc-more .ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--ic, #0a84ff) 14%, #fff); color: var(--ic, #0a84ff); }
.calc-more .ico svg { width: 20px; height: 20px; }

html.is-tool[data-theme="dark"] .cr-pie .pie::after { background: #fff; }

@media print {
  header, footer, nav, .nt-steps, .calc-more, .about, .nt-actions, #calcReset, .cf-range, .cf-scale, .qn-fab, .tabbar, .feedback, .intro { display: none !important; }
  .calc .nt-grid { display: block; }
  .cr-table[open] .wrap, .cr-table .wrap { overflow: visible; }
  .cr-main { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
