/* Public catalog, tools and community workspaces. */
#main-content .v200-catalog-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--v200-gap, 12px);
  min-inline-size: 0;
  margin-block: 0 var(--v200-gap, 12px);
}

#main-content .v200-catalog-hero > div {
  min-inline-size: 0;
}

#main-content .v200-catalog-hero :is(h1, .eyebrow) {
  margin-block: 0;
  overflow-wrap: anywhere;
}

#main-content .v200-catalog-hero .eyebrow {
  margin-block-end: .3rem;
}

#main-content :is(.v200-catalog-actions, .v200-catalog-jumps) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  min-inline-size: 0;
}

#main-content .v200-catalog-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem;
}

#main-content .v200-catalog-search input {
  min-inline-size: 0;
  background: var(--v200-field, var(--panel2));
}

#main-content .v200-catalog-disclosure > summary {
  min-block-size: var(--v200-control, 44px);
  padding-block: .55rem;
  font-weight: 650;
  cursor: pointer;
}

#main-content .v200-catalog-disclosure[open] > summary {
  margin-block-end: .45rem;
}

#main-content .v200-catalog-disclosure > .v200-catalog-actions {
  margin-block-start: .55rem;
}

#main-content .v200-catalog-jumps {
  margin-block: .2rem var(--v200-gap, 12px);
}

#main-content .v200-catalog-jumps > a {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--v200-control, 44px);
  padding-inline: .7rem;
  border-radius: var(--v200-radius, var(--v38-radius-small));
  background: var(--v200-field, var(--panel2));
  color: var(--ink);
}

#main-content :is(#device-specs, #solutions, #pc-results, #lab-feedback) {
  scroll-margin-block-start: 6rem;
}

body:is([data-route="devices"], [data-route="devices/item"], [data-route="devices/compare"]) #main-content
:is(.v112-device-card, .v112-device-filters, .v112-device-spec-group, .v124-device-panel) {
  min-inline-size: 0;
  border-radius: var(--v200-radius, var(--v38-radius-small));
  background: var(--v200-panel, var(--panel));
}

body[data-route="devices"] #main-content .v112-device-list,
body[data-route="devices/item"] #main-content .v112-device-spec-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--v200-gap, 12px);
}

body[data-route="devices"] #main-content .v112-device-list {
  grid-auto-rows: auto;
}

body[data-route="devices"] #main-content .v112-device-card {
  grid-template-rows: auto 1fr auto;
  gap: .5rem;
  padding: .75rem;
}

body[data-route="devices"] #main-content .v112-device-card .v112-device-check {
  min-block-size: var(--v200-control, 44px);
}

body[data-route="devices"] #main-content .v200-device-filter-fields {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

body[data-route="devices/item"] #main-content .v200-device-specs {
  margin-block: 0 var(--v200-gap, 12px);
}

body[data-route="devices/compare"] #main-content .v200-compare-picker .v112-device-filters {
  padding: 0;
  margin-block-end: .2rem;
}

body[data-route="devices/compare"] #main-content .v112-device-comparison {
  border-radius: var(--v200-radius, var(--v38-radius-small));
}

body[data-route="devices/compare"] #main-content .v112-device-comparison :is(th, td) {
  min-inline-size: 8.25rem;
  overflow-wrap: anywhere;
}

body[data-route="devices/compare"] #main-content .v112-device-comparison tr > th:first-child:not([colspan]) {
  z-index: 1;
  min-inline-size: 6.75rem;
  max-inline-size: 10rem;
  box-shadow: 1px 0 var(--line);
  background: var(--v200-panel, var(--panel));
}

body[data-route="devices/compare"] #main-content .v112-device-comparison :is(thead tr, .v112-device-difference) > th:first-child:not([colspan]) {
  background: var(--v200-field, var(--panel2));
}

body[data-route="tools"] #main-content .v112-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--v200-gap, 12px);
}

body[data-route="tools"] #main-content .v112-tool-card {
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: .35rem .65rem;
  padding: .9rem;
  border-radius: var(--v200-radius, var(--v38-radius-small));
  background: var(--v200-panel, var(--panel));
}

body[data-route="tools"] #main-content .v112-tool-card > p {
  grid-column: 2;
}

body[data-route="tools/pc"] #main-content .v200-pc-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
  gap: .65rem;
}

body[data-route="tools/pc"] #main-content .v200-pc-result-jump {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--v200-control, 44px);
}

body[data-route="tools/apk"] #main-content .v112-apk-files {
  grid-template-columns: minmax(0, 1fr);
  gap: .55rem;
}

body[data-route="tools/apk"] #main-content .v112-apk-files > details {
  min-inline-size: 0;
  border-block-start: 1px solid var(--line);
}

