/* The supported devices page (supported.html, see supported.js): a page to read, not an app, so it
   scrolls as a whole, under a bar that stays; each section's brands and kinds as cards in a grid that
   fits as many across as it can, each card with its drawing, what it does, and its tested models. */
body.supported-page {
  display: block;
  height: auto;
  min-height: 100dvh;
  overflow: auto;
  --supported-width: 72rem;
}
.supported-page .bar {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-inline: max(16px, env(safe-area-inset-left), (100% - var(--supported-width)) / 2 + 16px)
    max(16px, env(safe-area-inset-right), (100% - var(--supported-width)) / 2 + 16px);
}
.supported-page .bar .mic-brand {
  color: var(--text);
  text-decoration: none;
}
.supported {
  width: min(var(--supported-width), 100%);
  margin: 0 auto;
  padding: 32px max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.supported a:not(.btn) {
  color: var(--accent);
}
.supported-intro > * {
  max-width: 46rem;
}
.supported h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.supported-lede {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}
.supported-intro .hint {
  line-height: 1.5;
}
.supported-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.supported-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: var(--ring);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
@media (hover: hover) {
  .supported-nav a:not(.btn):hover {
    background: var(--surface-3);
  }
}
.supported-search {
  display: grid;
  gap: 6px;
  max-width: 28rem;
  font-weight: 700;
}
.supported-search input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}
#supported-none {
  margin-top: 16px;
}

.supported-section {
  margin-top: 56px;
  scroll-margin-top: 72px;
}
.supported-section h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}
.supported-section > p,
.supported-group > p {
  max-width: 46rem;
  margin: 0 0 10px;
  color: var(--text-2);
  line-height: 1.55;
  text-wrap: pretty;
}
.supported-subhead {
  margin: 36px 0 8px;
  font-size: 20px;
}
.device-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17.5rem, 100%), 1fr));
  gap: 12px;
  margin-top: 20px;
}
.device-card {
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--ring);
}
.device-card[hidden],
.supported-group[hidden],
.supported-section[hidden] {
  display: none;
}
.device-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-card-head h3 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
/* Its drawing, in the text's quieter color: device-art's 48 × 32, or a tray icon, centred in as much. */
.device-card-art {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 32px;
  color: var(--text-2);
}
.device-card-art > svg {
  width: 48px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.supported-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.device-card-art > .supported-icon {
  width: 28px;
  height: 28px;
}
.supported-icon .dot {
  fill: currentColor;
  stroke: none;
}
.supported-icon .off {
  opacity: 0.3;
}
.device-card ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
  color: var(--text-2);
  line-height: 1.45;
}
.device-card li + li {
  margin-top: 4px;
}
.tested-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) var(--tint), transparent);
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.device-tested {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.device-tested h4 {
  margin: 0;
  color: var(--ok);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.device-card .device-tested ul {
  margin-top: 6px;
  padding: 0;
  list-style: none;
  color: var(--text);
}
.device-card .device-tested li + li {
  margin-top: 10px;
}
.device-tested p {
  margin: 0;
}
.device-tested-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.supported-icon.small {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--text-2);
}
/* What Readout was seen doing with one, as tags. */
.device-card .device-tested .device-tested-does {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.device-card .device-tested .device-tested-does li {
  margin: 0;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}
.device-tested-note {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 14px;
}
.supported-footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
