@font-face {
  font-family: "DM Sans";
  src: url(fonts/DMSans.ttf) format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "STIX Two Text";
  src: url(fonts/STIXTwoText.ttf) format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #152c32;
  --muted: #4c6368;
  --rule: #bdcecc;
  --teal: #105f64;
  --rust: #97411f;
  --wash: #eef5f3;
  --serif: "STIX Two Text", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  font: 100%/1.55 var(--sans);
  background: #fdfefd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main,
header > .wrap,
footer > .wrap {
  width: min(1120px, calc(100% - 52px));
  margin: auto;
}
a {
  color: var(--teal);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.075em;
  overflow-wrap: anywhere;
}
a:hover {
  color: var(--rust);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #cc701d;
  outline-offset: 3px;
}
header {
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
header .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 760;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.14rem;
  letter-spacing: -0.035em;
}
.brand-mark {
  display: inline-block;
  width: 20px;
  height: 22px;
  border-left: 5px solid var(--teal);
  border-right: 5px solid var(--teal);
  background: linear-gradient(
    to bottom,
    transparent 40%,
    var(--teal) 40% 61%,
    transparent 61%
  );
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  align-items: center;
}
nav a {
  font-size: 0.92rem;
  text-decoration: none;
  color: #3d565b;
}
nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--teal);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 530;
  line-height: 1.09;
  letter-spacing: -0.033em;
}
h1 {
  font-size: clamp(2.55rem, 5.4vw, 4.9rem);
}
h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}
h3 {
  font-size: 1.42rem;
}
.meta {
  font-size: 0.83rem;
  color: var(--muted);
  letter-spacing: 0.015em;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 5%;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.hero h1 {
  margin: 0.7rem 0 1.1rem;
  max-width: 16ch;
}
.lead {
  font-size: 1.19rem;
  color: #334f54;
  line-height: 1.57;
  max-width: 69ch;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 1.4rem 0 0.3rem;
}
.button,
button {
  display: inline-block;
  border: 1px solid var(--teal);
  border-radius: 4px;
  background: var(--teal);
  color: #fff;
  font: 650 0.95rem/1.3 var(--sans);
  padding: 0.7rem 1.05rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
button:hover {
  color: #fff;
  background: #184a50;
}
.actions a:not(.button) {
  font-size: 0.95rem;
  font-weight: 650;
}
.finding {
  margin: 0;
  background: var(--wash);
  border-top: 3px solid var(--teal);
  padding: 1.5rem 1.65rem;
}
.finding figcaption {
  font: 550 1.75rem/1.15 var(--serif);
  margin-bottom: 1.1rem;
}
.finding p {
  font-size: 0.92rem;
  color: var(--muted);
}
.bars {
  height: 135px;
  display: flex;
  gap: 6px;
  align-items: end;
  border-bottom: 1px solid #638385;
  margin: 0.7rem 0 0.35rem;
  padding: 0 8px;
}
.bars > span {
  display: block;
  flex: 1;
  height: var(--h);
  background: #408589;
  min-height: 1px;
  position: relative;
}
.bars .cap {
  background: var(--rust);
}
.bars b {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  font: 650 0.87rem var(--sans);
  padding-bottom: 2px;
}
.axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
  padding: 1.55rem 0;
}
.stat {
  padding: 0 1.4rem;
  border-left: 1px solid var(--rule);
}
.stat:first-child {
  padding-left: 0;
  border: 0;
}
.stat strong {
  display: block;
  font: 520 2.3rem/1.1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.home-section {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 4%;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--rule);
}
.home-section p + p {
  margin-top: 0.75rem;
}
.home-section h2 {
  max-width: 14ch;
}
.trail > a {
  display: block;
  padding: 1.05rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
}
.trail > a:first-child {
  border-top: 0;
  padding-top: 0;
}
.trail strong {
  display: block;
  font: 580 1.34rem/1.25 var(--serif);
  color: var(--ink);
}
.trail span {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
  font-size: 0.95rem;
}
.intro {
  padding: 3rem 0 1.55rem;
  max-width: 86ch;
}
.intro h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.8rem;
  background: var(--wash);
  border-block: 1px solid var(--rule);
  padding: 1rem 1.15rem;
}
.filters label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.86rem;
}
.filters .search {
  flex: 1;
  min-width: 190px;
}
.filters input,
.filters select {
  min-height: 42px;
  width: 100%;
  font: 400 0.95rem var(--sans);
  background: #fff;
  color: var(--ink);
  border: 1px solid #8da4a5;
  border-radius: 3px;
  padding: 0.5rem 0.65rem;
}
.filters button,
.empty button {
  background: white;
  color: var(--teal);
  border-color: #8da4a5;
  min-height: 42px;
}
.count {
  padding: 1rem 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.case {
  border-top: 1px solid var(--rule);
  scroll-margin: 1rem;
}
.case summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  padding: 1.05rem 0.3rem;
  list-style: none;
}
.case summary::-webkit-details-marker {
  display: none;
}
.case summary:after {
  content: "+";
  font-size: 1.4rem;
  color: var(--teal);
}
.case[open] summary:after {
  content: "−";
}
.case .small {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.26rem;
}
.case .ttl {
  font: 550 1.35rem/1.22 var(--serif);
  display: block;
}
.case-body {
  max-width: 95ch;
  padding: 0.3rem 1.4rem 1.55rem;
  border-left: 3px solid var(--teal);
  margin-bottom: 1rem;
}
.case-body h3 {
  margin: 1.25rem 0 0.45rem;
}
.case-body p + p {
  margin-top: 0.6rem;
}
.case-body ul {
  padding-left: 1.3rem;
}
.case-body code,
.article code {
  font-size: 0.84em;
  overflow-wrap: anywhere;
}
.case-body .sources {
  overflow-wrap: anywhere;
}
.case-body .sub {
  margin-top: 0.7rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.5rem;
}
.sub summary {
  display: list-item;
  font-size: 0.92rem;
  text-decoration: underline;
  color: var(--teal);
  padding: 0.3rem;
  cursor: pointer;
}
.sub summary:after {
  display: none;
}
.sub li {
  margin: 0.55rem 0;
}
.empty {
  padding: 2rem 1rem;
  border: 1px solid var(--rule);
  text-align: center;
}
.empty button {
  margin: 0.7rem 0;
}
.article-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: clamp(30px, 5vw, 78px);
  margin: 2.6rem 0;
}
.toc {
  position: sticky;
  align-self: start;
  top: 1rem;
  display: grid;
  gap: 0.58rem;
  font-size: 0.9rem;
}
.toc b {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.toc a {
  text-decoration: none;
}
.article {
  min-width: 0;
  font: 400 1.14rem/1.64 var(--serif);
  overflow-wrap: break-word;
}
.article h1 {
  font-size: clamp(2.5rem, 5.1vw, 4rem);
  margin-bottom: 0.9rem;
}
.article h2 {
  margin: 2.25rem 0 0.85rem;
}
.article h3 {
  margin: 1.6rem 0 0.65rem;
  font-size: 1.5rem;
}
.article p {
  margin: 0.8rem 0;
}
.article li {
  margin: 0.45rem 0;
}
.article table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2rem 0 1.3rem;
  font: 400 0.89rem/1.45 var(--sans);
}
.article th,
.article td {
  border-bottom: 1px solid var(--rule);
  padding: 0.58rem 0.55rem;
  vertical-align: top;
  text-align: left;
}
.article th {
  background: var(--wash);
  font-weight: 700;
}
.article img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
}
.article pre {
  font-size: 0.88rem;
  line-height: 1.55;
  background: var(--wash);
  padding: 1rem;
  white-space: pre-wrap;
}
.article blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
  margin: 1rem 0;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.table-scroll:focus-visible {
  outline: 2px solid var(--teal);
}
.article-toolbar {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  font-size: 0.9rem;
}
footer {
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  padding: 1.1rem 0 2rem;
}
footer > .wrap {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.87rem;
}
.skip {
  position: absolute;
  left: -100vw;
}
.skip:focus {
  left: 10px;
  top: 10px;
  background: white;
  padding: 0.6rem;
  z-index: 2;
}
[hidden] {
  display: none !important;
}
@media (max-width: 790px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }
  .hero h1 {
    max-width: 20ch;
  }
  .finding {
    max-width: 620px;
  }
  .bars {
    height: 105px;
  }
  .home-section {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .home-section h2 {
    max-width: 100%;
  }
  .article-shell {
    display: block;
  }
  .toc {
    display: none;
  }
  header > .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.8rem 0;
  }
  .stat {
    padding: 0 0.7rem;
  }
}
@media (max-width: 525px) {
  main,
  header > .wrap,
  footer > .wrap {
    width: calc(100% - 32px);
  }
  nav {
    column-gap: 0.68rem;
    row-gap: 0.35rem;
  }
  nav a {
    font-size: 0.84rem;
  }
  .stats {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .stat,
  .stat:first-child {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 0;
    padding: 0.65rem 0;
  }
  .stat + .stat {
    border-top: 1px solid var(--rule);
  }
  .stat strong {
    font-size: 1.55rem;
    min-width: 3.8rem;
  }
  .stat span {
    margin: 0;
  }
  .filters label,
  .filters .search {
    flex: 1 1 100%;
  }
  .filters button {
    padding: 0.45rem 0.85rem;
  }
  .article {
    font-size: 1.08rem;
  }
  .article table {
    min-width: 425px;
  }
  .article table:has(thead th:nth-child(2):last-child) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .article th:first-child:nth-last-child(2) {
    width: 32%;
  }
  .article-shell {
    margin: 1.7rem 0;
  }
  .finding {
    padding: 1.1rem;
  }
  .intro {
    padding: 2rem 0 1rem;
  }
  .actions {
    gap: 0.8rem;
  }
}
@media print {
  @page {
    size: A4;
    margin: 18mm 18mm 18mm;
  }
  body {
    background: #fff;
    color: #17272a;
  }
  header,
  footer,
  .toc,
  .article-toolbar,
  .skip {
    display: none !important;
  }
  main {
    width: 100%;
  }
  .article-shell {
    display: block;
    margin: 0;
  }
  .article {
    font: 400 10.5pt/1.44 var(--serif);
  }
  .article h1 {
    font-size: 29pt;
  }
  .article h2 {
    font-size: 17pt;
    margin-top: 18pt;
  }
  .article h3 {
    font-size: 13pt;
  }
  .article p {
    orphans: 3;
    widows: 3;
    margin: 6pt 0;
  }
  .article h1,
  .article h2,
  .article h3 {
    break-after: avoid;
  }
  .article img {
    max-height: 75mm;
    object-fit: contain;
    break-inside: avoid;
  }
  .article table {
    font-size: 8.6pt;
    min-width: 0;
  }
  .article .table-scroll {
    overflow: visible;
  }
  .article tr {
    break-inside: avoid;
  }
  .article a {
    color: #145c62;
  }
  .article p:has(> img) {
    break-inside: avoid;
  }
  .article p:has(+ p > img) {
    break-after: avoid;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.ranking {
  margin: 0 0 3rem;
}
.ranking td:first-child,
.ranking td:nth-child(3) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ranking td:nth-child(2) {
  min-width: 16rem;
}
