@font-face {
  font-family: "Host Grotesk";
  src: url("HostGrotesk-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Commit Mono";
  src: url("CommitMono-VariableFont.woff2") format("woff2");
  font-display: swap;
}
:root {
  --color-text: #1a1a1a;
  --color-bg: #fff;
  --color-link: #0066cc;
  --color-border: #ddd;
  --color-muted: #666;
  --color-hover: #f5f5f5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-text: #e0e0e0;
    --color-bg: #1a1a1a;
    --color-link: #6db3f2;
    --color-border: #333;
    --color-muted: #999;
    --color-hover: rgba(255, 255, 255, 0.06);
  }
}
:root[data-theme="dark"] {
  --color-text: #e0e0e0;
  --color-bg: #1a1a1a;
  --color-link: #6db3f2;
  --color-border: #333;
  --color-muted: #999;
  --color-hover: rgba(255, 255, 255, 0.06);
}
body {
  font-family: "Host Grotesk", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("background.svg") no-repeat center / cover;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
}
code, pre, kbd, samp {
  font-family: "Commit Mono", monospace;
}
/* Layout: sidebar + main */
#layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
}
#sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 1rem;
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  font-size: 0.85rem;
}
#sidebar h4 {
  margin: 1rem 0 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}
#sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#sidebar li {
  margin: 0;
}
.sidebar-heading-link {
  color: var(--color-muted);
  text-decoration: none;
}
.sidebar-heading-link:hover {
  color: var(--color-link);
}
.sidebar-link {
  display: block;
  padding: 0.2rem 0.5rem;
  color: var(--color-text);
  text-decoration: none;
}
.sidebar-link:hover {
  background: var(--color-hover);
  color: var(--color-link);
}
main {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  min-width: 0;
  margin: 0 auto;
  padding: 1rem;
  flex: 1;
}
@media (max-width: 900px) {
  #sidebar { display: none; }
}
#columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 600px) {
  #columns {
    grid-template-columns: 1fr;
  }
}
a { color: var(--color-link); }

/* Tags */
h1 + .tag-experimental {
  margin-top: -2rem;
}
.tag-experimental {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2em 0.6em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #e535ab;
  cursor: help;
}
.tag-experimental-small {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0 0.35em;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  background: #e535ab;
  cursor: help;
  text-decoration: none;
  vertical-align: middle;
}

/* Support table */
.support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border: 1px solid #CFD3C5;
  margin-bottom: 6rem;
}
.support-table th,
.support-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #CFD3C5;
  text-align: left;
  vertical-align: top;
}
.support-table th {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-muted);
  background: #EDFAD1;
}
.support-table tbody td:first-child {
  background: var(--color-bg);
}
.support-table tbody td:last-child {
  background: var(--color-bg);
}
.support-table td.support-yes,
.support-table td.support-no,
.support-table td.support-unknown {
  color: #000;
  text-align: center;
}
.support-table td.support-yes {
  background: #a8d5a2;
}
.support-table td.support-no {
  background: #f0a0a0;
}
.support-table td.support-unknown {
  background: #d0d0d0;
}
.support-table tr.not-applicable,
.support-table tr.unknown {
}

