:root { --ink: #16202b; --line: #cfd8e3; --accent: #0b5d8a; --sun: #f2a43a; }
html { -webkit-text-size-adjust: 100%; }
body { color: var(--ink); background: #f7f9fc; }
main h1 { margin-bottom: .2em; }
nav.chrome { background: #fff; }
.tool-card { box-shadow: 0 1px 2px rgba(16, 32, 48, .06); }
.tool-card input, .tool-card select { font-size: 1rem; }
.quick, .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick button { background: #eef3f8; color: var(--ink); border-color: var(--line); font-weight: 600; padding: 6px 12px; }
.actions button { flex: 0 1 auto; }
.tool-card button.ghost { background: #fff; color: var(--accent); }
.tool-out { overflow-x: auto; }
.tool-out table { background: #fff; }
.tool-out .big { font-size: 1.25rem; font-weight: 800; color: var(--accent); margin: .2em 0; }
.tool-out .copy-cell { width: 1%; white-space: nowrap; text-align: right; }
button.copy { min-height: 32px; padding: 2px 10px; font-size: .82rem; background: #eef3f8; color: var(--accent); border: 1px solid var(--line); font-weight: 600; margin: 0; }
#calc-summary { color: var(--accent); }
.faq details p { margin-top: .4em; }
@media (max-width: 420px) {
  main { padding-left: 12px; padding-right: 12px; }
  .tool-card { padding: 12px; }
  nav.chrome .in { gap: 4px 10px; }
}
@media (max-width: 620px) {
  main .tw { overflow: visible; }
  main table.cards { min-width: 0; border: 0; background: transparent; display: block; }
  main table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  main table.cards tbody, main table.cards tr { display: block; }
  main table.cards tr { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; overflow: hidden; }
  main table.cards th, main table.cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px dashed #e6edf5; padding: 6px 12px; text-align: right; font-weight: 400; }
  main table.cards tr > *:last-child { border-bottom: 0; }
  main table.cards td::before { content: attr(data-label); color: #57606a; font-weight: 600; text-align: left; }
  main table.cards th:first-child { background: #eef3fa; font-weight: 700; text-align: left; }
}

@media print {
  nav.chrome, footer.chrome, .quick, .actions, .copy-cell, .related, .sources, .aeo, .ad-slot { display: none !important; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  table { font-size: 11pt; }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 18pt; }
}