body[data-route="tools/apk"] #main-content :is(.v112-apk-properties dd, .v112-apk-report, .v112-apk-comparison) {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

body[data-route="resources"] #main-content .v110-resource-list {
  border-radius: var(--v200-radius, var(--v38-radius-small));
  background: var(--v200-panel, var(--panel));
}

body[data-route="resources"] #main-content .v110-resource-row {
  min-inline-size: 0;
}

body[data-route="resources"] #main-content .v110-resource-copy .v33-card-meta {
  row-gap: .25rem;
}

body[data-route="resource"] #main-content :is(.v33-info-bar, .v110-resource-actions) {
  gap: .35rem .65rem;
  min-inline-size: 0;
  flex-wrap: wrap;
}

body:is([data-route="resource"], [data-route="resources/manage"], [data-route="resources/collections"]) #main-content
:is(.v33-description, .v34-version, .v33-manage-row) {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

body[data-route="community"] #main-content .v110-community-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  align-items: start;
  gap: var(--v200-gap, 12px);
}

body[data-route="community"] #main-content .v110-community-group {
  min-inline-size: 0;
  border-radius: var(--v200-radius, var(--v38-radius-small));
  background: var(--v200-panel, var(--panel));
}

body[data-route="community"] #main-content .v61-community-row {
  min-block-size: var(--v200-control, 44px);
  padding-block: .6rem;
  overflow-wrap: anywhere;
}

body:is([data-route="devhub"], [data-route="learn"], [data-route="snippets"], [data-route="forum/knowledge"]) #main-content .cat-grid,
body[data-route="verified"] #main-content .v40-verification-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  align-items: stretch;
  gap: var(--v200-gap, 12px);
}

body:is([data-route="devhub"], [data-route="learn"], [data-route="snippets"], [data-route="forum/knowledge"]) #main-content
:is(.v40-card, .cat-card),
body[data-route="verified"] #main-content .v40-verification-row,
body[data-route="patch-hub"] #main-content article[id^="patch-"] {
  min-inline-size: 0;
  border-radius: var(--v200-radius, var(--v38-radius-small));
  background: var(--v200-panel, var(--panel));
  overflow-wrap: anywhere;
}

body:is([data-route="labs"], [data-route="labs/programs"], [data-route="events"]) #main-content .v40-list-row {
  min-block-size: var(--v200-control, 44px);
  min-inline-size: 0;
  gap: .4rem .7rem;
  flex-wrap: wrap;
  border-radius: var(--v200-radius, var(--v38-radius-small));
  background: var(--v200-panel, var(--panel));
  overflow-wrap: anywhere;
}

body:is([data-route="devhub"], [data-route="learn"], [data-route="labs"], [data-route="events"], [data-route="ideas"], [data-route="snippets"], [data-route="verified"], [data-route="patch-hub"]) #main-content
:is(.v40-content, .v40-prose, .v40-list-row, .v40-card, .v40-verification-row) {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

body:is([data-route="devhub"], [data-route="learn"], [data-route="labs"], [data-route="events"], [data-route="ideas"], [data-route="snippets"], [data-route="verified"], [data-route="patch-hub"]) #main-content
:is(.v40-content, .v40-card, .v40-list-row, .v40-verification-row) .muted {
  color: var(--v200-muted, var(--muted));
}

@media (min-width: 960px) {
  body[data-route="resources"] #main-content .v110-resource-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
    gap: var(--v200-gap, 12px);
    border: 0;
    background: transparent;
  }

  body[data-route="resources"] #main-content .v110-resource-list > .v110-resource-row {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    gap: .4rem .65rem;
    border: 1px solid var(--line);
    border-radius: var(--v200-radius, var(--v38-radius-small));
    background: var(--v200-panel, var(--panel));
  }

  body[data-route="resources"] #main-content .v110-resource-list > .v110-resource-row:is(:hover, :focus-visible) {
    background: var(--v200-field, var(--panel2));
  }

  body[data-route="resources"] #main-content .v110-resource-list .v110-resource-stats {
    grid-column: 2;
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    text-align: start;
  }

  body[data-route="resources"] #main-content .v110-resource-list .v110-resource-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  body[data-route="tools/pc"] #main-content .v200-pc-result-jump {
    display: none;
  }
}

@media (max-width: 520px) {
  #main-content .v200-catalog-search > button {
    min-inline-size: 0;
    padding-inline: .65rem;
  }

  body[data-route="devices/compare"] #main-content .v112-device-comparison :is(th, td) {
    padding: .45rem .5rem;
  }

  body:is([data-route="devhub"], [data-route="learn"], [data-route="snippets"], [data-route="forum/knowledge"]) #main-content .cat-grid,
  body[data-route="verified"] #main-content .v40-verification-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