/* Feature bars */
.feature-bar {
  display: flex;
  align-items: center;
  position: relative;
  height: 2.5rem;
  border: 1px solid #e535ab;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
}
.feature-bar:hover {
  border-color: #e535ab;
}
.feature-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(229, 53, 171, 0.5);
  transition: width 0.3s;
}
.feature-bar-label {
  position: relative;
  z-index: 1;
  padding-left: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
}
.feature-bar-score {
  position: relative;
  z-index: 1;
  text-decoration: none;
  margin-left: auto;
  padding-right: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Project bars */
.project-bar {
  display: flex;
  align-items: center;
  position: relative;
  height: 2.5rem;
  border: 1px solid rgba(131, 189, 2, 1);
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
}
.project-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(131, 189, 2, 0.5);
  transition: width 0.3s;
}
.project-bar-label {
  position: relative;
  z-index: 1;
  padding-left: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
}
.project-bar-score {
  position: relative;
  z-index: 1;
  margin-left: auto;
  padding-right: 0.75rem;
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--color-muted);
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
  background: color-mix(in srgb, var(--color-bg) 40%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
header h1 { margin: 0; }
/* Search – styled to match graphql.org */
#search {
  width: 240px;
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: #e535ab;
  --pagefind-ui-text: var(--color-text);
  --pagefind-ui-background: var(--color-bg);
  --pagefind-ui-border: transparent;
  --pagefind-ui-border-width: 0;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-font: "Host Grotesk", system-ui, sans-serif;
}
#search .pagefind-ui__form {
  position: relative;
}
/* Hide the default magnifying-glass icon */
#search .pagefind-ui__form::before {
  display: none;
}
#search .pagefind-ui__search-input {
  font-family: "Host Grotesk", system-ui, sans-serif;
  font-size: 0.8rem;
  line-height: 1;
  height: 28px;
  padding: 0 0.75rem;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  border: none;
  border-radius: 0;
  transition: background-color 0.15s;
}
#search .pagefind-ui__search-input::placeholder {
  color: var(--color-muted);
}
#search .pagefind-ui__search-input:focus {
  background: transparent;
  outline: solid 3px var(--color-text);
  outline-offset: 1px;
}
#search .pagefind-ui__search-clear {
  display: none;
}
/* Keyboard shortcut badge */
#search-kbd {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  padding: 0 6px;
  border-radius: 0;
  border: 1px solid var(--color-border);
  border-bottom-width: 2px;
  background: var(--color-bg);
  font-family: "Commit Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-muted);
  pointer-events: none;
  user-select: none;
}
#search-kbd .kbd-symbol {
  font-size: 13px;
}
/* Results drawer */
#search .pagefind-ui__drawer {
  position: absolute;
  right: 0;
  width: 560px;
  top: 100%;
  margin-top: 10px;
  background: color-mix(in srgb, var(--color-bg) 70%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 30;
  max-height: min(calc(100vh - 5rem), 600px);
  overflow-y: auto;
  padding: 0.625rem 0;
}
#search .pagefind-ui__result {
  padding: 0.5rem 0.625rem;
  margin: 0 0.625rem;
  border: none;
}
#search .pagefind-ui__result:hover,
#search .pagefind-ui__result:focus-within {
  background: rgba(229, 53, 171, 0.1);
}
#search .pagefind-ui__result-link {
  color: var(--color-text);
  font-weight: 500;
  outline: none;
}
#search .pagefind-ui__result-link:focus {
  color: #e535ab;
}
#search .pagefind-ui__result:hover .pagefind-ui__result-link,
#search .pagefind-ui__result:focus-within .pagefind-ui__result-link {
  color: #e535ab;
}
#search .pagefind-ui__result-excerpt {
  color: var(--color-muted);
  font-size: 0.8rem;
}
#search .pagefind-ui__message {
  color: var(--color-muted);
  font-size: 0.875rem;
  padding: 0.5rem 0.625rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #search .pagefind-ui__search-input {
    background: rgba(255, 255, 255, 0.1);
  }
  :root:not([data-theme="light"]) #search-kbd {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
  }
}
:root[data-theme="dark"] #search .pagefind-ui__search-input {
  background: rgba(255, 255, 255, 0.1);
}
:root[data-theme="dark"] #search-kbd {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 900px) {
  #search { width: 160px; }
  #search-kbd { display: none; }
}
#header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-icon-link {
  display: flex;
  padding: 5px;
  border: 1px solid transparent;
  color: var(--color-text);
  transition: background-color 0.15s, color 0.15s;
}
.header-icon-link:hover {
  background: var(--color-hover);
}
.header-icon-link img {
  filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .header-icon-link img {
    filter: invert(1) brightness(0.88);
  }
}
:root[data-theme="dark"] .header-icon-link img {
  filter: invert(1) brightness(0.88);
}
footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem 1rem;
  font-size: 0.85rem;
  background: #990069;
  color: #fff;
}
#footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-column h4 {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: #fff;
}
.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.footer-column a:hover {
  color: #fff;
}
#footer-copyright {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  text-align: center;
}
#footer-copyright a {
  color: #fff;
}

/* Theme switch */
#theme-switch {
  position: relative;
}
#theme-trigger {
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid transparent;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
#theme-trigger:hover {
  background: var(--color-hover);
}
#theme-trigger[aria-expanded="true"] {
  border-color: var(--color-border);
  background: var(--color-bg);
}
#theme-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 120px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 20;
}
#theme-menu.open {
  display: block;
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.theme-option:hover {
  background: var(--color-hover);
}
.theme-option-icon {
  display: flex;
  flex-shrink: 0;
}
.theme-option-icon svg {
  width: 14px;
  height: 14px;
}
.theme-option-label {
  text-transform: capitalize;
  line-height: 1;
}
.theme-option-check {
  display: none;
  margin-left: auto;
  color: #e535ab;
}
.theme-option.selected .theme-option-check {
  display: flex;
}
