/* Technical catalogue: cool surfaces, compact controls and monospace data. */
:root {
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#192c3e;
  background:#f3f6fa;
  font-synthesis:none;
  --accent:#205bc5;
  --line:#cbd5df;
  --muted:#536779;
  --paper:#ffffff;
  --mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background-image:linear-gradient(#19476b08 1px,transparent 1px),linear-gradient(90deg,#19476b08 1px,transparent 1px);
  background-size:32px 32px;
}
a {
  color:inherit;
  text-underline-offset:4px;
}
button,input,select,textarea {
  font:inherit;
}
button {
  cursor:pointer;
  color:inherit;
}
button:disabled {
  cursor:default;
  opacity:.5;
}
button,a,input,select,summary {
  touch-action:manipulation;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:2px solid #2867d6;
  outline-offset:3px;
}
input,select {
  min-width:0;
  width:100%;
  border:1px solid #b9c7d5;
  border-radius:3px;
  padding:12px 14px;
  background:#f8fafc;
  font-family:var(--mono);
  color:inherit;
}
input::placeholder {
  color:#687b8e;
}
input[type=search] {
  appearance:none;
}
.wrap {
  width:min(1220px,calc(100% - 64px));
  margin:auto;
}
.site-header {
  background:#101d2b;
  color:#d5e1ee;
  border-bottom:2px solid #205bc5;
}
.header-inner {
  min-height:104px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}

.brand {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-decoration:none;
  gap:7px;
}
.brand img {
  display:block;
  width:156px;
  height:auto;
  filter:invert(1);
}
.brand span {
  font-size:10px;
  color:#a9bdcf;
  font-family:var(--mono);
  letter-spacing:.015em;
}
.site-header nav {
  display:flex;
  align-items:center;
  gap:30px;
}
.site-header nav a {
  font-size:12px;
  font-family:var(--mono);
  text-decoration:none;
  padding:14px 0;
  position:relative;
}
.site-header nav a:hover { color:#fff }
.site-header nav a[aria-current=page] {
  color:#91beff;
  font-weight:700;
}
.site-header nav a[aria-current=page]:after {
  content:"";
  position:absolute;
  bottom:3px;
  left:0;
  right:0;
  border-bottom:2px solid #78aaff;
}
.api-link {
  color:var(--muted);
}
main {
  min-height:65vh;
  padding-top:38px;
  padding-bottom:56px;
}
h1,h2,h3,p {
  margin-top:0;
}
h1 {
  font-size:clamp(32px,4vw,44px);
  font-weight:650;
  line-height:1.13;
  letter-spacing:-.04em;
  margin-bottom:17px;
}
h2 {
  font-size:18px;
  letter-spacing:-.025em;
  margin-bottom:14px;
}
h3 {
  font-size:16px;
}
p {
  line-height:1.7;
}
.lede {
  font-size:14px;
  color:var(--muted);
  max-width:660px;
  margin-bottom:24px;
}
.eyebrow {
  font-family:var(--mono);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--muted);
  font-weight:700;
  margin-bottom:12px;
}
.stats {
  display:flex;
  flex-wrap:wrap;
  gap:0;
  padding:0;
  margin-bottom:24px;
}
.stat {
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:2px 28px 2px 0;
}
.stat+.stat { border-left:1px solid var(--line); padding-left:28px }
.stat strong {
  font-family:var(--mono);
  font-size:21px;
  font-weight:600;
  letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;
}
.stat span {
  font-family:var(--mono);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.025em;
  color:var(--muted);
}

.card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:4px;
  padding:24px;
}
.search-panel { border-top:3px solid var(--accent) }
.search-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:18px;
}
.field {
  display:flex;
  flex-direction:column;
  gap:9px;
  font-size:11px;
  font-weight:600;
  font-family:var(--mono);
}
.field input,.field select {
  font-size:15px;
  font-weight:400;
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  border:1px solid #b9c7d5;
  border-radius:3px;
  background:transparent;
  padding:10px 15px;
  text-decoration:none;
  font-family:var(--mono);
  font-size:12px;
  line-height:1.6;
  font-weight:600;
  min-height:45px;
}
.primary {
  background:var(--accent);
  color:white;
  border-color:var(--accent);
}
.button:hover {
  background:#eaf0f7;
}
.primary:hover {
  background:#16469d;
}
.subtle {
  font-size:12px;
  color:var(--muted);
}
.filter-line {
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.source-filter {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  color:var(--muted);
}
.source-filter select {
  padding:7px 10px;
  font-size:12px;
  width:auto;
  max-width:230px;
}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:18px;
  margin:28px 0 14px;
  border-bottom:1px solid var(--line);
  padding-bottom:11px;
}
.section-head h2 {
  font-family:var(--mono);
  font-size:16px;
  margin:0;
}
.section-head p {
  margin:0;
  font-size:12px;
  color:var(--muted);
}
.results-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.device {
  display:flex;
  flex-direction:column;
  gap:8px;
  text-decoration:none;
  padding:22px;
  min-height:150px;
  transition:border-color .15s,transform .15s;
}
.device:hover {
  border-color:#6f95c5;
  transform:translateY(-2px);
}
.device .maker {
  color:var(--muted);
  font-size:12px;
}
.device strong {
  font-size:18px;
  font-weight:600;
  overflow-wrap:anywhere;
  line-height:1.35;
}
.device-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-top:auto;
  padding-top:15px;
  font-size:11px;
  color:var(--muted);
}
.arrow {
  font-size:20px;
  color:var(--accent);
}
.tag {
  display:inline-block;
  font-family:var(--mono);
  border:1px solid #cbdaf0;
  border-radius:2px;
  background:#edf3fc;
  color:#31577e;
  padding:4px 8px;
  font-size:11px;
  line-height:1.5;
}
.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-top:25px;
}
.empty {
  padding:44px 25px;
  border:1px dashed #bacbdb;
  border-radius:4px;
  text-align:center;
  color:var(--muted);
}
.empty h2 {
  color:#334e68;
  font-weight:500;
  font-size:20px;
}
.empty p {
  margin-bottom:0;
  font-size:14px;
}
.browse-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:36px;
  padding:26px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.browse-intro h2 {
  font-size:18px;
  margin:0 0 7px;
}
.browse-intro p {
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.examples {
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  align-items:center;
  font-size:12px;
  color:var(--muted);
  margin:19px 0 0;
}
.examples a {
  border-bottom:1px solid #9eb3cd;
  text-decoration:none;
  color:#205bc5;
}
.notice {
  border:1px solid #b8cfe9;
  border-radius:3px;
  padding:14px 18px;
  color:#264b70;
  background:#edf4fc;
  font-size:13px;
  margin:20px 0;
}
.notice.error {
  background:#fff3ed;
  border-color:#deb39c;
  color:#803f23;
}
.notice button {
  margin-left:10px;
}
.loading {
  color:var(--muted);
  padding:30px 0;
}
.crumbs {
  font-size:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:30px;
  color:var(--muted);
}
.crumbs a {
  text-decoration:none;
}
.device-title {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.device-title h1 {
  font-family:var(--mono);
  font-size:clamp(26px,4vw,38px);
  margin-bottom:14px;
  overflow-wrap:anywhere;
}
.title-actions {
  display:flex;
  gap:9px;
  flex-shrink:0;
  padding-top:4px;
}
.device-summary {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  color:var(--muted);
  font-size:13px;
  margin-bottom:24px;
}
.inspector {
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(0,1.7fr);
  gap:20px;
  align-items:start;
  margin-top:22px;
}
.command-list {
  padding:0;
  overflow:hidden;
}
.command-search {
  padding:18px;
  border-bottom:1px solid var(--line);
}
.command-items {
  max-height:590px;
  overflow-y:auto;
}
.command-row {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:left;
  padding:13px 18px;
  border:0;
  border-bottom:1px solid #eaf0f7;
  background:transparent;
  font-size:13px;
  gap:10px;
}
.command-row:last-child {
  border-bottom:0;
}
.command-row:hover {
  background:#f0f5fc;
}
.command-row[aria-pressed=true] {
  background:#e6effc;
  color:#205bc5;
  box-shadow:inset 3px 0 #205bc5;
  font-weight:700;
}
.command-row span:first-child {
  overflow-wrap:anywhere;
}
.command-row span:last-child {
  font-size:10px;
  color:var(--muted);
  white-space:nowrap;
}
.command-detail h2 {
  font-size:25px;
  overflow-wrap:anywhere;
}
.command-detail .protocol-name {
  color:var(--muted);
  font-size:12px;
  margin:0 0 18px;
  overflow-wrap:anywhere;
}
.encoding {
  margin-top:20px;
}
.encoding-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:9px;
}
.encoding-head h3 {
  font-size:12px;
  margin:0;
  font-weight:600;
}
.copy {
  padding:4px 11px;
  min-height:30px;
  font-size:11px;
  background:var(--paper);
}
pre {
  margin:0;
  background:#142336;
  color:#dceaf8;
  border:1px solid #243b53;
  border-radius:3px;
  padding:15px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:11px;
  line-height:1.8;
  max-height:300px;
  overflow-y:auto;
  font-family:var(--mono);
}
code {
  font-family:var(--mono);
  font-size:.88em;
  overflow-wrap:anywhere;
}
.details-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:22px;
}
.details-grid>.card {
  min-width:0;
}
.facts {
  margin:0;
  display:grid;
  gap:15px;
}
.facts>div {
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  gap:12px;
  font-size:12px;
  line-height:1.6;
}
.facts dt {
  color:var(--muted);
}
.facts dd {
  margin:0;
  overflow-wrap:anywhere;
}
.facts a {
  text-decoration-color:#91aac5;
}
.record-details {
  margin-top:18px;
}
.record-details summary {
  font-size:12px;
  cursor:pointer;
  padding:8px 0;
}
.record-body {
  margin-top:10px;
}
.record-body pre {
  margin-top:12px;
}
.sources-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-top:30px;
}
.source-card h2 {
  font-size:23px;
  margin:0 0 14px;
}
.source-card p {
  font-size:13px;
  color:var(--muted);
}
.source-card .facts {
  margin:22px 0;
}
.source-card .button {
  margin-right:8px;
  margin-bottom:7px;
}
.maker-controls {
  display:flex;
  align-items:end;
  gap:24px;
  margin-bottom:26px;
}
.maker-controls .field {
  max-width:420px;
  flex:1;
}
.alphabet {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  padding:17px 0 24px;
}
.alphabet a {
  text-decoration:none;
  min-width:29px;
  text-align:center;
  font-size:12px;
  padding:7px;
  border-radius:2px;
}
.alphabet a[aria-current=true] {
  background:var(--accent);
  color:white;
}
.maker-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.maker-link {
  padding:16px 18px;
  text-decoration:none;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:3px;
  font-size:13px;
  overflow-wrap:anywhere;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.maker-link:hover {
  border-color:#6f95c5;
}
.site-footer {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  font-family:var(--mono);
  font-size:10px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding:25px 0 32px;
}
.site-footer div {
  display:flex;
  gap:25px;
}
.site-footer a {
  text-decoration:none;
}
.sr-only {
  position:absolute;
  clip-path:inset(50%);
  height:1px;
  width:1px;
  overflow:hidden;
  white-space:nowrap;
}
.skip {
  position:fixed;
  top:-100px;
  left:15px;
  background:white;
  padding:12px;
  z-index:10;
}
.skip:focus {
  top:10px;
}
.wide-note {
  max-width:760px;
  margin:24px 0;
  font-size:13px;
  color:var(--muted);
}
@media(min-width:1440px) {
  main {
    padding-top:46px;
  }
  .results-grid {
    gap:18px;
  }
}
@media(max-width:950px) {
  .results-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .maker-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .site-header nav {
    gap:20px;
  }
  .device-title {
    display:block;
  }
  .title-actions {
    margin-bottom:25px;
  }
  .sources-grid {
    grid-template-columns:1fr;
  }
  .inspector {
    grid-template-columns:minmax(180px,.8fr) minmax(0,1.5fr);
  }
}
@media(max-width:640px) {
  .wrap {
    width:calc(100% - 36px);
  }
  .header-inner {
    min-height:0;
    padding:20px 0 0;
    display:block;
  }
  .brand img {
    width:146px;
  }
  .brand span {
    font-size:10px;
  }
  .site-header nav {
    margin-top:22px;
    gap:23px;
    overflow-x:auto;
    white-space:nowrap;
  }
  .site-header nav a {
    font-size:12px;
    padding:12px 0 17px;
  }
  .site-header nav a[aria-current=page]:after {
    bottom:0;
  }
  main {
    padding-top:32px;
    padding-bottom:45px;
  }
  h1 {
    font-size:32px;
  }
  .lede {
    font-size:14px;
    margin-bottom:23px;
  }
  .stats {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0;
    margin-bottom:22px;
  }
  .stat { min-width:0; padding:2px 8px }
  .stat:first-child { padding-left:0 }
  .stat+.stat { padding-left:8px }

  .stat strong {
    display:block;
    font-size:clamp(15px,4.5vw,17px);
  }
  .stat span {
    font-size:10px;
  }
  .card {
    padding:19px;
  }
  .search-form {
    grid-template-columns:1fr;
    gap:16px;
  }
  .search-form>.primary {
    width:100%;
  }
  .filter-line {
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .results-grid {
    grid-template-columns:1fr;
  }
  .device {
    min-height:127px;
  }
  .maker-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .maker-link {
    padding:14px 12px;
    font-size:12px;
  }
  .maker-controls {
    display:block;
  }
  .maker-controls .field {
    max-width:none;
  }
  .maker-controls .subtle {
    margin-top:15px;
    display:block;
  }
  .inspector,.details-grid {
    grid-template-columns:1fr;
  }
  .command-items {
    max-height:260px;
  }
  .command-search {
    padding:14px;
  }
  .command-detail {
    min-width:0;
  }
  .device-summary {
    gap:8px;
  }
  .source-card .facts>div {
    grid-template-columns:85px minmax(0,1fr);
  }
  .browse-intro {
    align-items:flex-start;
    flex-direction:column;
    gap:15px;
  }
  .site-footer {
    align-items:flex-start;
    gap:15px;
    flex-direction:column;
  }
  .pagination .button {
    padding:10px 12px;
  }
  .pagination .subtle {
    font-size:10px;
  }
  .section-head {
    align-items:flex-start;
  }
  .section-head p {
    text-align:right;
  }
  .title-actions {
    flex-wrap:wrap;
  }
  .notice {
    overflow-wrap:anywhere;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}
.empty-commands {
  padding:18px;
}

.api-intro p { margin-top:18px; margin-bottom:12px; font-size:13px; color:var(--muted) }
.base-url { font-size:18px }
.api-endpoints { display:grid; gap:12px }
.api-endpoint summary { display:flex; align-items:center; gap:16px; cursor:pointer; flex-wrap:wrap }
.api-endpoint>p { margin-top:20px; font-size:13px; color:var(--muted) }
.api-endpoint summary .subtle { margin-left:auto }
.api-subheading { margin-top:25px }
.api-data { margin-top:22px }
.table-scroll { overflow-x:auto }
table { border-collapse:collapse; width:100%; text-align:left; font-size:12px }
th,td { padding:12px 10px; border-bottom:1px solid var(--line); vertical-align:top }
th { color:var(--muted); font-weight:500 }
@media(max-width:640px) { .api-endpoint summary { gap:10px } .api-endpoint summary .subtle { margin-left:0; width:100% } .base-url { font-size:14px } }

.source-attribution { font-size:12px; overflow-wrap:anywhere }

/* Grouping changes navigation, while every command view remains source-specific. */
.device-group { padding:22px; min-width:0; display:flex; flex-direction:column }
.device-group .maker { color:var(--muted); font-size:10px; font-family:var(--mono); text-transform:uppercase; letter-spacing:.05em }
.device-group h3 { font-family:var(--mono); font-size:18px; font-weight:600; line-height:1.35; margin:8px 0 12px; overflow-wrap:anywhere }
.group-count { color:var(--muted); font-family:var(--mono); font-size:10px; margin:0 0 12px }
.group-explanation { margin:0 0 16px }
.profile-links { list-style:none; padding:0; margin:0; border-top:1px solid var(--line) }
.device-group .profile-links { margin-top:auto }
.profile-links li+li { border-top:1px solid var(--line) }
.profile-links a { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; text-decoration:none; overflow-wrap:anywhere }
.profile-links a>span:first-child { min-width:0 }
.profile-links a strong { display:block; font-size:12px; font-weight:600 }
.profile-links a:hover strong { text-decoration:underline }
.profile-model { display:block; font-family:var(--mono); font-size:10px; color:var(--muted); margin-top:4px }
.profile-links [aria-current=page] { color:var(--accent) }
.matching-profiles { margin:24px 0; padding:24px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px }
.matching-profiles h2 { margin:0 0 8px }
.matching-profiles p { margin:0; max-width:45em }
@media(max-width:700px) { .matching-profiles { grid-template-columns:1fr; gap:18px; padding:20px } }
.search-feedback { margin:14px 0 0; min-height:1.5em; border-top:1px solid #e3eaf1; padding-top:12px; font-family:var(--mono); font-size:11px }
#search-results[aria-busy=true] .results-grid { opacity:.55 }

.device-group:hover { border-color:#6f95c5 }
.profile-links a:hover { color:var(--accent) }
.profile-links [aria-current=page] { background:#f0f5fd }
.search-feedback::before { content:"↳ "; color:var(--accent) }
.facts dt,.encoding-head h3,.command-detail .protocol-name { font-family:var(--mono) }
