:root {
  --ia-accent: #a81923;
  --ia-ink: #171717;
  --ia-muted: #575757;
  --ia-rule: #dcdcdc;
  --ia-soft: #f6f6f5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: var(--ia-ink);
  background: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { min-width: 0; }
main { padding: 6px 2px 16px; }
[hidden] { display: none !important; }
h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.35px; }
p { margin: 0; }
.description { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ia-muted); }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { background: #fff; border: 1px solid #ccc; border-radius: 3px; }
button:disabled { color: #8a8a8a; border-color: #e3e3e3; cursor: default; background: #fafafa; }
button:not(:disabled):hover, select:hover { background: var(--ia-soft); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--ia-accent); outline-offset: 3px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 18px; }
.search-group { display: flex; align-items: center; flex: 0 1 350px; position: relative; min-width: 150px; }
.search-group input { width: 100%; min-height: 42px; padding: 9px 34px 9px 37px; font-size: 14px; border: 1px solid #bdbdbd; border-radius: 3px; background: #fff; appearance: none; }
.search-group input::-webkit-search-cancel-button { appearance: none; }
.search-group input::placeholder { color: #666; opacity: 1; }
.search-icon { position: absolute; left: 11px; width: 18px; height: 18px; pointer-events: none; fill: none; stroke: #6b6b6b; stroke-width: 1.7; }
#clear-search { position: absolute; right: 3px; width: 33px; height: 34px; border: 0; font-size: 24px; }
.pagination { display: flex; flex: none; align-items: center; gap: 10px; }
.pagination button { width: 42px; height: 42px; display: grid; place-items: center; }
.pagination svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
#page-label { font-size: 14px; white-space: nowrap; min-width: 95px; text-align: center; font-variant-numeric: tabular-nums; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #aaa #f4f4f4; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.3; }
thead { border-bottom: 2px solid var(--ia-ink); }
th { text-align: left; vertical-align: bottom; padding: 0; }
th button { width: 100%; display: flex; align-items: end; justify-content: space-between; gap: 5px; padding: 11px 10px 12px; border: 0; border-radius: 0; text-align: left; font-weight: 700; line-height: 1.22; min-height: 55px; }
th:first-child button { padding-left: 0; }
th.numeric button { text-align: right; justify-content: end; }
.sort-icon { flex: none; font-size: 12px; font-weight: normal; color: #666; align-self: center; }
th[aria-sort] .sort-icon { color: var(--ia-accent); font-weight: 700; }
td { padding: 14px 10px; border-bottom: 1px solid var(--ia-rule); vertical-align: middle; overflow-wrap: anywhere; }
td:first-child { padding-left: 0; font-weight: 500; }
td:last-child { padding-right: 6px; }
td.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.abn { white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:nth-child(even) { background: #f8f8f7; }
tbody tr:hover { background: #f0f0ee; }
.missing { color: #666; }
.scroll-help { font-size: 12px; color: var(--ia-muted); margin: -5px 0 10px; }
.scroll-help span { font-size: 18px; }
.table-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 15px; font-size: 12px; color: var(--ia-muted); line-height: 1.5; }
.page-size { display: flex; gap: 8px; align-items: center; flex: none; }
.page-size select { background: #fff; border: 1px solid #bbb; border-radius: 3px; padding: 5px 4px; min-height: 34px; }
.table-footer { margin-top: 20px; padding-top: 14px; border-top: 1px solid #bbb; font-size: 12px; line-height: 1.55; color: var(--ia-muted); }
.table-footer p + p, #credit { margin-top: 8px; }
a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ia-accent); }
.empty { padding: 36px 14px; text-align: center; line-height: 1.5; background: var(--ia-soft); }
#loading, .error { margin-top: 22px; line-height: 1.6; }
.error button { margin: 14px 14px 0 0; padding: 8px 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .toolbar { flex-wrap: wrap; gap: 14px; margin-top: 17px; }
  .search-group { flex-basis: 100%; }
  .pagination { margin-left: auto; }
  .table-bottom { align-items: start; gap: 10px; }
  #results { max-width: 58%; }
}
@media print {
  .toolbar, .page-size, .scroll-help { display: none; }
  .table-scroll { overflow: visible; }
  table { min-width: 0 !important; }
  th button { pointer-events: none; }
}
