/* HSWare 4.2 — Software/Blog directory polish loaded after the active template bundle. */

.hsware-software-directory .hsware-directory-hero {
  padding-top: 52px;
  padding-bottom: 42px;
}
.hsware-software-directory .hsware-directory-hero h1 { margin-bottom: 16px; }
.hsware-software-directory .hsware-directory-search { margin-top: 0; }

/* Category hierarchy: every parent is visible; children expand from the arrow. */
.hsware-software-directory .hsware-directory-sidebar {
  display: block;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 16px;
}
.hsware-software-directory .hsware-directory-sidebar > h2 { margin-bottom: 10px; }
.hsware-category-tree {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  scrollbar-width: thin;
}
.hsware-category-node { min-width: 0; }
.hsware-category-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.hsware-software-directory .hsware-category-filter {
  flex: 1 1 auto;
  min-width: 0;
  margin: 2px 0;
  padding: 8px 8px;
  gap: 8px;
  border-radius: 9px;
  line-height: 1.2;
}
.hsware-category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hsware-category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hsware-category-media {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
}
.hsware-category-media-image {
  display: block;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.hsware-software-directory .hsware-category-filter b {
  min-width: 24px;
  padding: 2px 5px;
  font-size: 10px;
  flex: 0 0 auto;
}
.hsware-category-toggle {
  appearance: none !important;
  display: grid !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  flex: 0 0 28px;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: var(--so-subtle) !important;
  box-shadow: none !important;
  cursor: pointer;
}
.hsware-category-toggle:hover { background: var(--so-bg-subtle) !important; color: var(--so-strongest) !important; }
.hsware-category-toggle span {
  display: block;
  font-size: 17px;
  line-height: 1;
  transition: transform .16s ease;
  transform: rotate(0deg);
}
.hsware-category-toggle span svg { display:block; width:15px!important; height:15px!important; stroke:currentColor; }
.hsware-category-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
.hsware-category-children {
  margin: 1px 0 3px 13px;
  padding-left: 9px;
  border-left: 1px solid var(--so-border);
}
.hsware-category-children[hidden] { display: none !important; }
.hsware-category-node.depth-1 .hsware-category-filter,
.hsware-category-node.depth-2 .hsware-category-filter,
.hsware-category-node.depth-3 .hsware-category-filter { font-size: 12.5px; font-weight: 600; }
.hsware-category-node.depth-1 .hsware-category-media,
.hsware-category-node.depth-2 .hsware-category-media,
.hsware-category-node.depth-3 .hsware-category-media { width: 22px; height: 22px; flex-basis: 22px; }

/* Software result grid. */
.hsware-software-directory .sb-software-grid,
.hsware-software-directory .sb-archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 15px !important;
  align-items: stretch;
}

