/*
Theme Name: Sheshi Directory Row Refinement
Version: 0.33.4
Description: Clear archive-row hierarchy, uniform context reduction and responsive interaction polish.
*/

/* Uniform information belongs to the archive context, not every result row. */
body.archive.sheshi-shell .sheshi-taxonomy-count {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  line-height: 1.25 !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-count > span {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-count small {
  color: var(--text-muted) !important;
  font-size: 11.5px !important;
  font-weight: 580 !important;
  letter-spacing: .01em !important;
  white-space: nowrap !important;
}

/* A directory row stays a line: no card radius, gap or shadow. */
body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row {
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr) 28px !important;
  gap: 16px !important;
  align-items: center !important;
  padding: 14px 8px 14px 4px !important;
  transition: background-color 120ms ease !important;
}

body.tax-location.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row {
  grid-template-columns: 40px minmax(0, 1fr) 28px !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row:active {
  background: #edf2f4 !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card-hitarea:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: -2px !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-category-icon {
  align-self: start !important;
  margin-top: 2px !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-title-row {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px 8px !important;
  text-align: left !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-title-row h2 {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-size: 17px !important;
  font-weight: 720 !important;
  line-height: 1.3 !important;
  letter-spacing: -.01em !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-title-row > .sheshi-meta-chip,
body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-title-row > .sheshi-meta-chip {
  display: inline-flex !important;
  min-height: 20px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 620 !important;
  line-height: 1.2 !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-facts {
  margin: 4px 0 0 !important;
  color: var(--text-muted) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-separator {
  margin-inline: 7px !important;
  color: var(--border-strong) !important;
  font-weight: 700 !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-languages b {
  margin-left: 4px !important;
  color: var(--accent) !important;
  font-size: inherit !important;
  font-weight: 700 !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-description {
  max-width: 72ch !important;
  margin: 3px 0 0 !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-row-arrow {
  display: flex !important;
  width: 28px !important;
  height: 28px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  color: var(--accent) !important;
  transition: transform 120ms ease, color 120ms ease !important;
}

body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-row-arrow svg {
  width: 19px !important;
  height: 19px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.tax-listing-category.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row.is-uniform-category {
  grid-template-columns: minmax(0, 1fr) 28px !important;
}

@media (hover: hover) and (pointer: fine) {
  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row:hover .sheshi-result-title-row h2 {
    color: var(--accent) !important;
  }
}

@media (max-width: 767px) {
  body.archive.sheshi-shell .sheshi-taxonomy-count {
    align-items: flex-start !important;
    margin-top: 12px !important;
  }

  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row,
  body.tax-listing-category.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row.is-uniform-category {
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr) 22px !important;
    gap: 10px !important;
    padding: 13px 0 !important;
  }

  body.tax-location.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row {
    grid-template-columns: 36px minmax(0, 1fr) 22px !important;
  }

  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-title-row {
    gap: 4px 7px !important;
  }

  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-title-row h2 {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-facts {
    font-size: 12.5px !important;
  }

  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-description {
    font-size: 13.5px !important;
    line-height: 1.42 !important;
    -webkit-line-clamp: 2 !important;
  }

  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-row-arrow {
    width: 22px !important;
    height: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-card--directory-row,
  body.archive.sheshi-shell .sheshi-taxonomy-results .sheshi-result-row-arrow {
    transition: none !important;
  }
}
