:root {
  --ink: #17191f;
  --muted: #69707d;
  --paper: #f8f9fb;
  --white: #ffffff;
  --line: #e3e6ec;
  --line-strong: #d4d8e1;
  --accent: #5267d8;
  --accent-soft: #eef0ff;
  --accent-ink: #3548ad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 8px;
  font-size: .82rem;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

.hero-grid {
  min-height: 300px;
  display: flex;
  align-items: center;
  padding-block: 54px;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; }
h1 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.04;
  font-weight: 700;
}
.lede {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 10px; margin-top: 26px; }
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--white);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.button:hover { border-color: #b8becb; }
.button.primary {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}
.button.primary:hover { background: #465bc8; }
.button.ghost { color: var(--ink); }

.section { padding: 72px 0; scroll-margin-top: 18px; }
.section-tint {
  background: #f1f3f7;
  border-block: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, .72fr);
  align-items: end;
  gap: 52px;
  margin-bottom: 26px;
}
.section-heading h2, .submit-grid h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.12;
  font-weight: 700;
}
.section-heading > p, .section-copy {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}

.citation { padding-bottom: 0; }
.citation-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.citation-reference {
  margin: 0;
  padding: 22px 24px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
}
.citation-reference strong { color: var(--ink); }
.citation-reference a { color: var(--accent-ink); }
.citation-panel pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  background: #f5f6f9;
  color: #2d3240;
  font: .78rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.toolbar {
  min-height: 78px;
  padding: 16px 18px;
  display: flex;
  align-items: end;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
select {
  min-width: 200px;
  height: 40px;
  padding: 0 34px 0 11px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
}
select:focus { outline: 2px solid #cfd5ff; outline-offset: 1px; }
input, textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
}
input { min-height: 40px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: 2px solid #cfd5ff; outline-offset: 1px; }
.metric-note {
  margin-left: auto;
  padding-bottom: 10px;
  color: var(--accent-ink);
  font-size: .84rem;
}
.filters { align-items: end; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th {
  color: var(--muted);
  background: #fafbfc;
  font-size: .66rem;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}
td { font-size: .84rem; }
tbody tr:hover { background: #fafbff; }
tbody tr:last-child td { border-bottom: 0; }
.rank { color: var(--accent); font-weight: 700; }
.score { font-weight: 700; }
.badge {
  display: inline-flex;
  padding: 4px 8px;
  color: var(--accent-ink);
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: .68rem;
  font-weight: 650;
}
.empty { padding: 22px; color: var(--muted); text-align: center; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.resource-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.resource-type {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.resource-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.resource-card > p:not(.resource-type) {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
}
.resource-links { display: flex; flex-wrap: wrap; gap: 18px; }
.submission-form-wrap {
  margin-top: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}
.form-heading h3 { margin: 0; font-size: 1.5rem; }
.form-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
}
.submission-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.submission-form label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}
.submission-form small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 400;
}
.protocol-note {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: #f7f8fc;
}
.protocol-note strong { color: var(--ink); font-size: .84rem; }
.protocol-note span { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.request-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border: 1px solid #d9def8;
  border-radius: 9px;
  background: var(--accent-soft);
}
.request-path > div { display: grid; gap: 4px; }
.request-path strong { color: var(--accent-ink); font-size: .84rem; }
.request-path span { color: var(--muted); font-size: .76rem; font-weight: 400; }
.request-path .text-link { flex: 0 0 auto; margin: 0; }
.form-wide { grid-column: 1 / -1; }
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.form-actions .button { cursor: pointer; font-family: inherit; }
.form-status {
  flex-basis: 100%;
  margin: 4px 0 0;
  color: var(--accent-ink);
  font-size: .78rem;
}
.review-flow {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.review-flow h4 { margin: 0 0 16px; font-size: .95rem; }
.review-flow ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: review-step;
}
.review-flow li {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  counter-increment: review-step;
}
.review-flow li::before {
  content: "0" counter(review-step);
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
}
.review-flow strong { font-size: .8rem; }
.review-flow span { color: var(--muted); font-size: .73rem; line-height: 1.5; }

.text-link {
  display: block;
  width: fit-content;
  margin-top: 16px;
  color: var(--accent-ink);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}
footer {
  padding: 24px 0;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.footer-inner { display: flex; justify-content: space-between; font-size: .76rem; }

@media (max-width: 820px) {
  .nav-links a:not(:last-child) { display: none; }
  .hero-grid { min-height: 270px; padding-block: 44px; }
  .section { padding: 56px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 26px; }
  .resource-grid { grid-template-columns: 1fr; }
  .form-heading { align-items: start; flex-direction: column; }
  .review-flow ol { grid-template-columns: 1fr 1fr; }
  .toolbar, .filters { align-items: stretch; flex-direction: column; }
  .metric-note { margin-left: 0; padding: 0; }
  select { width: 100%; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 1120px); }
  h1 { font-size: 2.45rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .submission-form { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .submission-form-wrap { padding: 20px; }
  .request-path { align-items: flex-start; flex-direction: column; }
  .review-flow ol { grid-template-columns: 1fr; }
  .footer-inner { gap: 7px; flex-direction: column; }
}
