/* The NTA gap page: a table and small charts, drawn at build time; no script. */

.gaps { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 1rem 0; }
.gaps th, .gaps td { text-align: right; padding: .45rem .6rem; border-bottom: 1px solid var(--line-soft); }
.gaps th:first-child, .gaps td:first-child { text-align: left; }
.gaps thead th { font-size: .82rem; color: var(--ink-faint); font-weight: 600; border-bottom: 1px solid var(--line); }
.gaps .code { font-family: var(--mono); font-size: .85rem; color: var(--ink-faint); margin-right: .4rem; }
.gaps .neg { color: #b4472d; }
.gaps .pos { color: var(--green); }
.table-wrap { overflow-x: auto; }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .9rem; margin-top: 1rem; }
.chart { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 6px; padding: .7rem .8rem .5rem; }
.chart h3 { font-size: .95rem; margin: 0 0 .2rem; }
.chart p { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.chart svg, .wide svg { display: block; width: 100%; height: auto; margin-top: .3rem; }
.wide { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 6px; padding: .8rem 1rem .6rem; }
.limits li { margin-bottom: .35rem; max-width: 70ch; }
.source { max-width: 70ch; }
