.tools-page { --lime: #cbff39; --line: #2a302c; }
.tools-page .site-nav { gap: 32px; }
.tools-nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; font-size: 13px; font-weight: 700; }
.tools-nav-links a { color: #a6aea8; transition: color .2s; }
.tools-nav-links a:hover, .tools-nav-links a[aria-current] { color: var(--lime); }
.tools-home { border: 1px solid #4b544d; padding: 11px 14px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tools-home span { color: var(--lime); margin-left: 8px; }

.table-section { min-height: calc(100vh - 74px); padding: 34px 5vw 80px; background: #f0f1ec; color: #111513; }
.table-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.table-heading .eyebrow { margin: 0 0 8px; color: #677365; }
.table-heading h1 { margin: 0; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.15; letter-spacing: -.055em; }
.table-heading > p { max-width: 420px; margin: 0 0 3px; color: #58625b; line-height: 1.6; font-size: 12px; }
.range-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 24px 0 16px; }
.range-nav span { font: 700 10px "Space Mono", monospace; color: #677365; margin-right: 10px; }
.range-nav a { border: 1px solid #a8b0a7; padding: 8px 12px; font: 700 11px "Space Mono", monospace; transition: background .2s; }
.range-nav a:hover { background: var(--lime); border-color: #819d31; }
.table-scroll { overflow-x: auto; border: 1px solid #abb3a9; background: #fff; }
.table-scroll table { width: 100%; border-collapse: collapse; min-width: 540px; font-variant-numeric: tabular-nums; }
.table-scroll caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.table-scroll thead { background: #171d18; color: #f5f6f1; }
.table-scroll th, .table-scroll td { padding: 11px 20px; border-bottom: 1px solid #dce1d9; text-align: left; }
.table-scroll thead th { font-size: 13px; font-weight: 700; }
.table-scroll thead small { display: inline-block; color: var(--lime); font: 700 10px "Space Mono", monospace; margin-left: 5px; }
.table-scroll tbody th { font: 700 14px "Space Mono", monospace; white-space: nowrap; }
.table-scroll tbody td { font: 500 14px "Space Mono", monospace; }
.table-scroll tbody tr:nth-child(even) { background: #f5f7f2; }
.table-scroll tbody tr:hover { background: #eaffb8; }
.table-scroll tbody .group-start:not(:first-child) > * { border-top: 2px solid #9eaa9d; }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.table-note { font-size: 12px; color: #667168; line-height: 1.7; margin-top: 16px; }
.tools-page .p-footer { border-top: 1px solid var(--line); }

@media (max-width: 680px) {
  .tools-page .site-nav { height: 68px; padding-inline: 20px; }
  .tools-nav-links { display: none; }
  .tools-home { margin-left: auto; }
  .table-section { padding: 24px 16px 60px; }
  .table-heading { display: block; }
  .table-heading h1 { font-size: clamp(28px, 7vw, 38px); }
  .table-heading > p { margin-top: 8px; }
  .range-nav { gap: 6px; margin: 18px 0 12px; }
  .range-nav span { width: 100%; }
  .range-nav a { padding: 7px 9px; font-size: 10px; }
  .table-scroll table { min-width: 0; }
  .table-scroll th, .table-scroll td { padding: 10px 7px; }
  .table-scroll thead th { font-size: 11px; }
  .table-scroll thead small { margin-left: 0; }
  .table-scroll tbody th, .table-scroll tbody td { font-size: 12px; }
  .tools-page .p-footer { padding: 28px 20px; }
}
