:root {
  color-scheme: dark;
  --ink: #080b0d;
  --panel: #111618;
  --paper: #f4ead5;
  --muted: #b5ab9c;
  --line: #343739;
  --accent: #d579fd;
  --gold: #d5ab61;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(
    ellipse at 90% 0,
    rgba(131, 53, 161, 0.13),
    transparent 42%
  );
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button,
input,
select {
  min-height: 44px;
}
button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
}
button:hover {
  border-color: var(--accent);
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  z-index: 50;
}
.skip:focus {
  top: 12px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(24px, calc((100vw - 1392px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 13, 0.9);
}
.brand {
  font:
    24px Georgia,
    serif;
  text-decoration: none;
  white-space: nowrap;
}
.brand::before {
  content: "";
  display: inline-block;
  background: var(--accent);
  width: 8px;
  height: 8px;
  margin: 0 12px 3px 0;
}
.topbar nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
.topbar nav a {
  padding: 8px 0;
}
.language {
  font-weight: 700;
  color: var(--accent);
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 40px 24px 48px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}
.eyebrow {
  font:
    12px ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(36px, 4.3vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 1050px;
}
.intro {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}
.collection-count {
  flex-shrink: 0;
  display: grid;
  gap: 4px;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}
.collection-count strong {
  font:
    46px/1 Georgia,
    serif;
  color: var(--gold);
}
.collection-count small {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) repeat(3, minmax(135px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.filters label {
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.filters input,
.filters select {
  width: 100%;
  background: #13181a;
  border: 1px solid #46494a;
  border-radius: 4px;
  padding: 11px;
  font-size: 14px;
}
.filters input::placeholder {
  color: #a6a298;
}
.filters button {
  padding: 10px 14px;
  font-size: 13px;
}
.result-count {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.entry {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(140deg, #151a1c, #101416);
  padding: 22px;
  scroll-margin-top: 20px;
  min-width: 0;
  transition: border-color 0.15s;
}
.entry:target {
  border-color: var(--accent);
}
.entry-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.4;
}
.kind {
  color: var(--gold);
}
.availability {
  color: #b9d5ac;
}
.availability.retired,
.availability.deprecated {
  color: #e9ad88;
}
.availability.preview {
  color: #b8b3eb;
}
.entry h3 {
  font-size: 30px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 22px 0 7px;
  overflow-wrap: anywhere;
}
.entry h3 a {
  text-decoration: none;
}
.maintainer {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 15px;
}
.description {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  min-height: 100px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0;
}
.chips span {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.4;
  color: #ccc4b6;
  border: 1px solid #373d3f;
  border-radius: 3px;
  padding: 4px 7px;
  overflow-wrap: anywhere;
}
.official {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  padding: 7px 0 14px;
}
.entry details {
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 14px;
  padding: 15px 0;
  line-height: 1.5;
}
summary:hover {
  color: var(--accent);
}
.entry-detail {
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.entry-detail h4 {
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
  margin: 20px 0 8px;
}
.entry-detail p {
  margin: 0;
}
.entry-detail ul {
  padding-left: 20px;
  margin: 6px 0;
}
.entry-detail li {
  margin: 6px 0;
}
.entry-detail dl {
  margin: 20px 0;
  display: grid;
  gap: 10px;
}
.entry-detail dl div {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
  border-bottom: 1px solid #2c3335;
  padding-bottom: 9px;
}
.entry-detail dt {
  color: var(--muted);
  font-size: 13px;
}
.entry-detail dd {
  margin: 0;
  font-size: 13px;
}
.source-list a,
.entry-relations a {
  color: #d3b5e2;
}
.relation-kind {
  color: var(--muted);
  font-size: 12px;
}
.method {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 10px 0;
  max-width: 1000px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.method summary {
  font-size: 16px;
  color: var(--paper);
}
#empty {
  border: 1px dashed var(--line);
  padding: 36px;
  font-size: 18px;
  color: var(--muted);
}
dialog {
  background: #12181b;
  color: var(--paper);
  border: 1px solid #67626c;
  border-radius: 6px;
  width: min(700px, calc(100% - 24px));
  max-height: 85vh;
  padding: 24px;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.dialog-heading h2 {
  font-size: 36px;
  margin: 0;
}
.dialog-heading button {
  font-size: 26px;
  min-width: 44px;
  line-height: 1;
}
.dialog-description {
  font-size: 18px;
  line-height: 1.5;
}
footer {
  border-top: 1px solid var(--line);
  padding: 28px max(24px, calc((100vw - 1392px) / 2));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
footer p {
  max-width: 850px;
  margin: 0;
}
footer nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
footer a {
  white-space: nowrap;
}
noscript p {
  padding: 15px;
  border: 1px solid var(--line);
}
@media (max-width: 1100px) {
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filters .search {
    grid-column: span 2;
  }
  .filters button {
    grid-column: 3;
  }
  .collection-count {
    display: none;
  }
}
@media (max-width: 620px) {
  .topbar {
    padding: 12px 18px;
    gap: 12px;
  }
  .topbar nav {
    gap: 15px;
  }
  .topbar nav a:first-child {
    font-size: 12px;
    max-width: 105px;
  }
  .brand {
    font-size: 20px;
  }
  main {
    padding: 28px 18px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 40px;
  }
  .intro {
    font-size: 16px;
    margin-top: 14px;
  }
  .eyebrow {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filters .search {
    grid-column: 1/-1;
  }
  .filters button {
    grid-column: auto;
  }
  .filters label {
    font-size: 12px;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  .entry {
    padding: 20px;
  }
  .entry h3 {
    margin-top: 18px;
  }
  .description {
    min-height: 0;
  }
  .entry-detail dl div {
    grid-template-columns: 1fr 1.4fr;
  }
  .chips {
    margin: 16px 0 9px;
  }
  footer {
    padding: 25px 18px;
    display: block;
  }
  footer nav {
    margin-top: 18px;
  }
  .dialog-heading h2 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep documentation links within the first desktop result row. */
@media (min-width: 1101px) {
  main {
    padding-top: 28px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  h1 {
    font-size: clamp(36px, 3.8vw, 54px);
  }
  .intro {
    margin-top: 14px;
  }
  .description {
    min-height: 80px;
  }
  .entry h3 {
    margin-top: 18px;
  }
}

.filter-options,
.filter-grid {
  display: contents;
}
.filter-options > summary {
  display: none;
}
.relation-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px !important;
}
@media (max-width: 620px) {
  .filter-options {
    display: block;
    min-width: 0;
  }
  .filter-options > summary {
    display: block;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    min-height: 44px;
    font-size: 13px;
  }
  .filter-options[open] {
    grid-column: 1/-1;
  }
  .filter-options[open] .filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 0 0;
  }
  .filter-options[open] + #reset {
    grid-column: 1/-1;
  }
  .eyebrow {
    display: none;
  }
  h1 {
    font-size: 36px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  main {
    padding-top: 24px;
  }
}
@media (min-width: 621px) {
  .filters {
    grid-template-columns: minmax(220px, 2fr) minmax(390px, 3fr) auto;
  }
  .filter-options {
    display: block;
    min-width: 0;
  }
  .filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .filter-options > summary {
    display: none;
  }
  .filters .search {
    grid-column: auto;
  }
  .filters button {
    grid-column: auto;
  }
}
@media (min-width: 621px) and (max-width: 1100px) {
  .filters {
    grid-template-columns: minmax(180px, 1fr) minmax(330px, 2fr);
  }
  .filters button {
    grid-column: 2;
    justify-self: end;
  }
}
