@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@450&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@500&display=swap");

:root {
  --primary: #964b4b;
  --secondary: #6c757d;
  --gradient: linear-gradient(0deg, #000 -300%, var(--primary));
  --line: #dedede;
  --stripe: #f2f2f2;
  --muted: #565e64;
  font: 500 100%/1.5 "Open Sans", sans-serif;
  color: #212529;
  background: #fff;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a { color: #0d6efd; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #4985c5; outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, 96%); margin: auto; }
.skip { position: absolute; left: 1rem; top: -5rem; background: white; z-index: 1; }
.skip:focus { top: .5rem; }
header { background: #f8f9fa; }
.bar, nav, .hero, .search-row, .examples, .results-head, .pager, footer.wrap {
  display: flex; align-items: center; gap: 1rem;
}
.bar { min-height: 56px; gap: 2rem; }
.brand { color: #212529; text-decoration: none; font-size: 1.25rem; }
nav a { color: var(--muted); text-decoration: none; padding: .5rem 0; }
nav a.active, nav a:hover { color: #212529; text-decoration: underline; }
.hero { justify-content: space-between; padding: 1.5rem 0 1rem; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 500; line-height: 1.2; }
h2 { font-size: 1.4rem; font-weight: 500; }
.lede { margin-top: .5rem; }
.reference { text-align: right; white-space: nowrap; }
.reference span, .reference strong { display: block; }
.reference span, #interval, #summary, .scope { color: var(--muted); font-size: .9rem; }
.search-panel label { display: block; margin-bottom: .35rem; }
.search-row { gap: .5rem; }
.input-wrap { flex: 1; }
input { width: 100%; padding: .4rem .75rem; border: 1px solid #ced4da; border-radius: .375rem; }
.primary, .pager button {
  color: white; background: var(--gradient); border: 1px solid var(--line); border-radius: .375rem;
  padding: .4rem 1rem;
}
.pager button { background: linear-gradient(0deg, #000 -300%, var(--secondary)); }
.pager button + button { margin-left: .5rem; }
.examples { flex-wrap: wrap; gap: .75rem; margin-top: .5rem; font-size: .875rem; }
.examples button { border: 0; padding: 0; background: none; color: #0d6efd; text-decoration: underline; }
.scope { margin: 1rem 0; }
.results-head, .pager { justify-content: space-between; margin: .5rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; }
table, th, td { border: none; }
th, td { text-align: left; padding: .3rem .6rem; }
th { font: 500 .9rem/1.5 "Open Sans", sans-serif; color: white; background: var(--gradient); }
td { font: 450 .9rem/1.5 "Fira Code", monospace; }
tbody tr:nth-child(even) td { background: var(--stripe); }
tbody tr:nth-child(odd) td { background: white; }
tbody tr:hover { outline: 1px solid #ced4da; outline-offset: -1px; }
.numeric { text-align: right; }
#message:not(:empty) { padding: 1rem 0; }
#study { padding-top: 1.5rem; }
.study-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; margin: 1.5rem 0; }
.study-grid p, .study-grid dl { margin: .6rem 0 1.5rem; }
.study-grid aside a { display: block; margin: .65rem 0; }
.study-grid dl div { display: flex; justify-content: space-between; }
footer.wrap { justify-content: space-between; margin: 2rem auto 1rem; color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) {
  .wrap { width: 94%; }
  .hero { display: block; }
  .reference { display: flex; gap: .5rem; align-items: baseline; margin-top: .65rem; }
  .study-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:.6rem 1rem; margin:.75rem 0 .25rem; }
.filters label { display:grid; gap:.2rem; margin:0; font-size:.875rem; }
.filters select { font:inherit; background:white; border:1px solid #ced4da; border-radius:.375rem; padding:.46rem .6rem; }
.filters input { width:9.5rem; }
.filters button { border:0; background:none; text-decoration:underline; padding:.45rem 0; color:var(--primary); }
.search-panel small { color:var(--muted); }
td.variant-name { max-width:32ch; white-space:normal; overflow-wrap:anywhere; }
td.variant-name span { display:block; max-width:32ch; }
