/* Category navigation cards */
@scope ([data-public-site]) {

  /* Compact navigation, scoped to category entrances. */
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-bottom: 24px;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 52px;
    padding: 10px 14px;
    color: inherit;
    background: #FAFAFA;
    border: 1px solid #E8E8E8;
    border-radius: 3px;
    text-decoration: none;
    transition: border-color .2s;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category:hover,
:where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category:focus-visible {
    color: inherit;
    border-color: #337ab7;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category:focus-visible {
    outline: 2px solid #337ab7;
    outline-offset: 2px;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category_heading {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category_count {
    flex: none;
    color: #666;
    font-size: 12px;
    white-space: nowrap;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category p {
    display: none;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category_action {
    display: flex;
    flex: none;
    align-items: center;
    color: #337ab7;
    font-size: 0;
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_category_action span {
    font-size: 20px;
    line-height: 1;
}
  :where(:scope):is(div):is([data-site-theme="dark"],.dark-theme:where(:not([data-site-theme]))):where(:scope):has([data-site-template~="category"]) .device_hub_category { background: #2E2E2E; border-color: #4A4A4A; }
  @media (prefers-color-scheme: dark) {
:where(:scope):is(div)[data-site-theme="system"]:where(:scope):has([data-site-template~="category"]) .device_hub_category { background: #2E2E2E; border-color: #4A4A4A; }
}
  :where(:scope):is(div):is([data-site-theme="dark"],.dark-theme:where(:not([data-site-theme]))):where(:scope):has([data-site-template~="category"]) .device_hub_category_count { color: #bbb; }
  @media (prefers-color-scheme: dark) {
:where(:scope):is(div)[data-site-theme="system"]:where(:scope):has([data-site-template~="category"]) .device_hub_category_count { color: #bbb; }
}
  :where(:scope):is(div):is([data-site-theme="dark"],.dark-theme:where(:not([data-site-theme]))):where(:scope):has([data-site-template~="category"]) .device_hub_category_action { color: #83bdf0; }
  @media (prefers-color-scheme: dark) {
:where(:scope):is(div)[data-site-theme="system"]:where(:scope):has([data-site-template~="category"]) .device_hub_category_action { color: #83bdf0; }
}
  :where(:scope):is(div):is([data-site-theme="dark"],.dark-theme:where(:not([data-site-theme]))):where(:scope):has([data-site-template~="category"]) .device_hub_category:hover,
:where(:scope):is(div):is([data-site-theme="dark"],.dark-theme:where(:not([data-site-theme]))):where(:scope):has([data-site-template~="category"]) .device_hub_category:focus-visible { border-color: #83bdf0; }
  @media (prefers-color-scheme: dark) {
:where(:scope):is(div)[data-site-theme="system"]:where(:scope):has([data-site-template~="category"]) .device_hub_category:hover,
:where(:scope):is(div)[data-site-theme="system"]:where(:scope):has([data-site-template~="category"]) .device_hub_category:focus-visible { border-color: #83bdf0; }
}
  @media (max-width: 600px) {
    :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) .device_hub_categories { grid-template-columns: 1fr; }
}
  :where(:scope):is(div):where(:scope):has([data-site-template~="category"]) #gc-category-hub-title {
    margin: 0 0 12px;
    font-size: 15px;
}
}