/* Template 1 compact directory card. Homepage cards are intentionally untouched. */
.hsware-software-directory .sb-software-card.hsware-compact-software-card {
  min-height: 0 !important;
  height: 100%;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-card-body { padding: 14px; }
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-card-top {
  min-height: 72px !important;
  margin-bottom: 10px !important;
  padding-right: 78px !important;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-app-icon-wrap {
  width: 72px !important;
  height: 72px !important;
  flex: 0 0 72px !important;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-app-icon,
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-app-icon.has-image img {
  width: 72px !important;
  height: 72px !important;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-version-float {
  top: 0 !important;
  right: 0 !important;
  max-width: 72px !important;
  min-height: 24px !important;
  padding: 5px 7px !important;
  overflow: hidden !important;
  font-size: 9px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card h3 {
  margin-bottom: 7px !important;
  font-size: 15px !important;
  line-height: 1.28 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-card-meta {
  margin-bottom: 0 !important;
  font-size: 10px !important;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-publisher {
  margin-top: 10px;
  padding-top: 9px;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-card-footer {
  padding: 10px 12px;
}
.hsware-software-directory .sb-software-card.hsware-compact-software-card .sb-card-download {
  min-width: 0 !important;
  min-height: 31px !important;
  padding: 7px 10px !important;
}














/* Pagination: paginate_links() returns plain links/spans, never a vertically styled UL. */
.hsware-directory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}
.hsware-directory-pagination > a.page-numbers,
.hsware-directory-pagination > span.page-numbers {
  display: inline-flex !important;
  width: auto !important;
  min-width: 34px !important;
  height: 34px !important;
  align-items: center;
  justify-content: center;
  padding: 0 9px !important;
  border: 1px solid var(--so-border) !important;
  border-radius: 8px !important;
  background: var(--so-white) !important;
  color: var(--so-medium) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.hsware-directory-pagination > span.page-numbers.current,
.hsware-directory-pagination > a.page-numbers:hover {
  border-color: var(--so-accent) !important;
  background: var(--so-accent) !important;
  color: var(--so-on-accent) !important;
}
.hsware-directory-pagination > span.page-numbers.dots {
  min-width: 20px !important;
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
}

@media (max-width: 1180px) {
  .hsware-software-directory .sb-software-grid,
.hsware-software-directory .sb-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 980px) {
  .hsware-software-directory .hsware-directory-sidebar {
    position: static;
    max-height: none;
  }
  .hsware-category-tree { max-height: 430px; }
}
@media (max-width: 700px) {
  .hsware-software-directory .sb-software-grid,
.hsware-software-directory .sb-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 470px) {
  .hsware-software-directory .sb-software-grid,
.hsware-software-directory .sb-archive-grid { grid-template-columns: 1fr !important; }
  .hsware-directory-pagination > a.page-numbers,
.hsware-directory-pagination > span.page-numbers { min-width: 32px !important; height: 32px !important; padding: 0 7px !important; }
}
















































/* --------------------------------------------------------------------------
 * HSWare 4.8 — complete category hierarchy and sidebar alignment.
 * -------------------------------------------------------------------------- */
.hsware-software-directory .hsware-directory-layout {
  grid-template-columns: minmax(300px, 330px) minmax(0, 1fr);
  gap: 32px;
}
.hsware-software-directory .hsware-directory-sidebar {
  padding: 20px;
  border: 1px solid var(--so-border);
  border-radius: 20px;
  background: var(--so-white);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--so-strongest) 6%, transparent);
}
.hsware-software-directory .hsware-directory-sidebar > h2 {
  margin: 0 0 14px;
  padding: 0 2px 13px;
  border-bottom: 1px solid var(--so-border);
  font-size: 20px;
  line-height: 1.2;
}
.hsware-software-directory .hsware-category-tree { padding: 4px 6px 4px 0; }
.hsware-software-directory .hsware-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
}
.hsware-software-directory .hsware-category-row.no-children { grid-template-columns: minmax(0, 1fr); }
.hsware-software-directory .hsware-category-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1.35;
}
.hsware-software-directory .hsware-category-filter:hover {
  border-color: var(--so-border);
  background: var(--so-bg-lighter);
}
.hsware-software-directory .hsware-category-filter.is-active {
  border-color: color-mix(in srgb, var(--so-accent) 30%, var(--so-border));
  background: color-mix(in srgb, var(--so-accent) 8%, var(--so-white));
}
.hsware-software-directory .hsware-category-label { align-items: center; gap: 9px; }
.hsware-software-directory .hsware-category-name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.hsware-software-directory .hsware-category-media {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 3px;
  border: 1px solid var(--so-border);
  border-radius: 8px;
  background: var(--so-bg-lighter);
}
.hsware-software-directory .hsware-category-media-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
}
.hsware-software-directory .hsware-category-filter b {
  display: inline-flex;
  min-width: 26px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  line-height: 1;
}
.hsware-software-directory .hsware-category-toggle {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border: 1px solid var(--so-border) !important;
  border-radius: 10px !important;
  background: var(--so-bg-lighter) !important;
  line-height: 0 !important;
}
.hsware-software-directory .hsware-category-toggle > span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
}
.hsware-software-directory .hsware-category-children {
  margin: 5px 0 8px 18px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid color-mix(in srgb, var(--so-accent) 24%, var(--so-border));
}
.hsware-software-directory .hsware-category-node.depth-1 .hsware-category-filter,
.hsware-software-directory .hsware-category-node.depth-2 .hsware-category-filter,
.hsware-software-directory .hsware-category-node.depth-3 .hsware-category-filter {
  min-height: 40px;
  padding: 7px 8px;
  font-size: 12.5px;
}
.hsware-category-directory-results { background: var(--so-bg-lighter); }








@media (max-width: 980px) {
  .hsware-software-directory .hsware-directory-layout { grid-template-columns: 1fr; gap: 24px; }
  .hsware-software-directory .hsware-directory-sidebar { position: static; max-height: none; }
  .hsware-software-directory .hsware-category-tree { max-height: 520px; }
}
@media (max-width: 480px) {
  .hsware-software-directory .hsware-directory-sidebar { padding: 14px; border-radius: 16px; }
}

/* --------------------------------------------------------------------------
 * HSWare 4.9 — compact category sections with individual information cards.
 * -------------------------------------------------------------------------- */
.hsware-category-directory-sections {
  display: grid;
  gap: 34px;
}
.hsware-category-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--so-border);
  border-radius: 24px;
  background: var(--so-white);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--so-strongest) 6%, transparent);
}
.hsware-category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--so-border);
  background: var(--so-white);
}
.hsware-category-main-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}
.hsware-category-main-identity > div { min-width: 0; }
.hsware-category-main-icon,
.hsware-category-tile-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid var(--so-border);
  background: var(--so-bg-lighter);
}
.hsware-category-main-icon {
  width: 58px;
  height: 58px;
  padding: 5px;
  border-radius: 16px;
}
.hsware-category-main-icon img,
.hsware-category-tile-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
}
.hsware-category-main-label,
.hsware-category-tile-level {
  display: block;
  color: var(--so-subtle);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hsware-category-main-identity h2 {
  margin: 4px 0 5px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}
.hsware-category-main-identity h2 a {
  color: var(--so-strongest);
  text-decoration: none;
}
.hsware-category-main-identity p {
  max-width: 720px;
  margin: 0;
  color: var(--so-medium);
  font-size: 12.5px;
  line-height: 1.6;
}
.hsware-category-main-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}
.hsware-category-main-actions > b,
.hsware-category-tile-stats > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--so-accent) 9%, var(--so-white));
  color: var(--so-accent-alt);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.hsware-category-main-actions > b { min-height: 30px; padding: 7px 10px; }
