#tovoDirectory[hidden], #tovoDirectory [hidden], #tovoResultsBack[hidden] { display: none !important; }
html[data-tovo-surface="directory"] body:not(.account-workspace-mode, .people-active) > main > :not(#tovoDirectory) {
  display: none !important;
}
html[data-tovo-surface="directory"] #tovoDirectory { display: block; }
html[data-tovo-surface="directory"] #marketHeaderRegion,
html[data-tovo-surface="results"] #marketHeaderRegion,
html[data-tovo-surface="results"] :is(.market-controls .filter-row, .market-quick-filters, .ds-filters, #uiAppliedFilters, #marketDistance),
html[data-tovo-surface="results"] body #listings .market-feed #inlineFilters,
html[data-tovo-surface="filtered"] .market-discovery,
html[data-tovo-surface="results"] .market-discovery {
  display: none !important;
}

#tovoDirectory {
  box-sizing: border-box;
  width: min(100%, 1130px);
  margin-inline: auto;
  padding: clamp(20px, 3.5vw, 52px) clamp(12px, 3.4vw, 32px) clamp(28px, 4vw, 54px);
  color: var(--theme-text, #132842);
}
.tovo-directory-heading { margin-bottom: clamp(14px, 2.4vw, 28px); }
#tovoDirectoryTitle {
  margin: 0;
  font-size: clamp(23px, 5.3vw, 48px);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.035em;
}
#tovoDirectoryTitle:focus { outline: none; }
.tovo-directory-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(8px, 1.6vw, 17px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tovo-directory-cards li { min-width: 0; }
.tovo-category-card {
  --card-surface: color-mix(in srgb, var(--theme-surface, #fff) 72%, var(--category-tint));
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  box-sizing: border-box;
  height: 100%;
  min-height: clamp(110px, 15vw, 168px);
  padding: clamp(7px, 1.35vw, 13px) 6px;
  border: 1px solid color-mix(in srgb, var(--theme-border, #d9e5ef) 80%, var(--category-tint));
  border-radius: clamp(14px, 2vw, 23px);
  background: linear-gradient(148deg, var(--theme-surface, #fff), var(--card-surface));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px #10283e0d;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.tovo-category-art { display: grid; place-items: center; width: clamp(58px, 9.7vw, 104px); aspect-ratio: 1; }
.tovo-category-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tovo-category-label {
  text-align: center;
  font-size: clamp(.75rem, 1.56vw, 1.0625rem);
  font-weight: 720;
  line-height: 1.17;
  overflow-wrap: anywhere;
}
.tovo-category-card > .tovo-arrow { display: none; }
.tovo-subcategory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
.tovo-subcategory-list .tovo-category-card {
  grid-template-columns: clamp(54px, 8vw, 76px) minmax(0, 1fr) 22px;
  place-items: center start;
  gap: clamp(9px, 2vw, 18px);
  min-height: clamp(74px, 10vw, 96px);
  padding: 7px clamp(12px, 2.2vw, 24px) 7px 9px;
}
.tovo-subcategory-list .tovo-category-art { width: 100%; }
.tovo-subcategory-list .tovo-category-label { font-size: clamp(.94rem, 1.86vw, 1.08rem); text-align: left; }
.tovo-subcategory-list .tovo-arrow { display: block; justify-self: end; color: var(--theme-muted, #416078); font-size: 25px; }
#tovoDirectoryBack, #tovoResultsBack {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--theme-text, #18364f);
  font-size: .925rem;
  font-weight: 680;
  text-decoration: none;
}
#tovoDirectoryBack { margin: -8px 0 6px; }
#tovoDirectoryBack .tovo-arrow { font-size: 25px; }
#tovoResultsBack { display: none; }
html:is([data-tovo-surface="results"], [data-tovo-surface="filtered"]) #tovoResultsBack {
  display: inline-flex;
  justify-self: start;
  margin: 2px 0 5px;
}
#tovoBrowseAll {
  display: grid;
  grid-template-columns: 27px 1fr 25px;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-height: clamp(58px, 7vw, 76px);
  margin-top: clamp(14px, 3vw, 29px);
  padding: 10px clamp(14px, 3.3vw, 30px);
  border: 1px solid color-mix(in srgb, var(--theme-border, #dce5ed) 64%, var(--orange, #0675b7));
  border-radius: clamp(14px, 2vw, 23px);
  background: var(--storefront-accent-soft, #edf6fb);
  color: var(--storefront-accent-ink, #075a8c);
  text-decoration: none;
  text-align: center;
  font-size: clamp(1rem, 2.15vw, 1.3rem);
  font-weight: 720;
  transition: background-color 150ms ease, border-color 150ms ease;
}
#tovoBrowseAll .ui-icon { width: 21px; height: 21px; }
#tovoBrowseAll .tovo-arrow { font-size: 27px; }
#tovoDirectory a:focus-visible, #tovoResultsBack:focus-visible { outline: 3px solid #277fe0; outline-offset: 3px; }
@media (hover:hover) {
  .tovo-category-card:hover { border-color: #538cb4; box-shadow: 0 6px 18px #10283e17; transform: translateY(-2px); }
  #tovoBrowseAll:hover {
    background: color-mix(in srgb, var(--storefront-accent-soft, #edf6fb) 92%, var(--orange, #0675b7));
    border-color: var(--orange, #0675b7);
  }
  #tovoDirectoryBack:hover, #tovoResultsBack:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 760px) {
  .tovo-directory-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tovo-category-art { width: clamp(54px, 17vw, 85px); }
  .tovo-category-card { min-height: clamp(97px, 26vw, 137px); }
  .tovo-category-label { font-size: clamp(.75rem, 3.3vw, 1rem); }
  .tovo-subcategory-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tovo-category-card, #tovoBrowseAll { transition: none; }
}
