:root {
  color-scheme: light;
  --ink: #182c27;
  --muted: #51675f;
  --line: #cedad2;
  --green: #235441;
  --paper: #f7f9f5;
  --tint: #e6efe3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.shell {
  width: min(1120px, calc(100% - 44px));
  margin: auto;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar,
nav,
.controls,
.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.bar {
  min-height: 70px;
}
.brand {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1.5px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  color: #659f66;
}
nav a,
.text {
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: none;
  padding: 6px 9px;
  font-size: 14px;
}
nav a[aria-current="page"] {
  background: var(--tint);
  border-radius: 5px;
  color: var(--green);
}
main {
  padding: 42px 0 70px;
}
h1,
h2,
h3,
p {
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(32px, 5vw, 53px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 16px;
}
.muted,
small {
  color: var(--muted);
}
.lead {
  font-size: 18px;
  max-width: 49ch;
}
.auth {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 410px);
  gap: clamp(24px, 8vw, 115px);
  align-items: start;
  padding-top: 7vh;
}
.auth h1 {
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  margin-top: 24px;
}
.filters {
  align-self: start;
}
label {
  display: grid;
  gap: 5px;
  margin: 0 0 13px;
  font-size: 13px;
  font-weight: 620;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid #afc1b5;
  border-radius: 5px;
  padding: 8px 10px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
button,
.button {
  font: inherit;
  cursor: pointer;
  color: white;
  background: var(--green);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 8px 15px;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.text,
.link {
  background: none;
  color: var(--green);
  border: 0;
  padding: 3px 0;
  text-align: left;
}
.link {
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid #5d9160;
  outline-offset: 2px;
}
#notice {
  padding: 10px 14px;
  border-left: 3px solid var(--green);
  background: var(--tint);
}
.job {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.job .link {
  font-size: 19px;
  text-decoration: none;
}
.job .link:hover {
  text-decoration: underline;
}
.count {
  font-size: 23px;
  font-weight: 650;
}
.controls label {
  margin: 0;
  flex: 1;
  min-width: 115px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.cards .panel {
  padding: 16px;
}
.pager {
  margin-top: 16px;
  justify-content: space-between;
}
.scroll {
  overflow-x: auto;
}
.compare-main, .compare-results { min-width: 0; }
.compare-main .controls { margin: 0; }
.compare-scroll { max-width: 100%; overscroll-behavior-x: contain; }
.compare-scroll:focus-visible { outline: 2px solid var(--green); }
.compare-scroll th, .compare-scroll td { min-width: 9.5rem; }
.compare-scroll th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: white;
  min-width: 9rem;
  max-width: 13rem;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--line);
}
.compare-scroll thead small { display: block; font-weight: 400; }
.compare-scroll thead button { color:var(--green); background:none; border:0; padding:3px 0; text-align:left; font:inherit; cursor:pointer; }
.compare-scroll thead span { white-space:nowrap; }
.trend-figure { margin:18px 0; }
.trend-figure figcaption small { display:block; }
.trend-bars { display:grid; grid-template-columns:repeat(14,minmax(0,1fr)); gap:clamp(2px,1vw,10px); margin:12px 0 6px; }
.trend-day { text-align:center; min-width:0; }
.trend-day small, .trend-n { font-size:clamp(10px,1.4vw,13px); }
.trend-plot { height:108px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; border-bottom:1px solid var(--line); }
.trend-plot svg { max-width:33px; fill:var(--green); }
.trend-gap { color:var(--muted); }
.trend-data > p { margin-top:10px; }
.batch-choices { max-height:16rem; overflow:auto; border-block:1px solid var(--line); padding:5px; }
#admin label.check-row { display:flex; gap:8px; align-items:center; margin:4px 0; }
#admin .check-row input { width:auto; }
.compare-scroll tbody th { font-weight: 500; color: var(--ink); }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 9px 7px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
}
form + form,
details,
section + section {
  margin-top: 20px;
}
summary {
  font-weight: 650;
  cursor: pointer;
}
pre,
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dialog {
  width: min(720px, 94vw);
  max-height: 88vh;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 26px;
}
dialog::backdrop {
  background: #132b2380;
}
#close {
  float: right;
}
.fact {
  margin-bottom: 10px;
}
.claim small {
  font-weight: 600;
}
.listed-pay {
  padding: 9px 14px;
  margin-bottom: 14px;
  border-left: 3px solid var(--green);
  background: var(--paper);
}
.listed-pay strong { display: block; }
.detail-views { display: flex; gap: 6px; margin: 16px 0; flex-wrap: wrap; }
.detail-views button[aria-pressed="false"] { background: white; color: var(--green); border: 1px solid var(--line); }
#model-preview > button { margin-bottom: 10px; }
blockquote {
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin: 3px 0;
  color: var(--muted);
}
.controls {
  margin: 13px 0;
}
#admin .panel {
  margin: 14px 0;
}
progress {
  width: 100%;
  accent-color: var(--green);
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 28px);
  }
  .auth,
  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .auth {
    padding-top: 0;
  }
  .bar {
    gap: 5px;
    padding: 9px 0;
  }
  nav {
    gap: 4px;
  }
  .filters form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .filters label {
    margin: 0;
  }
  .filters button {
    align-self: end;
  }
  main {
    padding-top: 24px;
  }
}