.hsware-category-main-actions > a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--so-border);
  border-radius: 10px;
  color: var(--so-strongest);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.hsware-category-main-actions > a:hover {
  border-color: color-mix(in srgb, var(--so-accent) 35%, var(--so-border));
  background: var(--so-bg-lighter);
  color: var(--so-accent-alt);
}
.hsware-category-main-actions svg { width: 14px; height: 14px; }
.hsware-category-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  padding: 20px;
  background: var(--so-bg-lighter);
}
.hsware-category-tile {
  display: flex;
  min-width: 0;
  min-height: 220px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--so-border);
  border-radius: 17px;
  background: var(--so-white);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--so-strongest) 3%, transparent);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hsware-category-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--so-accent) 28%, var(--so-border));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--so-strongest) 7%, transparent);
}
.hsware-category-tile-top {
  display: flex;
  min-height: 46px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.hsware-category-tile.no-category-media .hsware-category-tile-top {
  justify-content: flex-end;
}
.hsware-category-tile-icon {
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 12px;
}
.hsware-category-tile-level {
  max-width: 65%;
  padding-top: 3px;
  overflow-wrap: anywhere;
  text-align: right;
}
.hsware-category-tile.no-category-media .hsware-category-tile-level {
  max-width: 100%;
  text-align: right;
}
.hsware-category-tile h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.35;
}
.hsware-category-tile h3 a {
  color: var(--so-strongest);
  text-decoration: none;
}
.hsware-category-tile-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}
.hsware-category-tile-stats > b { min-height: 24px; padding: 5px 8px; }
.hsware-category-tile-stats > span {
  color: var(--so-subtle);
  font-size: 9.5px;
  font-weight: 700;
}
.hsware-category-tile > p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--so-medium);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.hsware-category-tile-view {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--so-border);
  color: var(--so-strongest);
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
}
.hsware-category-tile-view:hover { color: var(--so-accent-alt); }
.hsware-category-tile-view svg { width: 14px; height: 14px; }
.hsware-category-section-empty {
  padding: 24px 26px;
  background: var(--so-bg-lighter);
  color: var(--so-subtle);
  font-size: 12px;
}













@media (max-width: 1180px) {
  .hsware-category-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hsware-category-section-head { align-items: flex-start; flex-direction: column; }
  .hsware-category-main-actions { width: 100%; justify-content: space-between; }
  .hsware-category-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .hsware-category-directory-sections { gap: 24px; }
  .hsware-category-section { border-radius: 18px; }
  .hsware-category-section-head { padding: 19px 17px; }
  .hsware-category-main-identity { align-items: flex-start; gap: 12px; }
  .hsware-category-main-icon { width: 48px; height: 48px; border-radius: 13px; }
  .hsware-category-main-actions { align-items: stretch; flex-direction: column; }
  .hsware-category-main-actions > a { justify-content: space-between; }
  .hsware-category-tile-grid { grid-template-columns: 1fr; padding: 14px; }
  .hsware-category-tile { min-height: 200px; }
}

/* --------------------------------------------------------------------------
 * HSWare V5.1 — complete Software directory and category explorer.
 * These final rules intentionally supersede the earlier sidebar experiments.
 * -------------------------------------------------------------------------- */
