:root {
  color-scheme: light;
  --background: #FBFAF7;
  --text: #1C1917;
  --muted: #57534E;
  --link: #9A3412;
  --link-hover: #7C2D12;
  --divider: #D6D3D1;
  --active: #1C1917;
  --active-text: #FBFAF7;
  --positive: #15803D;
  --caution: #C2410C;
  --negative: #B91C1C;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #1C1917;
    --text: #F5F5F4;
    --muted: #A8A29E;
    --link: #FDBA74;
    --link-hover: #FED7AA;
    --divider: #44403C;
    --active: #44403C;
    --active-text: #F5F5F4;
    --positive: #4ADE80;
    --caution: #FB923C;
    --negative: #F87171;
  }
}

body {
  margin: 0;
  padding: 40px 32px;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.5 ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, Menlo, monospace;
}

.repos-page { font-size: 18px; }

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--link-hover); }
.muted, nav span { color: var(--muted); }
[aria-current="page"] { font-weight: bold; }

.site-header, .site-header nav, .controls, .tier-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.site-header {
  gap: 0.5rem 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--text);
}

.site-header nav { gap: 0.25rem 0.75rem; }
.scan { margin-inline-start: auto; font-size: 0.875rem; }

h1 { margin: 1.5rem 0 0.25rem; }
h2 { margin: 1.5rem 0 0.25rem; }
#summary, .tier-blurb { margin: 0 0 1rem; }

.controls { gap: 0.75rem 1rem; }
.controls label, .tier-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  max-width: 100%;
}

input, select, button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--muted);
  border-radius: 0.25rem;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

input, select { min-width: 0; }
input { width: 14rem; }
button { cursor: pointer; }
button[aria-pressed="true"] {
  background: var(--active);
  color: var(--active-text);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.sections { margin: 0; padding: 0; list-style: none; }
.sections li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--divider);
}

.table-scroll { overflow-x: auto; }
.repo-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.repo-table th, .repo-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.repo-table th {
  box-sizing: border-box;
  border-bottom: 2px solid var(--text);
  color: var(--muted);
  font-size: 14px;
  font-weight: bold;
}

.repo-table td {
  border-bottom: 1px dashed var(--divider);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.repo-table td:first-child { font-family: inherit; white-space: nowrap; }
.repo-table th:first-child { width: 3.75rem; }
.repo-table th:nth-child(2) { width: 9%; }
.repo-table th:nth-child(3), .repo-table th:nth-child(7) { width: 15%; }
.repo-table th:nth-child(4) { width: 14%; }
.repo-table th:nth-child(5) { width: 12%; }
.repo-table th:nth-child(8) { width: 10%; }
.repo-table th:last-child, .repo-table td:last-child { text-align: center; }
.repo-table th:last-child { width: 9%; }
.repo-table td:last-child { vertical-align: middle; }
.anjali-mark { font-size: 2.4em; font-weight: bold; line-height: 1; }
.anjali-legend span { font-size: 1.4em; line-height: 1; }
.positive { color: var(--positive); }
.caution { color: var(--caution); }
.negative { color: var(--negative); }

footer { margin-top: 1.5rem; }

@media (width < 1100px) {
  .repo-table { min-width: 1036px; }
}

@media (max-width: 640px) {
  .scan { flex-basis: 100%; margin-inline-start: 0; }
}

@media (width < 600px) {
  body { padding-inline: 16px; }
}