.hsware-software-directory .hsware-directory-results {
  background:
    radial-gradient(circle at 8% 2%, color-mix(in srgb, var(--so-accent) 7%, transparent), transparent 25rem),
    var(--so-bg-lighter);
}
.hsware-software-directory .hsware-directory-results > .sb-container {
  width: min(1440px, calc(100% - 40px));
  max-width: none;
}
.hsware-software-directory .hsware-directory-layout.has-sidebar {
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}
.hsware-software-directory .hsware-directory-main { min-width: 0; }

.hsware-software-directory .hsware-directory-sidebar {
  position: sticky;
  top: 24px;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 292px !important;
  max-height: calc(100vh - 48px);
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--so-border);
  border-radius: 22px;
  background: var(--so-white);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--so-strongest) 8%, transparent);
}
.hsware-software-directory .hsware-directory-sidebar::before {
  display: none !important;
  width: 0;
  height: 0;
  background: none;
  content: none !important;
}
.hsware-sidebar-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  padding: 18px 18px 10px;
}
.hsware-sidebar-heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--so-accent-alt);
  background: var(--so-accent-soft);
  border: 1px solid var(--so-accent-border);
}
.hsware-sidebar-heading-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}
.hsware-sidebar-heading-icon svg { width: 20px; height: 20px; }
.hsware-sidebar-heading > div { min-width: 0; }
.hsware-sidebar-heading > div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--so-subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.hsware-software-directory .hsware-sidebar-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--so-strongest);
  font-size: 18px;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.hsware-sidebar-heading > a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--so-border);
  border-radius: 10px;
  background: var(--so-bg-lighter);
  color: var(--so-strongest);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.hsware-sidebar-heading > a:hover {
  border-color: var(--so-accent-border);
  background: var(--so-accent-soft);
  color: var(--so-accent-alt);
}
.hsware-sidebar-heading > a svg { width: 15px; height: 15px; }
.hsware-sidebar-intro {
  margin: 0;
  padding: 0 18px 15px;
  color: var(--so-medium);
  font-size: 11px;
  line-height: 1.55;
}

.hsware-software-directory .hsware-category-all {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  margin: 0 14px 12px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
}
.hsware-software-directory .hsware-category-all .hsware-category-label {
  display: block;
  min-width: 0;
}
.hsware-software-directory .hsware-category-all .hsware-category-name {
  display: block;
  color: var(--so-strongest);
  font-size: 12.5px;
  font-weight: 800;
}
.hsware-software-directory .hsware-category-all .hsware-category-label small {
  display: none;
}
.hsware-software-directory .hsware-category-all > b {
  min-width: 34px;
  min-height: 25px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--so-white);
  color: var(--so-accent-alt);
  font-size: 10px;
}
.hsware-software-directory .hsware-category-all.is-active {
  border-color: var(--so-accent-border);
  background: var(--so-accent-soft);
  box-shadow: inset 3px 0 0 var(--so-accent);
}
.hsware-software-directory .hsware-category-all.is-active .hsware-category-name { color: var(--so-accent-alt); }
.hsware-software-directory .hsware-category-all.is-active > b {
  background: var(--so-bg-lighter);
  color: var(--so-accent-alt);
}

.hsware-category-tree-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 14px;
  padding: 12px 3px 8px;
  border-top: 1px solid var(--so-border);
  color: var(--so-subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hsware-category-tree-title b {
  display: inline-grid;
  min-width: 23px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--so-bg-subtle);
  color: var(--so-medium);
  font-size: 9px;
  letter-spacing: 0;
}
.hsware-software-directory .hsware-category-tree {
  max-height: calc(100vh - 360px);
  min-height: 100px;
  margin: 0;
  padding: 0 9px 8px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: var(--so-border-strong) transparent;
  scrollbar-width: thin;
}
.hsware-software-directory .hsware-category-tree::-webkit-scrollbar { width: 6px; }
.hsware-software-directory .hsware-category-tree::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--so-border-strong);
}
.hsware-software-directory .hsware-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 4px 0;
}
.hsware-software-directory .hsware-category-row.no-children {
  grid-template-columns: minmax(0, 1fr);
}
.hsware-software-directory .hsware-category-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 43px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--so-medium);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: none;
}
.hsware-software-directory .hsware-category-filter:hover {
  border-color: var(--so-border);
  background: var(--so-bg-lighter);
  color: var(--so-strongest);
}
.hsware-software-directory .hsware-category-filter.is-active:not(.hsware-category-all) {
  border-color: var(--so-accent-border);
  background: var(--so-accent-soft);
  color: var(--so-accent-alt);
  box-shadow: inset 3px 0 0 var(--so-accent);
}
.hsware-software-directory .hsware-category-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.hsware-software-directory .hsware-category-name {
  display: block;
  min-width: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.hsware-software-directory .hsware-category-media {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  overflow: hidden;
  padding: 3px;
  border: 1px solid var(--so-border);
  border-radius: 8px;
  background: var(--so-white);
}
.hsware-software-directory .hsware-category-filter > b {
  display: inline-grid;
  min-width: 27px;
  min-height: 22px;
  place-items: center;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--so-bg-subtle);
  color: var(--so-subtle);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
}
.hsware-software-directory .hsware-category-toggle {
  appearance: none !important;
  display: grid !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--so-border) !important;
  border-radius: 10px !important;
  background: var(--so-white) !important;
  color: var(--so-subtle) !important;
  box-shadow: none !important;
  line-height: 0 !important;
}
.hsware-software-directory .hsware-category-toggle:hover,
.hsware-software-directory .hsware-category-toggle:focus-visible,
.hsware-software-directory .hsware-category-toggle[aria-expanded="true"] {
  border-color: var(--so-accent-border) !important;
  background: var(--so-accent-soft) !important;
  color: var(--so-accent-alt) !important;
  outline: none;
}
.hsware-software-directory .hsware-category-toggle > span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  transform: rotate(0deg);
  transition: transform .16s ease;
}
.hsware-software-directory .hsware-category-toggle[aria-expanded="true"] > span { transform: rotate(90deg); }
.hsware-software-directory .hsware-category-toggle svg {
  display: block;
  width: 15px !important;
  height: 15px !important;
}
.hsware-software-directory .hsware-category-children {
  margin: 5px 0 8px 17px;
  padding: 2px 0 2px 11px;
  border-left: 2px solid var(--so-accent-border);
}
.hsware-software-directory .hsware-category-node.depth-1 .hsware-category-filter,
.hsware-software-directory .hsware-category-node.depth-2 .hsware-category-filter,
.hsware-software-directory .hsware-category-node.depth-3 .hsware-category-filter {
  min-height: 39px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 650;
}
.hsware-sidebar-directory-link {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--so-border);
  background: var(--so-bg-lighter);
  color: var(--so-strongest);
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
}
.hsware-sidebar-directory-link:hover { color: var(--so-accent-alt); }
.hsware-sidebar-directory-link svg { width: 14px; height: 14px; }

.hsware-directory-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}
.hsware-directory-page-size {
  display: inline-flex !important;
  min-height: 30px;
  align-items: center;
  margin: 0 !important;
  padding: 6px 10px;
  border: 1px solid var(--so-border);
  border-radius: 999px;
  background: var(--so-white);
  color: var(--so-medium) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
}
.hsware-directory-heading-actions > a {
  color: var(--so-accent-alt);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.hsware-software-directory .hsware-directory-pagination {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--so-border);
}
.hsware-software-directory .hsware-directory-pagination > a.page-numbers,
.hsware-software-directory .hsware-directory-pagination > span.page-numbers {
  min-width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
}



















@media (max-width: 1120px) {
  .hsware-software-directory .hsware-directory-layout.has-sidebar {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hsware-software-directory .hsware-directory-sidebar {
    position: static;
    width: 100% !important;
    max-width: none !important;
    max-height: none;
  }
  .hsware-software-directory .hsware-category-tree {
    max-height: 440px;
  }
}
@media (max-width: 700px) {
  .hsware-software-directory .hsware-directory-results > .sb-container { width: min(100% - 24px, 1440px); }
  .hsware-directory-heading { align-items: flex-start; }
  .hsware-directory-heading-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
  .hsware-software-directory .hsware-directory-sidebar { border-radius: 17px; }
  .hsware-sidebar-heading { grid-template-columns: 38px minmax(0, 1fr) 32px; padding: 15px 14px 9px; }
  .hsware-sidebar-heading-icon { width: 38px; height: 38px; }
  .hsware-sidebar-heading > a { width: 32px; height: 32px; }
  .hsware-sidebar-intro { padding: 0 14px 13px; }
  .hsware-software-directory .hsware-category-all { margin: 0 11px 12px; }
  .hsware-category-tree-title { margin-inline: 11px; }
  .hsware-software-directory .hsware-category-tree { max-height: none; padding-inline: 9px; }
  .hsware-sidebar-directory-link { padding-inline: 14px; }
}




